
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;300;400;600;700;800&display=swap');

:root{
  --bg: #F7F7F7;
  --text: #111;
  --muted: #666;
  --accent: #D7BAAD;
    --brand: #3a2b1a;
    --shadow-soft: 0 2px 8px rgba(215,186,173,0.06);
    --shadow-strong: 0 4px 16px rgba(215,186,173,0.13);
    --accent-grad: linear-gradient(90deg, #D7BAAD 0%, #f3e7de 100%);
}

/* Global reset + typography */
*{box-sizing:border-box}
html,body{height:100%;margin:0;padding:0;background:var(--bg);}
html,body,input,button,textarea,select{
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Headings */
h1,h2,h3,h4,h5,h6{font-family:'Inter',inherit;margin:0;font-weight:700}

/* Basic layout helpers */
.container{max-width:1100px;margin:0 auto;padding:0 16px}

/* Links & buttons default */
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
button, .btn{font-family:inherit;cursor:pointer}

/* Accessibility */
img{max-width:100%;height:auto;display:block}

/* Small utilities used across the site */
.text-center{text-align:center}
.mb-8{margin-bottom:2rem}
.mt-8{margin-top:2rem}

/* --- LOADING SCREEN --- */
.loading-overlay {
    position: fixed;
    z-index: 5000;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #F7F7F7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s;
}
.loading-dots {
    display: flex;
    gap: 12px;
}
.loading-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #D7BAAD;
    opacity: 0.7;
    animation: loading-bounce 1s infinite alternate;
}
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes loading-bounce {
    0% { transform: translateY(0); opacity: 0.7; }
    100% { transform: translateY(-18px); opacity: 1; }
}
/* --- HERO SECTION --- */
.hero {
    background: var(--bg);
    padding-top: 64px;
    padding-bottom: 80px;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* border: 2px solid #D7BAAD; */
    border: none;
}
.hero-content {
    text-align: left;
    max-width: 900px;
    width: 90%;
    margin: 0 auto;
    padding-top: 32px;
    padding-bottom: 0;
}
.hero-content h1 {
    font-size: 1.5em;
    line-height: 1.3;
}
.hero-content .subtitle {
    font-family: 'Syne', Arial, sans-serif;
}
.hero-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}
@media (max-width: 900px) {
    .hero-content {
        max-width: 98vw;
        width: 100%;
        padding: 0 8px 0 8px;
    }
}
@media (max-width: 700px) {
    .hero {
        padding-top: 18px;
        padding-bottom: 72px;
        margin: 0;
    }
    .hero-content {
        max-width: 100vw;
        width: 100%;
        padding: 24px 4vw 0 4vw;
    }
    .hero-img {
        margin-top: 12px;
    }
}
@media (max-width: 500px) {
    .hero {
        padding-bottom: 90px;
    }
}
/* --- FOOTER --- */
footer {
    background: #F7F7F7;
    color: #111;
    text-align: center;
    padding: 32px 0 18px 0;
}
.footer-content a {
    color: #111;
    text-decoration: underline;
}
.footer-copyright {
    font-size: 12px;
    color: #111;
    margin-top: 8px;
}

/* --- HIGHLIGHTS SECTION --- */
.highlights {
    text-align: left;
    max-width: 1100px;
    margin: 48px;
    padding: 32px 16px;
}
.timeline {
    list-style: none;
    padding: 0;
    margin: 24px 0 0 0;
}
.timeline-item {
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 1.18em;
    color: #222;
}
/* --- PROFICIENCY SECTION --- */
.proficiency {
    text-align: center;
    max-width: 1100px;
    border-radius: 12px;
}
.proficiency-grid {
    display: flex;
    flex-direction: row;
    gap: 32px;
    margin-top: 24px;
}
@media (max-width: 768px) {
    .proficiency-grid {
        flex-direction: column;
    }
}
.proficiency .section {
    text-align: left;
}
.proficiency .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.proficiency .chip {
    background: #fff;
    border: 1px solid var(--accent);
    box-shadow: var(--shadow-soft);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9em;
    color: var(--brand);
}

/* Specific override: only Python chip should be subtly grey */
.proficiency .chips .chip--light {
  background: #ddd;
  border-color: #ddd;
}
/* --- HEADER & MENU STYLES MOVED FROM header.html --- */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #F7F7F7;
  z-index: 1000;
  padding: 16px 32px 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #D7BAAD;
  flex-direction: column;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  position: relative;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-left .site-title { margin-right: 28px; }
@media (max-width: 860px) {
  .header-left .social-btn { display: none; }
}
.site-title {
  font-family: 'Syne', Arial, sans-serif;
  font-size: 1.5em;
  color: #111;
  margin: 0;
  text-align: left;
  flex: 0 0 auto;
  white-space: nowrap;
}
.menu-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-btn, .social-btn {
  background: none;
  border: none;
  padding: 8px 12px;
  font-size: 1em;
  cursor: pointer;
  color: #3a2b1a;
  text-decoration: none;
  display: flex;
  align-items: center;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  height: 36px;
  box-sizing: border-box;
}
.menu-btn:hover, .social-btn:hover {
  background: #f0e6e0;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  background: #fff;
  border: 2px solid #D7BAAD;
  border-radius: 20px;
  cursor: pointer;
  z-index: 2002;
  box-shadow: 0 2px 12px 0 rgba(215,186,173,0.13), 0 1.5px 6px 0 rgba(215,186,173,0.09);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #111;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s;
}
/* Visual feedback when menu is open */
.hamburger[aria-expanded="true"] {
  background: #111;
  border-color: #111;
  box-shadow: 0 6px 20px rgba(17,17,17,0.18);
}
.hamburger[aria-expanded="true"] span {
  background: #fff;
}
/* Hamburger icon transform to X when menu is open */
#hamburger-menu[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
#hamburger-menu[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
#hamburger-menu[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}
@media (max-width: 860px) {
  .menu-group {
    display: none;
  }
  .hamburger {
    display: flex;
    margin-left: auto;
  }
}
@media (max-width: 420px) {
  .header-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .header-left {
    display: block;
    text-align: center;
  }
  .header-left .site-title {
    margin-right: 0;
    display: inline;
  }
  .hamburger {
    margin: 0 auto 8px auto;
    align-self: center;
  }
  .site-title {
    margin: 0 auto 16px auto;
    text-align: center;
    align-self: center;
  }
}
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,0.28);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 1800;
}
.menu-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}
.menu-popup {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, rgba(247,247,247,0.96) 0%, #ffffff 40%, #f7f1ec 100%);
  padding: 104px 20px 36px 20px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.16);
  z-index: 2001;
  align-items: center;
  gap: 14px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.22s ease, transform 0.24s ease;
}
.menu-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  flex: 1;
}
.menu-mobile-title {
  display: none;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 1em;
  color: #111;
  line-height: 1.35;
  text-align: center;
  margin-top: auto;
  width: min(520px, 100%);
  padding: 12px 0 4px;
  border-top: 1px solid rgba(17,17,17,0.08);
}
.menu-mobile-title a {
  color: #111;
  text-decoration: none;
}
.menu-popup.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.menu-popup a {
  margin: 0;
  text-align: center;
  width: min(520px, 100%);
  justify-content: center;
  align-items: center;
  display: flex;
}
.menu-popup .menu-btn {
  width: 100%;
  padding: 16px 18px;
  font-size: 1.15em;
  letter-spacing: 0.01em;
  background: #fff;
  border: 1px solid rgba(58,43,26,0.12);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  color: #111;
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.menu-popup .menu-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(58,43,26,0.25);
}
.menu-popup .menu-btn:active {
  transform: translateY(0);
}
.menu-popup .social-btn {
  width: 64px;
  height: 64px;
  padding: 12px;
  border: 1px solid rgba(58,43,26,0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  justify-content: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.menu-popup .social-btn img {
  width: 28px;
  height: 28px;
}
.menu-popup .social-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong);
  border-color: rgba(58,43,26,0.25);
}
.menu-popup .menu-social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  width: min(520px, 100%);
  padding-top: 2px;
}
@media (min-width: 861px) {
  .menu-popup,
  .menu-backdrop {
    display: none;
  }
}
@media (max-width: 420px) {
  .site-title {
    font-size: 1.25em;
  }
  .menu-popup {
    padding-top: 104px;
  }
}
@media (max-width: 860px) {
  .menu-mobile-title {
    display: block;
  }
}
body.menu-open {
  overflow: hidden;
}
/* Focus-visible for keyboard accessibility */
.menu-btn:focus-visible,
.social-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none;
        animation: none;
    }
}



/* Footer contact card base layout */
.contact-card-footer {
    display: flex;
    justify-content: center;
    gap: 32px;
  padding: 32px;
}

/* Stack contact card items vertically below 800px */
@media (max-width: 800px) {
  .contact-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 32px;
  }
}

/* --- THEME TOGGLE SWITCH --- */
.theme-toggle {
  width: 52px;
  height: 28px;
  border-radius: 14px;
  background: #e0dbd6;
  border: 1.5px solid rgba(58,43,26,0.18);
  cursor: pointer;
  position: relative;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}
.theme-toggle:hover { background: #d4cec9; }

.toggle-knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.22s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-icon { width: 13px; height: 13px; display: block; }
.sun-icon { display: block; }
.moon-icon { display: none; }

/* mobile popup theme row */
.menu-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1em;
  color: #3a2b1a;
  border-radius: 12px;
  background: #f5f0ec;
  border: 1px solid rgba(58,43,26,0.08);
}
.menu-theme-label { font-weight: 400; }

/* --- DARK MODE --- */
[data-theme="dark"] {
  --bg: #111111;
  --text: #f0ece8;
  --muted: #888;
  --accent: #D7BAAD;
}
[data-theme="dark"] body { background: #111111; color: #f0ece8; }
[data-theme="dark"] .header-fixed { background: #111111; border-color: rgba(215,186,173,0.18); }
[data-theme="dark"] .site-title { color: #f0ece8; }
[data-theme="dark"] .site-title a { color: #f0ece8; }
[data-theme="dark"] .menu-btn { color: #f0ece8; }
[data-theme="dark"] .menu-btn:hover { background: rgba(215,186,173,0.1); }
[data-theme="dark"] .theme-toggle { background: #3a3a3a; border-color: rgba(215,186,173,0.2); }
[data-theme="dark"] .theme-toggle:hover { background: #444; }
[data-theme="dark"] .toggle-knob { left: 26px; background: #888; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }
[data-theme="dark"] .menu-theme-row { background: #1a1a1a; border-color: rgba(215,186,173,0.15); color: #f0ece8; }
[data-theme="dark"] .loading-overlay { background: #111111; }
[data-theme="dark"] .hamburger { background: #1a1a1a; border-color: rgba(215,186,173,0.3); }
[data-theme="dark"] .hamburger span { background: #f0ece8; }
[data-theme="dark"] .hamburger[aria-expanded="true"] { background: #f0ece8; }
[data-theme="dark"] .hamburger[aria-expanded="true"] span { background: #111; }
[data-theme="dark"] .menu-popup { background: linear-gradient(180deg, #111 0%, #1a1a1a 40%, #1e1613 100%); }
[data-theme="dark"] .menu-popup .menu-btn { background: #1a1a1a; border-color: rgba(215,186,173,0.15); color: #f0ece8; }
[data-theme="dark"] .menu-popup .social-btn { background: #1a1a1a; border-color: rgba(215,186,173,0.15); }
[data-theme="dark"] .menu-mobile-title { color: #888; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .menu-mobile-title a { color: #888; }
[data-theme="dark"] footer { background: #111111; color: #f0ece8; }
[data-theme="dark"] .footer-content a { color: #f0ece8; }
[data-theme="dark"] .footer-copyright { color: #888; }
[data-theme="dark"] .contact-card-footer { color: #f0ece8; }
[data-theme="dark"] .proficiency .chip { background: #252525; border-color: rgba(215,186,173,0.3); color: #d0ccc8; }
[data-theme="dark"] .proficiency .chip--light { background: #1e1e1e; border-color: #333; color: #666; }
/* text — override inline color styles on paragraphs */
[data-theme="dark"] main p { color: #f0ece8 !important; }
[data-theme="dark"] main div { color: inherit; }
/* about & timeline */
[data-theme="dark"] .timeline-item { color: #ccc; }
[data-theme="dark"] #highlights-title, [data-theme="dark"] #about-title { color: #f0ece8; }
/* projects page */
[data-theme="dark"] .project-entry { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .project-name { color: #f0ece8; }
[data-theme="dark"] .project-what { color: #aaa; }
[data-theme="dark"] .project-what em { color: #777; }
[data-theme="dark"] .project-desc { color: #ccc; }
[data-theme="dark"] .project-desc p { color: #ccc !important; }
/* gallery */
[data-theme="dark"] .gallery-filter { color: #555; background: none; }
[data-theme="dark"] .gallery-filter:hover { color: #ccc; background: rgba(215,186,173,0.08); }
[data-theme="dark"] .gallery-filter.active { color: #f0ece8; background: rgba(215,186,173,0.15); }
[data-theme="dark"] .masonry-gallery .gallery-item { background: #1a1a1a; box-shadow: none; }
/* shop */
[data-theme="dark"] .shop-card-title, [data-theme="dark"] .shop-card-price { color: #ccc; }
/* footer contact card — inline styles need !important */
[data-theme="dark"] .contact-card-footer,
[data-theme="dark"] .contact-card-footer div,
[data-theme="dark"] .contact-card-footer a { color: #ccc !important; }
/* social icon SVGs — invert to white in dark mode */
[data-theme="dark"] .social-btn img { filter: brightness(0) invert(1); opacity: 0.75; }
[data-theme="dark"] .social-btn:hover img { opacity: 1; }
[data-theme="dark"] .social-btn:hover { background: rgba(215,186,173,0.1); }
/* --- END DARK MODE --- */

/* --- END HEADER & MENU STYLES --- */
