/* ── Reset & Variables ──────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:#FDFAF7; --bg-card:#FFFFFF; --bg-muted:#F3EFF9;
  --text:#2B2732; --text-muted:#7C7B8A; --text-light:#AAA8B5;
  --mauve:#B497C8; --rose:#D9A7B8; --sage:#94B8AE; --blue-soft:#8AAFC5; --gold:#C9A96E;
  --border:rgba(180,151,200,.18);
  --shadow-sm:0 2px 12px rgba(140,110,170,.08);
  --shadow-md:0 8px 32px rgba(140,110,170,.13);
  --shadow-lg:0 20px 60px rgba(140,110,170,.18);
  --radius-sm:10px; --radius-md:18px; --radius-lg:28px;
  --t:.3s cubic-bezier(.4,0,.2,1);
}
[data-theme="dark"] {
  --bg:#18141F; --bg-card:#231D2E; --bg-muted:#2A2237;
  --text:#EDE9F5; --text-muted:#A09AB5; --text-light:#6E698A;
  --mauve:#C4AADA; --rose:#E0B5C8; --sage:#A5CAC1; --blue-soft:#9CC0D8; --gold:#D4B07C;
  --border:rgba(200,170,230,.10);
  --shadow-sm:0 2px 12px rgba(0,0,0,.25);
  --shadow-md:0 8px 32px rgba(0,0,0,.35);
  --shadow-lg:0 20px 60px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg); color: var(--text);
  transition: background var(--t), color var(--t);
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--mauve); border-radius: 99px; }

/* ── BG Blobs ────────────────────────────────────────────── */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .28; animation: blobFloat 14s ease-in-out infinite alternate; }
[data-theme="dark"] .blob { opacity: .12; }
.blob-1 { width: 500px; height: 500px; background: var(--mauve); top: -150px; left: -100px; }
.blob-2 { width: 380px; height: 380px; background: var(--rose); top: 40%; right: -80px; animation-delay: -5s; }
.blob-3 { width: 320px; height: 320px; background: var(--sage); bottom: 10%; left: 20%; animation-delay: -9s; }
@keyframes blobFloat { from { transform: translate(0,0) scale(1); } to { transform: translate(30px,40px) scale(1.07); } }

/* ── Nav ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: .9rem 2rem;
  background: rgba(253,250,247,.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border); transition: background var(--t);
}
[data-theme="dark"] nav { background: rgba(24,20,31,.92); }
.nav-inner {
  max-width: 1200px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.45rem;
  background: linear-gradient(130deg, var(--mauve), var(--rose));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.nav-links { display: flex; gap: 1.4rem; list-style: none; flex-wrap: nowrap; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: .76rem; font-weight: 500; transition: color var(--t); white-space: nowrap;
}
.nav-links a:hover { color: var(--mauve); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; cursor: pointer; padding: 6px; background: none; border: none;
  width: 36px; height: 36px; flex-shrink: 0;
}
.hamburger span {
  display: block; height: 2px; background: var(--text-muted);
  border-radius: 2px; transition: all var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none; position: fixed; top: 58px; left: 0; right: 0; z-index: 999;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg); padding: 1rem 0;
  transition: opacity var(--t), transform var(--t);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
}
.mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: all; }
.mobile-nav a {
  display: block; padding: .75rem 2rem;
  color: var(--text-muted); text-decoration: none;
  font-size: .9rem; font-weight: 500; transition: all var(--t);
  border-left: 3px solid transparent;
}
.mobile-nav a:hover { color: var(--mauve); background: var(--bg-muted); border-left-color: var(--mauve); }

.nav-right { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.theme-toggle {
  width: 42px; height: 23px; background: var(--bg-muted); border: 1.5px solid var(--border);
  border-radius: 99px; cursor: pointer; position: relative; display: flex; align-items: center;
  padding: 0 3px; transition: background var(--t); flex-shrink: 0;
}
.theme-toggle::after {
  content: ''; width: 15px; height: 15px; border-radius: 50%; background: var(--mauve);
  transition: transform var(--t); transform: translateX(0);
}
[data-theme="dark"] .theme-toggle::after { transform: translateX(19px); }
.ti { position: absolute; font-size: .52rem; color: var(--text-light); }
.ti.sun { left: 5px; } .ti.moon { right: 5px; }

/* ── Shared Helpers ──────────────────────────────────────── */
.container { max-width: 1200px; margin: auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }
.label {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--mauve); background: rgba(180,151,200,.12);
  padding: .26rem .82rem; border-radius: 99px; border: 1px solid rgba(180,151,200,.25); margin-bottom: .85rem;
}
.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; line-height: 1.15; margin-bottom: .5rem;
}
.section-sub { color: var(--text-muted); font-size: .93rem; max-width: 520px; line-height: 1.75; margin-bottom: 2.5rem; }
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .78rem 1.7rem; border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .88rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; transition: all var(--t);
}
.btn-primary { background: linear-gradient(130deg, var(--mauve), #9470B8); color: #fff; box-shadow: 0 5px 20px rgba(180,151,200,.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(180,151,200,.45); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--mauve); color: var(--mauve); transform: translateY(-3px); box-shadow: var(--shadow-sm); }

/* ── HERO ────────────────────────────────────────────────── */
#hero { min-height: 100vh; display: flex; align-items: center; padding-top: 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 400px; gap: 3.5rem; align-items: center; }

.hero-pretag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 99px;
  padding: .32rem .95rem; font-size: .76rem; font-weight: 500; color: var(--text-muted);
  margin-bottom: 1.4rem; box-shadow: var(--shadow-sm);
  animation: slideDown .6s ease forwards;
}
.hero-pretag .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sage);
  animation: pulse 2s ease infinite;
}
.hero-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5.5vw, 5rem); font-weight: 700; line-height: 1.05; margin-bottom: 1rem;
  animation: fadeIn .9s .15s ease forwards; opacity: 0;
}
.hero-name em {
  font-style: italic;
  background: linear-gradient(125deg, var(--mauve) 20%, var(--rose) 60%, var(--blue-soft) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-tagline {
  font-size: 1rem; color: var(--text-muted); line-height: 1.75;
  max-width: 500px; margin-bottom: 2.2rem;
  animation: fadeIn .9s .3s ease forwards; opacity: 0;
}
.hero-btns { display: flex; gap: .9rem; flex-wrap: wrap; animation: fadeIn .9s .45s ease forwards; opacity: 0; }

/* Hero card */
.hero-visual { position: relative; height: 500px; animation: fadeIn .9s .6s ease forwards; opacity: 0; }
.hero-card-main {
  position: absolute; inset: 0; background: var(--bg-card);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column;
}
.hcc {
  height: 265px; background: linear-gradient(135deg, #C9A7D4 0%, #E8B4C5 40%, #A8C5D4 100%);
  position: relative; overflow: hidden;
}
.hcb { padding: 1.4rem 1.6rem 1.6rem; }
.hcb h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; margin-bottom: .15rem; }
.hcb p { font-size: .76rem; color: var(--text-muted); margin-bottom: .9rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .42rem; }
.chip { font-size: .66rem; padding: .25rem .66rem; border-radius: 99px; font-weight: 600; border: 1px solid; }
.cm { color: var(--mauve); border-color: rgba(180,151,200,.3); background: rgba(180,151,200,.1); }
.cr { color: var(--rose); border-color: rgba(217,167,184,.3); background: rgba(217,167,184,.1); }
.cs { color: var(--sage); border-color: rgba(148,184,174,.3); background: rgba(148,184,174,.1); }
.cb { color: var(--blue-soft); border-color: rgba(138,175,197,.3); background: rgba(138,175,197,.1); }
.cg { color: var(--gold); border-color: rgba(201,169,110,.3); background: rgba(201,169,110,.1); }
.hfl {
  position: absolute; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: .8rem 1.1rem;
  animation: floatCard 5s ease-in-out infinite alternate;
}
.hfl1 { right: -24px; top: 50px; animation-delay: 0s; }
.hfl2 { right: -16px; bottom: 65px; animation-delay: -2.5s; }
@keyframes floatCard { from { transform: translateY(0); } to { transform: translateY(-11px); } }
.hfv { font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; font-weight: 700; color: var(--mauve); }
.hfl-lbl { font-size: .64rem; color: var(--text-light); font-weight: 500; }

/* ── ABOUT ───────────────────────────────────────────────── */
#about { background: var(--bg-muted); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.aqc {
  background: var(--bg-card); border-radius: var(--radius-lg); padding: 2.2rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-md); position: relative;
}
.qm {
  font-family: 'Cormorant Garamond', serif; font-size: 5.5rem; line-height: .5;
  color: var(--mauve); opacity: .22; position: absolute; top: 1.3rem; left: 1.3rem;
}
.aqc p {
  font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-style: italic;
  line-height: 1.65; position: relative; z-index: 1;
}
.aqc .qa {
  margin-top: 1.1rem; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .75rem; font-style: normal; color: var(--mauve); font-weight: 600; letter-spacing: .08em;
}
.adeco {
  position: absolute; bottom: -22px; left: -22px; width: 100px; height: 100px;
  border-radius: var(--radius-md); background: linear-gradient(135deg, var(--rose), var(--mauve));
  opacity: .14; z-index: -1;
}
.about-text p { color: var(--text-muted); line-height: 1.85; margin-bottom: 1.2rem; font-size: .94rem; }
.about-text p strong { color: var(--text); font-weight: 600; }
.atags { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.8rem; }
.atag {
  padding: .4rem .95rem; border-radius: 99px; font-size: .76rem; font-weight: 600;
  background: var(--bg-card); border: 1.5px solid var(--border); color: var(--text-muted); transition: all var(--t);
}
.atag:hover { border-color: var(--mauve); color: var(--mauve); background: rgba(180,151,200,.06); }

/* ── EXPERIENCE ──────────────────────────────────────────── */
.exp-tabs { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.exp-tab {
  padding: .48rem 1.25rem; border-radius: 99px; font-size: .78rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--border); background: transparent;
  color: var(--text-muted); transition: all var(--t);
}
.exp-tab.active { background: var(--mauve); border-color: var(--mauve); color: #fff; }
.exp-tab:hover:not(.active) { border-color: var(--mauve); color: var(--mauve); }
.exp-pane { display: none; }
.exp-pane.active { display: grid; gap: 1.3rem; animation: fadeIn .4s ease; }
.exp-card {
  background: var(--bg-card); border-radius: var(--radius-md); padding: 1.8rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: all var(--t); display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start;
}
.exp-card:hover { box-shadow: var(--shadow-md); border-color: var(--mauve); }
.e-role { font-size: 1rem; font-weight: 700; margin-bottom: .22rem; }
.e-org { font-size: .82rem; color: var(--mauve); font-weight: 600; margin-bottom: .38rem; }
.e-desc { font-size: .83rem; color: var(--text-muted); line-height: 1.7; margin-bottom: .85rem; }
.e-hi { list-style: none; }
.e-hi li { font-size: .8rem; color: var(--text-muted); padding-left: 1.2rem; margin-bottom: .38rem; position: relative; line-height: 1.55; }
.e-hi li::before { content: '▹'; color: var(--mauve); position: absolute; left: 0; }
.e-per {
  font-size: .7rem; color: var(--text-light); font-weight: 600; white-space: nowrap;
  text-align: right; background: var(--bg-muted); padding: .34rem .78rem;
  border-radius: 99px; height: fit-content; border: 1px solid var(--border); flex-shrink: 0;
}

/* ── SKILLS ──────────────────────────────────────────────── */
.sk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.3rem; }
.sk-card {
  background: var(--bg-card); border-radius: var(--radius-md); padding: 1.6rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all var(--t);
}
.sk-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--mauve); }
.sk-icon { width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; margin-bottom: 1rem; }
.im { background: rgba(180,151,200,.14); color: var(--mauve); }
.ir { background: rgba(217,167,184,.14); color: var(--rose); }
.is { background: rgba(148,184,174,.14); color: var(--sage); }
.ib { background: rgba(138,175,197,.14); color: var(--blue-soft); }
.sk-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .9rem; }
.spills { display: flex; flex-wrap: wrap; gap: .45rem; }
.spill {
  font-size: .71rem; padding: .26rem .68rem; border-radius: 99px; font-weight: 600;
  background: var(--bg-muted); color: var(--text-muted); border: 1px solid var(--border);
  transition: all var(--t); line-height: 1.4;
}
.sk-card:hover .spill { border-color: rgba(180,151,200,.28); }

/* ── CERTIFICATIONS ──────────────────────────────────────── */
.cert-category { margin-bottom: 2.8rem; }
.cert-category h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; font-weight: 600;
  color: var(--text); margin-bottom: 1.2rem;
  padding-bottom: .6rem; border-bottom: 1px solid var(--border);
}
.cert-slider {
  display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.cert-slider::-webkit-scrollbar { height: 4px; }
.cert-slider::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.cert-slider img {
  height: 180px; width: auto; min-width: 240px; max-width: 320px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm); cursor: pointer; scroll-snap-align: start;
  object-fit: cover; transition: all var(--t); flex-shrink: 0;
}
.cert-slider img:hover {
  transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-md); border-color: var(--mauve);
}

/* ── PROJECTS ────────────────────────────────────────────── */
#projects { background: var(--bg-muted); }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.6rem; }
.pj-card {
  background: var(--bg-card); border-radius: var(--radius-md); padding: 1.8rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all var(--t);
  display: flex; flex-direction: column;
}
.pj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--rose); }
.pj-num {
  font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 300;
  color: var(--border); line-height: 1; margin-bottom: .7rem;
}
.pj-role { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mauve); margin-bottom: .7rem; }
.pj-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .55rem; }
.pj-desc { color: var(--text-muted); font-size: .85rem; line-height: 1.7; flex-grow: 1; margin-bottom: 1.2rem; }
.pj-tech { display: flex; flex-wrap: wrap; gap: .38rem; margin-bottom: 1rem; }
.t-tag {
  font-size: .66rem; font-weight: 600; padding: .2rem .58rem; border-radius: 6px;
  background: var(--bg-muted); color: var(--text-muted); border: 1px solid var(--border);
}
.pj-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; text-decoration: none; color: var(--mauve); transition: gap var(--t); }
.pj-link:hover { gap: .65rem; }
.pj-coming {
  display: flex; align-items: center; justify-content: center; height: 90px;
  border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--text-light); font-size: .8rem; gap: .5rem; grid-column: 1/-1;
}

/* ── HACKATHONS ──────────────────────────────────────────── */
.hk-track {
  display: flex; gap: 1.3rem; overflow-x: auto; padding-bottom: 1.2rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.hk-track::-webkit-scrollbar { display: none; }
.hk-card {
  min-width: 280px; max-width: 280px; background: var(--bg-card); border-radius: var(--radius-md);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  overflow: hidden; scroll-snap-align: start; transition: all var(--t); flex-shrink: 0;
}
.hk-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--mauve); }
.hk-img { height: 170px; overflow: hidden; position: relative; }
.hk-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.hk-card:hover .hk-img img { transform: scale(1.06); }
.hk-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; }
.hk-badge { position: absolute; top: 9px; right: 9px; font-size: .62rem; font-weight: 700; padding: .2rem .65rem; border-radius: 99px; backdrop-filter: blur(8px); }
.b-fin { background: rgba(201,169,110,.85); color: #fff; }
.b-par { background: rgba(180,151,200,.85); color: #fff; }
.b-win { background: rgba(148,184,174,.85); color: #fff; }
.hk-body { padding: 1.2rem; }
.hk-yr { font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mauve); margin-bottom: .38rem; }
.hk-body h3 { font-size: .92rem; font-weight: 700; margin-bottom: .48rem; line-height: 1.35; }
.hk-body p { font-size: .76rem; color: var(--text-muted); line-height: 1.65; margin-bottom: .8rem; }
.hk-skills { display: flex; flex-wrap: wrap; gap: .3rem; }
.hk-sk { font-size: .63rem; font-weight: 600; padding: .17rem .55rem; border-radius: 6px; background: var(--bg-muted); color: var(--text-muted); border: 1px solid var(--border); }
.scroll-hint { text-align: right; font-size: .7rem; color: var(--text-light); margin-top: .65rem; display: flex; align-items: center; gap: .4rem; justify-content: flex-end; }

/* ── GALLERY ─────────────────────────────────────────────── */
#gallery { background: var(--bg-muted); }
.gal-filters { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.gf {
  padding: .44rem 1rem; border-radius: 99px; font-size: .75rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--border); background: transparent;
  color: var(--text-muted); transition: all var(--t);
}
.gf.active { background: var(--mauve); border-color: var(--mauve); color: #fff; }
.gf:hover:not(.active) { border-color: var(--mauve); color: var(--mauve); }
.gal-masonry { columns: 3; column-gap: 1.1rem; }
.g-item {
  break-inside: avoid; margin-bottom: 1.1rem; border-radius: var(--radius-md);
  overflow: hidden; position: relative; cursor: pointer;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all var(--t);
}
.g-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); border-color: var(--rose); }
.g-item img { width: 100%; display: block; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.05); }
.g-ph {
  width: 100%; background: var(--bg-card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .5rem; color: var(--text-muted); font-size: .76rem; padding: 2.2rem 1.3rem; text-align: center;
}
.g-em { font-size: 2.2rem; }
.g-ov {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 55%);
  opacity: 0; transition: opacity var(--t); display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1rem;
}
.g-item:hover .g-ov { opacity: 1; }
.g-ov-title { font-size: .82rem; font-weight: 700; color: #fff; margin-bottom: .18rem; }
.g-ov-sub { font-size: .68rem; color: rgba(255,255,255,.75); }
.g-cat-badge {
  position: absolute; top: 9px; left: 9px; font-size: .6rem; font-weight: 700;
  padding: .18rem .62rem; border-radius: 99px; backdrop-filter: blur(8px);
  text-transform: uppercase; letter-spacing: .07em;
}
.gcat-out { background: rgba(148,184,174,.88); color: #fff; }
.gcat-evt { background: rgba(180,151,200,.88); color: #fff; }
.gcat-hk  { background: rgba(201,169,110,.88); color: #fff; }
.gcat-ldr { background: rgba(138,175,197,.88); color: #fff; }

/* ── LIGHTBOX ────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.93); backdrop-filter: blur(14px);
  display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lb-inner { position: relative; max-width: 880px; width: 100%; }
.lb-inner img {
  width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  max-height: 82vh; object-fit: contain;
}
.lb-cap { color: rgba(255,255,255,.78); font-size: .84rem; margin-top: .9rem; text-align: center; }
.lb-x {
  position: absolute; top: -2.8rem; right: 0;
  background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; transition: color var(--t);
}
.lb-x:hover { color: var(--rose); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  font-size: .9rem; transition: background var(--t); backdrop-filter: blur(6px);
}
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-p { left: -56px; } .lb-n { right: -56px; }

/* ── CONTACT ─────────────────────────────────────────────── */
#contact { background: var(--bg-muted); }
.con-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.con-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.85rem, 3.5vw, 2.7rem); font-weight: 600; line-height: 1.2; margin-bottom: 1rem;
}
.con-sub { color: var(--text-muted); line-height: 1.75; margin-bottom: 1.8rem; font-size: .93rem; }
.c-links { display: flex; flex-direction: column; gap: .75rem; }
.c-lnk {
  display: flex; align-items: center; gap: .95rem; padding: .95rem 1.3rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text); transition: all var(--t);
}
.c-lnk:hover { border-color: var(--mauve); transform: translateX(5px); box-shadow: var(--shadow-sm); }
.c-ico {
  width: 34px; height: 34px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0;
}
.ci-em { background: rgba(180,151,200,.12); color: var(--mauve); }
.ci-li { background: rgba(138,175,197,.12); color: var(--blue-soft); }
.ci-lo { background: rgba(148,184,174,.12); color: var(--sage); }
.c-ll { font-size: .65rem; color: var(--text-light); margin-bottom: .08rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.c-lv { font-size: .84rem; font-weight: 600; }
.con-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.2rem; box-shadow: var(--shadow-md);
}
.con-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.55rem; margin-bottom: .45rem; }
.con-card p { color: var(--text-muted); font-size: .85rem; margin-bottom: 1.6rem; line-height: 1.65; }
.fg { margin-bottom: .9rem; }
.fg input, .fg textarea {
  width: 100%; padding: .8rem 1rem; background: var(--bg-muted);
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .85rem; color: var(--text);
  transition: border-color var(--t), box-shadow var(--t); outline: none; resize: vertical;
}
.fg input:focus, .fg textarea:focus {
  border-color: var(--mauve); box-shadow: 0 0 0 3px rgba(180,151,200,.14);
}
.fg textarea { min-height: 105px; }
::placeholder { color: var(--text-light); }

/* ── Footer ──────────────────────────────────────────────── */
footer { text-align: center; padding: 2rem; border-top: 1px solid var(--border); color: var(--text-light); font-size: .8rem; }
footer span { color: var(--rose); }

/* ── Back to top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 800;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--mauve); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: all var(--t);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { background: #9470B8; transform: translateY(-3px); }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 1024px (tablet / desktop-mode-on-mobile)
════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 360px; gap: 2.5rem; }
  .hfl1 { right: -12px; }
  .hfl2 { right: -8px; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 860px (small tablet + forced desktop mobile)
════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: block; }

  .hero-grid {
    grid-template-columns: 1fr; gap: 2rem;
    padding-top: 1rem;
  }
  .hero-visual { height: auto; min-height: 360px; }
  .hero-card-main { position: relative; }
  .hfl1, .hfl2 { display: none; } /* hide floaters on smaller screens */
  .hcc { height: 220px; }

  .about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .adeco { display: none; }

  .exp-card { grid-template-columns: 1fr; }
  .e-per { width: fit-content; text-align: left; }

  .con-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .gal-masonry { columns: 2; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 600px (phones)
════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .container { padding: 0 1.1rem; }

  #hero { padding-top: 64px; min-height: auto; padding-bottom: 3rem; }
  .hero-name { font-size: 2.4rem; }
  .hero-tagline { font-size: .93rem; }
  .hero-btns { gap: .7rem; }
  .btn { padding: .7rem 1.4rem; font-size: .82rem; }

  .hero-visual { min-height: 0; }
  .hero-card-main { position: relative; inset: auto; }
  .hcc { height: 200px; }

  .section-heading { font-size: 1.75rem; }
  .section-sub { font-size: .87rem; margin-bottom: 1.8rem; }

  .about-grid { gap: 1.8rem; }
  .aqc { padding: 1.6rem; }
  .aqc p { font-size: 1.15rem; }

  .sk-grid { grid-template-columns: 1fr; }
  .pj-grid { grid-template-columns: 1fr; }

  .cert-slider img { height: 140px; min-width: 190px; }

  .hk-card { min-width: 250px; max-width: 250px; }

  .gal-masonry { columns: 1; }
  .gal-filters { gap: .38rem; }
  .gf { font-size: .7rem; padding: .38rem .85rem; }

  .con-grid { gap: 2rem; }
  .con-card { padding: 1.6rem; }

  .lb-p { left: -4px; } .lb-n { right: -4px; }
  .lb-nav { width: 36px; height: 36px; font-size: .8rem; }
  .lb-x { top: -2.4rem; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE — 400px (very small phones)
════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  .hero-name { font-size: 2rem; }
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
  .hk-card { min-width: 230px; max-width: 230px; }
  .exp-tabs { gap: .38rem; }
  .exp-tab { font-size: .72rem; padding: .42rem 1rem; }
}