/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  --primary-color: #40E0D0;
  /* Turquoise */
  --secondary-color: #FF4444;
  /* Red */

  /* Default Dark Theme */
  --dark-color: #0f172a;
  /* Deep Charcoal/Navy */
  --light-color: #ffffff;
  /* Headings */
  --text-grey: #cbd5e1;
  /* Body text */
  --glass-bg: rgba(255, 255, 255, 0.05);
  /* Dark Glass */
  --glass-border: rgba(255, 255, 255, 0.1);
  /* Dark Border */
  --background-dark: #0f172a;

  /* Drop Shadows & Glows */
  --glow-shadow: 0 0 20px rgba(64, 224, 208, 0.2);
  --card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.4);
  --icon-shadow-hover: drop-shadow(0 0 10px rgba(64, 224, 208, 0.6));
  --logo-shadow: drop-shadow(0 0 8px rgba(64, 224, 208, 0.4));
}

/* Light Theme Overrides */
[data-theme="light"] {
  --dark-color: #f1f5f9;
  /* Slate 100 - Softer White */
  --light-color: #0f172a;
  /* Dark Navy for text */
  --text-grey: #475569;
  /* Slate for body text */
  --glass-bg: rgba(255, 255, 255, 0.4);
  /* Less blinding frosted ice */
  --background-dark: #f1f5f9;

  --glow-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  /* Soft shadow, no glow */
  --card-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
  /* Softer shadow */
  --icon-shadow-hover: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
  /* Soft drop shadow */
  --logo-shadow: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'Poppins', sans-serif;
}

body {
  background-color: var(--background-dark);
  color: var(--text-grey);
  overflow-x: hidden;
  line-height: 1.6;

  /* Smooth Theme Transition */
  transition: background-color 0.8s ease, color 0.8s ease;
}

/* Apply transitions to other structural elements */
nav,
.glass-card,
footer,
.digital-card,
.research-card,
.partner-card,
.timeline-content,
.service-item,
.step {
  transition: background-color 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease, color 0.8s ease, filter 0.8s ease;
}

/* =========================================
   2. KEYFRAMES
   ========================================= */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes slide-up {
  from {
    transform: translateY(100px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes rotate-subtle {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(3deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* =========================================
   3. UTILITIES & HELPER CLASSES
   ========================================= */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Safari support */
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  color: var(--light-color);
  font-size: clamp(2rem, 5vw, 3rem);
  position: relative;
  font-weight: 700;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 4px;
  background: var(--primary-color);
  margin: 1rem auto;
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary-color);
}

.explore-more-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.explore-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.5s ease;
}

.explore-more-btn:hover::before {
  left: 100%;
}

.explore-more-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

/* =========================================
   4. NAVIGATION
   ========================================= */
.logo-image {
  height: 60px;
  /* Increased size */
  filter: var(--logo-shadow);
  /* Turquoise glow */
  transition: transform 0.3s ease;
}

.logo-image:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(64, 224, 208, 0.6));
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

nav {
  /* Glassmorphism applied directly via class in HTML or replicated here */
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 5%;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-grey);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
  background: rgba(64, 224, 208, 0.1);
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--primary-color);
}

.nav-links a:hover::after {
  width: 80%;
  left: 10%;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  background: var(--dark-color);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  top: 100%;
  left: 0;
  min-width: 180px;
  padding: 0.5rem 0;
  z-index: 1002;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dropdown-menu a {
  display: block;
  padding: 10px 1.5rem;
  color: var(--text-grey);
  white-space: nowrap;
  /* Prevent text wrapping */
}

.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  display: block;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--light-color);
  /* White for dark theme */
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

/* Mobile Nav */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    /* Changed from flex to none, JS toggles active */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: var(--dark-color);
    padding: 6rem 2rem 2rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .nav-links a {
    font-size: 1.2rem;
    width: 100%;
    text-align: center;
  }

  .dropdown-menu {
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding-left: 0;
    text-align: center;
  }

  .dropdown {
    flex-direction: column;
    width: 100%;
  }

  .dropdown-menu a {
    padding: 0.5rem;
    font-size: 1rem;
    color: var(--text-grey);
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
  min-height: 100vh;
  padding: 8rem 5% 4rem;
  background-color: var(--dark-color);
  /* Radial Gradient Glow */
  background-image: radial-gradient(circle at 50% 50%,
      rgba(64, 224, 208, 0.15) 0%,
      rgba(255, 68, 68, 0.1) 30%,
      rgba(15, 23, 42, 0) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--light-color);
  animation: slide-up 1s ease-out;
  letter-spacing: -1px;
  text-shadow: 0 0 20px rgba(64, 224, 208, 0.3);
}

.hero p {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--text-grey);
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  animation: slide-up 1s ease-out 0.3s forwards;
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.services {
  padding: 6rem 5%;
  background: var(--dark-color);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  /* Extended from .glass-card */
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;

  padding: 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(64, 224, 208, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
  color: var(--light-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-grey);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-shadow: 0 0 15px rgba(64, 224, 208, 0.4);
  transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* =========================================
   7. STATS SECTION
   ========================================= */
.stats {
  padding: 4rem 5%;
  background: rgba(15, 23, 42, 0.8);
  /* Slightly different shade */
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  padding: 2rem;
  /* Optional: Glass effect for stats items too? User didn't specify, but looks good */
  background: var(--glass-bg);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  border: 1px solid var(--glass-border);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  text-shadow: 0 0 15px rgba(64, 224, 208, 0.4);
}

.stat-item p {
  color: var(--light-color);
  font-weight: 500;
}

/* =========================================
   8. COMPONENT: ABOUT SECTION (Home)
   ========================================= */
.about-us {
  padding: 6rem 5%;
  background: var(--background-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-grey);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight {
  /* Glass Card */
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;

  text-align: center;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.highlight:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
}

.highlight h3 {
  color: var(--light-color);
  font-size: 1.1rem;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--glass-border);
}

/* =========================================
   12. ABOUT PAGE SPECIFIC
   ========================================= */
.about-hero {
  min-height: 85vh;
  background-color: var(--dark-color);
  background-image: radial-gradient(circle at 70% 30%,
      rgba(64, 224, 208, 0.1) 0%,
      rgba(255, 68, 68, 0.05) 30%,
      rgba(15, 23, 42, 0) 70%);
  padding: 8rem 5% 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.about-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  z-index: 2;
}

.hero-visual {
  flex: 1 1 400px;
}

.hero-text {
  flex: 1 1 500px;
}

.hero-text h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--light-color);
  font-weight: 700;
}

.hero-text p {
  color: var(--text-grey);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
}

/* Company Stats in Hero */
.company-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  min-width: 200px;
}

.stat-check {
  font-size: 1.5rem;
}

.highlight-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-grey);
}

/* About Values (Why Choose Us) */
.about-values {
  padding: 6rem 5%;
  background: var(--dark-color);
  position: relative;
}

.values-container {
  max-width: 1000px;
  margin: 0 auto;
}

.values-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* Enforce 2 columns for 4 items (2x2) */
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .values-list {
    grid-template-columns: 1fr;
  }
}

.value-item {
  padding: 2rem;
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
}

.value-item h3 {
  color: var(--light-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.value-item p {
  color: var(--text-grey);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .about-hero {
    flex-direction: column;
    padding-top: 7rem;
    height: auto;
  }

  .about-hero-content {
    flex-direction: column-reverse;
    /* Text on top? Or Visual on Top? Usually visual on top mobile */
    /* Wait, HTML: Visual first, Text second. Flex direction default: Visual on top. 
       Actually, usually Text on top is better for SEO/Reading? 
       Let's stick to default column for now (Visual Top). */
    gap: 2rem;
  }

  .hero-text h2 {
    text-align: center !important;
  }

  .company-stats {
    justify-content: center;
  }
}

/* =========================================
   CLIENT LOGOS
   ========================================= */
.client-logos {
  padding: 4rem 5%;
  background: var(--dark-color);
  /* Matches theme */
  position: relative;
  overflow: hidden;
}

.client-logos h2 {
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
  color: var(--light-color);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  /* Optional: Add gradient falloff mask */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-track {
  display: flex;
  animation: scroll 25s linear infinite;
  gap: 4rem;
  width: max-content;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-item {
  flex: 0 0 auto;
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Glass card effect for individual logos (optional, or just plain) */
  /* background: var(--glass-bg);
     border: 1px solid var(--glass-border);
     border-radius: 10px; */
  padding: 10px;
}

.logo-item img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.logo-item img:hover {
  opacity: 1;
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .logo-track {
    gap: 2rem;
    animation: scroll 15s linear infinite;
  }

  .logo-item {
    width: 100px;
    height: 60px;
  }
}

/* =========================================
   9. TESTIMONIALS
   ========================================= */
.testimonials {
  padding: 6rem 5%;
  background: var(--background-dark);
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-card {
  /* Glass Card */
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;

  padding: 2.5rem;
  text-align: left;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(64, 224, 208, 0.2);
}

.testimonial-text {
  font-style: italic;
  color: var(--text-grey);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author strong {
  color: var(--primary-color);
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.9rem;
  color: #94a3b8;
  /* Slightly darker grey */
}

/* =========================================
   10. TIMELINE & FOOTER
   ========================================= */
.timeline-section {
  padding: 6rem 5%;
  background: var(--background-dark);
  position: relative;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* The Glowing Line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  transform: translateX(-50%);
  box-shadow: 0 0 15px rgba(64, 224, 208, 0.5);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 10px 40px;
  box-sizing: border-box;
}

/* Alternating Layout */
.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

/* The Nodes (Icons) */
.timeline-icon {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--dark-color);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  top: 15px;
  right: -25px;
  /* Default for odd items */
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 10px rgba(64, 224, 208, 0.3);
}

.timeline-item:nth-child(even) .timeline-icon {
  left: -25px;
}

.timeline-item:nth-child(odd) .timeline-icon {
  right: -25px;
}

/* The Cards */
.timeline-content {
  /* Glass Card styles inherited or explicit */
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 1.5rem;
  color: var(--text-grey);
  transition: all 0.3s ease;
  position: relative;
}

.timeline-content:hover {
  transform: scale(1.02);
  box-shadow: var(--glow-shadow);
  border-color: rgba(64, 224, 208, 0.3);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

/* Removed old ::after dot style since we have icons now */
.timeline-content::after {
  display: none;
}

footer {
  background: #020617;
  /* Even darker for footer */
  color: var(--text-grey);
  padding: 2rem 5%;
  border-top: 1px solid var(--glass-border);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   11. RESPONSIVE UTILITIES
   ========================================= */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  /* Single column grids on mobile */
  .services-grid,
  .stats-grid,
  .about-grid,
  .testimonial-grid,
  .about-highlights {
    grid-template-columns: 1fr !important;
  }

  /* Padding adjustments */
  .hero,
  .services,
  .about-us,
  .stats,
  .testimonials,
  .timeline-section,
  .client-logos {
    padding: 4rem 5% !important;
    /* Reduced vertical padding */
  }

  .timeline::before {
    left: 20px;
    /* Move line to left */
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
  }

  .timeline-item:nth-child(even),
  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: left;
    /* Align text left for all */
  }

  .timeline-icon {
    left: -5px;
    /* Adjusted to center on the left-shifted line? Line is at 20px. Icon width 50px. 
       Center of icon is 25px. Line is at 20px. 
       So icon left edge should be at 20px - 25px = -5px relative to container? 
       No, they are children of timeline-item? No usually absolute to timeline?
       Wait, icons are inside timeline-item. 
       Line is absolute to timeline.
       Timeline-item is width 100%. 
       Let's assume icons need to be positioned relative to timeline-item.
       */
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    left: -5px !important;
    /* Left of the padding-left 60px content?
       No, if timeline-item has padding-left 60px, and icon is absolute...
       We probably need icon to fall on the line.
       If line is at 20px of .timeline...
       .timeline-item is inside .timeline.
       Let's update icon positioning logic for mobile.
     */
    right: auto !important;
  }

  /* 
     Re-thinking Mobile Logic:
     Line is at left: 20px of .timeline
     Items are full width.
     Icons need to center on the line.
     So Icon center = 20px.
     Icon width = 40px.
     Icon left = 0px relative to .timeline?
     But icon is inside .timeline-item.
     .timeline-item is relative.
     So icon should be left: 0px (if item is full width starting at 0).
  */

  .timeline-item:nth-child(odd) .timeline-icon,
  .timeline-item:nth-child(even) .timeline-icon {
    left: 0;
    right: auto;
  }

  .timeline-content::after {
    display: none !important;
  }
}

/* =========================================
   13. RESEARCH PAGE SPECIFIC
   ========================================= */
.research-hero {
  min-height: 70vh;
  background-color: var(--dark-color);
  background-image: radial-gradient(circle at 30% 70%,
      rgba(64, 224, 208, 0.15) 0%,
      rgba(255, 68, 68, 0.1) 30%,
      rgba(15, 23, 42, 0) 70%);
  padding: 8rem 5% 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.research-hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.research-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(64, 224, 208, 0.3);
}

.research-hero p {
  font-size: 1.2rem;
  color: var(--text-grey);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.research-services {
  padding: 6rem 5%;
  background: var(--dark-color);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 3rem;
}

.research-card {
  /* Start with glass card base */
  padding: 2.5rem;
  text-align: left;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.research-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(64, 224, 208, 0.4);
  box-shadow: var(--card-shadow-hover);
}

.research-card .service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease;
}

.research-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  filter: var(--icon-shadow-hover);
}

.research-card h3 {
  color: var(--light-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.research-card p {
  color: var(--text-grey);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .research-hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
}

/* =========================================
   14. DIGITAL PAGE SPECIFIC
   ========================================= */
.digital-hero {
  min-height: 70vh;
  background-color: var(--dark-color);
  background-image: radial-gradient(circle at 70% 30%,
      rgba(64, 224, 208, 0.15) 0%,
      rgba(100, 100, 255, 0.1) 30%,
      rgba(15, 23, 42, 0) 70%);
  /* Slightly bluer shift for "Digital" feel */
  padding: 8rem 5% 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.digital-hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.digital-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(64, 224, 208, 0.3);
}

.digital-hero p {
  font-size: 1.2rem;
  color: var(--text-grey);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.digital-services {
  padding: 6rem 5%;
  background: var(--dark-color);
}

.digital-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 3rem;
}

.digital-card {
  /* Start with glass card base */
  padding: 2.5rem;
  text-align: left;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.digital-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(64, 224, 208, 0.4);
  box-shadow: var(--card-shadow-hover);
}

.digital-card .service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: transform 0.4s ease;
}

.digital-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
  /* Rotate opposite to research for variety */
  filter: var(--icon-shadow-hover);
}

.digital-card h3 {
  color: var(--light-color);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.digital-card p {
  color: var(--text-grey);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .digital-hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
}

/* =========================================
   15. PARTNERS PAGE SPECIFIC
   ========================================= */
.partners-hero {
  min-height: 60vh;
  background-color: var(--dark-color);
  background-image: radial-gradient(circle at 30% 70%,
      rgba(255, 68, 68, 0.15) 0%,
      rgba(64, 224, 208, 0.1) 40%,
      rgba(15, 23, 42, 0) 80%);
  /* Red/Turquoise blend */
  padding: 8rem 5% 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.partners-hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.partners-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.partners-hero p {
  font-size: 1.2rem;
  color: var(--text-grey);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.partners-section {
  padding: 6rem 5%;
  background: var(--dark-color);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 3rem;
}

.partner-card {
  /* Inherit glass card properties but with specific layout */
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  min-height: 300px;
}

.partner-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 68, 68, 0.4);
  /* Red accent for partners */
  box-shadow: var(--card-shadow-hover);
}

.partner-logo {
  width: 150px;
  height: 100px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  /* Light bg for logos to pop */
  border-radius: 10px;
  padding: 10px;
  transition: transform 0.3s ease;
}

.partner-card:hover .partner-logo {
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-card p {
  color: var(--text-grey);
  font-size: 1rem;
  line-height: 1.6;
  margin-top: auto;
  /* Push text to vertical center if enough space, or just flow */
}

@media (max-width: 768px) {
  .partners-hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
}

/* =========================================
   HERO SECTION (SERVICE REVOLVER)
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  position: relative;
  overflow: hidden;
  /* Dark background with subtle gradient already in body/hero base */
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
  z-index: 2;
}

.hero-text h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--light-color);
  margin-bottom: 1.5rem;
}

.typewriter-text {
  display: inline-block;
  min-width: 10px;
}

/* Cursor Animation */
.cursor {
  display: inline-block;
  background-color: var(--primary-color);
  width: 5px;
  height: clamp(3rem, 6vw, 5rem);
  /* Match font size */
  vertical-align: bottom;
  margin-left: 5px;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Neon Text Classes */
.text-turquoise {
  color: #40E0D0;
  text-shadow: 0 0 20px rgba(64, 224, 208, 0.4);
}

.text-red {
  color: #FF4444;
  text-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}

.text-white {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Light Theme Adjustments for Glow */
[data-theme="light"] .text-turquoise {
  text-shadow: 0 0 10px rgba(64, 224, 208, 0.3);
}

[data-theme="light"] .text-red {
  text-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

[data-theme="light"] .text-white {
  color: #0f172a;
  /* Dark text for white option in light mode */
  text-shadow: none;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-grey);
  max-width: 600px;
}

/* 3D Orb */
.explore-orb-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.explore-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
      rgba(64, 224, 208, 0.8) 0%,
      rgba(64, 224, 208, 0.2) 60%,
      transparent 100%);
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: bold;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(64, 224, 208, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;

  animation: float 6s ease-in-out infinite, pulse 3s infinite;
}

.explore-orb:hover {
  animation-play-state: paused;
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(64, 224, 208, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.8);
}

.explore-orb i {
  font-size: 1.5rem;
  margin-bottom: 5px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.explore-orb span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
  }

  .hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
  }

  .cursor {
    height: clamp(2.5rem, 5vw, 3.5rem);
  }

  .hero-text p {
    margin: 0 auto;
  }
}