/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --teal:       #0F4C5C;
  --teal-dark:  #0a3540;
  --teal-light: #e6f0f3;
  --gold:       #E3B04B;
  --gold-light: #fdf3dc;
  --white:      #ffffff;
  --off-white:  #f8f7f4;
  --ink:        #1a1a1a;
  --ink-light:  #3b3b3b;
  --muted:      #717182;
  --border:     #e0ddd8;
  --dark-bg:    #0d2b34;
  --dark-mid:   #112f3a;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.07);
  --shadow-md:   0 8px 32px rgba(0,0,0,.1);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.14);
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ===== UTILITY ===== */
.container {
  width: min(88%, 1200px);
  margin: 0 auto;
}

.section-pad { padding: 6rem 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-label.teal-label { color: var(--teal); }
.section-label--light { color: var(--gold); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 3rem;
}
.section-title em { font-style: italic; color: var(--teal); }
.section-title--light { color: var(--white); }
.section-title--light em { color: var(--gold); }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  padding: .75rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,76,92,.25);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  font-size: .85rem;
  font-weight: 600;
  padding: .75rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-outline--light { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline--light:hover { background: rgba(255,255,255,.1); color: var(--white); }

.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: min(92%, 1200px);
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 0;
}
.logo-bale { color: var(--teal); }
.logo-helm {
  color: var(--gold);
  background: var(--teal);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 2px;
}

.nav-checkbox { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .3s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink-light);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--teal);
  transition: width .25s;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }
.close-nav { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: var(--off-white);
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  right: -2%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(15,76,92,.07);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  letter-spacing: -.02em;
}

.hero-content {
  width: min(90%, 1200px);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeUp .8s ease both;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.hero-tag::before {
  content: '';
  width: 32px; height: 1.5px;
  background: var(--teal);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 1.8rem;
}
.name-first { display: block; color: var(--teal); }
.name-last {
  display: block;
  color: var(--gold);
  font-style: italic;
}

.hero-bio {
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-socials {
  display: flex;
  gap: .75rem;
}
.social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s, transform .2s;
}
.social-link img { width: 16px; height: 16px; object-fit: contain; }
.social-link:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  transform: translateY(-2px);
}

.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(15,76,92,.12);
}
.ring-1 { width: 400px; height: 400px; top: -80px; right: 8%; }
.ring-2 { width: 240px; height: 240px; top: 40px; right: 14%; }
.deco-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  opacity: .7;
}
.dot-1 { top: 30%; right: 20%; }
.dot-2 { bottom: 25%; right: 12%; }

/* ===== ABOUT ===== */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.img-border-deco {
  position: absolute;
  inset: -12px;
  border: 2px solid var(--gold);
  border-radius: calc(var(--radius-lg) + 4px);
  opacity: .35;
  pointer-events: none;
}

.about-body {
  font-size: .97rem;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 1.2rem;
}

.stats-row {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-item { display: flex; flex-direction: column; gap: .3rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.stat-divider {
  width: 1px; height: 48px;
  background: var(--border);
}

/* ===== EDUCATION ===== */
.education { background: var(--off-white); }

.edu-timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.edu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  transition: box-shadow .2s, transform .2s;
}
.edu-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.edu-icon-wrap {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--teal-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.edu-icon { width: 22px; height: 22px; object-fit: contain; }

.edu-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--gold-light);
  color: #8a6200;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: .6rem;
}
.edu-badge--done {
  background: var(--teal-light);
  color: var(--teal-dark);
}

.edu-details h3 {
  font-size: .97rem;
  font-weight: 600;
  margin-bottom: .3rem;
  color: var(--ink);
}
.edu-institution {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .4rem;
}
.edu-date {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .6rem;
}
.cal-icon { width: 13px; height: 13px; object-fit: contain; opacity: .6; }
.edu-desc {
  font-size: .82rem;
  line-height: 1.6;
  color: var(--muted);
}

.cert-list {
  margin-top: .6rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.cert-list li {
  font-size: .82rem;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cert-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.cv-banner {
  background: var(--teal);
  border-radius: var(--radius-md);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cv-text h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: .4rem;
}
.cv-text p {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
}
.cv-banner .btn-primary {
  background: var(--gold);
  color: var(--ink);
  flex-shrink: 0;
}
.cv-banner .btn-primary:hover {
  background: #c9952e;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

/* ===== PROJECTS ===== */
.projects { background: var(--white); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.proj-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.proj-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.proj-card--featured {
  border-color: var(--gold);
  border-width: 2px;
}

.proj-img-wrap {
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--off-white);
}
.proj-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.proj-card:hover .proj-img { transform: scale(1.04); }

.proj-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.tag {
  font-size: .68rem;
  font-weight: 600;
  color: var(--teal);
  border: 1px solid rgba(15,76,92,.25);
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.tag--gold {
  color: #8a6200;
  border-color: var(--gold);
  background: var(--gold-light);
}

.proj-body h3 {
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.proj-body p {
  font-size: .8rem;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}

.upwork-banner {
  background: var(--dark-bg);
  border-radius: var(--radius-md);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.upwork-banner p {
  font-size: .92rem;
  color: rgba(255,255,255,.65);
  max-width: 480px;
}
.upwork-btn {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
}
.upwork-logo {
  width: 20px; height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

/* ===== INTERESTS & SKILLS ===== */
.interests { background: var(--off-white); }

.interests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.interest-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: box-shadow .2s, transform .2s;
}
.interest-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.interest-icon-box {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.interest-icon { width: 22px; height: 22px; object-fit: contain; }
.interest-icon--orange { background: #ffedd5; }
.interest-icon--green  { background: #dcfce7; }
.interest-icon--pink   { background: #fce7f3; }
.interest-icon--red    { background: #fee2e2; }
.interest-icon--blue   { background: #dbeafe; }
.interest-icon--purple { background: #f3e8ff; }

.interest-card h3 {
  font-size: .92rem;
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--ink);
}
.interest-card p {
  font-size: .82rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Tools */
.tools-section { }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.tools-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.tools-card h3 {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink);
}
.tools-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.tool-icon {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: grayscale(.2);
  transition: transform .2s, filter .2s;
}
.tool-icon:hover { transform: scale(1.15); filter: grayscale(0); }
.tools-note {
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--dark-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 5rem;
}

.contact-intro {
  font-size: .92rem;
  line-height: 1.75;
  color: rgba(255,255,255,.6);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: rgba(255,255,255,.7);
  font-size: .87rem;
  transition: color .2s;
}
a.contact-item:hover { color: var(--gold); }
.contact-ic {
  width: 18px; height: 18px;
  object-fit: contain;
  opacity: .7;
  flex-shrink: 0;
}

.looking-for h3 {
  font-size: .88rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .75rem;
}
.looking-for li {
  font-size: .83rem;
  color: rgba(255,255,255,.55);
  padding: .3rem 0;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.looking-for li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form-col {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: .4rem;
}
.form-subtitle {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 2rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .8rem 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .87rem;
  outline: none;
  transition: border-color .2s, background .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.3); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.09);
}
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}
.contact .btn-primary {
  background: var(--gold);
  color: var(--ink);
  font-size: .9rem;
  padding: .9rem;
}
.contact .btn-primary:hover {
  background: #c9952e;
}

/* Footer Nav */
.footer-nav {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }

/* ===== SITE FOOTER ===== */
.site-footer {
  background: var(--dark-mid);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 1.5rem;
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .projects-grid,
  .interests-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-grid { gap: 3rem; }
}

@media (max-width: 768px) {
  .section-pad { padding: 4rem 0; }

  /* Hamburger nav */
  .hamburger { display: flex; }
  .close-nav {
    display: block;
    font-size: 1.1rem;
    cursor: pointer;
    align-self: flex-end;
    padding: .5rem;
    color: var(--muted);
  }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 70%;
    max-width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    border-left: 1px solid var(--border);
    padding: 2rem;
    gap: .2rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height .4s ease, opacity .3s ease;
    z-index: 999;
  }
  .nav-links a {
    padding: .7rem 0;
    font-size: 1rem;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-checkbox:checked ~ .nav-links {
    max-height: 100vh;
    opacity: 1;
    pointer-events: auto;
  }

  .hero-bg-text { font-size: 5rem; right: -5%; top: auto; bottom: 5%; }
  .hero-name { font-size: clamp(3rem, 12vw, 5rem); }
  .hero-bio { font-size: .95rem; }
  .ring-1, .ring-2 { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 340px; margin: 0 auto; }
  .stats-row { flex-wrap: wrap; gap: 1.5rem; }

  .edu-timeline { grid-template-columns: 1fr; }
  .cv-banner { flex-direction: column; padding: 2rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .upwork-banner { flex-direction: column; padding: 2rem; }

  .interests-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline { justify-content: center; }
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .2s, border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  background: var(--teal-light);
  border-color: var(--teal);
  transform: rotate(20deg);
}
.theme-icon {
  position: absolute;
  transition: opacity .3s, transform .3s;
}
.theme-icon--moon { opacity: 0; transform: translateY(8px); }
.theme-icon--sun  { opacity: 1; transform: translateY(0); }

/* dark state */
[data-theme="dark"] .theme-icon--sun  { opacity: 0; transform: translateY(-8px); }
[data-theme="dark"] .theme-icon--moon { opacity: 1; transform: translateY(0); }

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --white:     #0f1923;
  --off-white: #131f2b;
  --ink:       #e8edf2;
  --ink-light: #c4cdd6;
  --muted:     #7a8fa0;
  --border:    #1e2f3d;
  --teal-light: #0d2535;
  --gold-light: #1e1800;
  --dark-bg:   #080f16;
  --dark-mid:  #0b141d;
}

[data-theme="dark"] body {
  background: var(--white);
  color: var(--ink);
}

/* Nav */
[data-theme="dark"] .nav-header {
  background: rgba(15, 25, 35, 0.97);
  border-bottom-color: var(--border);
}
[data-theme="dark"] .nav-links {
  background: #0f1923;
  border-left-color: var(--border);
}
[data-theme="dark"] .nav-links a { color: var(--ink-light); }
[data-theme="dark"] .hamburger span { background: var(--ink); }
[data-theme="dark"] .theme-toggle {
  border-color: var(--border);
}
[data-theme="dark"] .theme-toggle:hover {
  background: var(--teal-light);
  border-color: var(--teal);
}

/* Hero */
[data-theme="dark"] .hero { background: var(--off-white); }
[data-theme="dark"] .hero-bio { color: var(--muted); }
[data-theme="dark"] .btn-outline {
  border-color: rgba(255,255,255,.2);
  color: var(--ink-light);
}
[data-theme="dark"] .btn-outline:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
[data-theme="dark"] .social-link {
  border-color: var(--border);
}
[data-theme="dark"] .social-link:hover {
  background: var(--teal-light);
  border-color: var(--teal);
}
[data-theme="dark"] .social-link img { filter: invert(.8); }

/* About */
[data-theme="dark"] .about { background: var(--white); }
[data-theme="dark"] .about-body { color: var(--ink-light); }
[data-theme="dark"] .stats-row { border-top-color: var(--border); }

/* Education */
[data-theme="dark"] .education { background: var(--off-white); }
[data-theme="dark"] .edu-card {
  background: var(--white);
  border-color: var(--border);
}
[data-theme="dark"] .edu-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.4); }
[data-theme="dark"] .edu-details h3 { color: var(--ink); }
[data-theme="dark"] .edu-badge {
  background: rgba(227,176,75,.12);
  color: var(--gold);
}
[data-theme="dark"] .edu-badge--done {
  background: var(--teal-light);
  color: #5ec4d8;
}
[data-theme="dark"] .resume-box {
  background: var(--white);
  border-color: var(--border);
}
[data-theme="dark"] .resume-box h3 { color: var(--ink); }
[data-theme="dark"] .resume-box p { color: var(--muted); }

/* Projects */
[data-theme="dark"] .projects { background: var(--white); }
[data-theme="dark"] .proj-card {
  background: var(--off-white);
  border-color: var(--border);
}
[data-theme="dark"] .proj-card--featured { border-color: var(--gold); }
[data-theme="dark"] .proj-card:hover { box-shadow: 0 20px 60px rgba(0,0,0,.4); }
[data-theme="dark"] .proj-body h3 { color: var(--ink); }
[data-theme="dark"] .proj-img-wrap { background: #1a2a36; }
[data-theme="dark"] .more-hub {
  border-color: var(--border);
  color: var(--ink-light);
}
[data-theme="dark"] .more-hub:hover { background: var(--off-white); }

/* Interests / Skills */
[data-theme="dark"] .interests { background: var(--off-white); }
[data-theme="dark"] .interest-card {
  background: var(--white);
  border-color: var(--border);
}
[data-theme="dark"] .interest-card h3 { color: var(--ink); }
[data-theme="dark"] .tools-card {
  background: var(--white);
  border-color: var(--border);
}
[data-theme="dark"] .tools-card h3 { color: var(--ink); }
[data-theme="dark"] .tool-icon { filter: invert(.1) brightness(1.1); }

/* Contact section already dark, just tweak form */
[data-theme="dark"] .contact-form-col {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.07);
}
[data-theme="dark"] .contact-form input,
[data-theme="dark"] .contact-form textarea {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.1);
  color: var(--white);
}
[data-theme="dark"] .contact-form input:focus,
[data-theme="dark"] .contact-form textarea:focus {
  border-color: var(--gold);
}
[data-theme="dark"] .footer-nav {
  border-top-color: rgba(255,255,255,.07);
}

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0d1a24; }

