/* ============================================
   DiPath Website - Global Styles (Unified Dark Theme)
   ============================================ */

/* --------------------------------------------
   Self-hosted Inter Font (Google Fonts blocked in China)
   -------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------
   CSS Variables - Unified Color Palette
   -------------------------------------------- */
:root {
  /* Primary Colors - Deep Blue */
  --color-primary: #0066CC;
  --color-primary-dark: #0052A3;
  --color-primary-light: #3385D6;
  --color-primary-darker: #0A1628;
  
  /* Secondary Colors - Cyan */
  --color-secondary: #00A3E0;
  --color-secondary-light: #33B5E8;
  --color-secondary-dark: #0082B3;
  
  /* Accent Colors - Teal/Aqua */
  --color-accent: #00C9A7;
  --color-accent-light: #33D7BC;
  --color-accent-dark: #00A88A;
  
  /* Background Colors - Dark Theme */
  --color-bg: #070F1A;
  --color-bg-dark: #0A1628;
  --color-bg-darker: #070F1A;
  --color-bg-card: rgba(255, 255, 255, 0.03);
  --color-bg-card-hover: rgba(255, 255, 255, 0.06);
  
  /* Text Colors */
  --color-text: #ffffff;
  --color-text-light: #94a3b8;
  --color-text-muted: #64748b;
  --color-text-inverse: #0f172a;
  
  /* Border Colors */
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-light: rgba(255, 255, 255, 0.05);
  --color-border-accent: rgba(0, 163, 224, 0.3);
  
  /* Status Colors */
  --color-success: #00C9A7;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0066CC 0%, #00A3E0 100%);
  --gradient-accent: linear-gradient(135deg, #00A3E0 0%, #00C9A7 100%);
  --gradient-dark: linear-gradient(135deg, #0A1628 0%, #070F1A 50%, #0D1E36 100%);
  --gradient-glow: linear-gradient(135deg, rgba(0, 102, 204, 0.2) 0%, rgba(0, 163, 224, 0.1) 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.5);
  --shadow-glow: 0 0 30px rgba(0, 163, 224, 0.3);
  --shadow-glow-accent: 0 0 30px rgba(0, 201, 167, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Spacing */
  --header-height: 80px;
}

/* --------------------------------------------
   Base Styles
   -------------------------------------------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: rgba(0, 163, 224, 0.3);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-secondary);
}

/* --------------------------------------------
   Animation Keyframes
   -------------------------------------------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-25%); }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 163, 224, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 163, 224, 0.6), 0 0 60px rgba(0, 201, 167, 0.3);
  }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

@keyframes countUp {
  from { 
    opacity: 0;
    transform: scale(0.5);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes draw-line {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --------------------------------------------
   Animation Utility Classes
   -------------------------------------------- */
.animate-fadeIn {
  animation: fadeIn 0.6s var(--transition-base) forwards;
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s var(--transition-base) forwards;
}

.animate-fadeInDown {
  animation: fadeInDown 0.6s var(--transition-base) forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.8s var(--transition-base) forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.8s var(--transition-base) forwards;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-glow {
  animation: glow-pulse 2s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

.animate-rotate {
  animation: rotate 20s linear infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* Stagger children animations */
.stagger-1 { animation-delay: 100ms; }
.stagger-2 { animation-delay: 200ms; }
.stagger-3 { animation-delay: 300ms; }
.stagger-4 { animation-delay: 400ms; }
.stagger-5 { animation-delay: 500ms; }
.stagger-6 { animation-delay: 600ms; }

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-base), transform 0.8s var(--transition-base);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--transition-base), transform 0.8s var(--transition-base);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--transition-base), transform 0.8s var(--transition-base);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--transition-base), transform 0.8s var(--transition-base);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------
   Button Styles
   -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  outline: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.5);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  background: rgba(0, 163, 224, 0.1);
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 201, 167, 0.4);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 201, 167, 0.5);
}

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

.btn-outline:hover {
  border-color: var(--color-secondary);
  color: var(--color-secondary);
  background: rgba(0, 163, 224, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-light);
}

.btn-ghost:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

/* --------------------------------------------
   Card Styles
   -------------------------------------------- */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Product Card */
.product-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.product-card:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-accent);
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 102, 204, 0.15);
}

.product-card:hover::before {
  transform: scaleX(1);
}

/* Enhanced product card with image */
.product-card.group {
  overflow: hidden;
}

.product-card.group::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.product-card.group:hover::after {
  opacity: 1;
}
  box-shadow: var(--shadow-glow);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card .icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.product-card .icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: var(--gradient-primary);
  opacity: 0;
  filter: blur(15px);
  transition: opacity 0.3s ease;
  z-index: -1;
}

.product-card:hover .icon-wrapper {
  transform: scale(1.1);
}

.product-card:hover .icon-wrapper::after {
  opacity: 0.5;
}

/* Feature Card */
.feature-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--color-border-accent);
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.feature-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  color: white;
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  transform: rotate(5deg) scale(1.1);
}

/* Stat Card */
.stat-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid var(--color-border);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  margin-top: 0.75rem;
}

/* Team Card */
.team-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.4s ease;
  border: 1px solid var(--color-border);
}

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

.team-card:hover .team-avatar {
  transform: scale(1.05);
}

.team-card:hover .team-avatar img {
  filter: brightness(1.1);
}

.team-avatar {
  transition: transform 0.4s ease;
  overflow: hidden;
}

/* Publication Card */
.pub-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  min-width: 360px;
  max-width: 360px;
  transition: all 0.4s ease;
}

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

.pub-journal {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(0, 102, 204, 0.2);
  color: var(--color-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

/* Partner Card */
.partner-card {
  padding: 2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all 0.4s ease;
  filter: grayscale(100%);
  opacity: 0.7;
}

.partner-card:hover {
  filter: grayscale(0%);
  opacity: 1;
  background: var(--color-bg-card-hover);
  border-color: var(--color-border-accent);
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

/* Award Card */
.award-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  transition: all 0.4s ease;
  border: 1px solid var(--color-border);
}

.award-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 15px 30px rgba(245, 158, 11, 0.15);
  transform: translateY(-6px);
}

/* --------------------------------------------
   Navigation Styles
   -------------------------------------------- */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all var(--transition-base);
  background: transparent;
}

.nav-container.scrolled {
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
}

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

.nav-link.active {
  color: white;
}

.nav-link.active::after {
  width: 60%;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 15, 26, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  font-size: 1.75rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.mobile-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

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

.mobile-menu a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

/* --------------------------------------------
   Section Styles
   -------------------------------------------- */
.section {
  padding: 5rem 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 8rem 2rem;
  }
}

.section-dark {
  background: var(--color-bg-dark);
}

.section-darker {
  background: var(--color-bg-darker);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-top: 1rem;
  max-width: 700px;
  line-height: 1.8;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--gradient-dark);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(0, 102, 204, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(0, 163, 224, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 201, 167, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* CTA Section */
.cta-section {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: rotate 30s linear infinite;
}

/* --------------------------------------------
   Form Styles
   -------------------------------------------- */
.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: white;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

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

/* --------------------------------------------
   Utility Classes
   -------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

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

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

.bg-gradient-dark {
  background: var(--gradient-dark);
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-accent {
  background: var(--gradient-accent);
}

.glow-effect {
  position: relative;
}

.glow-effect::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-primary);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
  filter: blur(12px);
}

.glow-effect:hover::before {
  opacity: 0.5;
}

/* Glass effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Backdrop blur nav */
.backdrop-blur-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(10, 22, 40, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.divider-accent {
  height: 3px;
  width: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: rgba(0, 102, 204, 0.2);
  color: var(--color-secondary);
  border: 1px solid rgba(0, 163, 224, 0.3);
}

.badge-accent {
  background: rgba(0, 201, 167, 0.2);
  color: var(--color-accent);
  border: 1px solid rgba(0, 201, 167, 0.3);
}

/* Social Icons */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  color: var(--color-text-light);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  color: var(--color-secondary);
  background: rgba(0, 163, 224, 0.1);
  border-color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* Footer */
.footer {
  background: var(--color-bg-darker);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer-link {
  color: var(--color-text-light);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  display: inline-block;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-secondary);
  transition: width var(--transition-base);
}

.footer-link:hover {
  color: white;
}

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

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-bg-dark);
  box-shadow: 0 0 0 2px var(--color-secondary);
  transform: translateX(-7px);
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-dot {
  background: var(--color-secondary);
  box-shadow: 0 0 0 2px var(--color-secondary), 0 0 20px rgba(0, 163, 224, 0.5);
}

.timeline-year {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Tab Styles */
.tab-btn {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.tab-btn:hover {
  border-color: var(--color-secondary);
  color: white;
}

.tab-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.4);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.tab-content.active {
  display: block;
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: white;
  z-index: 100;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* Focus Visible */
.focus-visible:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Particle Canvas */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  z-index: 10;
  animation: bounce 2s ease-in-out infinite;
}

/* Horizontal Scroll Container */
.h-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
}

.h-scroll::-webkit-scrollbar {
  height: 6px;
}

.h-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.h-scroll::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 3px;
}

/* Tech Visualization */
.tech-visualization {
  position: relative;
  width: 100%;
  height: 400px;
  background: var(--gradient-glow);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border-accent);
}

.tech-visualization::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 163, 224, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.tech-visualization::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border: 2px solid rgba(0, 163, 224, 0.2);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite 0.5s;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   Enhanced Animations & Effects
   ============================================ */

/* 3D Card Flip Effect */
.card-flip {
  perspective: 1000px;
}

.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.card-flip:hover .card-flip-inner {
  transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}

.card-flip-back {
  transform: rotateY(180deg);
}

/* Enhanced Gradient Border */
.gradient-border {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
  opacity: 1;
}

/* Animated Gradient Background */
.animated-gradient {
  background: linear-gradient(-45deg, #0A1628, #070F1A, #0D1E36, #0A1628);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Pulse Ring Animation */
.pulse-ring {
  position: relative;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 2px solid var(--color-secondary);
  opacity: 0;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Stagger Animation Delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* Hover Glow Effect */
.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(0, 163, 224, 0.4);
}

/* Skew Animation */
@keyframes skewHover {
  0% { transform: skewX(0deg); }
  25% { transform: skewX(2deg); }
  75% { transform: skewX(-2deg); }
  100% { transform: skewX(0deg); }
}

.skew-hover:hover {
  animation: skewHover 0.5s ease;
}

/* Magnetic Button Effect */
.magnetic-btn {
  transition: transform 0.3s ease;
}

.magnetic-btn:hover {
  transform: scale(1.05);
}

/* Loading Spinner */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Page Transition */
.page-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Scroll Indicator Animation */
.scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Counter Animation Enhancement */
.counter-animate {
  display: inline-block;
}

.counter-animate.active {
  animation: countUp 1s ease-out forwards;
}

/* Parallax Container */
.parallax-container {
  overflow: hidden;
  position: relative;
}

.parallax-bg {
  position: absolute;
  width: 100%;
  height: 120%;
  top: -10%;
  left: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Enhanced Product Card Hover */
.product-card-enhanced {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-enhanced:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 102, 204, 0.25);
}

.product-card-enhanced .card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(circle at center, rgba(0, 163, 224, 0.2), transparent 70%);
}

.product-card-enhanced:hover .card-glow {
  opacity: 1;
}

/* Tech Border Animation */
.tech-border {
  position: relative;
}

.tech-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 163, 224, 0.3), transparent);
  transition: left 0.5s ease;
}

.tech-border:hover::before {
  left: 100%;
}

/* Number Flow Animation */
@keyframes numberFlow {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.number-animate {
  animation: numberFlow 0.8s ease-out forwards;
}

/* Shimmer Effect */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% { left: 100%; }
}

/* Clip Path Animations */
.clip-path-corner {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 0.5s ease;
}

.clip-path-corner:hover {
  clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
}

/* Ripple Effect Container */
.ripple-container {
  position: relative;
  overflow: hidden;
}

.ripple-container::after {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: radial-gradient(circle, rgba(0, 163, 224, 0.1) 0%, transparent 50%);
  animation: ripple 3s ease-in-out infinite;
}

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

/* Float Animation Variants */
.float-infinite {
  animation: float 6s ease-in-out infinite;
}

.float-infinite-delayed {
  animation: float 6s ease-in-out infinite 2s;
}

.float-infinite-slow {
  animation: float 8s ease-in-out infinite;
}

/* Enhanced Reveal Animation */
.reveal-enhanced {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Glass Morphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 163, 224, 0.3);
  transform: translateY(-5px);
}

/* Image Hover Zoom */
.img-zoom-hover {
  overflow: hidden;
}

.img-zoom-hover img {
  transition: transform 0.5s ease;
}

.img-zoom-hover:hover img {
  transform: scale(1.1);
}

/* Icon Spin on Hover */
.icon-spin-hover {
  transition: transform 0.3s ease;
}

.icon-spin-hover:hover {
  transform: rotate(360deg);
}

/* Enhanced Button Hover */
.btn-enhanced {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-enhanced::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;
}

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

.btn-enhanced:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

/* Section Divider Wave */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}

.wave-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-divider .fill {
  fill: var(--color-bg-dark);
}

/* Testimonial Card Animation */
.testimonial-card {
  transition: all 0.4s ease;
}

.testimonial-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Logo Hover Scale */
.logo-hover-scale {
  transition: transform 0.3s ease;
}

.logo-hover-scale:hover {
  transform: scale(1.1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-darker);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-primary), var(--color-secondary));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-secondary), var(--color-accent));
}

/* Focus Ring Animation */
.focus-ring {
  transition: all 0.3s ease;
}

.focus-ring:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.5);
  transform: scale(1.02);
}
