/* ===== Reset and Base ===== */
html, body {
  height: 100%;
  margin: 0; padding: 0;
  font-family: system-ui, 'Open Sans', sans-serif;
  background-color: #F4F1EC;
  color: #3E4B42;
  line-height: 1.5;
  font-size: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

* { box-sizing: border-box; }

@media (min-width: 1801px) {
  .right-side img { object-position: center top; }
}

/* ===== Page Wrapper ===== */
.page-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100vh;
  overflow: hidden;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 64px;
  background-color: #3E4B42;
  z-index: 1000;
  padding: 0 1.5rem;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  border-bottom: 1px solid #5a665a;
  font-weight: 400;
  font-size: 0.95rem;
}

.nav-left, .menu-toggle {
  flex: 0 0 auto;
  display: flex; align-items: center;
}

.site-title {
  color: #F8F6F1; font-size: 1rem; font-weight: 600; white-space: nowrap;
}

/* Divider between logo and nav links */
.divider {
  width: 1px; height: 24px; background-color: #5a665a;
  align-self: center; margin: 0 12px;
}

.nav-center {
  display: flex; gap: 1.2rem; align-items: center;
  flex: 0 0 auto; justify-content: flex-start;
}

.navbar a {
  text-decoration: none; color: #F8F6F1; padding-bottom: 4px;
  border-bottom: 2px solid transparent; transition: border 0.25s ease;
  font-weight: 400;
}
.navbar a.active, .navbar a:hover { border-bottom: 2px solid #F8F6F1; }

/* Hide hamburger menu by default (desktop) */
.menu-toggle { display: none; font-size: 1.6rem; color: #F8F6F1; cursor: pointer; }

/* Nav links container default */
.nav-links { display: flex; gap: 1.6rem; justify-content: flex-start; align-items: center; }

/* ===== Content ===== */
.content {
  position: fixed; top: 50px; bottom: 48px; left: 0; right: 0;
  margin: 0 auto;
  display: flex; justify-content: center; align-items: stretch;
  gap: 5rem;
  padding: 1.8rem 1rem;
  text-align: left;
  overflow: hidden;
}

.example-hint {
  margin: 1.5em 0 0.5em; font-size: 0.95rem; cursor: pointer; text-align: center;
  user-select: none; transition: color 0.3s ease; font-family: system-ui, 'Open Sans', sans-serif;
  display: block; width: 100%;
}
.example-hint,
.example-hint:link,
.example-hint:visited { color: #b29b7b; text-decoration: none; }
.example-hint:hover,
.example-hint:focus { color: #D9CFC1; text-decoration: underline; }

.left-side {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding-left: 2rem; text-align: left; min-width: 320px; margin-bottom: 3rem;
}

.hero-heading { font-size: 5rem; font-weight: 200; line-height: 1.05; margin-bottom: 2rem; letter-spacing: -0.03em; }
.intro { font-size: 1.15rem; max-width: 600px; margin-bottom: 1rem; font-weight: 400; color: #3A453D; }
.philosophy-block { font-size: 1rem; line-height: 1.5rem; max-width: 600px; margin-bottom: rem; color: #3A453D; }

.mainCTA {
  background-color: #3E4B42; color: #F8F6F1; border: none;
  padding: 10px 26px; font-size: 1rem; font-family: 'Inter', sans-serif;
  border-radius: 4px; cursor: pointer; transition: background-color 0.25s ease;
  box-shadow: 0 1.5px 4px rgba(0,0,0,0.1); margin-top: 1rem; align-self: flex-start; font-weight: 500; width: 73%;
}
.mainCTAv2 {
  background-color: #3E4B42; color: #F8F6F1; border: none; padding: 10px 26px;
  font-size: 1rem; font-family: 'Inter', sans-serif; border-radius: 4px; cursor: pointer;
  transition: background-color 0.25s ease; box-shadow: 0 1.5px 4px rgba(0,0,0,0.1);
  margin-top: 1rem; align-self: flex-start; font-weight: 500; width: 20%;
}
.mainCTA:hover { background-color: #2f3932; box-shadow: 0 3px 8px rgba(0,0,0,0.15); }

.right-side { flex: 1; display: flex; justify-content: center; align-items: center; padding-top: 0; min-width: 320px; }
.right-side img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 8px; box-shadow: 0 6px 10px rgba(0,0,0,0.07); margin-top: 11px;
}

/* === PDFs === */
.pdf-row { display: flex; gap: 10px; margin: 2.5rem 0; flex-wrap: wrap; justify-content: flex-start; }
.pdf-button {
  padding: 10px 20px; background-color: #3E4B42; color: white; text-decoration: none;
  border-radius: 5px; transition: background-color 0.2s; font-weight: 300; font-size: 1rem;
  white-space: nowrap; display: inline-block; min-width: 100px; text-align: center; box-sizing: border-box; user-select: none;
}
.pdf-button:hover, .pdf-button:focus { background-color: #5A6B60; outline: none; }

/* Responsive adjustments for PDFs */
@media (max-width: 900px) {
  .pdf-button { flex: 1 1 45%; min-width: auto; white-space: normal; font-size: 0.95rem; padding: 12px 15px; }
  .pdf-row { justify-content: center; }
}
@media (max-width: 600px) {
  .pdf-button { flex: 1 1 100%; min-width: auto; font-size: 0.9rem; padding: 14px 20px; white-space: normal; }
  .pdf-row { justify-content: center; }
}

/* ===== Footer ===== */
.footer {
  position: fixed; bottom: 0; left: 0;
  width: 100%; height: 48px;
  background-color: #3E4B42;
  padding: 0 1rem;
  display: flex; justify-content: center; align-items: center;
  z-index: 10;
  font-weight: 400;
}

/* Center group */
.social-icons { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.social-icons a {
  font-size: 1.4rem; color: #F8F6F1; text-decoration: none; transition: color 0.25s ease;
}
.social-icons a:hover { color: #BDB8B1; }

/* RIGHT: Privacy */
.privacy-link { position: absolute; right: 1rem; }
.privacy-link a {
  font-size: 0.85rem; color: #7a817c; text-decoration: none;
}
.privacy-link a:hover { color: #afb6b1; text-decoration: none; }

/* LEFT: Subscribe (NEW) */
.subscribe-link { position: absolute; left: 1rem; }
.subscribe-link a {
  font-size: 0.85rem; color: #7a817c; text-decoration: none;
}
.subscribe-link a:hover { color: #afb6b1; text-decoration: none; }

/* Resume-specific layout */
.resume-content {
  max-width: 100%; margin: 0 auto; padding: 0rem 2rem 2rem 2rem;
  overflow-y: auto; line-height: 1.6;
}
.resume-content p, .resume-content li { text-align: justify; text-align-last: left; }
.resume-content h1, .resume-content h2, .resume-content h3 { margin-top: 2rem; font-weight: 600; }
.resume-content ul { padding-left: 1.2rem; margin-bottom: 1.5rem; }
.resume-content ul li { margin-bottom: 1em; line-height: 1.6; }

/* music.css – page-specific styles */
.music-page { width: 100%; padding: 0 1rem; box-sizing: border-box; }
.music-page p { text-align: justify; text-align-last: left; }

.music-icons { margin-top: 1.5rem; display: flex; gap: 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.music-icons a {
  font-size: 1.8rem; color: #3E4B42; transition: color 0.3s ease, transform 0.25s ease;
  display: inline-flex; align-items: center; line-height: 1; text-decoration: none;
}
.music-icons a:hover, .music-icons a:focus { color: #6C7A68; transform: scale(1.2); outline: none; }
.see-me-perform { width: 100%; text-align: center; margin: 2rem 0 4rem; }
.perform-button {
  background-color: #3E4B42; color: #F8F6F1; padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 500;
  text-decoration: none; border-radius: 8px; display: inline-block;
  transition: background-color 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.perform-button:hover { background-color: #2f3932; box-shadow: 0 4px 10px rgba(0,0,0,0.15); }

/* ===== Responsive Breakpoints ===== */
@media (min-width: 1801px) {
  .content { max-width: 2400px; gap: 8rem; padding: 2rem 1.5rem; }
  .hero-heading { font-size: 6rem; }
  .intro, .philosophy-block { font-size: 1.25rem; }
  .mainCTA { font-size: 1.1rem; padding: 12px 32px; width: 100%; }
}
@media (max-width: 1800px) and (min-width: 901px) {
  .content { max-width: 1200px; gap: 3.5rem; padding: 1rem; }
  .hero-heading { font-size: 3.1rem; }
  .intro, .philosophy-block { font-size: 1rem; max-width: 480px; }
  .mainCTA { font-size: 0.9rem; padding: 8px 20px; }
}
@media (max-width: 900px) and (min-width: 601px) {
  .content { position: static; flex-direction: column; max-width: 90%; margin: 2rem auto 5rem; padding: 0 1rem; gap: 2.5rem; margin-top: 80px; }
  .left-side, .right-side { width: 100%; padding: 0; text-align: center; }
  .site-title { margin-top: 0.35rem; font-size: 1.2rem; margin-left: 0.2rem; }
  .hero-heading { font-size: 3rem; }
  .intro, .philosophy-block { font-size: 1rem; max-width: 100%; }
  .mainCTA { align-self: center; font-size: 1rem; padding: 12px 28px; }
  .right-side img { height: auto; max-width: 100%; border-radius: 6px; }
}
@media (max-width: 600px) {
  html, body { font-size: 14px; overflow-y: auto; }
  .page-wrapper { overflow: visible; }
  .content {
    position: static !important; overflow: visible !important;
    flex-direction: column; max-width: 100%;
    margin: 80px auto 5rem auto; padding: 0 1rem 0;
    gap: 0.5rem;
  }
  .site-title { margin-top: 0.35rem; font-size: 1.2rem; margin-left: 0.2rem; }
  .left-side, .right-side { width: 100%; padding: 0; text-align: center; margin-bottom: 2rem; }
  .left-side { align-items: center; }
  .right-side img {
    width: 100%; height: 350px; object-fit: cover; object-position: top center; border-radius: 4px;
    transition: transform 0.3s ease;
  }
  .hero-heading { font-size: 2.2rem; margin: 2.4rem 0 0; text-align: center; width: 100%; padding: 0 1rem; box-sizing: border-box; }
  .intro, .philosophy-block { font-size: 0.95rem; max-width: 100%; }
  .mainCTA { align-self: center; font-size: 0.95rem; padding: 10px 24px; width: 100%; }
  .music-page-body { margin-top: 20rem; }
  .social-icons { gap: 0.8rem; }
  .social-icons a { font-size: 1.2rem; }

  /* Mobile Navbar Adjustments */
  .navbar { justify-content: space-between; padding: 0 1rem; }
  .nav-left { order: 1; }
  .nav-center { display: none; }
  .menu-toggle {
    order: 2; display: flex; font-size: 1.6rem; color: #F8F6F1; cursor: pointer; margin-top: -0.2rem;
  }
  .nav-links {
    display: flex; flex-direction: column; background-color: #3E4B42; width: 100%;
    position: absolute; top: 64px; left: 0; padding: 0.5rem 1.5rem; border-bottom: 1px solid #5a665a;
    max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
    transition: max-height 0.4s ease, opacity 0.8s ease;
  }
  .nav-links.active { max-height: 500px; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 0.5rem 0; border-bottom: none; text-align: center; font-size: 1rem; }
  .divider { display: none; }
  .music-page { margin-top: 30px; padding: 0 1rem; }
}

/* ===== Large Phones / iPhone Pro Max ===== */
@media screen and (min-width: 415px) and (max-width: 460px) {
  .navbar { height: 64px; align-items: center; }
  .nav-left, .menu-toggle { height: 64px; display: flex; align-items: center; }
  .site-title { font-size: 1.25rem; margin-top: 0.3rem; margin-left: 0.25rem; line-height: 1; display: inline-flex; align-items: center; }
  .menu-toggle { font-size: 1.7rem; margin-top: -0.2rem; }
  .menu-toggle i { display: inline-flex; align-items: center; line-height: 1; vertical-align: middle; }
}

/* Exact iPhone 16 Pro Max */
@media screen
  and (device-width: 430px)
  and (device-height: 932px)
  and (-webkit-device-pixel-ratio: 3) {
  .site-title { font-size: 1.26rem; margin-top: 0.3rem; }
  .menu-toggle { font-size: 1.72rem; margin-top: -0.2rem; }
}

/* ===== Mailing List Modal (base) ===== */
.ml-modal { position: fixed; inset: 0; display: none; z-index: 2000; }
.ml-modal.open { display: block; }

.ml-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: saturate(120%) blur(2px); }

.ml-dialog {
  position: relative; max-width: 560px; width: calc(100% - 2rem); margin: 16vh auto 0;
  background: #F8F6F1; color: #3E4B42; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  padding: 1.25rem 1.25rem 1.1rem; outline: none;
}
.ml-title { margin: 0 0 .35rem; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; }
.ml-subtext { margin: 0 0 1rem; font-size: 1rem; line-height: 1.55; }

.ml-cta {
  display: inline-block; background-color: #3E4B42; color: #F8F6F1; text-decoration: none; border: none;
  padding: .7rem 1.1rem; font-size: 0.98rem; font-weight: 600; border-radius: 10px; cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: transform .05s ease, box-shadow .2s ease, background-color .2s ease;
}
.ml-cta:active { transform: translateY(1px); }
.ml-cta:hover, .ml-cta:focus { background-color: #2f3932; box-shadow: 0 4px 12px rgba(0,0,0,0.18); }

.ml-fineprint { margin: .7rem 0 0; font-size: .85rem; color: #576158; }

.ml-close {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid #d7d2cb; background: #fff; color: #3E4B42; cursor: pointer;
  font-size: 1.1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.ml-close:hover { background: #f3efe9; }

/* Lock page scroll while modal open (optional) */
.ml-lock { overflow: hidden !important; }

/* Mobile-first adjustments */
@media (max-width: 600px) {
  .ml-dialog { margin: 20vh auto 0; width: calc(100% - 1.5rem); padding: 1rem 1rem .95rem; border-radius: 12px; }
  .ml-title { font-size: 1.2rem; }
  .ml-subtext { font-size: 0.95rem; }
  .ml-cta { width: 100%; text-align: center; }
}
/* Very large screens */
@media (min-width: 1801px) {
  .ml-dialog { max-width: 640px; padding: 1.5rem 1.5rem 1.2rem; }
  .ml-title { font-size: 1.6rem; }
  .ml-subtext { font-size: 1.05rem; }
}

/* ===== Modal transition overrides (enable smooth fade/slide) ===== */
.ml-modal { display: block !important; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .28s ease, visibility 0s linear .28s; }
.ml-modal.open { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .28s ease; }

.ml-dialog { transform: translateY(-6px); opacity: 0; transition: transform .32s ease, opacity .32s ease; will-change: transform, opacity; }
.ml-modal.open .ml-dialog { transform: translateY(0); opacity: 1; }

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .ml-modal, .ml-dialog { transition: none !important; }
}

/* ===== Scoped Hamburger Animation ===== */
@media (max-width: 600px) {
  .menu-toggle.hamburger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 19px; position: relative; border: 0; background: transparent; padding: 0;
  }
  .menu-toggle.hamburger span {
    position: absolute; left: 0; right: 0; height: 2px; background: #F8F6F1; border-radius: 2px;
    transform-origin: center; transition: transform .28s ease, opacity .2s ease;
  }
  .menu-toggle.hamburger span:nth-child(1) { top: 0; }
  .menu-toggle.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .menu-toggle.hamburger span:nth-child(3) { bottom: 0; }

  .menu-toggle.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.hamburger.active span:nth-child(2) { opacity: 0; transform: translateY(-50%) scaleX(0.2); }
  .menu-toggle.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ==== Hide scrollbar UI but keep scrolling (page + inner scrollers) ==== */
html, body { overflow: auto; -ms-overflow-style: none; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }

.resume-content { overflow: auto; -ms-overflow-style: none; scrollbar-width: none; }
.resume-content::-webkit-scrollbar { display: none; }