/* ==========================================
   DESIGN SYSTEM & CUSTOM PROPERTIES
   ========================================== */
:root {
  /* ── Core Palette ── */
  --color-navy:        #0e1e38;
  --color-navy-light:  #1e3a6e;
  --color-gold:        #b8932a;
  --color-gold-light:  #d4af5a;
  --color-crimson:     #8b1a2a;
  --color-crimson-soft:#c0392b;
  --color-brown:       #6b3c2a;
  --color-brown-light: #9b6240;
  --color-green:       #2a5c3f;
  --color-green-light: #3d8b5e;
  --color-white:       #ffffff;
  --color-black:       #0a0f1a;
  --color-beige:       #f7f4ec;
  --color-beige-dark:  #ede9dd;
  --color-sand:        #e8dcc8;

  /* ── Theme Tokens ── */
  --bg-primary:    var(--color-beige);
  --bg-secondary:  var(--color-white);
  --bg-card:       var(--color-white);
  --text-primary:  var(--color-black);
  --text-secondary:#3d4558;
  --text-muted:    #6b7280;

  --primary-color: var(--color-navy);
  --accent-color:  var(--color-gold);
  --accent-red:    var(--color-crimson);
  --accent-brown:  var(--color-brown);
  --accent-green:  var(--color-green);

  --border-color:  rgba(14, 30, 56, 0.10);
  --border-strong: rgba(14, 30, 56, 0.22);
  --shadow-color:  rgba(14, 30, 56, 0.06);
  --shadow-md:     0 8px 24px rgba(14,30,56,0.10);
  --shadow-lg:     0 20px 40px rgba(14,30,56,0.12);
  --navbar-bg:     rgba(247,244,236,0.95);

  --font-sans:  'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast:   all 0.2s ease;
  --radius-sm:  8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --border-radius-sm: var(--radius-sm);
  --border-radius-md: var(--radius-md);
}

body.dark-theme {
  --bg-primary:    #0a0f1a;
  --bg-secondary:  #111827;
  --bg-card:       #111827;
  --text-primary:  #f0ede4;
  --text-secondary:#9ca3af;
  --text-muted:    #6b7280;
  --primary-color: #4a90d9;
  --accent-color:  #d4af5a;
  --accent-red:    #e05c6a;
  --accent-brown:  #c08060;
  --accent-green:  #4db87e;
  --border-color:  rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --shadow-color:  rgba(0,0,0,0.4);
  --shadow-md:     0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg:     0 20px 40px rgba(0,0,0,0.5);
  --navbar-bg:     rgba(10,15,26,0.95);
  --color-beige:   #0a0f1a;
  --color-sand:    #1a2030;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font-family: inherit; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.75rem; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--color-sand); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ==========================================
   SCROLL-DRIVEN ENTRANCE ANIMATIONS
   (Triggered via JS Intersection Observer)
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.from-left  { transform: translateX(-50px); }
.reveal.from-right { transform: translateX(50px); }
.reveal.scale-up   { transform: scale(0.92); }

.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ==========================================
   SEMESTER ROTATING DOME WHEEL
   ========================================== */
.semesters-block {
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
}
.semesters-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-muted); margin-bottom: 1.25rem;
  text-align: center;
}

.sem-dome-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Glowing halo behind the dome */
.sem-dome-glow-ring {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 140px;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(184,147,42,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Clip wrapper — hides bottom half of ring, shows top dome only */
.sem-dome-clip {
  width: 280px;
  height: 140px;           /* exactly half the ring size */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Full circular ring — rotated by JS */
.sem-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid rgba(184,147,42,0.35);
  position: absolute;
  top: 0; left: 0;
  transform-origin: 50% 50%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 0 0 1px rgba(184,147,42,0.08),
    inset 0 0 40px rgba(14,30,56,0.06);
}

/* Each numbered bead — positioned on the ring perimeter */
/* Angles spread across 180° (top half): -90° to +90° */
/* --idx 0 = -90° (leftmost), --idx 7 = +90° (rightmost) */
.sem-bead {
  position: absolute;
  width: 46px;
  height: 46px;
  top: 50%;
  left: 50%;
  /* Base placement on circle rim, angle = -90 + idx * (180/7) */
  transform:
    rotate(calc(-90deg + var(--idx) * 25.71deg))
    translateY(-130px)
    rotate(calc(90deg - var(--idx) * 25.71deg));   /* counter-rotate to keep text upright */
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.sem-bead-inner {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 3px 10px var(--shadow-color);
  transition: all 0.35s ease;
  cursor: default;
  transform: translateX(-50%) translateY(-50%);
}

.sem-bead-num   { font-family: var(--font-serif); font-size: 1rem; font-weight: 900; color: var(--text-primary); line-height: 1; }
.sem-bead-label { font-size: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }

/* Active bead style — applied by JS */
.sem-bead.active .sem-bead-inner {
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(184,147,42,0.2), 0 8px 20px rgba(184,147,42,0.3);
  transform: translateX(-50%) translateY(-50%) scale(1.25);
}
.sem-bead.active .sem-bead-num   { color: #fff; font-size: 1.1rem; }
.sem-bead.active .sem-bead-label { color: rgba(255,255,255,0.8); }

/* Nearby beads dimmed when active bead is chosen */
.sem-bead.near .sem-bead-inner {
  background: rgba(184,147,42,0.1);
  border-color: rgba(184,147,42,0.35);
  transform: translateX(-50%) translateY(-50%) scale(1.1);
}

/* Flat baseline bar below dome */
.sem-dome-clip::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* Active semester display below the dome */
.sem-dome-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 1rem 2rem 0.5rem;
  position: relative;
  z-index: 2;
  min-height: 75px;
}

.sem-dome-active-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-gold);
  line-height: 1;
  transition: all 0.3s ease;
  min-width: 2rem;
  text-align: center;
}

.sem-dome-active-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.sem-dome-active-grade {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-height: 3.5rem;
}

/* SGPA sub-elements */
.sem-sgpa-label {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.sem-sgpa-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--color-gold);
  transition: opacity 0.35s ease, color 0.3s ease;
  min-width: 3rem;
  text-align: center;
}

.sem-sgpa-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  transition: opacity 0.35s ease;
}

.badge-completed {
  background: rgba(42,92,63,0.15);
  color: var(--color-green);
  border: 1px solid rgba(42,92,63,0.3);
}

.badge-upcoming {
  background: rgba(0,0,0,0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Scroll hint below wheel */
.sem-scroll-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  padding-top: 0.5rem;
  animation: pulseHint 2s ease-in-out infinite;
}
@keyframes pulseHint {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}
.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(14,30,56,0.08);
}

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px; max-width: 1180px; margin: 0 auto; padding: 0 1.75rem;
}

.logo { font-family: var(--font-sans); font-weight: 800; font-size: 1.4rem; letter-spacing: 3px; color: var(--text-primary); }
.logo-accent { color: var(--color-gold); }

.menu-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.4rem; cursor: pointer; }

.nav-menu { display: flex; align-items: center; gap: 2.5rem; }

.nav-link { font-weight: 600; font-size: 0.9rem; color: var(--text-muted); position: relative; padding: 0.5rem 0; letter-spacing: 0.3px; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: var(--accent-color); transition: var(--transition-fast); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.theme-toggle-btn {
  background: var(--border-color); border: 1px solid var(--border-color);
  color: var(--text-primary); width: 38px; height: 38px;
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: var(--transition-smooth);
}
.theme-toggle-btn:hover { transform: rotate(20deg) scale(1.1); background-color: var(--color-navy); color: #fff; }

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem; padding: 0.85rem 2rem; font-weight: 700;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: var(--transition-smooth); font-size: 0.9rem;
  border: 2px solid transparent; letter-spacing: 0.2px;
}

.btn-primary { background-color: var(--color-navy); color: #fff; border-color: var(--color-navy); }
.btn-primary:hover { background-color: var(--color-gold); border-color: var(--color-gold); color: var(--color-navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline { background-color: transparent; color: var(--color-navy); border-color: var(--color-navy); }
.btn-outline:hover { background-color: var(--color-navy); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--color-navy); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--color-navy); color: #fff; border-color: var(--color-navy); transform: translateY(-2px); }

/* ==========================================
   SHARED SECTION HEADER
   ========================================== */
.section-tag {
  display: inline-block; background: rgba(184,147,42,0.12);
  color: var(--color-gold); font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  padding: 0.3rem 0.9rem; border-radius: 50px;
  margin-bottom: 1rem; border: 1px solid rgba(184,147,42,0.2);
}
.light-tag { background: rgba(255,255,255,0.2); color: #fff; border-color: rgba(255,255,255,0.25); }

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-title { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 800; color: var(--text-primary); line-height: 1.2; margin-bottom: 1rem; }
.section-subtitle { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; }
.section-header.centered .section-subtitle { margin: 0 auto; }

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 100px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--color-beige) 0%, var(--color-beige-dark) 100%);
}
.hero-bg-pattern {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(184,147,42,0.06) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(42,92,63,0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(14,30,56,0.03) 0%, transparent 60%);
}

.hero-container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 4rem; }
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(14,30,56,0.07); color: var(--color-navy);
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 0.45rem 1rem; border-radius: 50px;
  border: 1px solid var(--border-color); margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.8s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.15; margin-bottom: 1.25rem; color: var(--text-primary);
  animation: fadeSlideUp 0.9s 0.15s cubic-bezier(0.16,1,0.3,1) both;
}
.name-highlight { color: var(--color-gold); }

.hero-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2.5rem; max-width: 500px; line-height: 1.7; animation: fadeSlideUp 0.9s 0.25s cubic-bezier(0.16,1,0.3,1) both; }
.hero-subtitle strong { color: var(--color-navy); font-weight: 700; }

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; animation: fadeSlideUp 0.9s 0.35s cubic-bezier(0.16,1,0.3,1) both; }

.hero-social { display: flex; gap: 1rem; margin-top: 0.5rem; animation: fadeSlideUp 0.9s 0.45s cubic-bezier(0.16,1,0.3,1) both; }
.hero-social a {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--border-color); color: var(--text-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; border: 1px solid var(--border-color); transition: var(--transition-smooth);
}
.hero-social a:hover { background: var(--color-navy); color: #fff; transform: translateY(-3px); border-color: var(--color-navy); }

@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Portrait */
.hero-image-wrapper { position: relative; display: flex; align-items: center; justify-content: center; animation: fadeIn 1s 0.4s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-image-ring {
  position: absolute; width: 105%; height: 105%; border-radius: 50%;
  border: 2px dashed rgba(184,147,42,0.3); animation: spin-slow 20s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.hero-image {
  width: 380px; height: 380px; border-radius: 50%; overflow: hidden;
  border: 5px solid var(--color-gold);
  box-shadow: 0 0 0 12px rgba(184,147,42,0.08), var(--shadow-lg);
  position: relative; z-index: 1;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ==========================================
   STATS BAR
   ========================================== */
.stats-bar-section { background: var(--color-navy); }
.stats-bar { display: flex; align-items: stretch; }
.stat-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; gap: 0.3rem; }
.stat-number { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 800; color: var(--color-gold); line-height: 1; }
.stat-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.6); }
.stat-divider { width: 1px; background: rgba(255,255,255,0.1); margin: 1rem 0; }

/* ==========================================
   SELECTED WORK SECTION
   ========================================== */
.selected-work-section { padding: 6rem 0; }

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

.work-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 1.75rem;
  display: flex; align-items: center; gap: 1.25rem;
  cursor: pointer; transition: var(--transition-smooth);
  box-shadow: var(--shadow-color) 0 4px 16px;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-gold); }

.work-card-icon { width: 56px; height: 56px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; flex-shrink: 0; }
.work-card-content { flex: 1; }
.work-card-tag { display: inline-block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 0.2rem 0.65rem; border-radius: 50px; margin-bottom: 0.4rem; }
.work-card-title { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.3rem; }
.work-card-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.work-card-arrow { color: var(--text-muted); font-size: 0.9rem; flex-shrink: 0; transition: var(--transition-fast); }
.work-card:hover .work-card-arrow { color: var(--color-gold); transform: translateX(4px); }

.view-all-wrapper { text-align: center; }

/* ==========================================
   HORIZONTAL SCROLL ZONE
   ========================================== */
.h-scroll-outer {
  /* Height = number of slides × 100vh for scroll-budget */
  height: 400vh;
  position: relative;
}

.h-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.h-scroll-progress-bar {
  position: absolute;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-brown-light), var(--color-green-light));
  z-index: 10;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px rgba(184,147,42,0.5);
}

.h-scroll-label {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  writing-mode: vertical-lr;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  opacity: 0.5;
  z-index: 10;
  display: none;
}

.h-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  animation: bounceHint 2s ease-in-out infinite;
  z-index: 10;
}
.h-scroll-hint i { font-size: 1rem; }
@keyframes bounceHint {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50%       { transform: translateX(-50%) translateY(-6px); opacity: 1; }
}

.h-scroll-track {
  display: flex;
  width: max-content;
  will-change: transform;
  /* JS drives transform: translateX(...) */
}

/* Each horizontal slide */
.h-slide {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 3rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.h-slide-1 { background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%); }
.h-slide-2 { background: linear-gradient(135deg, var(--color-brown) 0%, var(--color-brown-light) 100%); }
.h-slide-3 { background: linear-gradient(135deg, var(--color-green) 0%, var(--color-green-light) 100%); }
.h-slide-4 { background: linear-gradient(135deg, #3a1a10 0%, var(--color-crimson) 100%); }

/* Decorative background circles on slides */
.h-slide::before, .h-slide::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.h-slide::before { width: 500px; height: 500px; background: #fff; top: -150px; right: -100px; }
.h-slide::after  { width: 300px; height: 300px; background: #fff; bottom: -80px; left: -60px; }

.h-slide-inner {
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  color: #fff;
}

.h-slide-content { display: flex; flex-direction: column; gap: 1.25rem; }

.h-slide-step {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 3px; color: rgba(255,255,255,0.5);
}
.h-slide-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}
.h-slide-title span { color: rgba(255,255,255,0.55); }
.h-slide-desc { font-size: 1rem; color: rgba(255,255,255,0.75); line-height: 1.7; max-width: 380px; }

.h-slide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-slide-icon-big {
  width: 140px; height: 140px; border-radius: 28px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: rgba(255,255,255,0.9);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  position: relative;
}
.h-slide-icon-big::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
}

.h-slide-stats { display: flex; flex-direction: column; gap: 1rem; }
.h-slide-stat { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); border-radius: 12px; padding: 1rem 1.25rem; }
.h-slide-stat-num { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 800; color: rgba(255,255,255,0.95); }
.h-slide-stat-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255,255,255,0.55); }

/* Slide dots indicator */
.h-slide-dots {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}
.h-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35); cursor: pointer;
  transition: all 0.3s ease;
}
.h-dot.active { width: 24px; border-radius: 4px; background: #fff; }

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-section {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  padding: 6rem 0;
}
.skills-section .section-tag { background: rgba(184,147,42,0.2); color: var(--color-gold-light); }
.skills-section .section-title { color: #fff; }
.skills-section .section-subtitle { color: rgba(255,255,255,0.65); }

.skills-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: center; }
.skills-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.skill-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.1rem; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  transition: var(--transition-fast);
}
.skill-pill:hover { transform: scale(1.05); }
.navy-pill    { background: rgba(78,122,200,0.15); color: #8ab4f8; border: 1px solid rgba(78,122,200,0.25); }
.gold-pill    { background: rgba(184,147,42,0.15);  color: #d4af5a; border: 1px solid rgba(184,147,42,0.25); }
.crimson-pill { background: rgba(139,26,42,0.20);   color: #e8808c; border: 1px solid rgba(139,26,42,0.30); }
.brown-pill   { background: rgba(107,60,42,0.20);   color: #d48c6a; border: 1px solid rgba(107,60,42,0.30); }
.green-pill   { background: rgba(42,92,63,0.20);    color: #5dc891; border: 1px solid rgba(42,92,63,0.30); }

/* ==========================================
   CONTACT CTA SECTION
   ========================================== */
.contact-cta-section { padding: 5rem 0; }
.contact-cta-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 3rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; box-shadow: var(--shadow-md);
  border-left: 5px solid var(--color-gold);
}
.contact-cta-title { font-family: var(--font-serif); font-size: 2rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.75rem; }
.contact-cta-desc { color: var(--text-secondary); margin-bottom: 1.25rem; max-width: 500px; }
.contact-email-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.contact-email-link:hover { color: var(--color-gold); }
.contact-cta-action { flex-shrink: 0; }

/* ==========================================
   ENQUIRY FORM
   ========================================== */
.enquiry-section { padding: 5rem 0; }
.enquiry-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); max-width: 780px; margin: 0 auto;
}
.enquiry-card-header { background: var(--color-navy); padding: 2rem 2.5rem; color: #fff; }
.enquiry-title { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; margin-bottom: 0.3rem; }
.enquiry-card-header p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

.enquiry-form { padding: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 700; font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.85rem 1rem; background: var(--bg-primary);
  border: 1.5px solid var(--border-color); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.95rem; transition: var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(184,147,42,0.12);
}
.error-msg { color: var(--color-crimson); font-size: 0.8rem; display: none; }
.error-msg.visible { display: block; }
.form-success-alert {
  display: none; align-items: center; gap: 1rem;
  background: rgba(42,92,63,0.1); border: 1px solid rgba(42,92,63,0.25);
  color: var(--color-green); padding: 1.25rem; border-radius: var(--radius-sm);
}
.form-success-alert.visible { display: flex; }
.form-success-alert i { font-size: 1.5rem; flex-shrink: 0; }
.form-success-alert h4 { font-weight: 700; }

/* ==========================================
   PROJECT MODAL
   ========================================== */
.modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10,15,26,0.7); backdrop-filter: blur(4px); cursor: pointer; }
.modal-content-wrapper {
  position: relative; z-index: 1; background: var(--bg-card);
  border-radius: var(--radius-lg); padding: 3rem;
  max-width: 780px; width: 90%; max-height: 85vh;
  overflow-y: auto; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  animation: modalPopIn 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--border-color); border: none;
  color: var(--text-primary); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: var(--transition-fast);
}
.modal-close:hover { background: var(--color-crimson); color: #fff; }

/* ==========================================
   FOOTER
   ========================================== */
.site-footer { background: var(--color-black); color: rgba(255,255,255,0.7); padding: 3.5rem 0 2rem; }
.footer-container { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-brand .logo { color: #fff; font-size: 1.2rem; }
.footer-brand p { margin-top: 0.4rem; font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.9rem; font-weight: 600; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--color-gold); }
.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ==========================================
   PAGE MAIN WRAPPER
   ========================================== */
.page-main { padding-top: 80px; min-height: 100vh; }

/* ==========================================
   PAGE HERO BANNER (About)
   ========================================== */
.page-hero { position: relative; height: 360px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,15,26,0.3) 0%, rgba(10,15,26,0.75) 100%); }
.page-hero-content { position: relative; z-index: 1; padding-bottom: 3rem; }
.page-hero-title { font-family: var(--font-serif); font-size: 3rem; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 0.5rem; }
.page-hero-subtitle { color: rgba(255,255,255,0.7); font-size: 1rem; font-weight: 500; }

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-container { padding-top: 4rem; padding-bottom: 5rem; }

.about-statement-section { margin-bottom: 5rem; }
.statement-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 3rem; align-items: start; }
.statement-text { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1rem; }

.quick-facts-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 1.75rem;
  box-shadow: var(--shadow-md); border-top: 4px solid var(--color-gold);
}
.quick-facts-title { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-primary); margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.quick-facts-title i { color: var(--color-gold); }
.quick-facts-list { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.quick-facts-list li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: var(--text-secondary); }
.quick-facts-list li i { color: var(--color-brown-light); width: 16px; text-align: center; }

.education-section { margin-bottom: 5rem; }
.edu-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-md); display: grid;
  grid-template-columns: 220px 1fr; margin-bottom: 2rem;
}
.edu-card-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.5rem; gap: 1.25rem; }
.school-side   { background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-light) 100%); }
.college-side  { background: linear-gradient(160deg, var(--color-brown) 0%, var(--color-brown-light) 100%); }
.edu-card-logos { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
.edu-logo       { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,0.9); padding: 4px; }
.edu-logo-large { width: 80px; height: 80px; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,0.92); padding: 6px; }
.edu-card-badge { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 0.3rem 0.8rem; border-radius: 50px; }
.school-badge   { background: rgba(184,147,42,0.25); color: var(--color-gold-light); border: 1px solid rgba(184,147,42,0.3); }
.college-badge  { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.2); }

/* ── Dual-Logo College Card Layout ── */
.college-logos-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.college-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.3s ease;
}
.college-logo-item:hover { transform: translateY(-3px) scale(1.04); }

.college-logo-ring {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  padding: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18), 0 0 0 3px rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease;
}
.college-logo-ring:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.25), 0 0 0 4px rgba(255,255,255,0.4);
}

.cu-ring {
  /* Slight gold glow for Calcutta University */
  box-shadow: 0 6px 20px rgba(0,0,0,0.18), 0 0 0 3px rgba(184,147,42,0.35);
}
.cu-ring:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,0.25), 0 0 0 4px rgba(184,147,42,0.55);
}

.college-logo-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

.college-logo-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  color: rgba(255,255,255,0.85);
  line-height: 1.35;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.college-logos-divider {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}
.college-logos-divider::before,
.college-logos-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin: 0 0.5rem;
}

/* Widen the card side to fit both logos */
#deshbandhu-card { grid-template-columns: 200px 1fr; }
.edu-card-main  { padding: 2.25rem; }
.edu-card-top   { margin-bottom: 1.75rem; }
.edu-institution { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.4rem; }
.edu-affiliation { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.edu-naac        { font-size: 0.85rem; font-weight: 700; color: var(--color-green); margin-bottom: 0.5rem; }
.edu-period      { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.edu-details-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.edu-detail-box  {
  background: var(--bg-primary); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 0.9rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.edu-detail-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.edu-detail-value { font-size: 1rem; font-weight: 700; }
.crimson-val { color: var(--color-crimson-soft); }
.green-val   { color: var(--color-green); }
.navy-val    { color: var(--color-navy); }
.edu-extra-activities { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px dashed var(--border-color); }
.activity-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.activity-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.activity-badge { display: flex; align-items: center; gap: 0.5rem; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 50px; padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.activity-logo { width: 22px; height: 22px; object-fit: contain; }
.semesters-block { padding-top: 1.25rem; border-top: 1px dashed var(--border-color); }
.semesters-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.85rem; }
.semesters-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sem-chip { background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 0.4rem 0.9rem; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); display: flex; align-items: center; gap: 0.4rem; }
.sem-grade { color: var(--text-muted); font-weight: 700; }

.work-exp-section { margin-bottom: 5rem; }
.work-exp-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.work-exp-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 1.75rem;
  box-shadow: var(--shadow-color) 0 4px 16px;
  display: flex; flex-direction: column; gap: 0.5rem;
  border-top: 3px solid var(--color-brown-light); transition: var(--transition-smooth);
}
.work-exp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-exp-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--color-brown), var(--color-brown-light)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 0.5rem; }
.work-exp-date    { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--color-brown-light); }
.work-exp-company { font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }
.work-exp-role    { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* ==========================================
   PROJECTS PAGE
   ========================================== */
.page-topbar { background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-light) 100%); padding: 4.5rem 0 3.5rem; }
.page-topbar .section-tag { background: rgba(184,147,42,0.2); color: var(--color-gold-light); margin-bottom: 0.75rem; }
.page-main-title    { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 900; color: #fff; margin-bottom: 0.75rem; }
.page-main-subtitle { color: rgba(255,255,255,0.65); font-size: 1rem; max-width: 550px; }

.projects-container { padding-top: 3.5rem; padding-bottom: 5rem; }
.projects-list { display: flex; flex-direction: column; gap: 2rem; }

.project-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; box-shadow: var(--shadow-color) 0 4px 20px;
  transition: var(--transition-smooth);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.project-card-accent { width: 6px; flex-shrink: 0; }
.marketing-accent      { background: linear-gradient(to bottom, var(--color-navy), var(--color-navy-light)); }
.finance-accent        { background: linear-gradient(to bottom, var(--color-brown), var(--color-brown-light)); }
.hr-accent             { background: linear-gradient(to bottom, var(--color-crimson), var(--color-crimson-soft)); }
.entrepreneurship-accent{ background: linear-gradient(to bottom, var(--color-green), var(--color-green-light)); }

.project-card-inner  { padding: 2rem 2rem 2rem 1.75rem; flex: 1; }
.project-card-header { margin-bottom: 1.25rem; }
.project-header-left { display: flex; align-items: flex-start; gap: 1.25rem; }

.project-icon-wrap { width: 52px; height: 52px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; flex-shrink: 0; margin-top: 4px; }
.marketing-icon-bg       { background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light)); }
.finance-icon-bg         { background: linear-gradient(135deg, var(--color-brown), var(--color-brown-light)); }
.hr-icon-bg              { background: linear-gradient(135deg, var(--color-crimson), var(--color-crimson-soft)); }
.entrepreneurship-icon-bg{ background: linear-gradient(135deg, var(--color-green), var(--color-green-light)); }

.project-tag { display: inline-block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 0.2rem 0.7rem; border-radius: 50px; margin-bottom: 0.4rem; }

/* Shared tag colors */
.marketing-tag       { background: rgba(14,30,56,0.1);  color: var(--color-navy);         border: 1px solid rgba(14,30,56,0.2); }
.finance-tag         { background: rgba(107,60,42,0.12); color: var(--color-brown-light);  border: 1px solid rgba(107,60,42,0.2); }
.hr-tag              { background: rgba(139,26,42,0.1);  color: var(--color-crimson-soft); border: 1px solid rgba(139,26,42,0.2); }
.entrepreneurship-tag{ background: rgba(42,92,63,0.1);  color: var(--color-green);        border: 1px solid rgba(42,92,63,0.2); }

.project-title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.4rem; line-height: 1.3; }
.project-meta  { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); font-weight: 600; }
.project-meta span { display: flex; align-items: center; gap: 0.35rem; }

.project-desc { color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.7; }
.project-content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.75rem; }
.project-list-block h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-primary); margin-bottom: 0.75rem; }
.project-list-block h3 i { color: var(--color-gold); }
.project-list-block ul  { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.project-list-block ul li { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.project-footer { display: flex; align-items: center; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--border-color); flex-wrap: wrap; }
.tools-label { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); flex-shrink: 0; }
.tools-row   { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tool-chip   { background: var(--bg-primary); border: 1px solid var(--border-color); color: var(--text-secondary); padding: 0.3rem 0.75rem; border-radius: 50px; font-size: 0.78rem; font-weight: 600; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero-container     { grid-template-columns: 1fr; text-align: center; }
  .hero-content       { align-items: center; }
  .hero-image-wrapper { display: none; }
  .skills-inner       { grid-template-columns: 1fr; gap: 2.5rem; }
  .statement-grid     { grid-template-columns: 1fr; }
  .edu-card           { grid-template-columns: 1fr; }
  .edu-card-side      { flex-direction: row; justify-content: flex-start; padding: 1.5rem 2rem; }
}

@media (max-width: 768px) {
  .section-title        { font-size: 2rem; }
  .page-hero-title      { font-size: 2.2rem; }
  .page-main-title      { font-size: 2rem; }
  .hero-title           { font-size: 2.5rem; }
  .work-cards-grid      { grid-template-columns: 1fr; }
  .project-content-grid { grid-template-columns: 1fr; }
  .work-exp-grid        { grid-template-columns: 1fr; }
  .stats-bar            { flex-wrap: wrap; }
  .stat-divider         { display: none; }
  .contact-cta-card     { flex-direction: column; align-items: flex-start; }
  .form-row             { grid-template-columns: 1fr; }
  .menu-toggle          { display: flex; }
  .nav-menu {
    display: none; position: absolute; top: 80px; left: 0;
    width: 100%; background: var(--navbar-bg); flex-direction: column;
    padding: 1.5rem; gap: 1.5rem; border-bottom: 1px solid var(--border-color);
  }
  .nav-menu.is-open { display: flex; }
  .hero-image { width: 260px; height: 260px; }
  /* Horizontal slides go single column on mobile */
  .h-slide-inner { grid-template-columns: 1fr; gap: 2rem; }
  .h-slide-visual { display: none; }
  .h-scroll-outer { height: 350vh; }
}

@media (max-width: 480px) {
  .container      { padding: 0 1.25rem; }
  .edu-card-main  { padding: 1.5rem; }
  .enquiry-form   { padding: 1.75rem; }
  .project-card-inner { padding: 1.5rem 1.5rem 1.5rem 1.25rem; }
}

/* ==========================================
   SPLASH SCREEN
   ========================================== */
.splash-screen {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.splash-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; position: relative; }
.splash-logo-ring {
  position: absolute; width: 120px; height: 120px; border-radius: 50%;
  border: 2px solid rgba(184,147,42,0.4);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: splashRing 1s ease-out forwards, spin-slow 8s linear infinite;
}
@keyframes splashRing {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.splash-initials {
  font-family: var(--font-serif); font-size: 3.5rem; font-weight: 900;
  color: var(--color-gold); letter-spacing: 4px;
  animation: splashFadeUp 0.8s 0.2s ease both;
}
.splash-sub {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 3px; color: rgba(255,255,255,0.4);
  animation: splashFadeUp 0.8s 0.4s ease both;
}
.splash-bar {
  width: 140px; height: 2px; background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden; margin-top: 0.5rem;
  animation: splashFadeUp 0.8s 0.5s ease both;
}
.splash-bar-fill {
  height: 100%; width: 0%; background: var(--color-gold); border-radius: 2px;
  animation: splashFill 1.8s 0.3s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes splashFadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes splashFill   { to { width: 100%; } }

/* ==========================================
   CUSTOM CURSOR
   ========================================== */
@media (pointer: fine) { * { cursor: none !important; } }
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 99998; pointer-events: none;
  width: 8px; height: 8px; border-radius: 50%; background: var(--color-gold);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, opacity 0.2s ease;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 99997; pointer-events: none;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid rgba(184,147,42,0.5); transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.2s ease;
}
.cursor-dot.expanded  { width: 14px; height: 14px; }
.cursor-ring.expanded { width: 54px; height: 54px; border-color: var(--color-gold); }

/* ==========================================
   SCROLL PROGRESS BAR (right edge)
   ========================================== */
.scroll-progress-bar {
  position: fixed; top: 0; right: 0; width: 4px; height: 0%; z-index: 1500;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-brown-light), var(--color-green-light));
  border-radius: 0 0 4px 0; transition: height 0.05s linear;
  box-shadow: -2px 0 12px rgba(184,147,42,0.3);
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 2000;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-navy); color: var(--color-gold);
  border: 2px solid var(--color-gold); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(14,30,56,0.25);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover   { background: var(--color-gold); color: var(--color-navy); transform: translateY(-3px); }

/* ==========================================
   PAGE TRANSITION OVERLAY
   ========================================== */
.page-transition {
  position: fixed; inset: 0; z-index: 99990; background: var(--color-navy);
  opacity: 0; pointer-events: none; clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.5s cubic-bezier(0.76,0,0.24,1), opacity 0.3s ease;
}
.page-transition.active { clip-path: circle(150% at 50% 50%); opacity: 1; pointer-events: all; }

/* ==========================================
   3D CARD TILT
   ========================================== */
.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* ==========================================
   TYPEWRITER HERO LINE
   ========================================== */
.hero-typewriter-line {
  font-size: 1.15rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.75rem;
}
.typewriter-word {
  color: var(--color-gold); font-weight: 800;
  border-right: 3px solid var(--color-gold); padding-right: 2px;
  animation: blink-caret 0.8s step-end infinite;
}
@keyframes blink-caret { 0%,100% { border-color: var(--color-gold); } 50% { border-color: transparent; } }

/* ==========================================
   HERO ANIMATED MESH GRADIENT
   ========================================== */
.hero-mesh-gradient {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(184,147,42,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 20% 80%, rgba(42,92,63,0.05) 0%, transparent 55%);
  animation: meshShift 10s ease-in-out infinite alternate;
}
@keyframes meshShift {
  from { transform: scale(1) rotate(0deg); }
  to   { transform: scale(1.08) rotate(3deg); }
}

/* ==========================================
   BTN GOLD + OUTLINE LIGHT + RESUME NAV
   ========================================== */
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  color: var(--color-navy); border-color: transparent; font-weight: 800;
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(184,147,42,0.35); filter: brightness(1.08); }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.resume-nav-btn { color: var(--color-gold) !important; font-weight: 800; }

/* ==========================================
   ACHIEVEMENTS SECTION
   ========================================== */
.achievements-section { padding: 5rem 0; background: var(--bg-secondary); }
.achievements-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.achievement-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 2rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem;
  box-shadow: var(--shadow-md); transition: var(--transition-smooth);
}
.achievement-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.achievement-icon {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
}
.navy-bg  { background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light)); }
.green-bg { background: linear-gradient(135deg, var(--color-green), var(--color-green-light)); }
.gold-bg  { background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light)); }
.brown-bg { background: linear-gradient(135deg, var(--color-brown), var(--color-brown-light)); }
.achievement-title { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 800; color: var(--text-primary); }
.achievement-desc  { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }

/* ==========================================
   ACADEMIC TIMELINE
   ========================================== */
.timeline-section { padding: 5rem 0; }
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding: 1rem 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--border-strong); transform: translateX(-50%);
}
.timeline-item { position: relative; width: 50%; padding-bottom: 2.5rem; }
.timeline-item.left  { left: 0;   padding-right: 3rem; text-align: right; }
.timeline-item.right { left: 50%; padding-left:  3rem; text-align: left; }
.timeline-dot { position: absolute; top: 1.25rem; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--bg-primary); z-index: 1; }
.timeline-item.left  .timeline-dot { right: -8px; }
.timeline-item.right .timeline-dot { left:  -8px; }
.navy-dot    { background: var(--color-navy); }
.brown-dot   { background: var(--color-brown-light); }
.green-dot   { background: var(--color-green); }
.gold-dot    { background: var(--color-gold); }
.crimson-dot { background: var(--color-crimson-soft); }
.pulse-dot::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--color-crimson-soft);
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { transform:scale(1); opacity:0.7; } 50% { transform:scale(1.5); opacity:0; } }
.timeline-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 1.5rem;
  box-shadow: var(--shadow-md); transition: var(--transition-smooth);
}
.timeline-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.current-card { border-left: 3px solid var(--color-crimson-soft); }
.timeline-year   { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-gold); display: block; margin-bottom: 0.4rem; }
.current-year    { color: var(--color-crimson-soft); }
.timeline-title  { font-size: 1rem; font-weight: 800; color: var(--text-primary); margin-bottom: 0.4rem; }
.timeline-desc   { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }
.live-badge {
  display: inline-block; background: var(--color-crimson-soft); color: #fff;
  font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  padding: 0.15rem 0.5rem; border-radius: 50px; vertical-align: middle; margin-left: 0.4rem;
  animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge { 0%,100% { opacity:1; } 50% { opacity:0.65; } }

/* ==========================================
   QUOTE ROTATOR SECTION
   ========================================== */
.quote-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
}
.quote-card { max-width: 680px; margin: 0 auto; text-align: center; padding: 1rem; }
.quote-icon  { color: var(--color-gold); font-size: 2rem; margin-bottom: 1.5rem; opacity: 0.6; }
.quote-text  {
  font-family: var(--font-serif); font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  font-weight: 600; color: #fff; line-height: 1.55; margin-bottom: 1rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.quote-author { font-size: 0.85rem; font-weight: 600; color: var(--color-gold-light); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1.5rem; transition: opacity 0.4s ease; }
.quote-text.fade-out, .quote-author.fade-out { opacity: 0; transform: translateY(8px); }
.quote-dots { display: flex; justify-content: center; gap: 0.5rem; }
.quote-dot  { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.25); cursor: pointer; transition: all 0.3s ease; }
.quote-dot.active { background: var(--color-gold); width: 20px; border-radius: 4px; }

/* ==========================================
   RESUME PAGE STYLES
   ========================================== */
.resume-container { padding: 3rem 0 5rem; }
.resume-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); max-width: 960px; margin: 0 auto;
}
.resume-header {
  display: flex; align-items: center; gap: 2rem;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  padding: 2.5rem;
}
.resume-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; object-position: top; border: 3px solid var(--color-gold); }
.resume-name     { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 900; color: #fff; margin-bottom: 0.2rem; }
.resume-headline { font-size: 1rem; color: var(--color-gold-light); font-weight: 600; margin-bottom: 0.75rem; }
.resume-contact-row { display: flex; gap: 1.5rem; flex-wrap: wrap; font-size: 0.82rem; color: rgba(255,255,255,0.65); font-weight: 500; }
.resume-contact-row span { display: flex; align-items: center; gap: 0.4rem; }
.resume-body   { display: grid; grid-template-columns: 1.2fr 0.8fr; }
.resume-left   { padding: 2rem 1.5rem 2rem 2rem; border-right: 1px solid var(--border-color); }
.resume-right  { padding: 2rem 2rem 2rem 1.5rem; background: var(--bg-primary); }
.resume-section { margin-bottom: 2rem; }
.resume-section-title {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: var(--color-navy); margin-bottom: 1rem;
  padding-bottom: 0.4rem; border-bottom: 2px solid var(--color-gold);
}
.resume-section-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }
.resume-edu-item  { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.resume-edu-year  { font-size: 0.75rem; font-weight: 800; color: var(--color-gold); white-space: nowrap; padding-top: 2px; min-width: 80px; }
.resume-edu-body h3 { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.resume-edu-body p  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.resume-project-item { margin-bottom: 1.25rem; }
.resume-project-item h3 { font-size: 0.9rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; }
.resume-project-item p  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }
.resume-project-tag { display: inline-block; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; padding: 0.15rem 0.6rem; border-radius: 50px; margin-bottom: 0.25rem; }
.resume-skills-grid { display: flex; flex-direction: column; gap: 0.85rem; }
.resume-skill-item  { display: flex; flex-direction: column; gap: 0.3rem; }
.resume-skill-name  { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); }
.resume-skill-bar   { height: 6px; background: var(--border-color); border-radius: 3px; overflow: hidden; }
.resume-skill-fill  {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--color-navy), var(--color-gold));
  width: 0%; transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}
.resume-lang-grid { display: flex; flex-direction: column; gap: 0.6rem; }
.resume-lang-item { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); }
.lang-level  { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.2rem 0.6rem; border-radius: 50px; }
.native      { background: rgba(184,147,42,0.15); color: var(--color-gold);   border: 1px solid rgba(184,147,42,0.3); }
.fluent      { background: rgba(14,30,56,0.1);   color: var(--color-navy);  border: 1px solid rgba(14,30,56,0.2); }
.proficient  { background: rgba(42,92,63,0.12);  color: var(--color-green); border: 1px solid rgba(42,92,63,0.25); }
.resume-activity-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.resume-activity-list li { font-size: 0.88rem; color: var(--text-secondary); display: flex; align-items: center; gap: 0.65rem; }
.resume-soft-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.soft-badge { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 50px; padding: 0.3rem 0.75rem; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); }

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
  .navbar,.page-topbar,.site-footer,.cursor-dot,.cursor-ring,
  .scroll-progress-bar,.back-to-top,.splash-screen,.page-transition { display:none !important; }
  body { background: #fff !important; }
  .resume-card { box-shadow: none !important; border: none !important; }
  .resume-skill-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ==========================================
   RESPONSIVE ADDITIONS
   ========================================== */
@media (max-width: 900px) {
  .achievements-grid   { grid-template-columns: repeat(2,1fr); }
  .timeline::before    { left: 20px; }
  .timeline-item.left,
  .timeline-item.right { left:0; width:100%; padding-left:3.5rem; padding-right:0; text-align:left; }
  .timeline-item.left  .timeline-dot { right:auto; left:12px; }
  .timeline-item.right .timeline-dot { left:12px; }
  .resume-body         { grid-template-columns: 1fr; }
  .resume-left         { border-right: none; border-bottom: 1px solid var(--border-color); }
  .resume-header       { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .achievements-grid { grid-template-columns: 1fr; }
}
