/* =========================================
   1. DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
  /* backgrounds */
  --bg-primary: #060B18;
  --bg-secondary: #0D1730;
  --bg-elevated: #101A3A;
  --border-subtle: rgba(255,255,255,0.08);
  --border-blue: rgba(79,143,232,0.35);

  /* text */
  --text-primary: #F5F7FA;
  --text-secondary: #A9B4CC;
  --text-tertiary: #7C87A3;

  /* blue accent */
  --accent-blue: #4F8FE8;
  --accent-blue-soft: rgba(79,143,232,0.15);
  --accent-blue-glow: rgba(79,143,232,0.45);

  /* gold accent */
  --accent-gold: #D9A83E;
  --accent-gold-light: #F0D28C;
  --accent-gold-dark: #8A6423;
  --gold-gradient: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold), var(--accent-gold-dark));

  /* radii / shadow */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-card: 0 8px 30px rgba(0,0,0,0.45);

  /* typography */
  --font-en: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-si: 'Noto Sans Sinhala', 'Plus Jakarta Sans', sans-serif;
  
  /* layout */
  --container-max: 1280px;
  --section-pad-y: clamp(40px, 8vw, 100px);
}

/* =========================================
   2. RESET & BASE
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
}
/* Font fallback for Sinhala */
[lang="si"], .si-text {
  font-family: var(--font-si);
  letter-spacing: normal;
}
/* Sinhala body needs looser line height */
p[lang="si"] {
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 4px;
}
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Global Texture */
.global-texture {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.3;
  pointer-events: none;
}

/* Common Components */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(79, 143, 232, 0.2), rgba(30, 64, 130, 0.35));
  color: var(--accent-blue);
  border: 1px solid rgba(79, 143, 232, 0.3);
  box-shadow: 0 2px 12px rgba(79, 143, 232, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(79, 143, 232, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.icon-badge.small-badge {
  width: 32px;
  height: 32px;
}
.icon-badge.gold-badge {
  background: linear-gradient(145deg, rgba(217, 168, 62, 0.2), rgba(180, 130, 30, 0.35));
  color: var(--accent-gold);
  border: 1px solid rgba(217, 168, 62, 0.35);
  box-shadow: 0 2px 12px rgba(217, 168, 62, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}
.icon-badge.gold-badge:hover {
  box-shadow: 0 4px 20px rgba(217, 168, 62, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.icon-badge.gold-ring {
  background: linear-gradient(145deg, rgba(217, 168, 62, 0.08), rgba(180, 130, 30, 0.18));
  border: 1px solid rgba(217, 168, 62, 0.45);
  color: var(--accent-gold);
  box-shadow: 0 2px 12px rgba(217, 168, 62, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.06);
}
.icon-badge.gold-ring:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(217, 168, 62, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}
.icon-badge svg {
  filter: drop-shadow(0 0 2px currentColor);
  transition: filter 0.3s ease;
}
.icon-badge:hover svg {
  filter: drop-shadow(0 0 4px currentColor);
}
.image-placeholder {
  background-color: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-blue);
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px var(--accent-blue-soft);
}
.aspect-hero { aspect-ratio: 1 / 1; }
.aspect-portrait { aspect-ratio: 9 / 11; }
.aspect-landscape { aspect-ratio: 10 / 7; }

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s, backdrop-filter 0.3s;
}
.site-header.scrolled {
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-placeholder {
  width: 44px;
  height: 44px;
  background: var(--bg-elevated);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: var(--text-tertiary);
  border: 1px solid var(--border-subtle);
}
.wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.desktop-nav {
  display: none;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-login {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255,255,255,0.25);
}
.icon-dot {
  width: 8px;
  height: 8px;
  background: var(--bg-primary);
  border-radius: 50%;
}
.menu-toggle {
  display: block;
  padding: 8px;
  color: var(--text-primary);
}

/* Mobile Menu */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
  visibility: hidden;
}
.mobile-menu-overlay.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
}
.menu-close {
  color: var(--text-primary);
  padding: 8px;
}
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav a {
  font-size: 24px;
  font-weight: 600;
  display: block;
  padding-block: 8px;
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .btn-login { display: flex; }
  .desktop-nav { display: block; }
  
  .nav-pill {
    display: flex;
    align-items: center;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    gap: 16px;
  }
  .nav-pill a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
  }
  .nav-pill a:hover {
    color: var(--text-primary);
  }
  .nav-pill .divider {
    width: 1px;
    height: 14px;
    background: var(--border-subtle);
  }
}

/* =========================================
   4. SECTIONS
   ========================================= */
/* Physics Background Layer */
/* Deep Space & Physics Background Layer */
.physics-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Deep Space Starfield (Static Night Sky with High Star Density) */
.stars-field-1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.5px;
  height: 1.5px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0.85;
  box-shadow: 
    35px 25px #ffffff, 85px 120px #e0edff, 145px 55px #ffffff, 210px 170px #ffffff, 
    275px 40px #e0edff, 345px 110px #ffffff, 415px 55px #ffffff, 490px 160px #e0edff, 
    565px 20px #ffffff, 640px 120px #ffffff, 715px 70px #e0edff, 785px 155px #ffffff,
    860px 35px #ffffff, 930px 105px #e0edff, 1005px 50px #ffffff, 1080px 170px #ffffff,
    1155px 30px #e0edff, 1230px 135px #ffffff, 1305px 65px #ffffff, 1380px 165px #e0edff,
    1455px 35px #ffffff, 1530px 120px #ffffff, 1605px 55px #e0edff, 1680px 155px #ffffff,
    1755px 25px #ffffff, 1830px 115px #e0edff, 1905px 45px #ffffff,
    55px 250px #ffffff, 130px 350px #e0edff, 205px 280px #ffffff, 280px 390px #ffffff,
    355px 260px #e0edff, 435px 370px #ffffff, 515px 290px #ffffff, 595px 400px #e0edff,
    675px 280px #ffffff, 755px 380px #ffffff, 835px 310px #e0edff, 915px 420px #ffffff,
    995px 290px #ffffff, 1075px 400px #e0edff, 1155px 320px #ffffff, 1235px 430px #ffffff,
    1315px 300px #e0edff, 1395px 410px #ffffff, 1475px 330px #ffffff, 1555px 440px #e0edff,
    1635px 340px #ffffff, 1715px 450px #ffffff, 1795px 310px #e0edff, 1875px 420px #ffffff,
    75px 480px #ffffff, 175px 550px #e0edff, 295px 500px #ffffff, 415px 570px #ffffff,
    550px 490px #e0edff, 670px 560px #ffffff, 795px 510px #ffffff, 915px 580px #e0edff,
    1040px 520px #ffffff, 1160px 570px #ffffff, 1285px 500px #e0edff, 1405px 580px #ffffff,
    1530px 520px #ffffff, 1650px 590px #e0edff, 1775px 530px #ffffff, 1890px 600px #ffffff;
}

.stars-field-2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  background: #c5dcff;
  border-radius: 50%;
  opacity: 0.75;
  box-shadow: 
    20px 75px #c5dcff, 70px 190px #ffffff, 130px 105px #c5dcff, 190px 15px #ffffff, 
    260px 220px #c5dcff, 325px 75px #ffffff, 390px 200px #c5dcff, 460px 30px #ffffff, 
    530px 140px #c5dcff, 605px 65px #ffffff, 670px 190px #c5dcff, 740px 40px #ffffff,
    815px 120px #c5dcff, 885px 200px #ffffff, 955px 65px #c5dcff, 1025px 150px #ffffff,
    1095px 20px #c5dcff, 1170px 210px #ffffff, 1240px 95px #c5dcff, 1315px 220px #ffffff,
    1385px 60px #c5dcff, 1455px 155px #ffffff, 1525px 30px #c5dcff, 1600px 200px #ffffff,
    1665px 75px #c5dcff, 1735px 180px #ffffff, 1805px 40px #c5dcff, 1875px 195px #ffffff,
    30px 330px #c5dcff, 100px 430px #ffffff, 170px 345px #c5dcff, 245px 445px #ffffff,
    315px 335px #c5dcff, 390px 440px #ffffff, 470px 355px #c5dcff, 550px 455px #ffffff,
    630px 345px #c5dcff, 700px 445px #ffffff, 780px 375px #c5dcff, 860px 465px #ffffff,
    940px 355px #c5dcff, 1015px 455px #ffffff, 1095px 385px #c5dcff, 1175px 475px #ffffff,
    1255px 365px #c5dcff, 1335px 465px #ffffff, 1415px 395px #c5dcff, 1495px 485px #ffffff,
    1575px 375px #c5dcff, 1645px 475px #ffffff, 1725px 385px #c5dcff, 1805px 490px #ffffff;
}

.stars-field-3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0.9;
  box-shadow: 
    110px 60px 1px #ffffff, 370px 150px 1px #ffffff, 690px 90px 1px #ffffff, 
    970px 180px 1px #ffffff, 1280px 40px 1px #ffffff, 1590px 130px 1px #ffffff,
    180px 410px 1px #ffffff, 520px 330px 1px #ffffff, 840px 460px 1px #ffffff, 
    1210px 360px 1px #ffffff, 1510px 480px 1px #ffffff, 1760px 390px 1px #ffffff,
    240px 580px 1px #ffffff, 620px 610px 1px #ffffff, 1080px 590px 1px #ffffff, 
    1440px 610px 1px #ffffff, 1820px 570px 1px #ffffff;
}

.cosmic-sparkle {
  position: absolute;
  color: #8bbfff;
  text-shadow: 0 0 4px rgba(139, 191, 255, 0.8), 0 0 10px rgba(139, 191, 255, 0.4);
  font-size: clamp(0.75rem, 1.4vw, 1.05rem);
  opacity: 0.7;
  user-select: none;
}
.sparkle-1 { top: 7%; left: 16%; }
.sparkle-2 { top: 10%; right: 24%; font-size: 1.2rem; color: #ffd67a; text-shadow: 0 0 8px rgba(255,214,122,0.8); }
.sparkle-3 { top: 35%; left: 2.5%; }
.sparkle-4 { bottom: 12%; right: 18%; font-size: 1.1rem; }
.sparkle-5 { bottom: 8%; left: 24%; color: #b8d7ff; }
.sparkle-6 { top: 18%; right: 5%; }

.formula {
  position: absolute;
  font-family: var(--font-en);
  color: var(--accent-blue);
  opacity: 0.35;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  white-space: nowrap;
  font-style: italic;
  text-shadow: 0 0 12px rgba(79, 143, 232, 0.5);
  user-select: none;
}
.f-top-left { top: 6%; left: 4%; }
.f-top-mid-left { top: 8%; left: 50%; transform: translateX(-50%); }
.f-top-right { top: 7%; right: 5%; }
.f-mid-left { top: 24%; left: 40%; }
.f-mid-left-2 { top: 58%; left: 4%; }
.f-mid-right { top: 35%; right: 3%; }
.f-bottom-left { bottom: 8%; left: 8%; }
.f-bottom-mid { bottom: 5%; right: 42%; }
.f-bottom-right { bottom: 30%; right: 5%; }

.bg-diagram {
  position: absolute;
  color: var(--accent-blue);
  opacity: 0.3;
  filter: drop-shadow(0 0 10px rgba(79, 143, 232, 0.4));
  pointer-events: none;
  user-select: none;
}
.diagram-vector { top: 4%; left: 30%; transform: scale(1.3); }
.diagram-atom { top: 5%; right: 26%; transform: scale(1.4); }
.diagram-prism { top: 26%; right: 14%; transform: scale(1.4); }
.diagram-pendulum { top: 28%; left: 6%; transform: scale(1.3); }
.diagram-orbit { bottom: 35%; left: 28%; transform: scale(1.35); }
.diagram-sine { bottom: 4%; left: 38%; transform: scale(1.25); }
.diagram-magnetic { top: 48%; right: 22%; transform: scale(1.4); }
.diagram-polar { bottom: 12%; right: 10%; transform: scale(1.35); }

@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float { animation: floating 5s ease-in-out infinite; }
.float-slow { animation: floating 8s ease-in-out infinite; }
.float-fast { animation: floating 3.5s ease-in-out infinite; }

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding-top: clamp(12px, 2vw, 24px);
  padding-bottom: calc(var(--section-pad-y) / 2);
  display: flex;
  flex-direction: column;
  gap: 40px;
  background-color: #030611;
  background-image: 
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(18, 32, 68, 0.35), transparent 75%),
    radial-gradient(circle at 85% 20%, rgba(30, 48, 98, 0.2), transparent 50%),
    radial-gradient(circle at 15% 75%, rgba(20, 36, 78, 0.25), transparent 50%);
  overflow: hidden;
}
.hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.hero-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  width: 100%;
  margin-block: auto;
}
.hero-eyebrow {
  color: var(--text-secondary);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 600;
  text-align: center;
}
.hero-title {
  font-size: clamp(3.2rem, 9.5vw, 6.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  text-shadow: 0 0 15px rgba(79, 143, 232, 0.3);
  text-align: center;
}
.hero-title-flare {
  width: 100%;
  max-width: 520px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(79, 143, 232, 0.9) 20%, #ffffff 50%, rgba(79, 143, 232, 0.9) 80%, transparent);
  box-shadow: 0 0 20px rgba(79, 143, 232, 0.95), 0 0 35px rgba(79, 143, 232, 0.75), 0 0 60px rgba(79, 143, 232, 0.5);
  margin-top: 10px;
  margin-inline: auto;
}
.hero-image-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}
.hero-name-card {
  background: rgba(13, 23, 48, 0.9);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--accent-blue);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  box-shadow: 0 0 25px rgba(79, 143, 232, 0.4);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  z-index: 5;
  text-align: center;
  width: max-content;
  max-width: calc(100% - 40px);
}
.hero-name-card h2 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.hero-credentials {
  color: var(--text-secondary);
  font-size: clamp(0.875rem, 2vw, 1rem);
}
.hero-image {
  width: 100%;
}
.hero-image .image-placeholder {
  border: none;
  box-shadow: none;
  -webkit-mask-image: radial-gradient(circle at center, black 70%, transparent 95%);
  mask-image: radial-gradient(circle at center, black 70%, transparent 95%);
}

.hero-features {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin-top: clamp(60px, 10vw, 120px);
  align-self: flex-start;
}
.feature-strip {
  background: rgba(13, 23, 48, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(79, 143, 232, 0.35);
  padding: 12px 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  align-items: center;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.feature-item .icon-badge {
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item .icon-badge:hover {
  transform: none;
  box-shadow: none;
}
.feature-item .icon-badge svg {
  width: clamp(30px, 2.4vw, 36px);
  height: clamp(30px, 2.4vw, 36px);
  color: var(--accent-blue);
  stroke-width: 1.75;
  filter: none;
}
.feature-text {
  font-weight: 600;
  font-size: clamp(0.6875rem, 0.9vw, 0.8125rem);
  line-height: 1.15;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .hero-main {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
  }
  .hero-content {
    width: 55%;
    justify-content: space-between;
  }
  .hero-image-wrapper {
    width: 42%;
    position: relative;
    margin-top: -16px;
    margin-bottom: 0;
  }
  .hero-image {
    width: 100%;
  }
  .hero-name-card {
    position: absolute;
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translate(-50%, 50%);
    z-index: 5;
  }
  .hero-features {
    align-self: flex-start;
    max-width: 100%;
    margin-top: auto;
    padding-top: 40px;
  }
  .feature-strip {
    grid-template-columns: repeat(4, 1fr);
    padding: 14px 18px;
    gap: 10px 16px;
  }
}

/* --- About Section --- */
.about-section {
  padding-block: var(--section-pad-y);
}
.section-heading-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.section-title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
}
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.about-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-item {
  display: flex;
  gap: 14px;
}
.about-item-content h3 {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 700;
  margin-bottom: 4px;
}
.about-item-content p {
  color: var(--text-secondary);
  font-size: clamp(0.8125rem, 1vw, 0.9rem);
  line-height: 1.65;
}
.custom-bullets {
  color: var(--text-secondary);
  list-style: disc;
  padding-left: 20px;
  font-size: clamp(0.8125rem, 1vw, 0.9rem);
}
.custom-bullets li {
  margin-bottom: 3px;
  line-height: 1.6;
}
.gold-text {
  color: var(--accent-gold) !important;
}
.about-image-wrapper {
  width: 100%;
}

@media (min-width: 768px) {
  .about-layout {
    flex-direction: row;
    align-items: center;
  }
  .about-list {
    width: 55%;
  }
  .about-image-wrapper {
    width: 40%;
    margin-left: auto;
  }
}

/* --- Newton's College Section --- */
.newtons-section {
  background: var(--bg-secondary);
  padding-block: var(--section-pad-y);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.newtons-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.newtons-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.newtons-left h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.newtons-left h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}
.newtons-left p {
  color: var(--text-secondary);
  font-size: clamp(0.8125rem, 1vw, 0.9rem);
  line-height: 1.65;
}
.newtons-image {
  margin-block: 16px;
}
.pull-quote {
  display: flex;
  gap: 16px;
  background: var(--bg-primary);
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-blue);
}
.pull-quote p {
  font-size: clamp(0.8125rem, 1vw, 0.9rem);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.65;
}
.quote-attribution {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--text-primary);
}

.newtons-right {
  display: flex;
  flex-direction: column;
}
.differentiator-board {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: clamp(24px, 4vw, 40px);
}
.differentiator-header {
  margin-bottom: 24px;
}
.differentiator-header h4 {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 700;
  margin-bottom: 4px;
}
.accent-line {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: clamp(0.8125rem, 1vw, 0.9rem);
}
.differentiator-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.diff-card {
  display: flex;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px var(--accent-blue-glow);
}
.diff-content h5 {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 2px;
}
.en-gloss {
  font-size: 0.8125rem;
  color: var(--accent-blue);
  opacity: 0.8;
  margin-bottom: 6px;
}
.diff-desc {
  font-size: clamp(0.8125rem, 1vw, 0.9rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (min-width: 1024px) {
  .newtons-layout {
    flex-direction: row;
  }
  .newtons-left {
    width: 45%;
  }
  .newtons-right {
    width: 50%;
    margin-left: auto;
  }
}

/* --- Reviews Section --- */
.reviews-section {
  position: relative;
  padding-block: var(--section-pad-y);
  text-align: center;
}
.reviews-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.reviews-header h2 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.sparkle {
  color: cyan;
  font-size: 1.5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
  margin-bottom: 56px;
}
.testimonial-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}
.quote-icon {
  color: var(--accent-blue);
  opacity: 0.5;
  margin-bottom: 12px;
}
.close-quote {
  position: absolute;
  bottom: 16px;
  right: 32px;
  margin: 0;
  transform: rotate(180deg);
}
.testimonial-card p {
  color: var(--text-secondary);
  font-size: clamp(0.8125rem, 1vw, 0.9rem);
  line-height: 1.65;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 34px;
  height: 34px;
  background: linear-gradient(145deg, rgba(79, 143, 232, 0.15), rgba(30, 64, 130, 0.25));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  border: 1px solid rgba(79, 143, 232, 0.3);
  box-shadow: 0 2px 8px rgba(79, 143, 232, 0.12);
}
.author-name {
  font-weight: 600;
  font-size: 0.8125rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Gallery Strip */
.gallery-container {
  width: 100%;
  overflow: hidden;
  padding-block: 24px;
}
.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: 20px;
  /* hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-item {
  flex: 0 0 80%;
  scroll-snap-align: center;
  transition: transform 0.3s, opacity 0.3s;
}

@media (min-width: 1024px) {
  .gallery-track {
    overflow-x: visible;
    justify-content: center;
    align-items: center;
  }
  .gallery-item {
    flex: 0 0 200px;
    opacity: 0.5;
    transform: scale(0.8);
    position: relative;
    z-index: 1;
  }
  .center-item {
    flex: 0 0 400px;
    opacity: 1;
    transform: scale(1);
    z-index: 3;
    border: 4px solid white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
  }
  .item-2, .item-4 {
    z-index: 2;
    transform: scale(0.9);
    opacity: 0.8;
  }
  /* Offset for fanned effect */
  .item-1 { transform: translateX(20%) scale(0.8); }
  .item-2 { transform: translateX(10%) scale(0.9); }
  .item-4 { transform: translateX(-10%) scale(0.9); }
  .item-5 { transform: translateX(-20%) scale(0.8); }
}

/* --- Footer / Contact Section --- */
.site-footer {
  background: #030611;
  padding-top: var(--section-pad-y);
  padding-bottom: 32px;
  position: relative;
  border-top: 1px solid rgba(79, 143, 232, 0.15);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(217, 168, 62, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.25;
  pointer-events: none;
}
.footer-header {
  text-align: center;
  margin-bottom: 48px;
}
.footer-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.2;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.footer-rule {
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* Contact Cards Grid */
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
@media (min-width: 600px) {
  .contact-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .contact-cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.contact-card {
  background: rgba(13, 23, 48, 0.5);
  border: 1px solid rgba(217, 168, 62, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 168, 62, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(217, 168, 62, 0.15);
}
.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.contact-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-gold);
}
.contact-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.contact-link {
  font-size: clamp(0.8125rem, 1vw, 0.9rem);
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s ease;
}
.contact-link:hover {
  color: var(--accent-gold);
}
.contact-separator {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}
.contact-val {
  font-size: clamp(0.8125rem, 1vw, 0.9rem);
  color: var(--text-primary);
  font-weight: 500;
}

/* Social Channels Bar */
.social-channels-bar {
  background: rgba(13, 23, 48, 0.4);
  border: 1px solid rgba(79, 143, 232, 0.2);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  margin-bottom: 44px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.social-bar-heading {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.social-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 768px) {
  .social-links-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(16, 26, 58, 0.6);
  border: 1px solid rgba(79, 143, 232, 0.25);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.social-btn:hover {
  transform: translateY(-2px);
  background: rgba(79, 143, 232, 0.2);
  border-color: var(--accent-blue);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(79, 143, 232, 0.3);
}

/* Footer Bottom Bar */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.copyright-text {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.cred-note {
  color: var(--text-secondary);
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--accent-gold);
}
.footer-links .back-to-top {
  color: var(--accent-blue);
  font-weight: 600;
}

/* Accessibility & Utils */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
