/* === GLOBAL RESETS === */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #ede3d2;
    color: #444;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    padding-top: 64px;
}
/* Prevent scroll when mobile menu open */
body.no-scroll { overflow: hidden; }

.header-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', Arial, sans-serif;
    color: #7c5c3b;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 0.7em;
    letter-spacing: -0.01em;
}

.headline {
    font-family: 'Raleway', Arial, sans-serif;
    color: #7c5c3b;
    font-size: 1.7rem;
    font-weight: 600;
    margin: 18px 0 16px 0;
    line-height: 1.35;
    text-align: center;
}

a {
    color: #A66F5B;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #7c5c3b;
}

/* === NAVBAR === */
.navbar {
    background: #ede3d2;
    color: #7c5c3b;
    font-family: 'Roboto', Arial, sans-serif;
    box-shadow: 0 1px 4px rgba(124,92,59,0.06);
    padding: 0.8rem 2rem;
    min-height: 64px;
    border-bottom: 1px solid #d6cfc2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    box-sizing: border-box;
}
.navbar .brand {
    font-family: 'Raleway', 'Roboto', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    color: #A66F5B;
    text-shadow: none;
    opacity: 0.92;
}
.navbar nav a {
    color: #7c5c3b;
    font-weight: 500;
    font-size: 1.08rem;
    margin-left: 2rem;
}
.navbar nav a:hover {
    color: #A66F5B;
}

.hamburger {
    display: none;
}

@media (max-width: 700px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    .navbar nav a {
        margin-left: 1rem;
    }
    .hamburger {
        display: block;
        font-size: 2rem;
        background: none;
        border: none;
        color: #7c5c3b;
        padding: 0.2rem 0.5rem;
    }
    .navbar nav {
        display: none;
    }
}

/* === MAIN CONTENT === */
.banner-container,
.hero-section {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0.5rem 1.2rem;
  box-sizing: border-box;
}

.herobox {
    background: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.main-section {
    background: none;
    margin: 0;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: unset;
    padding: 0;
}

/* === BANNER === */
.banner-container img[alt="Banner"] {
    display: block;
    margin: 0 auto 18px auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: none;
}

/* === BUTTONS === */
.main-btn, button, .btn {
    background: #A66F5B;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 2rem;
    font-size: 1.08rem;
    font-family: 'Raleway', Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(186, 144, 92, 0.07);
    margin: 0 0.5rem;
}
.main-btn:hover, button:hover, .btn:hover {
    background: #7c5c3b;
    color: #fff;
    box-shadow: 0 2px 8px rgba(124,92,59,0.13);
}
.main-btn.active {
  background: #7c5c3b;
  color: #fff;
  box-shadow: 0 0 0 3px #A66F5B33;
  transition: box-shadow 0.2s, background 0.2s;
}
.button-row {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    margin-top: 24px;
}

/* === WHOAMI SECTION === */
.whoami-section,
.hero-section {
  max-width: 1400px;
  width: 100%;
  margin: 0.5rem auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}

.whoami-section h2 {
    color: #fff;
    text-shadow: 1px 2px 0 #5a4632, 0 2px 8px rgba(90,70,50,0.10);
}
.qualities-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3.5rem;
    margin-bottom: 2.8rem;
}
.quality {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 220px;
    min-width: 160px;
}
.quality-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #A66F5B;
    margin-bottom: 0.3rem;
    font-family: 'Raleway', Arial, sans-serif;
}
.quality-desc {
    font-size: 1.01rem;
    color: #7c5c3b;
    font-family: 'Raleway', Arial, sans-serif;
}
.summary {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: #444;
    line-height: 1.7;
    font-family: 'Raleway', Arial, sans-serif;
}
.summary .highlight {
    font-weight: 600;
    color: #A66F5B;
}

.whoami-slogan {
  font-family: 'Bitter', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #7c5c3b;
  margin-bottom: 0.3rem;
  text-align: left;
}
.whoami-subtitle {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.15rem;
  color: #A66F5B;
  margin-bottom: 2.2rem;
  margin-top: 1.2rem;
  text-align: left;
}

/* === IMAGES === */
img {
    border-radius: 10px;
    box-shadow: none;
    max-width: 100%;
    height: auto;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .banner-container {
        padding: 1.2rem 0.7rem;
    }
    .qualities-row {
        flex-direction: column;
        gap: 2.2rem;
        margin-bottom: 2.8rem;
    }
    .quality-card {
        margin-bottom: 1.8rem;
    }
    .navbar {
        padding: 0.5rem 0.5rem;
    }
}

/* === HERO SECTION === */
.hero-section {
  background: #f5ede6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(90,70,50,0.06);
  max-width: 1400px;
  width: 100%;
  margin: 0 0 2.5rem 0;
  padding: 2.5rem 2rem;
  box-sizing: border-box;
  display: block;
}
.hero-banner-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  margin-bottom: 1.5rem;
  display: block;
  animation: floatY 9s ease-in-out infinite;
}
.hero-content {
  width: 100%;
  max-width: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 1rem 1.2rem 1rem 2.5rem;
  box-sizing: border-box;
}
.hero-content .button-row {
  justify-content: flex-start;
  width: 100%;
  margin-left: 0;
}
.hero-content h1,
.hero-content .hero-subtitle {
  text-align: left;
  margin-left: 0;
}
.slogan {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  text-align: left;
  font-size: 2.1rem;
  font-weight: 400;
  color: #000;
  margin: 0.7rem 0 0.7rem 0;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: #7c5c3b;
  margin: 0.3rem 0 1rem 0;
  font-family: 'Roboto', Arial, sans-serif;
  text-align: left;
}
@media (max-width: 1500px) {
  .hero-section {
    max-width: 99vw;
  }
}
@media (max-width: 800px) {
  .hero-content {
    padding: 1rem 0.5rem;
  }
  .hero-banner-img {
    max-height: 160px;
    margin-bottom: 1rem;
  }
}

.sidebar, .sidebar-overlay {
  display: none;
}
@media (max-width: 700px) {
  .sidebar, .sidebar-overlay {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 85vw;
    max-width: 340px;
    padding-top: 48px;
    box-shadow: 2px 0 16px rgba(186, 144, 92, 0.13);
    border-radius: 0 16px 16px 0;
    background: #ede3d2;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 1.2rem;
  }
  .sidebar nav a {
    font-size: 1.15rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #e0dccf;
    color: #7c5c3b;
    font-weight: 500;
    text-decoration: none;
  }
  .sidebar nav a:last-child {
    border-bottom: none;
  }
  .sidebar-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(186, 144, 92, 0.18);
    z-index: 1000;
  }
}

.hero-deco {
  position: absolute;
  right: 2.5rem;
  bottom: 1.5rem;
  pointer-events: none;
  z-index: 1;
}

.whoami-photo-strip {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 2rem;
  overflow-x: auto;
}
.whoami-photo-strip img {
  height: 100px;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(90,70,50,0.08);
  background: #ede3d2;
}

.whoami-container {
  background: #f5ede6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(90,70,50,0.06);
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  text-align: left;
  position: relative;
  z-index: 2;
}
.whoami-content {
  padding: 2rem 2.5rem 2.5rem 2.5rem;
}

.whoami-banner-placeholder {
  width: 100%;
  box-sizing: border-box;
  height: 220px;
  border-radius: 12px 12px 0 0;
  background: #A66F5B;
  margin: 0;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
}
.whoami-banner-img-circle {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 2px 8px rgba(90,70,50,0.10);
  background: #fff;
  flex-shrink: 0;
}
.whoami-banner-title {
  font-family: 'Bitter', serif;
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  text-align: left;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.2em;
}
.whoami-slogan {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #7c5c3b;
  margin-bottom: 0.3rem;
  text-align: left;
}
.whoami-subtitle {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: #A66F5B;
  margin-bottom: 2.2rem;
  margin-top: 1.2rem;
  text-align: left;
}
.quality-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #A66F5B;
  margin-bottom: 0.3rem;
  font-family: 'Raleway', Arial, sans-serif;
}
.quality-desc {
  font-size: 1.01rem;
  color: #7c5c3b;
  font-family: 'Raleway', Arial, sans-serif;
}
.whoami-summary {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: #444;
  line-height: 1.7;
  font-family: 'Raleway', Arial, sans-serif;
  text-align: left;
}
.whoami-summary .highlight {
  font-weight: 700;
  color: #A66F5B;
}
.qualities-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-bottom: 2.2rem;
}
.quality-card {
  min-width: 110px;
  max-width: 110px;
  background: linear-gradient(135deg, #fff 0%, #faf8f5 100%);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(90,70,50,0.08), 0 0 12px rgba(166,111,91,0.06);
  overflow: hidden;
}
.quality-card .quality-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #f5ede6 0%, #ede3d2 100%);
  display: block;
  margin: 0 auto;
}
.quality-card-body {
  padding: 0.8rem 0.7rem 1rem 0.7rem;
  background: linear-gradient(135deg, #fff 0%, #faf8f5 100%);
}

@media (max-width: 700px) {
  .whoami-banner-placeholder {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 0.7rem;
    height: auto;
    min-height: 160px;
  }
  .whoami-banner-title {
    text-align: center;
    font-size: 2rem;
  }
}

@media (max-width: 900px) {
  .whoami-content {
    padding: 1.2rem 0.7rem;
  }
}

/* === RESPONSIVE POLISH (TABLET AND DOWN) === */
@media (max-width: 900px) {
  html, body { font-size: 16px; }
  .main-container { padding: 0 1rem; }
  .hero-section, .about-section, .experience-section, .contact-section { padding: 1.4rem 1rem; }
  .hero-title { font-size: 2.1rem; }
  .hero-tagline { font-size: 1.05rem; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; gap: 0.8rem; }
  .hero-actions .main-btn { flex: 1 1 auto; min-width: 140px; }
  .work-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .work-item-title { font-size: 1.6rem; }
  .work-flip-card { height: 360px; }
  .experience-item { padding: 0.9rem; }
  .experience-role { font-size: 1rem; }
  .experience-meta { font-size: 0.92rem; }
  .experience-desc { font-size: 0.98rem; }
}

/* === RESPONSIVE POLISH (MOBILE) === */
@media (max-width: 700px) {
  html, body { font-size: 15px; }
  .main-container { padding: 0 0.7rem; }
  .navbar .brand { font-size: 1.1rem; }
  .hero-banner-img { max-height: 140px; animation: none; }
  .hero-title { font-size: 1.8rem; }
  .hero-tagline { font-size: 1rem; margin-bottom: 0.9rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .main-btn { width: 100%; }
  .quality-img { width: 180px; height: 180px; border-width: 10px; }
  .work-flip-card { height: 300px; }
  .work-flip-card:hover { transform: none; }
  .work-flip-card-front, .work-flip-card-back { padding: 14px 12px; }
  .work-item-title { font-size: 1.35rem; }
  .work-flip-card-front .work-item-story { font-size: 1rem; line-height: 1.55; }
  .experience-row { align-items: center; }
  .experience-logo-slot { width: 48px; height: 48px; }
  .experience-role { font-size: 1rem; }
  .skill-chip { font-size: 0.8rem; }
  .contact-grid { gap: 1rem; }
}

/* === RESPONSIVE POLISH (SMALL MOBILE) === */
@media (max-width: 480px) {
  html, body { font-size: 14px; }
  .hero-title { font-size: 1.6rem; }
  .main-btn { padding: 0.6rem 1rem; font-size: 1rem; }
  .work-flip-card { height: 260px; }
}

.hero-feature-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  width: 100%;
}
.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto;
}
.hero-feature-label {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: #A66F5B;
  font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: 0.01em;
  text-align: center;
}
.hero-feature .main-btn {
  margin: 0;
  width: 100%;
}
@media (max-width: 900px) {
  .hero-feature-row {
    flex-direction: column;
    gap: 1.8rem;
    align-items: center;
  }
  .hero-feature {
    align-items: center;
  }
}

.quality-img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.7em;
  box-shadow: 0 2px 8px rgba(90,70,50,0.13);
  border: 14px solid #fff;
}

.quality-card {
  min-width: 110px;
  max-width: 110px;
}
.quality-card .quality-img {
  width: 110px;
  height: 170px;
  object-fit: cover;
  margin-bottom: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 2px 8px rgba(90,70,50,0.10);
  background: #ede3d2;
  display: block;
}
.quality-card-body {
  padding: 1.1rem 0.7rem 1.3rem 0.7rem;
}
.quality-title {
  font-family: 'Raleway', Arial, sans-serif;
  color: #111;
  font-weight: 700;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 0.2em;
}
.quality-desc {
  font-family: 'Roboto', Arial, sans-serif;
  color: #444;
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}
.qualities-row {
  gap: 3.5rem;
  margin-bottom: 2.8rem;
}
@media (max-width: 900px) {
  .quality-card {
    min-width: 180px;
    max-width: 99vw;
  }
  .quality-card .quality-img {
    height: 110px;
  }
}

/* Main container and section layout */
.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: 0;
  margin-top: 0;
}
/* Compensate fixed navbar when linking to anchors */
.hero-section, .about-section, .experience-section, .contact-section, .work-section {
  scroll-margin-top: 84px;
}

.hero-section, .about-section {
  background: #f5ede6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(90,70,50,0.06);
  margin: 2.5rem 0;
  padding: 2.5rem 2rem;
}

/* Experience & Contact sections */
.experience-section, .contact-section {
  background: #f5ede6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(90,70,50,0.06);
  margin: 2.5rem 0;
  padding: 2.5rem 2rem;
}
.experience-title, .contact-title {
  font-family: 'Bitter', serif;
  color: #A66F5B;
  font-size: 2rem;
  margin-bottom: 0.5em;
}
.experience-timeline {
  display: grid;
  gap: 1.2rem;
}
.experience-item {
  background: linear-gradient(135deg, #fff8f3 0%, #fef6f0 100%);
  border: 1.5px solid #e9c9b1;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(90,70,50,0.06), 0 0 15px rgba(166,111,91,0.08);
  padding: 1rem 1.2rem 1.1rem 1.2rem;
  min-height: 260px;
  /* You can adjust this value as needed */
  display: flex;
  align-items: stretch;
}
@media (max-width: 700px) {
  .experience-item {
    min-height: 200px;
  }
}
.experience-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.experience-logo-slot {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid #e9c9b1;
  background: #fff;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.experience-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.experience-logo-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background:
    radial-gradient(120px 120px at 20% 20%, rgba(166,111,91,0.18), transparent 60%),
    radial-gradient(120px 120px at 80% 80%, rgba(166,111,91,0.18), transparent 60%),
    linear-gradient(135deg, #f5ede6 0%, #fff8f3 100%);
}
.experience-content { flex: 1; min-width: 0; }
.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.3rem;
}
.experience-role {
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 700;
  color: #111;
}
.experience-meta { color: #7c5c3b; font-family: 'Roboto', Arial, sans-serif; font-size: 0.98rem; }
.experience-desc { color: #444; font-family: 'Roboto', Arial, sans-serif; line-height: 1.6; }
.experience-skills { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-chip {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 0.85rem;
  color: #7c5c3b;
  background: #fff;
  border: 1px solid #e9c9b1;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.8rem;
}
.contact-card, .contact-form {
  background: linear-gradient(135deg, #fff8f3 0%, #fef6f0 100%);
  border: 1.5px solid #e9c9b1;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(90,70,50,0.06), 0 0 15px rgba(166,111,91,0.08);
  padding: 1.2rem 1.2rem 1.35rem 1.2rem;
}
.contact-card p { color: #444; font-family: 'Roboto', Arial, sans-serif; }
.contact-actions { display: flex; gap: 0.8rem; margin-top: 1rem; }
.contact-actions .main-btn { margin: 0; }

.form-field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0.9rem; }
.form-field label { font-family: 'Raleway', Arial, sans-serif; font-weight: 600; color: #7c5c3b; font-size: 0.96rem; }
.form-input, .form-textarea {
  appearance: none;
  background: #fff;
  border: 1.5px solid #e9c9b1;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #111;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-input:focus, .form-textarea:focus {
  border-color: #d1a98a;
  box-shadow: 0 0 0 3px rgba(166,111,91,0.18);
}
.form-actions { display: flex; gap: 0.8rem; justify-content: flex-start; margin-top: 0.6rem; }

@media (max-width: 900px) {
  .experience-section, .contact-section { padding: 1.2rem 0.7rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .experience-header { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

/* --- Experience: denser desktop layout, mobile unchanged --- */

/* Default (mobile-first) stays stacked */
.experience-section .experience-timeline {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 0 12px;
}

/* Remove any previous forced heights */
.experience-item { min-height: 0; }

/* Common row tightening */
.experience-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
}

/* Logo/content sizing */
.experience-logo-slot {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.experience-logo-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.experience-content { flex: 1; }

/* Desktop: use columns to reduce empty space */
@media (min-width: 1024px) {
  .experience-section .experience-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 0 16px;
  }
  .experience-row { padding: 16px; }
  .experience-logo-slot { flex-basis: 64px; width: 64px; height: 64px; }
}

/* Very wide screens: 3 columns */
@media (min-width: 1440px) {
  .experience-section .experience-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 0 20px;
  }
}

.hero-title {
  font-family: 'Raleway', Arial, sans-serif;
  font-size: 2.5rem;
  color: #A66F5B;
  margin-bottom: 0.5em;
}

.hero-tagline {
  font-family: 'Roboto', Arial, sans-serif;
  color: #111;
  font-size: 1.3rem;
  margin-bottom: 1.5em;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
}

.main-btn {
  background: #A66F5B;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 2rem;
  font-size: 1.08rem;
  font-family: 'Raleway', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(186, 144, 92, 0.07);
}
.main-btn:hover {
  background: #7c5c3b;
}

.about-flex {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 2rem;
  box-shadow: 0 1px 4px rgba(90,70,50,0.10);
}

.about-title {
  font-family: 'Bitter', serif;
  color: #A66F5B;
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.about-summary {
  font-family: 'Roboto', Arial, sans-serif;
  color: #111;
  margin-bottom: 1.5em;
}

.qualities-row {
  display: flex;
  gap: 1.5rem;
}

.quality {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 220px;
  min-width: 160px;
}

.quality-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5em;
  box-shadow: 0 1px 4px rgba(90,70,50,0.10);
}

.quality-title {
  font-family: 'Raleway', Arial, sans-serif;
  color: #111;
  font-weight: 700;
  text-align: center;
}

.quality-desc {
  font-family: 'Roboto', Arial, sans-serif;
  color: #444;
  text-align: center;
  font-size: 0.98rem;
}

@media (max-width: 800px) {
  .about-flex {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
  .profile-img {
    margin-right: 0;
    margin-bottom: 1.2rem;
  }
  .qualities-row {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
  }
  .hero-section, .about-section {
    padding: 1.2rem 0.7rem;
  }
  .main-container {
    padding: 0 0.5rem;
  }
}

.work-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 2.5rem 0;
  background: #e9c9b1;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 16px, transparent 16px 32px);
  box-shadow: 0 8px 32px rgba(163,109,76,0.07);
  border-top: 2px solid #d1a98a;
  border-bottom: 2px solid #d1a98a;
}

.work-container {
  background: #fff8f3;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(90,70,50,0.10);
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 40px 40px 40px;
  display: block;
  border: 1.5px solid #e9c9b1;
}

.work-title {
  font-family: 'Bitter', serif;
  color: #A66F5B;
  font-size: 2rem;
  margin-bottom: 0.5em;
}

.work-summary {
  font-family: 'Roboto', Arial, sans-serif;
  color: #111;
  margin-bottom: 1.5em;
  font-size: 1.15rem;
  text-align: center;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 0 0 0;
}
.work-item {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin-top: 0;
  overflow: visible;
}

.work-flip-card {
  background: transparent;
  width: 900px;
  max-width: 98vw;
  min-width: 350px;
  height: 500px;
  perspective: 1200px;
  margin: 0 auto 1.5rem auto;
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition: transform 0.35s cubic-bezier(.4,2,.6,1);
}
.work-flip-card:hover {
  transform: rotateY(-8deg) scale(1.02);
  box-shadow: 0 8px 32px rgba(163,109,76,0.13);
}
.work-flip-card::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -20%;
  width: 40%;
  height: 120%;
  background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.0) 100%);
  transform: translateX(-120%) rotate(12deg);
  transition: transform 0.8s cubic-bezier(.4,2,.4,1);
  pointer-events: none;
  border-radius: 16px;
}
.work-flip-card:hover::after {
  transform: translateX(340%) rotate(12deg);
}
.flip-hint {
  display: block;
  text-align: center;
  color: #a66f5b;
  font-size: 1.08rem;
  font-family: 'Roboto', Arial, sans-serif;
  margin-top: 0.5rem;
  opacity: 0.85;
  letter-spacing: 0.01em;
  user-select: none;
}
.work-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(.4,2,.6,1);
  transform-style: preserve-3d;
  will-change: transform;
  background: linear-gradient(135deg, #f8f0e8 0%, #f3e3d0 50%, #f0dcc8 100%);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(163,109,76,0.08), 0 0 20px rgba(166,111,91,0.15);
}
.work-flip-card.flipped .work-flip-card-inner {
  transform: rotateY(180deg);
}
.work-flip-card-front, .work-flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 900px;
  max-height: 500px;
  min-width: 350px;
  min-height: 0;
  backface-visibility: hidden;
  background: linear-gradient(135deg, #f5ede6 0%, #f0e0d0 50%, #e9c9b1 100%);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(90,70,50,0.10), 0 0 30px rgba(166,111,91,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 24px;
  box-sizing: border-box;
  word-break: normal;
  overflow-wrap: break-word;
  z-index: 1;
}
.work-flip-card-back {
  transform: rotateY(180deg);
  z-index: 2;
  position: relative;
  overflow: hidden;
}
.work-item-title, .work-flip-card-front .work-item-title {
  font-family: 'Bitter', 'Raleway', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #A66F5B;
  letter-spacing: 0.01em;
  margin-bottom: 0.7em;
  text-align: center;
  text-shadow: 0 2px 8px rgba(166,111,91,0.08);
}
.work-flip-card-front .work-item-story {
  font-family: 'Roboto', 'Raleway', Arial, sans-serif;
  color: #444;
  font-size: 1rem;
  line-height: 1.7;
  text-align: left;
  margin-bottom: 1.2em;
  letter-spacing: 0.01em;
}
.work-flip-card-front b, .work-flip-card-back b {
  color: #A66F5B;
  font-weight: 700;
  background: #fbeee0;
  padding: 0 0.18em;
  border-radius: 4px;
  font-family: 'Raleway', Arial, sans-serif;
}
.flip-hint {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.08rem;
  color: #A66F5B;
  opacity: 0.85;
  letter-spacing: 0.01em;
  margin-top: 0.5rem;
  text-align: center;
  font-style: italic;
}
@media (max-width: 700px) {
  .work-flip-card-front {
    background: #f5ede6;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(163,109,76,0.06);
    padding: 24px 12px 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    word-break: break-word;
  }
  .work-item-title {
    font-family: 'Raleway', Arial, sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #A66F5B;
    margin-bottom: 0.5em;
    text-align: left;
    word-break: break-word;
  }
  .work-item-story {
    font-family: 'Roboto', Arial, sans-serif;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5em;
    text-align: left;
    word-break: break-word;
    /* optional: prevent overflow */
    overflow-wrap: anywhere;
  }
  .flip-hint {
    font-size: 0.95rem;
    color: #A66F5B;
    opacity: 0.85;
    margin-top: 0.5rem;
    text-align: left;
    font-style: italic;
  }
} /* closes the @media */

/* --- My Work: mobile improvements --- */
@media (max-width: 700px) {
  :root { --work-card-h: 420px; }

  .work-container { padding: 20px 12px 24px; }
  .work-grid { gap: 1.2rem; padding-top: 0.6rem; }

  .work-flip-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: var(--work-card-h);
    border-radius: 14px;
    margin: 0;
    transform: none !important;   /* no hover tilt on touch */
  }

  .work-flip-card-front,
  .work-flip-card-back {
    padding: 14px 12px;
    max-width: 100%;
    max-height: var(--work-card-h);
    border-radius: 14px;
  }

  .work-item-title {
    font-size: 1.22rem;
    line-height: 1.25;
    text-align: left;
    margin-bottom: 10px;
  }

  .work-flip-card-front .work-item-story {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 8px;
    /* Clamp long text to avoid overflow */
    display: -webkit-box;
    -webkit-line-clamp: 6;           /* show ~6 lines on mobile */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  /* When expanded via JS, remove the clamp */
  .work-flip-card-front .work-item-story.expanded {
    -webkit-line-clamp: unset;
    overflow: visible;
  }

  .skill-chip { font-size: 0.82rem; }
  .flip-hint { font-size: 0.95rem; text-align: left; margin-top: 6px; }
}

/* === THEME: Navy Mirage Overrides === */
html.theme-navy-mirage,
body.theme-navy-mirage {
  --bg: #071521;
  --panel: #0c1f31;
  --panel-2: #0f2a41;
  --panel-3: #0b1d2d;
  --text: #e2e9f5;
  --muted: #b7c6da;
  --accent: #2c7be5;        /* primary blue */
  --accent-2: #36c2b3;      /* teal accent */
  --chip-bg: rgba(255,255,255,0.08);
  --chip-border: rgba(255,255,255,0.14);
  background: var(--bg);
  color: var(--text);
}

/* Navbar */
.theme-navy-mirage .navbar {
  background: var(--bg);
  color: var(--text);
  border-bottom: 1px solid #16354f;
}
.theme-navy-mirage .navbar .brand { color: #cfe6ff; }
.theme-navy-mirage .navbar nav a { color: var(--muted); }
.theme-navy-mirage .navbar nav a:hover { color: #e8f1ff; }

/* Buttons */
.theme-navy-mirage .main-btn {
  background: var(--accent);
  box-shadow: 0 4px 14px rgba(44,123,229,0.28);
}
.theme-navy-mirage .main-btn:hover { background: #1a66d1; }

/* Section containers */
.theme-navy-mirage .hero-section,
.theme-navy-mirage .about-section,
.theme-navy-mirage .experience-section,
.theme-navy-mirage .contact-section {
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid #16354f;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

/* Headings */
.theme-navy-mirage .work-title,
.theme-navy-mirage .experience-title,
.theme-navy-mirage .contact-title,
.theme-navy-mirage .about-title,
.theme-navy-mirage .hero-title {
  color: #cfe6ff;
}

/* Work section + flip card */
.theme-navy-mirage .work-section {
  background: #061b2a;
  border: 0;
  background-image: none;
}
.theme-navy-mirage .work-container {
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-3) 100%);
  border-color: #16354f;
}
.theme-navy-mirage .work-flip-card-inner {
  background: linear-gradient(135deg, #0f2437 0%, #0c1f31 50%, #0a1a29 100%);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 20px rgba(122,186,255,0.15);
}
.theme-navy-mirage .work-flip-card-front,
.theme-navy-mirage .work-flip-card-back {
  background: radial-gradient(120% 140% at -10% -10%, rgba(122,186,255,0.10), transparent 45%),
              linear-gradient(135deg, #0f2437 0%, #0c1f31 60%, #0a1a29 100%);
  border: 1px solid #173c59;
  color: var(--text);
}
.theme-navy-mirage .work-item-title { color: #e8f1ff; }
.theme-navy-mirage .work-flip-card-front .work-item-story { color: #dbe7f6; }
.theme-navy-mirage .flip-hint { color: #9fb6cd; }
.theme-navy-mirage .video-fallback-img { filter: saturate(0.9) brightness(0.9); }

/* Experience cards */
.theme-navy-mirage .experience-item {
  background: radial-gradient(120% 140% at 10% -10%, rgba(122,186,255,0.08), transparent 50%),
              linear-gradient(160deg, #0d2030 0%, #0f2a41 100%);
  border-color: #173c59;
  box-shadow: 0 6px 18px rgba(0,0,0,0.30);
}
.theme-navy-mirage .experience-role { color: #e8f1ff; }
.theme-navy-mirage .experience-meta { color: #9fb6cd; }
.theme-navy-mirage .experience-desc { color: #dbe7f6; }
.theme-navy-mirage .experience-logo-slot {
  background: #0b2132;
  border-color: #173c59;
}

/* Links */
.theme-navy-mirage a { color: #9fd0ff; }
.theme-navy-mirage a:hover { color: #e8f1ff; }

/* Body text contrasts inside panels */
.theme-navy-mirage p, 
.theme-navy-mirage li, 
.theme-navy-mirage .about-summary { color: #dbe7f6; }

/* Navy theme: Contact section + form overrides */
.theme-navy-mirage .contact-section {
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid #16354f;
}

.theme-navy-mirage .contact-card,
.theme-navy-mirage .contact-form {
  background: radial-gradient(120% 140% at 10% -10%, rgba(122,186,255,0.08), transparent 50%),
              linear-gradient(160deg, var(--panel) 0%, var(--panel-3) 100%);
  border: 1px solid #173c59;
  color: var(--text);
  box-shadow: 0 6px 18px rgba(0,0,0,0.30);
}

.theme-navy-mirage .contact-card p { color: var(--text); }
.theme-navy-mirage .contact-title { color: #cfe6ff; }

.theme-navy-mirage .form-field label {
  color: var(--muted);
  font-weight: 600;
}

.theme-navy-mirage .form-input,
.theme-navy-mirage .form-textarea {
  background: var(--panel-3);
  color: var(--text);
  border: 1px solid #1b3b58;
  box-shadow: inset 0 0 0 9999px rgba(0,0,0,0); /* keep crisp */
}
.theme-navy-mirage .form-input::placeholder,
.theme-navy-mirage .form-textarea::placeholder {
  color: #8fa6bc;
}
.theme-navy-mirage .form-input:focus,
.theme-navy-mirage .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(44,123,229,0.25);
}

.theme-navy-mirage .contact-actions .main-btn,
.theme-navy-mirage .form-actions .main-btn {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(44,123,229,0.28);
}
.theme-navy-mirage .contact-actions .main-btn:hover,
.theme-navy-mirage .form-actions .main-btn:hover {
  background: #1a66d1;
}

/* Mobile polish for "I'm Vansh Malani" hero: center buttons + improved caption */
@media (max-width: 700px) {
  .hero-section {
    text-align: center;
    padding: 1.1rem 0.9rem 1.4rem;
  }
  .hero-banner-img {
    border-radius: 12px;
  }
  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
  }
  .hero-tagline {
    font-size: 1.06rem;
    line-height: 1.5;
    color: #7a5636;
    max-width: 36ch;
    margin: 0 auto 1rem;
    letter-spacing: 0.01em;
    padding: 0.35rem 0.5rem;
    background: linear-gradient(180deg, rgba(166,111,91,0.08), rgba(166,111,91,0));
    border-radius: 8px;
  }
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center; /* center buttons */
    gap: 0.65rem;
    margin-top: 0.6rem;
  }
  .hero-actions .main-btn {
    width: min(320px, 96%);  /* centered, comfortable tap width */
    padding: 0.8rem 1rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(163,109,76,0.18);
  }
  .hero-actions .main-btn:active {
    transform: translateY(1px);
  }
}

/* Reduce top gap before hero */
.main-container > .hero-section { margin-top: 0; }

/* If you still see a gap, the body padding for the fixed navbar can be trimmed slightly */
@media (min-width: 701px) {
  body { padding-top: 20px; } /* was 64px; adjust to your actual navbar height */
}
@media (max-width: 700px) {
  .main-container { padding-top: 0; }
  .main-container > .hero-section { margin-top: 0; }
}

/* Put decorative shapes behind content and out of flow */
.bg-decor {
  position: fixed;           /* behind everything */
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.bg-decor .bg-shape,
.bg-decor .dots {            /* make all shapes absolute */
  position: absolute;
}

/* Use a single navbar height variable across breakpoints */
:root { --nav-h: 64px; }
@media (max-width:700px) { :root { --nav-h: 56px; } }

/* Keep body padding equal to the fixed navbar height */
body { padding-top: var(--nav-h) !important; }
.navbar { min-height: var(--nav-h); }

/* Ensure the hero starts immediately after the navbar */
.main-container { margin-top: 0 !important; padding-top: 0 !important; }
.main-container > .hero-section { margin-top: 0 !important; }

/* Who am I (qualities) — navy theme text fixes */
.theme-navy-mirage .about-section .quality-title,
.theme-navy-mirage .whoami-section .quality-title {
  color: #e8f1ff;            /* primary light text */
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.theme-navy-mirage .about-section .quality-desc,
.theme-navy-mirage .whoami-section .quality-desc {
  color: var(--muted);        /* subtle subtitle */
}

/* Optional: slogan/subtitle in Who am I */
.theme-navy-mirage .whoami-slogan { color: #cfe6ff; }
.theme-navy-mirage .whoami-subtitle { color: var(--muted); }

/* Optional: quality cards match navy panels */
.theme-navy-mirage .quality-card,
.theme-navy-mirage .quality-card-body {
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-3) 100%);
  border: 1px solid #173c59;
  box-shadow: 0 6px 18px rgba(0,0,0,0.30);
}

.theme-navy-mirage .quality-card .quality-img {
  background: radial-gradient(120% 140% at 10% -10%, rgba(122,186,255,0.08), transparent 50%),
              var(--panel-2);
}