/* 
 * OFREM Global Styles - Overhaul v2
 * Strict Brand Adherence: Dark Header, Deep Blue, Spacious Layout
 */

:root {
  /* Brand Colors */
  --color-primary: #0033cc;
  /* More vibrant blue for better contrast */
  --color-primary-dark: #001a80;
  --color-secondary: #000000;
  /* Strict Black */
  --color-accent: #cc0000;
  /* Cyan for subtle highlights */

  /* Neutrals */
  --bg-dark: #0a0f1a;
  /* Sophisticated tech dark blue/black instead of pure black */
  --bg-light: #f4f6fa;
  /* Soft off-white to reduce glare */
  --bg-gray: #ffffff;
  /* We'll use pure white for cards/sections to pop out of off-white body */
  --bg-white: #ffffff;
  --text-main: #0a0f1a;
  /* Absolute black for titles */
  --text-light: #4a5568;
  /* Darker gray for body, increased legibility */
  --text-white: #ffffff;
  --text-footer: #e0e6ed;
  /* Improved footer contrast */

  /* Spacing */
  --container-width: 1280px;
  --header-height: 90px;
  --section-padding: 4.5rem 1.5rem;
  /* Reduced from for better flow */
  --card-padding: 2rem;

  /* Shadows & Borders */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --border-light: #e5e5e5;

  /* Transitions */
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;

  /* Cinematic Gradients */
  --grad-dark: linear-gradient(180deg, #000000 0%, #050a1a 100%);
  --grad-accent: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Page Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 51, 204, 0.15);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--secondary);
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding-bottom: 2rem;
}

.grid > * {
  flex: 1 1 280px;
}

.grid-2 > * {
  flex: 1 1 340px;
}

.grid-3 > * {
  flex: 1 1 280px;
}

.grid-4 > * {
  flex: 1 1 240px;
}

@media (min-width: 769px) {
  .grid-2 > * {
    max-width: calc(50% - 1.5rem);
  }
  .grid-3 > * {
    max-width: calc(33.333% - 2rem);
  }
  .grid-4 > * {
    max-width: calc(25% - 2.25rem);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Cinematic Utilities - Light Mode Refactor */
.cinematic-section {
  padding: 4.5rem 0;
  background: transparent;
  color: var(--text-main);
  overflow: hidden;
  position: relative;
}

/* Mixed Dark Theme Overrides */
.bg-dark {
  background-color: var(--bg-dark) !important;
  color: var(--text-white) !important;
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6,
.bg-dark p,
.bg-dark .lead-text,
.bg-dark .text-light,
.bg-dark li {
  color: var(--text-white) !important;
}

.bg-dark .section-title span,
.bg-dark .card-icon,
.bg-dark .text-highlight,
.bg-dark .card-title {
  color: var(--color-accent) !important;
}

.bg-dark .glass-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(204, 0, 0, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.bg-dark .glass-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--color-accent);
}

.text-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: var(--transition);
}

.text-reveal.aos-animate {
  opacity: 1;
  transform: translateY(0);
}

.glow-text {
  text-shadow: 0 0 20px rgba(204, 0, 0, 0.3);
}

.glass-card {
  background: var(--bg-white);
  border: 2px solid rgba(0, 51, 204, 0.15);
  /* Bolder brand border */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  /* Deeper shadow for elevation on white */
  border-radius: 20px;
  padding: var(--card-padding);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.glass-card>p {
  flex-grow: 1;
  /* Pushes list or links to the bottom for proper alignment */
}

.glass-card:hover {
  box-shadow: 0 30px 60px rgba(0, 51, 204, 0.12);
  transform: translateY(-8px);
  border-color: var(--color-primary);
}

.section-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-title span {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Creative Typography Enhancements */
.cinematic-section h2 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: var(--text-main);
  word-break: break-word;
}

.cinematic-section .section-title .header-glow-shell {
  margin-bottom: 2rem;
}

.liquid-glow {
  background: linear-gradient(to right,
      var(--color-primary) 10%,
      var(--color-accent) 40%,
      #6200ea 60%,
      var(--color-primary-dark) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: liquid-flow 6s linear infinite;
  /* Faster flow */
  position: relative;
  transition: var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  /* Added clarity */
}

.liquid-glow:hover {
  letter-spacing: 0.05em;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 15px rgba(204, 0, 0, 0.4));
}

@keyframes liquid-flow {
  to {
    background-position: 200% center;
  }
}

.header-glow-shell {
  position: relative;
  display: inline-block;
}

.header-glow-shell::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(204, 0, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.header-glow-shell:hover::before {
  opacity: 1;
}

.cinematic-section .section-title span {
  font-size: 0.9rem;
  letter-spacing: 0.35em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary);
  /* Bold brand color instead of cyan */
  display: block;
  margin-bottom: 1.25rem;
}

/* Global Accent Typography */
.lead-text {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 2rem;
}

.text-highlight {
  color: var(--color-primary);
  font-weight: 700;
}

/* New Component Styles */
.card-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.card-title {
  color: var(--color-primary-dark);
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.glass-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 51, 204, 0.15), 0 0 20px rgba(204, 0, 0, 0.1);
  border-color: rgba(204, 0, 0, 0.3);
}

.glass-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  color: var(--color-accent);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.feature-list li i {
  color: var(--color-primary);
  font-size: 0.8rem;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.bg-gray {
  background-color: var(--bg-gray) !important;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);
}

.vision-mission-grid {
  gap: 4rem;
  margin-top: 6rem;
}

.discovery-hero {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  .vision-mission-grid {
    gap: 2rem;
    margin-top: 3rem;
  }

  .discovery-hero {
    text-align: left;
  }
}

.framework-item {
  margin-bottom: 2rem;
  padding: 1.5rem 2rem;
  background: var(--bg-dark);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.framework-item:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-md);
  background: var(--bg-dark);
}

.framework-item h4 {
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 700;
}

.framework-item p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-light);
}

.framework-col {
  display: flex;
  flex-direction: column;
}

.cinematic-section p {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  color: var(--text-light);
}


.text-sweep {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine-sweep 6s infinite linear;
}

@keyframes shine-sweep {
  0% {
    background-position: -100% 0;
  }

  100% {
    background-position: 100% 0;
  }
}

.text-highlight {
  position: relative;
  color: var(--color-accent);
  font-weight: 700;
  display: inline-block;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--color-primary);
  opacity: 0.3;
  z-index: -1;
  transition: var(--transition);
}

.text-highlight:hover::after {
  height: 100%;
  opacity: 0.2;
}

.phantom-text {
  position: absolute;
  font-size: clamp(8rem, 15vw, 12rem);
  font-weight: 900;
  color: var(--color-primary);
  /* Use primary color slightly opaque */
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
  line-height: 0.8;
  white-space: nowrap;
  text-transform: uppercase;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 51, 204, 0.4);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(204, 0, 0, 0.5);
}

.btn-outline {
  border-color: rgba(0, 51, 204, 0.4);
  /* rgba(255, 255, 255, 0.3) */
  color: var(--color-accent);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(204, 0, 0, 0.1);
  transform: translateY(-3px);
}

/* Navbar (Dark Theme) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-secondary);
  /* Strict Black Background */
  backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 70px;
  width: auto;
  transition: var(--transition);
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  /* High-contrast light text on dark bg */
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  color: var(--text-white);
  /* Light hamburger menu */
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 1rem) 0 2rem;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-light);
  z-index: 1;
}

/* Background Highlight */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(0, 51, 170, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 5;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-content-col {
  max-width: 650px;
}

.hero-visual-col {
  position: relative;
  height: 650px;
  overflow: hidden;
  z-index: 10;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.hero-bg-anim {
  display: flex;
  gap: 20px;
  height: 100%;
}

.hero-track {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scroll-vertical 40s linear infinite;
}

.hero-track:nth-child(even) {
  animation-direction: reverse;
  animation-duration: 50s;
}

.hero-track img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.hero-track img:hover {
  transform: scale(1.02);
  border-color: var(--color-accent);
}

@keyframes scroll-vertical {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

/* Responsive Stacking */
@media (max-width: 992px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 3rem);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content-col {
    text-align: center;
    margin: 0 auto;
  }

  .hero-visual-col {
    height: 450px;
  }

  .track-hide-mobile {
    display: none;
  }
}

/* Immersive Pillar Cards (Legacy/Specialized Layout) */
.immersive-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  min-height: 600px;
  margin-top: 5rem;
  border-radius: 20px;
  overflow: hidden;
}

.pillar-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 4rem 3rem;
  transition: var(--transition);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 2;
  transition: var(--transition);
}

.pillar-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: var(--transition);
}

.pillar-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: var(--transition);
}

.pillar-content {
  position: relative;
  z-index: 3;
  width: 100%;
  transition: var(--transition);
}

.pillar-content h3 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.pillar-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.8);
}

.pillar-card:hover {
  flex: 1.5;
}

.pillar-card:hover .pillar-bg img {
  transform: scale(1);
}

.pillar-card:hover .pillar-details {
  max-height: 200px;
  opacity: 1;
  margin-top: 1.5rem;
}

.pillar-card:hover::before {
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 51, 170, 0.7) 100%);
}

@media (max-width: 992px) {
  .pillar-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .pillar-card {
    height: 450px;
    /* Increased from 350px to ensure enough room for buttons */
    /* Slightly reduced for better mobile fit */
  }

  .pillar-details {
    max-height: 500px;
    /* Increased to ensure all content is shown */
    opacity: 1;
    margin-top: 1.5rem;
  }

  .pillar-content h3 {
    font-size: 1.75rem;
    /* Smaller font on mobile */
  }
}

/* Stats Redesign */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stat-item {
    padding: 2rem;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.stat-item {
  padding: 3rem;
  border-left: 1px solid rgba(0, 51, 170, 0.1);
  /* Updated for light background */
  transition: var(--transition);
  /* background: white; */
  background: var(--bg-dark);
  /* Give cards a white bg on gray canvas */
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.stat-item:hover {
  background: var(--bg-dark);
  /* Very light blue */
  border-left-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  display: block;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 51, 170, 0.1);
  color: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

/* Contact Page Corrections */
.contact-section {
  padding: var(--section-padding) 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 51, 170, 0.1);
}

/* CTA Section Styles */
.cta-section {
  padding: 10rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: white;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.cta-section p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.cta-section .glass-card {
  display: inline-block;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 5rem);
}

.cta-section .btn-large {
  font-size: clamp(1rem, 2vw, 1.25rem);
  padding: clamp(1rem, 2vw, 1.5rem) clamp(2rem, 4vw, 4rem);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 6rem 0;
  }
}

/* Footer */
/* Footer */
footer {
  background: var(--bg-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 2rem;
}

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col ul li a {
  color: var(--text-footer);
  /* Lighter text for contrast */
}

.footer-col ul li a:hover {
  color: white;
  text-decoration: underline;
}

/* === New Additions === */

/* Page Loader */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  /* Clean white background */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  /* Light gray border */
  border-top-color: var(--color-primary);
  /* Primary blue for contrast */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
}

.breadcrumb li+li::before {
  content: '/';
  margin: 0 0.5rem;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb a:hover {
  color: white;
}

/* Back to Top Button */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

#back-to-top:hover {
  background: white;
  color: var(--color-primary);
  transform: translateY(-5px);
}

/* Responsive Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    /* Stack on mobile */
  }
}

/* Mobile Responsiveness */
@media (max-width: 1150px) {

  /* Increased from 992px to prevent header wrapping */
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem 1.5rem;
    gap: 1.25rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    touch-action: pan-y;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.85rem 0;
  }

  .hamburger {
    display: block;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .section-title {
    margin-bottom: 3rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  /* Reduce excessive gaps on mobile */
  :root {
    --section-padding: 3rem 1.5rem;
    --card-padding: 1.5rem;
  }

  .glass-card {
    padding: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .grid {
    gap: 2rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 3rem;
  }

  .form-control {
    padding: 1.25rem 1rem;
    font-size: 1.1rem;
    /* Easier to tap and read on mobile */
  }

  .btn {
    padding: 1.25rem 2rem;
    /* Larger touch targets */
  }
}

/* Deep Mobile Responsiveness (< 480px) */
@media (max-width: 480px) {
  :root {
    --section-padding: 2.5rem 1rem;
    --card-padding: 1.25rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .grid {
    gap: 1.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .navbar .btn {
    display: none;
    /* Hide CTA in nav on tiny screens to avoid overlap */
  }

  .container {
    padding: 0 0.75rem;
  }
}

/* Floating Effect */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.card-hover:hover {
  animation: float 3s ease-in-out infinite;
  border-color: var(--color-primary);
  box-shadow: 0 20px 40px rgba(0, 51, 204, 0.15);
}

/* Alignment Refinements */
.discovery-hero {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.discovery-hero p {
  text-align: center;
  margin-bottom: 2rem;
}

/* Animations (Simple Fade) */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Modal System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
  padding: 2rem;
}

.modal-content {
  width: 100%;
  max-width: 1100px;
  height: 85vh;
  background: #f1f1f1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10001;
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-primary);
  transform: scale(1.1);
}

.pdf-viewer-container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Discourage selection/copying on the container */
.pdf-viewer-container {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Sponsors Section */
.sponsors-section {
  padding: 6rem 0;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.sponsors-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.sponsors-title span {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.75rem;
}

.sponsors-grid {
  --marquee-gap: 8rem;
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  flex-wrap: nowrap;
  white-space: nowrap;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}

.sponsors-grid:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - calc(var(--marquee-gap) / 2))); }
}

.sponsor-item {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.sponsor-logo {
  max-width: 250px;
  max-height: 120px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: var(--transition);
}

.sponsor-item:hover .sponsor-logo {
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .sponsors-grid {
    --marquee-gap: 5rem;
  }

  .sponsor-logo {
    max-width: 180px;
  }
}

/* === Premium Animation Effects === */

/* Hero Text Reveal */
@keyframes revealText {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1,
.hero-content-col h1 {
  animation: revealText 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero p,
.hero-content-col p {
  animation: revealText 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards !important;
  opacity: 0;
}

/* Button Pulse for CTAs */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease-out, height 0.6s ease-out;
}

.btn-primary:hover::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 51, 204, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(0, 51, 204, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 51, 204, 0);
  }
}

.btn-primary.pulse-cta {
  animation: pulseGlow 2s infinite !important;
}

/* Sponsor Hover Polish */
.sponsor-item:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Global Particle Background */
#tsparticles-bg {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* Ensure all content sits above particles */
.hero,
.cinematic-section,
section,
footer {
  position: relative;
  z-index: 1;
}

.navbar {
  z-index: 1000;
}

#loader,
#back-to-top {
  z-index: 9999;
}


@media (max-width: 480px) {
  .sponsors-section {
    padding: 4rem 0;
  }

  .sponsors-grid {
    --marquee-gap: 3rem;
  }

  .sponsor-logo {
    max-width: 140px;
  }
}