/* Import your existing variables and enhance them */
/* 1.1 Non-Themed Root Variables */
:root {
  /* Variables that NEVER change between themes go here */
  --transition-speed: 0.3s;

  /* Accent colors can stay if they are consistent */
  --color-success: #4caf50;
  --color-warning: #ff9800;
  --color-info: #2196f3;
  --color-contact: #9c27b0;
  --accent-primary: #e44d26; /* Updated to match your orange theme */
  --accent-primary-hover: #ff6b47; /* Brighter hover state */

  /* New vibrant colors for the landing page */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-warning: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  --neon-blue: #00d4ff;
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
  --neon-green: #10b981;
  --cyber-orange: #ff6b35;
  --cyber-yellow: #f7931e;
}

/* 1.2 Dark Mode Theme (Default) */
[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #222;
  --bg-gradient-start: #1a1a1a;
  --bg-gradient-end: #0a0a0a;
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-heading: #ffffff;
  --text-disabled: #555;
  --border-primary: #333;
  --border-secondary: #444;
  --accent-primary-transparent: rgba(228, 77, 38, 0.15);
  --accent-border: rgba(228, 77, 38, 0.5);
  --accent-glow: rgba(228, 77, 38, 0.6);
  --shadow-color: rgba(0, 0, 0, 0.5);
  --shadow-strong-color: rgba(0, 0, 0, 0.7);
  --shadow-text-color: rgba(0, 0, 0, 0.8);
  --card-border-light-trans: rgba(255, 255, 255, 0.1);
  --card-bg-trans: rgba(26, 26, 26, 0.8);
  --spinner-base: rgba(228, 77, 38, 0.2);
  --spinner-top: var(--accent-primary);
  --card-sheen-gradient: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  --bg-overlay-dark: rgba(0, 0, 0, 0.9);
  --element-bg-hover: #2a2a2a;
  --color-success-bg: rgba(76, 175, 80, 0.15);
  --color-warning-bg: rgba(255, 152, 0, 0.15);
  --color-danger-bg: rgba(244, 67, 54, 0.15);
  --color-danger: #f44336;
  --color-open-source: #8b4513;
  --glass-bg: rgba(26, 26, 26, 0.3);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* 1.3 Light Mode Theme */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #e2e8f0;
  --bg-gradient-start: #ffffff;
  --bg-gradient-end: #f1f5f9;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-heading: #0f172a;
  --text-disabled: #94a3b8;
  --border-primary: #e2e8f0;
  --border-secondary: #cbd5e1;
  --accent-primary-transparent: rgba(228, 77, 38, 0.1);
  --accent-border: rgba(228, 77, 38, 0.3);
  --accent-glow: rgba(228, 77, 38, 0.4);
  --shadow-color: rgba(15, 23, 42, 0.1);
  --shadow-strong-color: rgba(15, 23, 42, 0.15);
  --shadow-text-color: rgba(15, 23, 42, 0.2);
  --card-border-light-trans: rgba(15, 23, 42, 0.1);
  --card-bg-trans: rgba(248, 250, 252, 0.9);
  --spinner-base: rgba(228, 77, 38, 0.15);
  --spinner-top: var(--accent-primary);
  --card-sheen-gradient: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0)
  );
  --bg-overlay-dark: rgba(248, 250, 252, 0.9);
  --element-bg-hover: #f1f5f9;
  --color-success-bg: rgba(76, 175, 80, 0.1);
  --color-warning-bg: rgba(255, 152, 0, 0.1);
  --color-danger-bg: rgba(244, 67, 54, 0.1);
  --color-danger: #d32f2f;
  --color-open-source: #795548;
  --glass-bg: rgba(248, 250, 252, 0.7);
  --glass-border: rgba(15, 23, 42, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
  background: var(--card-bg-trans);
  backdrop-filter: blur(30px);
  box-shadow: 0 8px 32px var(--shadow-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand .logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulse 2s ease-in-out infinite;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-heading);
}

.logo-accent {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-speed) ease;
}

.nav-link:hover::after {
  width: 100%;
}

.theme-toggle {
  cursor: pointer;
  padding: 0.5rem 0.5rem;
  border-radius: 50%;
  background: var(--element-bg-hover);
  color: var(--text-secondary);
  transition: all var(--transition-speed) ease;
  border: 1px solid var(--border-primary);
}

.theme-toggle:hover {
  background: var(--accent-primary);
  color: white;
  transform: scale(1.1);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-speed) ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.6;
  animation: float-up 5s ease-out forwards;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(120, 119, 198, 0.2) 0%,
      transparent 50%
    );
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 100vh;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: slideInUp 0.8s ease-out;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(240, 147, 251, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

.btn-ripple {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  opacity: 0;
}

@keyframes ripple {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(2);
  }
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: slideInUp 0.8s ease-out 0.8s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  font-family: "Space Grotesk", sans-serif;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.stat-separator {
  width: 1px;
  height: 40px;
  background: var(--border-primary);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.floating-card {
  position: absolute;
  padding: 1rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 8px 32px var(--shadow-color);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-speed) ease;
}

.floating-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.floating-card i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.card-1 {
  top: 10%;
  left: 20%;
  animation: float 6s ease-in-out infinite;
}

.card-2 {
  top: 30%;
  right: 10%;
  animation: float 6s ease-in-out infinite 1s;
}

.card-3 {
  bottom: 30%;
  left: 10%;
  animation: float 6s ease-in-out infinite 2s;
}

.card-4 {
  bottom: 10%;
  right: 20%;
  animation: float 6s ease-in-out infinite 3s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: rotate 20s linear infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: var(--gradient-primary);
  top: 20%;
  right: 30%;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: var(--gradient-secondary);
  bottom: 20%;
  left: 40%;
  animation-direction: reverse;
}

.shape-3 {
  width: 100px;
  height: 100px;
  background: var(--gradient-success);
  top: 60%;
  right: 60%;
  animation-duration: 15s;
}

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

/* Sections */
section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--card-sheen-gradient);
  transition: left 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px var(--shadow-color);
  border-color: var(--accent-primary);
}

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Institutions Section */
.institutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.institution-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.institution-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.institution-card.featured {
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 40px var(--accent-glow);
}

.featured-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-secondary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.institution-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px var(--shadow-color);
}

.institution-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.institution-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.institution-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.institution-count {
  display: inline-block;
  background: var(--accent-primary-transparent);
  color: var(--accent-primary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* CTA Section */
.cta {
  background: linear-gradient(
      135deg,
      var(--bg-primary) 0%,
      var(--bg-secondary) 100%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(102, 126, 234, 0.1) 0%,
      transparent 70%
    );
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-primary);
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.footer-column h4 {
  color: var(--text-heading);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-column a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color var(--transition-speed) ease;
}

.footer-column a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--element-bg-hover);
  color: var(--text-secondary);
  border-radius: 50%;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.social-links a:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

/* Animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-visual {
    order: -1;
    height: 300px;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .stat-separator {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .floating-card {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }

  .floating-card i {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .nav-container {
    padding: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
  }

  .features-grid,
  .institutions-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}
