/* ==========================================================================
   POORNAPRAJNA CENTRE FOR POPULARISATION OF SCIENCE & TECHNOLOGY (PCPST)
   GLOBAL MODERN DESIGN SYSTEM & PRODUCTION STYLESHEET
   ========================================================================== */

/* CSS Variables with Local & System Fallback Fonts */
:root {
  --color-primary: #00D26A;
  --color-primary-hover: #00B359;
  --color-primary-light: #E6FBF1;
  --color-primary-glow: rgba(0, 210, 106, 0.35);
  
  --color-navy-950: #060D1F;
  --color-navy-900: #0B132B;
  --color-navy-850: #101C3D;
  --color-navy-800: #1C2541;
  --color-navy-700: #3A506B;
  
  --color-slate-900: #0F172A;
  --color-slate-800: #1E293B;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748B;
  --color-slate-400: #94A3B8;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;
  --color-slate-50: #F8FAFC;
  
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-slate-800);
  background-color: #FFFFFF;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-slate-900);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   RESPONSIVE GLOBAL CONTAINER SYSTEM (Apple-Style Spacious Layout)
   ========================================================================== */
.container,
.container-custom {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1440px) {
  .container,
  .container-custom {
    max-width: 1500px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1680px) {
  .container,
  .container-custom {
    max-width: 1560px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container,
  .container-custom {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container,
  .container-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 360px) {
  .container,
  .container-custom {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* ==========================================================================
   GLASSMORPHISM DESIGN SYSTEM
   ========================================================================== */

/* Navbar Glass */
.glass-nav {
  background: rgba(11, 19, 43, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s var(--ease-spring);
}

.glass-nav.scrolled {
  background: rgba(6, 13, 31, 0.94);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(0, 210, 106, 0.2);
}

/* Responsive Navbar Brand Typography */
.navbar-brand-title {
  font-size: clamp(0.72rem, 3vw, 1.05rem);
  line-height: 1.2;
}

.navbar-brand-subtitle {
  font-size: clamp(0.55rem, 2.2vw, 0.775rem);
  line-height: 1.25;
}

@media (min-width: 1281px) {
  .navbar-brand-title {
    font-size: 1rem;
    white-space: nowrap;
  }
  .navbar-brand-subtitle {
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .glass-nav .container-custom {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }
}

@media (max-width: 360px) {
  .glass-nav .container-custom {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .navbar-brand-title {
    font-size: 0.72rem;
  }
  .navbar-brand-subtitle {
    font-size: 0.55rem;
  }
}

/* 1280px Responsive Navbar Navigation Switch */
.desktop-nav-menu,
.desktop-nav-cta {
  display: flex !important;
}

.mobile-nav-toggle {
  display: none !important;
}

@media (max-width: 1280px) {
  .desktop-nav-menu,
  .desktop-nav-cta {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: flex !important;
  }
}

/* Light Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 0 1px 1px rgba(255, 255, 255, 0.8) inset;
  border-radius: 1.25rem;
}

/* Premium Card (Alternative clean white with border glow) */
.premium-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04);
  border-radius: 1.25rem;
  transition: all 0.35s var(--ease-spring);
}

.premium-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08), 0 0 20px rgba(0, 210, 106, 0.12);
  border-color: rgba(0, 210, 106, 0.4);
}

/* Dark Glass Card (Used in Achievements & Dark Sections) */
.glass-card-dark {
  background: rgba(16, 28, 61, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(255, 255, 255, 0.08) inset;
  border-radius: 1.25rem;
  transition: all 0.35s var(--ease-spring);
}

.glass-card-dark:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 106, 0.45);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 210, 106, 0.2);
}

/* Glass Badge / Pill */
.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(0, 210, 106, 0.12);
  border: 1px solid rgba(0, 210, 106, 0.3);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   BUTTON DESIGN SYSTEM
   ========================================================================== */

/* Primary Emerald Button */
.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00D26A 0%, #00B359 100%);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.625rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 210, 106, 0.35);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #05E576 0%, #00C462 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 210, 106, 0.5);
  color: #FFFFFF;
}

/* Glass Dark Button */
.btn-glass-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.625rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}

.btn-glass-dark:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #FFFFFF;
}

/* Glass Light Button */
.btn-glass-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(11, 19, 43, 0.04);
  color: var(--color-navy-900);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.625rem;
  border-radius: 9999px;
  border: 1px solid rgba(11, 19, 43, 0.12);
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
}

.btn-glass-light:hover {
  background: rgba(0, 210, 106, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   SPECIAL GRADIENTS & TEXT UTILITIES
   ========================================================================== */

.text-gradient-emerald {
  background: linear-gradient(135deg, #00D26A 0%, #10B981 50%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-silver {
  background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-divider-gradient {
  height: 4px;
  width: 60px;
  background: linear-gradient(90deg, #3B82F6 0%, #10B981 50%, #8B5CF6 100%);
  border-radius: 9999px;
  margin: 0.75rem auto 0;
}

/* Glow Background Orbs */
.bg-glow-orb {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-emerald {
  background: rgba(0, 210, 106, 0.18);
}

.bg-glow-blue {
  background: rgba(59, 130, 246, 0.15);
}

.bg-glow-purple {
  background: rgba(139, 92, 246, 0.12);
}

/* ==========================================================================
   DROPDOWN & MOBILE DRAWER STYLES
   ========================================================================== */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  padding: 0.75rem;
  background: rgba(11, 19, 43, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s var(--ease-spring);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.active .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  color: #CBD5E1;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
  background: rgba(0, 210, 106, 0.15);
  color: #FFFFFF;
  transform: translateX(4px);
}

/* Active Nav Link Pill */
.nav-link-item {
  position: relative;
  padding: 0.5rem 0.875rem;
  color: #CBD5E1;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.nav-link-item:hover {
  color: #FFFFFF;
}

.nav-link-item.active {
  color: var(--color-primary);
}

.nav-link-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.875rem;
  right: 0.875rem;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--color-primary);
}

/* Mobile Drawer */
#mobile-menu-drawer {
  transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
}

#mobile-menu-drawer.open {
  transform: translateX(0);
  opacity: 1;
}

#mobile-menu-drawer.closed {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

/* Scroll To Top Button */
#btn-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #00D26A 0%, #00B359 100%);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 210, 106, 0.4);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.35s var(--ease-spring);
  z-index: 90;
}

#btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#btn-back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 15px 30px rgba(0, 210, 106, 0.6);
}

/* ==========================================================================
   FUTURISTIC GLASS & 3D RANK BADGES (Detail Page)
   ========================================================================== */

/* Futuristic Card */
.winner-glass-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  transition: all 0.4s var(--ease-spring);
}

.winner-glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 210, 106, 0.45);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 210, 106, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Futuristic Content Panels */
.futuristic-panel {
  background: linear-gradient(145deg, rgba(16, 28, 61, 0.95) 0%, rgba(11, 19, 43, 0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
}

/* 3D Circular Rank Badges */
.rank-badge-3d {
  position: absolute;
  top: -0.75rem;
  left: 1rem;
  z-index: 30;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  border: 2.5px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.winner-glass-card:hover .rank-badge-3d {
  transform: scale(1.1) translateY(-2px);
}

/* 1st Place Emerald Neon 3D */
.rank-badge-1st {
  background: linear-gradient(135deg, #00FF88 0%, #00B359 100%);
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.55), inset 0 2px 4px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

/* 2nd Place Orange Neon 3D */
.rank-badge-2nd {
  background: linear-gradient(135deg, #FF9F1C 0%, #E65100 100%);
  box-shadow: 0 10px 25px rgba(255, 159, 28, 0.55), inset 0 2px 4px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

/* 3rd Place Purple Neon 3D */
.rank-badge-3rd {
  background: linear-gradient(135deg, #B5179E 0%, #7209B7 100%);
  box-shadow: 0 10px 25px rgba(181, 23, 158, 0.55), inset 0 2px 4px rgba(255, 255, 255, 0.7), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

/* Background Cyber Grid */
.bg-grid-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
}

