/* ==========================================================================
   PHYSICS WITH INDUNIL - LMS WEB APPLICATION
   Light Mode Design System (Matching Reference Aesthetic)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. COLOR PALETTE & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Light Theme with Soft Reddish / Rose Tint (Exact Reference Mood) */
  --bg-page: #f8faff;
  --bg-gradient: linear-gradient(135deg, #eaf2ff 0%, #fdf5f7 40%, #fdecef 70%, #fae1e6 100%);
  
  --bg-card: #ffffff;
  --border-card: rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 30px rgba(120, 50, 70, 0.06);
  --shadow-card-hover: 0 16px 40px rgba(120, 50, 70, 0.12);

  --text-dark: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Reference Accent Colors */
  --color-brand-blue: #0077b6;
  --color-brand-red: #e63946;
  --color-brand-orange: #f77f00;
  --color-btn-dark: #1b1e36;
  --color-btn-dark-hover: #2d325a;
  
  /* Connector Line */
  --connector-color: #553c65;

  /* Typography */
  --font-en-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-si-display: 'Noto Sans Sinhala', 'Gemunu Libre', sans-serif;
  --font-si-body: 'Noto Sans Sinhala', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. BASE RESET
   -------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  background: var(--bg-gradient);
  background-color: #fdf5f7;
  color: var(--text-primary);
  font-family: var(--font-en-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* --------------------------------------------------------------------------
   3. AMBIENT PASTEL & REDDISH GLOWS
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-blue-left {
  top: -10%;
  left: -8%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(160, 215, 255, 0.5) 0%, transparent 70%);
}

.glow-red-right {
  top: 15%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 175, 195, 0.55) 0%, transparent 70%);
}

.glow-rose-bottom {
  bottom: -15%;
  left: 25%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(255, 190, 205, 0.45) 0%, transparent 70%);
}

.physics-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   4. NAVIGATION BAR (SEAMLESS SITE BACKGROUND & SCROLL DOCK)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating Middle Dock on Scroll with soft translucent blending */
.navbar.scrolled {
  top: 16px;
  width: min(92%, 1240px);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(244, 63, 94, 0.18);
  box-shadow: 0 14px 40px rgba(180, 70, 95, 0.1);
}

.nav-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 1.2rem 2.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  transition: padding 0.35s ease;
}

.navbar.scrolled .nav-container {
  padding: 0.65rem 1.8rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.logo-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-fast);
}

.brand-logo:hover .nav-logo-img {
  transform: scale(1.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-en-display);
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--text-dark);
}

.brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-brand-orange);
  text-transform: uppercase;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0.2rem;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-dark);
  font-weight: 700;
}

.link-indicator {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: width var(--transition-medium);
}

.nav-link:hover .link-indicator,
.nav-link.active .link-indicator {
  width: 100%;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Reference Exact Navy DASHBOARD Button */
.btn-dashboard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.65rem;
  border-radius: 50px;
  background: var(--color-btn-dark);
  color: #ffffff;
  font-family: var(--font-en-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(27, 30, 54, 0.22);
  transition: all var(--transition-fast);
}

.btn-dashboard:hover {
  background: var(--color-btn-dark-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 30, 54, 0.32);
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger-btn .bar {
  width: 24px;
  height: 2.5px;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition-medium);
}

.hamburger-btn.open .bar1 { transform: translateY(7.5px) rotate(45deg); }
.hamburger-btn.open .bar2 { opacity: 0; }
.hamburger-btn.open .bar3 { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  background: rgba(253, 245, 247, 0.98);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.5rem 2rem;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-drawer-cta .w-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 120px);
  padding-top: 120px;
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 460px 40px 1fr;
  align-items: center;
  gap: 2.5rem;
}

/* --------------------------------------------------------------------------
   6. HERO LEFT: 3D COIN / PEDESTAL (MATCHING REFERENCE UI)
   -------------------------------------------------------------------------- */
.hero-left-wrapper {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.hero-card-3d {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

/* 3D Round Coin Frame */
.pedestal-coin-frame {
  position: relative;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e4e7ee, #cdd2de);
  padding: 12px;
  box-shadow: 
    -15px 15px 30px rgba(0, 0, 0, 0.12),
    8px -8px 20px rgba(255, 255, 255, 0.9),
    inset 2px 2px 4px rgba(255, 255, 255, 0.8),
    inset -2px -2px 4px rgba(0, 0, 0, 0.15);
  transform: rotateY(-18deg) rotateX(6deg);
  transition: transform 0.3s ease;
}

.hero-card-3d:hover .pedestal-coin-frame {
  transform: rotateY(-8deg) rotateX(2deg) scale(1.02);
}

.coin-rim-outer {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  padding: 6px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.08);
}

.coin-rim-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lecturer-image-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.lecturer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.coin-soft-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.18) 0%, transparent 70%);
  z-index: -1;
  filter: blur(25px);
}

.coin-drop-shadow {
  position: absolute;
  bottom: -20px;
  width: 70%;
  height: 25px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(8px);
}

/* --------------------------------------------------------------------------
   7. CENTER CONNECTOR LINE (EXACT MATCH TO REFERENCE UI)
   -------------------------------------------------------------------------- */
.hero-connector {
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.connector-line {
  flex: 1;
  width: 1.5px;
  background: var(--connector-color);
  opacity: 0.55;
  position: relative;
}

.connector-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--connector-color);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   8. HERO RIGHT: HEADINGS, SINHALA, CLEAN STATS & POWERED BY
   -------------------------------------------------------------------------- */
.hero-right-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  padding-left: 0.5rem;
}

.hero-typography {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-main-title {
  font-family: var(--font-en-display);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  text-transform: uppercase;
}

.hero-sub-title {
  font-family: var(--font-en-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}

.hero-sinhala-headline {
  margin-top: 0.2rem;
}

.sinhala-title {
  font-family: var(--font-si-display);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  color: #0f172a;
  display: block;
}

.hero-sinhala-desc {
  font-family: var(--font-si-body);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-dark);
  max-width: 580px;
}

/* Clean Stat Cards (Matching Reference UI: Exact 2 cards, clean white background) */
.hero-stats-grid {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.4rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 1rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #1e2238;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.stat-details {
  display: flex;
  flex-direction: column;
}

.stat-number-row {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.stat-number {
  font-family: var(--font-en-display);
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.1;
}

.stat-plus {
  font-family: var(--font-en-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-dark);
}

.stat-label {
  font-family: var(--font-en-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* CTA Buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  border: none;
  background: var(--color-btn-dark);
  color: #ffffff;
  font-family: var(--font-si-body);
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(27, 30, 54, 0.2);
  transition: all var(--transition-fast);
}

.btn-primary-action:hover {
  background: var(--color-btn-dark-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 30, 54, 0.3);
}

/* POWERED BY EDVIZE LMS (EXACT MATCH TO REFERENCE) */
.powered-by-wrapper {
  margin-top: 0.5rem;
}

.powered-by-container {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.lightning-icon {
  color: #f59e0b;
  font-size: 0.9rem;
}

.powered-text {
  font-family: var(--font-en-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-dark);
}

.lms-logo-box {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lms-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   9. FOOTER (SEAMLESS SITE BACKGROUND MATCH)
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 10;
  background: transparent;
  border-top: 1px solid rgba(244, 63, 94, 0.08);
  padding: 2.2rem 2.5rem;
}

.footer-container {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.footer-brand strong {
  font-family: var(--font-en-display);
  font-size: 0.95rem;
  color: var(--text-dark);
  display: block;
}

.footer-brand p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-center p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.powered-mini {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lms-mini-icon {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .hero-container {
    grid-template-columns: 380px 30px 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 1rem;
  }
  .hero-connector {
    display: none;
  }
  .hero-left-wrapper {
    order: 1;
  }
  .hero-right-wrapper {
    order: 2;
    text-align: center;
    align-items: center;
  }
  .hero-stats-grid {
    justify-content: center;
  }
  .hero-cta-group {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .navbar.scrolled {
    width: 94%;
    top: 12px;
    border-radius: 30px;
  }
  .nav-container {
    padding: 0.8rem 1.2rem;
  }
  .hero-section {
    padding-top: 95px;
  }
  .pedestal-coin-frame {
    width: 290px;
    height: 290px;
  }
  .hero-stats-grid {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .stat-card {
    width: 100%;
    justify-content: center;
  }
}
