/* ===== RESET & BASE ===== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== DARK MODE (Default) ===== */
:root {
  --primary: #00a651;
  --primary-dark: #008c44;
  --primary-light: #33d47a;
  --primary-glow: rgba(0, 166, 81, 0.3);
  --accent: #e8762a;
  --accent-glow: rgba(232, 118, 42, 0.2);

  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2332;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(0, 166, 81, 0.3);

  --nav-scrolled-bg: rgba(10, 14, 23, 0.85);
  --hero-overlay-top: rgba(10, 14, 23, 0.3);
  --hero-overlay-mid: rgba(10, 14, 23, 0.5);
  --hero-overlay-bot: rgba(10, 14, 23, 0.95);
  --card-gradient-bottom: rgba(17, 24, 39, 0.9);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px var(--primary-glow);

  --container: 1200px;
  --nav-height: 80px;
}

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --bg-primary: #f8fafb;
  --bg-secondary: #eff3f6;
  --bg-tertiary: #e2e8ed;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(0, 0, 0, 0.03);

  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #4b5563;

  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 166, 81, 0.35);

  --nav-scrolled-bg: rgba(248, 250, 251, 0.92);
  --hero-overlay-top: rgba(10, 14, 23, 0.35);
  --hero-overlay-mid: rgba(10, 14, 23, 0.55);
  --hero-overlay-bot: rgba(248, 250, 251, 0.95);
  --card-gradient-bottom: rgba(255, 255, 255, 0.9);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(0, 166, 81, 0.15);
}

html, body {
  scroll-behavior: smooth;
  font-size: 16px;
  max-width: 100%;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

html::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Opera */
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ===== ANIMATED BACKGROUND PARTICLES ===== */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 15s infinite;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 12s;
}
.particle:nth-child(2) {
  left: 20%;
  animation-delay: 2s;
  animation-duration: 14s;
}
.particle:nth-child(3) {
  left: 35%;
  animation-delay: 4s;
  animation-duration: 11s;
}
.particle:nth-child(4) {
  left: 50%;
  animation-delay: 1s;
  animation-duration: 16s;
}
.particle:nth-child(5) {
  left: 65%;
  animation-delay: 3s;
  animation-duration: 13s;
}
.particle:nth-child(6) {
  left: 75%;
  animation-delay: 5s;
  animation-duration: 10s;
}
.particle:nth-child(7) {
  left: 85%;
  animation-delay: 2.5s;
  animation-duration: 15s;
}
.particle:nth-child(8) {
  left: 92%;
  animation-delay: 0.5s;
  animation-duration: 12s;
}

[data-theme="light"] .particle {
  opacity: 0 !important;
  animation: none;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) scale(1.5);
    opacity: 0;
  }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-socials {
  display: none;
}

.navbar.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.nav-logo .logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.nav-logo .logo-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.2)
  );
}

.nav-logo .logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.nav-logo .logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo .logo-text .brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.nav-logo .logo-text .tagline {
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}
.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  font-weight: 600 !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--primary-glow) !important;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    var(--primary)
  ) !important;
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
  transition: all 0.3s ease;
  margin-left: 8px;
}

.theme-toggle:hover {
  background: rgba(0, 166, 81, 0.1);
  border-color: var(--border-hover);
  color: var(--primary);
}

.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: flex;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: flex;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* Search Button */
.search-btn {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
  transition: all 0.3s ease;
  margin-left: 16px;
}

.search-btn:hover {
  background: rgba(0, 166, 81, 0.1);
  border-color: var(--border-hover);
  color: var(--primary);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.search-container {
  width: 100%;
  max-width: 800px;
  padding: 40px;
  position: relative;
  transform: translateY(30px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active .search-container {
  transform: translateY(0);
}

.search-form {
  position: relative;
  width: 100%;
}

.search-form input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border);
  padding: 20px 0;
  font-size: 32px;
  color: #fff;
  font-family: inherit;
  transition: all 0.3s ease;
}

.search-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.close-search {
  position: absolute;
  top: -60px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-search:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

[data-theme="light"] .search-overlay {
  background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .search-form input {
  color: var(--text-primary);
  border-color: var(--border);
}

[data-theme="light"] .search-form input::placeholder {
  color: var(--text-secondary);
  opacity: 0.5;
}

[data-theme="light"] .close-search {
  color: #111827;
}

.search-overlay.active .close-search {
  color: #fff;
}

[data-theme="light"] .search-overlay.active .close-search {
  color: var(--text-primary);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Hero Slider */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img,
.hero-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
}

[data-theme="light"] .hero-slide img,
[data-theme="light"] .hero-slide video {
  filter: brightness(0.45);
}

/* Light mode: keep hero text white & readable */
[data-theme="light"] .hero h1 {
  color: #f9fafb;
  -webkit-text-fill-color: unset;
}

[data-theme="light"] .hero h1 .gradient-text {
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-description {
  color: #d1d5db;
}

[data-theme="light"] .hero-stat .label {
  color: #d1d5db;
}

[data-theme="light"] .hero-stat .number {
  filter: brightness(1.1);
}

[data-theme="light"] .btn-outline {
  color: #f9fafb;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Light mode: keep navbar links white over hero (HOME ONLY) */
/* Light mode: keep navbar links white over hero (ForAll Pages with dark hero) */
[data-theme="light"] .navbar:not(.scrolled) .nav-links a {
  color: var(--text-primary);
}

[data-theme="light"] .home-page .navbar:not(.scrolled) .nav-links a,
[data-theme="light"] .has-dark-hero .navbar:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .home-page .navbar:not(.scrolled) .nav-links a:hover,
[data-theme="light"] .has-dark-hero .navbar:not(.scrolled) .nav-links a:hover {
  color: #fff;
}

[data-theme="light"] .home-page .navbar:not(.scrolled) .nav-links a.active,
[data-theme="light"] .has-dark-hero .navbar:not(.scrolled) .nav-links a.active {
  color: var(--primary-light);
}

[data-theme="light"] .home-page .navbar:not(.scrolled) .nav-logo .logo-text .brand,
[data-theme="light"] .has-dark-hero .navbar:not(.scrolled) .nav-logo .logo-text .brand {
  color: #fff;
}

[data-theme="light"] .home-page .navbar:not(.scrolled) .theme-toggle,
[data-theme="light"] .has-dark-hero .navbar:not(.scrolled) .theme-toggle,
[data-theme="light"] .home-page .navbar:not(.scrolled) .search-btn,
[data-theme="light"] .has-dark-hero .navbar:not(.scrolled) .search-btn {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .home-page .navbar:not(.scrolled) .nav-toggle span,
[data-theme="light"] .has-dark-hero .navbar:not(.scrolled) .nav-toggle span {
  background: #fff;
}

.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(
    10,
    14,
    23,
    0.4
  ); /* Transparent overlay for text readability */
}

/* Slider Indicators */
.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
  position: relative;
  z-index: 3;
  top: -22px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: scale(1.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  padding-top: 100px;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.05;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: "Inter", sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--primary-glow);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(0, 166, 81, 0.05);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-top: 50px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

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

.hero-stat .number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat .label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ===== SECTION STYLES ===== */
section {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--primary);
  opacity: 0.4;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ===== INNOVATION SECTION ===== */
.innovation {
  padding: 72px 0;
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 100%
  );
}

.innovation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.innovation-visual {
  position: relative;
}

.innovation-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.5s ease;
}

.innovation-visual:hover img {
  transform: scale(1.02);
}

.innovation-visual::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  width: 80px;
  height: 80px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  opacity: 0.3;
  z-index: -1;
}

.innovation-visual::after {
  content: "";
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-glow), transparent);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.innovation-content h2 {
  font-size: 38px;
  margin-bottom: 20px;
}

.innovation-content p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 14px;
  line-height: 1.8;
}

.innovation-features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.innovation-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.innovation-feature:hover {
  border-color: var(--border-hover);
  background: rgba(0, 166, 81, 0.03);
  transform: translateX(4px);
}

.innovation-feature .icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--primary-glow), transparent);
  border: 1px solid rgba(0, 166, 81, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.innovation-feature h4 {
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.innovation-feature p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ===== OPPORTUNITIES SECTION ===== */
.opportunities {
  padding: 72px 0;
  background: var(--bg-secondary);
}

.opportunities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.opportunity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.opportunity-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.opportunity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.opportunity-card:hover::before {
  opacity: 1;
}

.opportunity-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.opportunity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.opportunity-card:hover .opportunity-image img {
  transform: scale(1.08);
}

.opportunity-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, var(--card-gradient-bottom));
}

.opportunity-body {
  padding: 24px;
}

.opportunity-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-glow), transparent);
  border: 1px solid rgba(0, 166, 81, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.opportunity-body h3 {
  font-size: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

.opportunity-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.opportunity-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s ease;
}

.opportunity-link:hover {
  gap: 12px;
  color: var(--primary-light);
}

.opportunity-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.opportunity-link:hover svg {
  transform: translateX(4px);
}

/* ===== NEWS SECTION ===== */
.news {
  padding: 72px 0;
  background: linear-gradient(
    180deg,
    var(--bg-secondary) 0%,
    var(--bg-primary) 100%
  );
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.news-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="light"] .news-tag {
  background: rgba(255, 255, 255, 0.85);
}

.news-body {
  padding: 22px;
}
.news-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 500;
}

.news-body h3 {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 700;
  transition: color 0.3s ease;
}

.news-card:hover .news-body h3 {
  color: var(--primary);
}

.news-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.news-read-more:hover {
  gap: 10px;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 72px 0;
  position: relative;
}

.cta-card {
  background: linear-gradient(
    135deg,
    var(--bg-tertiary) 0%,
    var(--bg-secondary) 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    var(--primary-glow) 0%,
    transparent 50%
  );
  opacity: 0.15;
  animation: cta-glow 8s ease-in-out infinite;
}

@keyframes cta-glow {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(180deg);
  }
}

.cta-card h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

.cta-card .btn {
  position: relative;
  z-index: 1;
}

/* ===== FOOTER ===== */
.footer {
  padding: 64px 0 28px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 16px;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}
.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-newsletter p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
  border-color: var(--primary);
}
.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

.newsletter-form button:hover {
  box-shadow: 0 4px 15px var(--primary-glow);
  transform: translateY(-2px);
}

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

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a {
  font-size: 13px;
  color: var(--text-muted);
}
.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .innovation-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .opportunities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 80%;
    max-width: 360px;
    height: 100%;
    height: 100vh;
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior-y: none;
    gap: 4px;
    padding: 100px 40px 40px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border);
  }

  .nav-links.open {
    left: 0;
  }

  .nav-links a {
    font-size: 18px;
    padding: 14px 20px;
    width: 100%;
    text-align: left;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-logo .logo-text {
    display: none !important;
  }

  .sidebar-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    width: 100%;
  }

  .sidebar-socials a {
    width: auto;
    padding: 8px;
    font-size: 24px;
    text-align: center;
    color: var(--text-secondary);
  }

  .sidebar-socials a:hover {
    color: var(--primary);
  }

  [data-theme="light"] .home-page .navbar:not(.scrolled) .nav-links a,
  [data-theme="light"] .has-dark-hero .navbar:not(.scrolled) .nav-links a {
    color: var(--text-primary);
  }

  [data-theme="light"] .home-page .navbar:not(.scrolled) .nav-links a:hover,
  [data-theme="light"] .has-dark-hero .navbar:not(.scrolled) .nav-links a:hover {
    color: var(--primary);
  }
  
  [data-theme="light"] .home-page .navbar:not(.scrolled) .sidebar-socials a,
  [data-theme="light"] .has-dark-hero .navbar:not(.scrolled) .sidebar-socials a {
    color: var(--text-secondary);
  }

  [data-theme="light"] .home-page .navbar:not(.scrolled) .sidebar-socials a:hover,
  [data-theme="light"] .has-dark-hero .navbar:not(.scrolled) .sidebar-socials a:hover {
    color: var(--primary);
  }

  .hero h1 {
    font-size: 2.4rem;
  }
  .hero-description {
    font-size: 16px;
  }
  .hero-stats {
    gap: 32px;
    flex-wrap: wrap;
  }
  .hero-stat .number {
    font-size: 32px;
  }

  .innovation {
    padding: 56px 0;
  }
  .opportunities {
    padding: 56px 0;
  }
  .news {
    padding: 56px 0;
  }
  .cta-section {
    padding: 56px 0;
  }

  .opportunities-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .cta-card {
    padding: 40px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== OVERLAY FOR MOBILE MENU ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
