@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* Default Theme - Modern Tech Blue */
  --primary: #0066CC;          /* Tech Blue - modern, professional */
  --primary-light: #3D8BFF;    /* Light Blue - softer accent */
  --secondary: #00D4AA;        /* Cyan/Teal - compatible secondary */
  --accent: #FF6B35;           /* Orange - vibrant contrast */
  --dark: #1E293B;            /* Slate Gray - professional dark */
  --light: #F8FAFC;           /* Off-white - clean background */
  --gray: #64748B;            /* Neutral Gray - text */
  --success: #10B981;         /* Green - success states */
  --tech-purple: #6366F1;     /* Indigo - tech accent */
  --electric-blue: #0EA5E9;   /* Sky Blue - electric feel */
  
  /* Tech-inspired gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #FF8A65 100%);
  --gradient-dark: linear-gradient(135deg, var(--primary) 0%, var(--electric-blue) 100%);
  --gradient-electric: linear-gradient(135deg, var(--electric-blue) 0%, var(--primary) 100%);
  
  /* Professional shadows */
  --shadow-sm: 0 2px 8px rgba(0, 102, 204, 0.08);
  --shadow-md: 0 5px 15px rgba(0, 102, 204, 0.12);
  --shadow-lg: 0 10px 25px rgba(0, 102, 204, 0.15);
  --transition: all 0.3s ease;
}

/* Theme 1: Deep Ocean Blue */
[data-theme="ocean"] {
  --primary: #003F7F;          /* Deep Ocean Blue */
  --primary-light: #1E6BB8;    /* Ocean Blue Light */
  --secondary: #00A9CC;        /* Ocean Cyan */
  --accent: #FF7F50;           /* Coral Orange */
  --dark: #001122;            /* Deep Ocean Dark */
  --light: #F0F8FF;           /* Alice Blue */
  --gray: #5A6B7D;            /* Ocean Gray */
  --success: #20B2AA;         /* Light Sea Green */
  --tech-purple: #4169E1;     /* Royal Blue */
  --electric-blue: #00BFFF;   /* Deep Sky Blue */
  
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #FF9F7F 100%);
  --gradient-dark: linear-gradient(135deg, var(--primary) 0%, var(--electric-blue) 100%);
  --gradient-electric: linear-gradient(135deg, var(--electric-blue) 0%, var(--primary) 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 63, 127, 0.08);
  --shadow-md: 0 5px 15px rgba(0, 63, 127, 0.12);
  --shadow-lg: 0 10px 25px rgba(0, 63, 127, 0.15);
}

/* Theme 2: Electric Blue */
[data-theme="electric"] {
  --primary: #0080FF;          /* Electric Blue */
  --primary-light: #40A0FF;    /* Light Electric Blue */
  --secondary: #00FFFF;        /* Bright Cyan */
  --accent: #FF4040;           /* Electric Red */
  --dark: #0D1B2A;            /* Electric Dark */
  --light: #F0FAFF;           /* Electric Light */
  --gray: #607080;            /* Electric Gray */
  --success: #00FF80;         /* Electric Green */
  --tech-purple: #8040FF;     /* Electric Purple */
  --electric-blue: #0080FF;   /* Same as primary */
  
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #FF6060 100%);
  --gradient-dark: linear-gradient(135deg, var(--primary) 0%, var(--electric-blue) 100%);
  --gradient-electric: linear-gradient(135deg, var(--electric-blue) 0%, var(--secondary) 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 128, 255, 0.08);
  --shadow-md: 0 5px 15px rgba(0, 128, 255, 0.12);
  --shadow-lg: 0 10px 25px rgba(0, 128, 255, 0.15);
}

/* Theme 3: Navy Professional */
[data-theme="navy"] {
  --primary: #1E3A8A;          /* Navy Blue */
  --primary-light: #3B82F6;    /* Blue */
  --secondary: #0891B2;        /* Sky Blue */
  --accent: #F59E0B;           /* Amber */
  --dark: #0F172A;            /* Navy Dark */
  --light: #F8FAFC;           /* Slate Light */
  --gray: #475569;            /* Slate Gray */
  --success: #059669;         /* Emerald */
  --tech-purple: #7C3AED;     /* Violet */
  --electric-blue: #0EA5E9;   /* Sky Blue */
  
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #FBBF24 100%);
  --gradient-dark: linear-gradient(135deg, var(--primary) 0%, var(--electric-blue) 100%);
  --gradient-electric: linear-gradient(135deg, var(--electric-blue) 0%, var(--primary) 100%);
  
  --shadow-sm: 0 2px 8px rgba(30, 58, 138, 0.08);
  --shadow-md: 0 5px 15px rgba(30, 58, 138, 0.12);
  --shadow-lg: 0 10px 25px rgba(30, 58, 138, 0.15);
}

/* Theme 4: Azure Modern */
[data-theme="azure"] {
  --primary: #007ACC;          /* Azure Blue */
  --primary-light: #40A6FF;    /* Light Azure */
  --secondary: #17A2B8;        /* Info Blue */
  --accent: #FD7E14;           /* Orange */
  --dark: #212529;            /* Dark */
  --light: #F8F9FA;           /* Light Gray */
  --gray: #6C757D;            /* Gray */
  --success: #28A745;         /* Success Green */
  --tech-purple: #6F42C1;     /* Purple */
  --electric-blue: #17A2B8;   /* Same as secondary */
  
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #FF9A56 100%);
  --gradient-dark: linear-gradient(135deg, var(--primary) 0%, var(--electric-blue) 100%);
  --gradient-electric: linear-gradient(135deg, var(--electric-blue) 0%, var(--primary) 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 122, 204, 0.08);
  --shadow-md: 0 5px 15px rgba(0, 122, 204, 0.12);
  --shadow-lg: 0 10px 25px rgba(0, 122, 204, 0.15);
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

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

a:hover {
  color: var(--secondary);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Modern section styling */
.modern-section {
  padding: 80px 0;
  position: relative;
}

.modern-section:nth-child(even) {
  background: linear-gradient(135deg, var(--light) 0%, #ffffff 100%);
}

/* Enhanced section headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 0;
  font-weight: 400;
}

/* Modern card styling */
.modern-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 102, 204, 0.05);
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.modern-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 102, 204, 0.12);
}

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

/* Modern grid layouts */
.modern-grid {
  display: grid;
  gap: 30px;
  margin-top: 50px;
}

.modern-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.modern-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.modern-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Modern visual elements */
.modern-accent {
  position: relative;
  overflow: hidden;
}

.modern-accent::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(0, 102, 204, 0.05) 90deg,
    transparent 180deg,
    rgba(0, 212, 170, 0.05) 270deg,
    transparent 360deg
  );
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

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

/* Modern floating elements */
.floating-element {
  position: absolute;
  pointer-events: none;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

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

.floating-element:nth-child(1) { animation-delay: 0s; }
.floating-element:nth-child(2) { animation-delay: 2s; }
.floating-element:nth-child(3) { animation-delay: 4s; }

/* Enhanced button styles */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 102, 204, 0.3);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
}

/* Responsive improvements */
@media (max-width: 768px) {
  body:not(.homepage) .hero {
    padding: 100px 0 60px;
  }
  
  .modern-section {
    padding: 60px 0;
  }
  
  .modern-grid-2,
  .modern-grid-3,
  .modern-grid-4 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .modern-card {
    padding: 30px 20px;
  }
  
  .section-header {
    margin-bottom: 40px;
  }
  
  body:not(.homepage) .hero-title {
    font-size: 2rem;
  }
  
  body:not(.homepage) .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  body:not(.homepage) .hero {
    padding: 80px 0 40px;
  }
  
  .modern-section {
    padding: 40px 0;
  }
  
  .modern-card {
    padding: 25px 15px;
  }
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

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

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition);
  background: white;
  box-shadow: var(--shadow-sm);
}

/* Enhanced header for secondary pages with subtle gradient */
body:not(.homepage) .header {
  background: linear-gradient(to bottom, 
    rgba(255, 255, 255, 1) 0%, 
    rgba(255, 255, 255, 0.98) 80%, 
    rgba(255, 255, 255, 0.95) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Transparent header only on homepage */
body.homepage .header {
  background: transparent;
  box-shadow: none;
}

.header.scrolled {
  background: white;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary); /* Blue text by default */
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

/* White text on homepage hero */
body.homepage .header:not(.scrolled) .logo {
  color: white;
}

.scrolled .logo {
  color: var(--primary); /* Blue text */
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--primary); /* Blue text by default */
  font-weight: 500;
  position: relative;
}

/* White text on homepage hero */
body.homepage .header:not(.scrolled) .nav-links a {
  color: white;
}

.scrolled .nav-links a {
  color: var(--dark); /* Dark text on white background when scrolled */
}

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

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

.mobile-menu {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--primary); /* Blue text by default */
}

/* White text on homepage hero */
body.homepage .header:not(.scrolled) .mobile-menu {
  color: white;
}

.scrolled .mobile-menu {
  color: var(--dark); /* Dark text on white background when scrolled */
}

/* Hero section with slider */
.hero {
  position: relative;
  overflow: hidden;
  height: 100vh;
}

/* Modern hero section for secondary pages */
body:not(.homepage) .hero {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, var(--light) 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
  
  height: inherit;
}

/* Subtle geometric background pattern */
body:not(.homepage) .hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 102, 204, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Modern hero content styling */
body:not(.homepage) .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--dark);
  max-width: 800px;
  margin: 0 auto;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease forwards 0.3s;
}

/* Enhanced hero title with modern typography */
body:not(.homepage) .hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  position: relative;
}

/* Add subtle accent line under title */
body:not(.homepage) .hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* Enhanced hero subtitle */
body:not(.homepage) .hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 0;
  opacity: 0.8;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease forwards 0.5s;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 5rem;
}

/* Breadcrumb navigation */
body:not(.homepage) .hero-breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

body:not(.homepage) .hero-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

body:not(.homepage) .hero-breadcrumb a:hover {
  color: var(--secondary);
}

body:not(.homepage) .hero-breadcrumb span {
  color: var(--gray);
  margin: 0 10px;
  font-size: 0.9rem;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: var(--gradient-dark);
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.hero-slide.prev {
  transform: translateX(-100%);
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 0;
  transition: opacity 0.8s ease;
}

.hero-slide[data-bg]::before {
  background-image: var(--bg-image);
}

@keyframes pulse {
  0% {
    opacity: 0.1;
    transform: scale(1);
  }
  100% {
    opacity: 0.2;
    transform: scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  max-width: 700px;
}

.hero-slide .hero-content {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease 0.3s;
}

.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

/* Fix for secondary pages - make hero-content visible by default */
.hero .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  background-image: linear-gradient(135deg, white, var(--secondary));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transform: translateY(30px);
  opacity: 1;
  transition: all 0.8s ease 0.5s;
}

.hero-slide.active .hero-title {
  transform: translateY(0);
  opacity: 1;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.7s;
}

.hero-slide.active .hero-subtitle {
  opacity: 0.9;
  transform: translateY(0);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.9s;
}

.hero-slide.active .hero-buttons {
  opacity: 1;
  transform: translateY(0);
}

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

/* Hero Slider Controls */
.hero-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 10;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-prev,
.hero-next {
  position: absolute;
  top: 0;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: all;
  backdrop-filter: blur(10px);
}

.hero-prev {
  left: 30px;
}

.hero-next {
  right: 30px;
}

.hero-prev:hover,
.hero-next:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Hero Slider Indicators */
.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Tech Video Background */
.tech-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s ease;
  overflow: hidden;
}

.tech-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: blur(1px) hue-rotate(180deg);
  mix-blend-mode: multiply;
}

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

/* Tech Animation Elements */
.tech-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.8s ease 1s;
}

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

/* Code Animation */
.code-animation {
  overflow: hidden;
}

.floating-code {
  position: absolute;
  top: 20%;
  right: 10%;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--secondary);
  animation: floatCode 6s ease-in-out infinite;
}

.code-line {
  display: block;
  margin: 5px 0;
  opacity: 0;
  animation: typeCode 3s ease-in-out infinite;
}

.code-line:nth-child(1) { animation-delay: 0.5s; }
.code-line:nth-child(2) { animation-delay: 1s; }
.code-line:nth-child(3) { animation-delay: 1.5s; }

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

@keyframes typeCode {
  0%, 20% { opacity: 0; transform: translateX(-20px); }
  50%, 80% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0.7; transform: translateX(5px); }
}

/* Circuit Animation */
.floating-circuit {
  position: absolute;
  top: 30%;
  right: 15%;
  width: 200px;
  height: 150px;
}

.circuit-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary);
  animation: pulse-node 2s ease-in-out infinite;
}

.circuit-node:nth-child(1) {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.circuit-node:nth-child(2) {
  top: 50px;
  right: 0;
  animation-delay: 0.7s;
}

.circuit-node:nth-child(3) {
  bottom: 0;
  left: 50%;
  animation-delay: 1.4s;
}

.circuit-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  animation: circuit-flow 3s ease-in-out infinite;
}

@keyframes pulse-node {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 15px var(--primary);
  }
  50% { 
    transform: scale(1.3);
    box-shadow: 0 0 25px var(--primary);
  }
}

@keyframes circuit-flow {
  0% { opacity: 0; transform: translateX(-100%); }
  50% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(100%); }
}

/* Data Stream Animation */
.floating-data {
  position: absolute;
  top: 25%;
  right: 20%;
  width: 150px;
  height: 200px;
}

.data-stream {
  position: absolute;
  width: 3px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--secondary), transparent);
  animation: data-flow 2s ease-in-out infinite;
}

.data-stream:nth-child(1) {
  left: 20px;
  animation-delay: 0s;
}

.data-stream:nth-child(2) {
  left: 50px;
  animation-delay: 0.3s;
}

.data-stream:nth-child(3) {
  left: 80px;
  animation-delay: 0.6s;
}

@keyframes data-flow {
  0% { 
    opacity: 0;
    transform: translateY(-50px) scaleY(0);
  }
  50% { 
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
  100% { 
    opacity: 0;
    transform: translateY(50px) scaleY(0);
  }
}

/* Network Animation */
.floating-network {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 180px;
  height: 180px;
}

.network-node {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: network-pulse 3s ease-in-out infinite;
}

.network-node:nth-child(1) {
  top: 0;
  left: 50%;
  animation-delay: 0s;
}

.network-node:nth-child(2) {
  bottom: 0;
  left: 0;
  animation-delay: 1s;
}

.network-node:nth-child(3) {
  bottom: 0;
  right: 0;
  animation-delay: 2s;
}

.network-connection {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: network-expand 3s ease-in-out infinite;
}

@keyframes network-pulse {
  0%, 100% { 
    transform: scale(1);
    opacity: 1;
  }
  50% { 
    transform: scale(1.5);
    opacity: 0.7;
  }
}

@keyframes network-expand {
  0% { 
    width: 2px;
    height: 2px;
    opacity: 1;
  }
  50% { 
    width: 150px;
    height: 150px;
    opacity: 0.3;
  }
  100% { 
    width: 2px;
    height: 2px;
    opacity: 1;
  }
}

/* Services section */
.services {
  padding: 100px 0;
  background-color: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
  z-index: 2;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px auto 20px;
  font-size: 28px;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.service-icon::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.2;
  z-index: -1;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-align: center;
  color: var(--dark);
}

.service-content {
  padding: 0 30px 30px;
  text-align: center;
}

.service-description {
  color: var(--gray);
  margin-bottom: 20px;
}

/* Stats section */
.stats {
  padding: 80px 0;
  background: var(--gradient-electric);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://images.pexels.com/photos/8092701/pexels-photo-8092701.jpeg?auto=compress&cs=tinysrgb&w=1200');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  background-image: linear-gradient(135deg, white, rgba(255,255,255,0.7));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* About section */
.about {
  padding: 100px 0;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 50px;
  align-items: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: var(--dark);
}

.about-content p {
  margin-bottom: 20px;
  color: var(--gray);
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: var(--gradient-primary);
  top: 20px;
  left: 20px;
  z-index: -1;
}

/* Testimonials section */
.testimonials {
  padding: 100px 0;
  background-color: var(--light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -15px;
  font-size: 60px;
  font-family: serif;
  color: var(--secondary);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  margin-right: 15px;
}

.testimonial-name {
  font-weight: 600;
  color: var(--dark);
}

.testimonial-position {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Contact section */
.contact {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.05;
  top: -300px;
  right: -300px;
  z-index: -1;
}

.contact::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: 0.05;
  bottom: -200px;
  left: -200px;
  z-index: -1;
}

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

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--dark);
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 20px;
  color: var(--primary);
  margin-right: 15px;
  margin-top: 5px;
}

.contact-details-content {
  color: var(--gray);
}

.contact-form {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(50,186,188,0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--gradient-dark);
  color: white;
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  display: inline-block;
}

.footer-about {
  max-width: 300px;
}

.footer-about p {
  opacity: 0.7;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background: var(--secondary);
  bottom: 0;
  left: 0;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  opacity: 0.7;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 10px !important;
}

.mb-2 {
  margin-bottom: 20px !important;
}

.mb-3 {
  margin-bottom: 30px !important;
}

.mb-4 {
  margin-bottom: 40px !important;
}

.mb-5 {
  margin-bottom: 50px !important;
}

/* Media Queries */
@media screen and (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile menu dropdown */
.mobile-menu-content {
  position: fixed;
  top: 70px;
  right: 0;
  width: 100%;
  background: white;
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
  display: none;
}

.mobile-menu-content.active {
  transform: translateY(0);
  opacity: 1;
  display: block;
}

.mobile-menu-content .nav-links {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  gap: 0;
}

.mobile-menu-content .nav-links a {
  padding: 15px 20px;
  color: var(--dark);
  border-bottom: 1px solid #f0f0f0;
  transition: var(--transition);
}

.mobile-menu-content .nav-links a:hover {
  background: var(--light);
  color: var(--primary);
}

.mobile-menu-content .nav-links a.active {
  color: var(--primary);
  background: var(--light);
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  /* Hide theme selector on mobile */
  .theme-switcher {
    display: none !important;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

/* Animation utilities */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -30px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translate3d(30px, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fade-in {
  animation-name: fadeIn;
}

.fade-in-down {
  animation-name: fadeInDown;
}

.fade-in-left {
  animation-name: fadeInLeft;
}

.fade-in-right {
  animation-name: fadeInRight;
}

/* Loading animation */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 80px;
  height: 80px;
  position: relative;
}

.loader:before,
.loader:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.7;
  animation: pulse-loader 2s ease-in-out infinite;
}

.loader:after {
  animation-delay: -1s;
}

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

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* African-inspired pattern overlay */
.pattern-overlay {
  position: relative;
}

.pattern-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, transparent 40%, rgba(0, 102, 204, 0.05) 50%, transparent 60%);
  background-size: 20px 20px;
  pointer-events: none;
}

/* Enhanced button styles */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

/* Enhanced card hover effects */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.service-card:hover::after {
  left: 100%;
}

/* Tech-inspired accent elements */
.african-accent {
  position: relative;
}

.african-accent::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  background: var(--gradient-electric);
  border-radius: 50%;
  opacity: 0.2;
  z-index: -1;
}

.african-accent::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  background: var(--gradient-accent);
  border-radius: 50%;
  opacity: 0.3;
  z-index: -1;
}

/* Theme Switcher Styles */
.theme-switcher {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1000;
  background: white;
  border-radius: 15px;
  padding: 15px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  display: none !important;
}

.theme-switcher:hover {
  transform: translateY(-50%) scale(1.05);
}

.theme-switcher h4 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-align: center;
  color: var(--dark);
}

.theme-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.theme-option.active {
  border-color: var(--primary);
  transform: scale(1.1);
}

.theme-option:hover {
  transform: scale(1.05);
}

/* Theme previews */
.theme-option[data-theme="default"] {
  background: linear-gradient(135deg, #0066CC 0%, #00D4AA 100%);
}

.theme-option[data-theme="ocean"] {
  background: linear-gradient(135deg, #003F7F 0%, #00A9CC 100%);
}

.theme-option[data-theme="electric"] {
  background: linear-gradient(135deg, #0080FF 0%, #00FFFF 100%);
}

.theme-option[data-theme="navy"] {
  background: linear-gradient(135deg, #1E3A8A 0%, #0891B2 100%);
}

.theme-option[data-theme="azure"] {
  background: linear-gradient(135deg, #007ACC 0%, #17A2B8 100%);
}

/* Mobile responsiveness for theme switcher */
@media screen and (max-width: 768px) {
  .theme-switcher {
    right: 10px;
    padding: 10px;
  }
  
  .theme-option {
    width: 35px;
    height: 35px;
  }
  
  /* Hero slider mobile adjustments */
  .hero-prev,
  .hero-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .hero-prev {
    left: 15px;
  }
  
  .hero-next {
    right: 15px;
  }
  
  .hero-indicators {
    bottom: 20px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .hero-buttons .btn {
    text-align: center;
  }
  
  /* Hide tech animations and videos on mobile for performance */
  .tech-animation {
    display: none;
  }
  
  .tech-video {
    display: none;
  }
}