/* ============ Theme: Warm Professional (navy + amber, light) ============ */
:root {
  --bg: #f7f5f0;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0ece3;
  --ink: #14213d;          /* deep navy */
  --ink-soft: #35435f;
  --muted: #6b7488;
  --line: #e6e1d6;
  --gold: #e0a419;         /* amber/gold accent */
  --gold-deep: #c8880a;
  --navy: #14213d;
  --grad: linear-gradient(120deg, #14213d 0%, #2b3c63 60%, #c8880a 130%);
  --grad-gold: linear-gradient(120deg, #e0a419, #f3c34f);
  --radius: 16px;
  --shadow: 0 14px 40px rgba(20, 33, 61, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 33, 61, 0.16);
  --maxw: 1120px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-bg: rgba(247, 245, 240, 0.82);
}

/* ============ Dark theme ============ */
html[data-theme="dark"] {
  --bg: #0e1524;
  --bg-2: #14203a;
  --surface: #172440;
  --surface-2: #1f2f52;
  --ink: #eef2fb;
  --ink-soft: #c2ccdf;
  --muted: #8f9cb5;
  --line: #2a3a5c;
  --navy: #eef2fb;          /* used as high-contrast text/headings in dark */
  --grad: linear-gradient(120deg, #101a30 0%, #1d2c50 60%, #7a5410 130%);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --nav-bg: rgba(14, 21, 36, 0.85);
}
/* Keep buttons readable in dark (navy var now maps to light ink) */
html[data-theme="dark"] .btn--primary { background: var(--gold); color: #14213d; box-shadow: 0 10px 26px rgba(0,0,0,0.4); }
html[data-theme="dark"] .btn--primary:hover { background: #f3c34f; }
html[data-theme="dark"] .btn--ghost { border-color: var(--gold); color: var(--gold); }
html[data-theme="dark"] .btn--ghost:hover { background: var(--gold); color: #14213d; }
html[data-theme="dark"] .se__s { color: #33cccc; }
html[data-theme="dark"] .se__e { color: #c56ea0; }
html[data-theme="dark"] .hero__photo { border-color: var(--surface); }

/* Siemens Energy petrol/plum stay branded in both themes */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .nav__brand { font-family: var(--font-head); letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }

/* Siemens Energy brand wordmark */
.se { font-weight: 600; white-space: nowrap; }
.se__s { color: #009999; }   /* Siemens Energy petrol */
.se__e { color: #641946; }   /* Siemens Energy plum/purple */
code { font-family: ui-monospace, Menlo, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: 0.85em; }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 56px);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.brand-logo { width: 34px; height: 34px; display: block; transition: transform 0.3s; }
.nav__brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }
.brand-name { line-height: 1; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--ink-soft); font-weight: 500; font-size: 0.92rem; position: relative; transition: color 0.2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width 0.25s; }
.nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--navy); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ============ Nav controls (theme) ============ */
.nav__controls { display: inline-flex; align-items: center; gap: 12px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  cursor: pointer; transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { color: var(--navy); border-color: var(--gold); transform: rotate(12deg); }
.icon-btn .icon-moon { display: none; }
html[data-theme="dark"] .icon-btn .icon-sun { display: none; }
html[data-theme="dark"] .icon-btn .icon-moon { display: block; }

/* ============ Buttons ============ */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
  border: 1px solid transparent;
}
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 10px 26px rgba(20, 33, 61, 0.25); }
.btn--primary:hover { transform: translateY(-2px); background: #1c2c50; box-shadow: 0 14px 32px rgba(20, 33, 61, 0.32); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { transform: translateY(-2px); background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* ============ Hero ============ */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 120px clamp(20px, 5vw, 56px) 70px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 40% at 80% 20%, rgba(224, 164, 25, 0.22), transparent 70%),
    radial-gradient(45% 45% at 10% 80%, rgba(20, 33, 61, 0.10), transparent 70%);
}
.hero__inner {
  position: relative; max-width: var(--maxw); width: 100%;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center;
}
.hero__eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 0.78rem; color: var(--gold-deep); font-weight: 700; margin-bottom: 14px; }
.hero__title { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 700; line-height: 1.05; color: var(--navy); margin-bottom: 18px; }
.hero__tagline { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-soft); max-width: 620px; margin-bottom: 30px; }
.hero__tagline strong { color: var(--gold-deep); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero__meta { font-size: 0.9rem; color: var(--muted); }
.hero__photo {
  justify-self: center; width: 260px; height: 320px; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 4px solid #fff; position: relative;
}
.hero__photo::after { content: ""; position: absolute; inset: 0; border-radius: 20px; box-shadow: inset 0 0 0 2px rgba(224,164,25,0.5); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Sections ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 80px clamp(20px, 5vw, 56px); }
.section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.section__num { font-family: var(--font-head); color: var(--gold-deep); font-size: 1rem; font-weight: 700; }
.section__head h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; color: var(--navy); }
.section__head h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 10px; border-radius: 4px; background: var(--grad-gold); }
.section__intro { color: var(--muted); margin: -20px 0 30px; font-size: 1.05rem; }
.section__note { color: var(--muted); font-size: 0.9rem; margin-top: 24px; }
.sub-head { margin-top: 64px; }
.sub-title { font-size: 1.5rem; color: var(--navy); }
.sub-title::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--grad-gold); }

/* ============ About ============ */
.lead { font-size: 1.2rem; color: var(--ink); margin-bottom: 18px; }
.lead strong, .about strong { color: var(--gold-deep); }
.about p { color: var(--ink-soft); margin-bottom: 16px; max-width: 820px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-top: 36px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.stat__num { display: block; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--navy); }
.stat__label { color: var(--muted); font-size: 0.85rem; }

/* ============ Timeline ============ */
.timeline { position: relative; margin-left: 8px; padding-left: 28px; border-left: 2px solid var(--line); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-dot { position: absolute; left: -37px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--gold); }
.tl-date { font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; color: var(--gold-deep); }
.tl-body h3 { font-size: 1.25rem; color: var(--navy); margin: 4px 0; }
.tl-tag { font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; background: var(--surface-2); color: var(--muted); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.tl-org { color: var(--ink-soft); font-weight: 500; margin-bottom: 10px; }
.tl-body ul { list-style: none; }
.tl-body li { color: var(--ink-soft); font-size: 0.95rem; padding-left: 18px; position: relative; margin-bottom: 6px; }
.tl-body li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.tl-highlight { margin-top: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; box-shadow: var(--shadow); }
.tl-highlight > strong { color: var(--navy); display: block; margin-bottom: 8px; }

/* ============ Cards ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; overflow: hidden; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.card__year { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; color: var(--gold-deep); }
.card h3 { font-size: 1.1rem; color: var(--navy); margin: 6px 0 8px; }
.card p { color: var(--muted); font-size: 0.9rem; }
.card--edu::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--grad-gold); }

/* ============ Feature (Hackathon) ============ */
.section--feature { }
.feature {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
  background: var(--grad); color: #fff; border-radius: 22px; padding: 40px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.feature::after { content: ""; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(224,164,25,0.35); filter: blur(40px); }
.feature__badge { font-size: 3rem; background: rgba(255,255,255,0.12); width: 84px; height: 84px; display: grid; place-items: center; border-radius: 20px; }
.feature__year { color: var(--gold); font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; }
.feature__body h3 { font-size: 1.6rem; margin: 6px 0 12px; }
.feature__body p { color: rgba(255,255,255,0.82); max-width: 640px; }
.feature__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.feature__tags li { font-size: 0.8rem; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.2); }
.feature__note { font-size: 0.82rem; color: rgba(255,255,255,0.55) !important; font-style: italic; }

/* ============ Gallery ============ */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.g-item {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 0;
  box-shadow: var(--shadow); transition: transform 0.25s, box-shadow 0.25s; font-family: inherit;
}
.g-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.g-item:hover img { transform: scale(1.06); }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-size: 0.82rem; text-align: left; color: #fff; background: linear-gradient(transparent, rgba(20,33,61,0.85)); }
.g-item--empty { display: grid; place-items: center; gap: 8px; grid-template-rows: 1fr auto; background: var(--surface-2); border-style: dashed; }
.g-item--empty > span:first-child { font-size: 2.4rem; align-self: end; }
.g-item--empty .g-cap { position: static; background: none; color: var(--ink-soft); text-align: center; font-weight: 500; }

/* ============ Skills ============ */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.skills__group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.skills__group h3 { font-size: 1.05rem; margin-bottom: 16px; color: var(--gold-deep); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-soft); transition: transform 0.2s, border-color 0.2s, color 0.2s; }
.chips li:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--navy); }

.languages { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.languages > h3 { color: var(--navy); margin-bottom: 18px; }
.lang-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 32px; }
.lang { display: grid; grid-template-columns: 80px 1fr; align-items: center; gap: 10px; }
.lang > span { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.lang .bar { grid-column: 1 / -1; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.lang .bar i { display: block; height: 100%; background: var(--grad-gold); border-radius: 999px; }
.lang em { grid-column: 1 / -1; font-style: normal; color: var(--muted); font-size: 0.78rem; }

/* ============ Contact ============ */
.section--contact { text-align: center; }
.section--contact .section__head { justify-content: center; }
.section--contact .section__head h2::after { margin-left: auto; margin-right: auto; }
.contact__lead { color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 28px; }
.contact__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ Footer ============ */
.footer { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }

/* ============ Lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 40px; background: rgba(20, 33, 61, 0.92); }
.lightbox.open { display: grid; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 20px; right: 28px; font-size: 2.4rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__cta, .hero__meta { justify-content: center; }
  .hero__photo { order: -1; width: 200px; height: 240px; }
  .feature { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .nav__links.open { max-height: 520px; }
  .nav__links a { padding: 15px clamp(20px, 5vw, 56px); border-top: 1px solid var(--line); }
  .nav__links a::after { display: none; }
  .nav__controls { justify-content: center; padding: 14px clamp(20px, 5vw, 56px); border-top: 1px solid var(--line); }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
