﻿:root {
  /* Brand Primary Colors (CyberWave Logo) */
  --primary: #0E3550;
  /* Deep Navy -- Logo Primary */
  --primary-dark: #081C2D;
  /* Darker Navy */
  --primary-light: #e6f7ff;
  /* Very Light Blue for backgrounds */

  /* Secondary and Accent */
  --secondary: #0E3550;
  /* Matching Primary (No Purple) */
  --accent: #228A9E;
  /* Logo Cyan/Teal */

  /* Light Theme Colors */
  --white: #ffffff;
  --light-bg: #f8fafc;
  /* Crisp White/Grey */
  --light-text: #0E3550;
  /* Navy Text (High Contrast) */
  --light-text-secondary: #475569;
  /* Slate Grey */
  --light-muted: #94a3b8;
  --light-border: #e2e8f0;

  /* Dark Theme Backgrounds (Inverted) */
  --darker: #f3f4f6;
  --dark: #ffffff;
  --light: #ffffff;

  /* Text Colors */
  --text-primary: #0E3550;
  /* Navy for Headings */
  --text-secondary: #475569;
  /* Slate for Body */
  --text-muted: #64748b;
  --text-accent: #228A9E;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0E3550, #081C2D);
  --gradient-dark: linear-gradient(135deg, #f8fafc, #f1f5f9);
  --gradient-accent: linear-gradient(135deg, #228A9E, #33a9b1);
  /* Cyan Blend */

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.5);

  /* Enhanced Shadows (Subtler for light mode) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-primary: 0 10px 15px -3px rgba(10, 25, 47, 0.2);
  --shadow-accent: 0 10px 15px -3px rgba(0, 204, 204, 0.2);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);

  /* Radius for UI Components */
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 14px;
  --border-radius-xl: 20px;
  --border-radius-full: 9999px;

  /* Transitions & Spacing */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --section-padding: 100px;

  /* Cyber Effects */
  --cyber-glow: 0 0 10px rgba(34, 138, 158, 0.5), 0 0 20px rgba(34, 138, 158, 0.3);
  --neon-link: #228A9E;

  /* Typography - Font Families */
  --font-body: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;

  /* Typography - Type Scale */
  --text-xs: 0.75rem;
  /* 12px */
  --text-sm: 0.875rem;
  /* 14px */
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  /* 18px */
  --text-xl: 1.25rem;
  /* 20px */
  --text-2xl: 1.5rem;
  /* 24px */
  --text-3xl: 2rem;
  /* 32px */
  --text-4xl: 2.5rem;
  /* 40px */
  --text-5xl: 3rem;
  /* 48px */

  /* Typography - Font Weights */
  --font-normal: 400;
  --font-semibold: 600;
  --font-bold: 700;
}

/* Cyber Animations */
@keyframes glitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(-2px, -2px);
  }

  60% {
    transform: translate(2px, 2px);
  }

  80% {
    transform: translate(2px, -2px);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes neonPulse {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(34, 138, 158, 0.2);
    border-color: rgba(34, 138, 158, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(34, 138, 158, 0.6);
    border-color: rgba(34, 138, 158, 1);
  }
}

@keyframes scanline {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100vh);
  }
}

.cyber-glitch:hover {
  animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
  color: var(--accent) !important;
  text-shadow: 2px 0 #fff, -2px 0 var(--primary);
}

.neon-card:hover {
  animation: neonPulse 1.5s infinite;
  transform: translateY(-8px) scale(1.02);
}

.scanline-box {
  position: relative;
  overflow: hidden;
}

.scanline-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(34, 138, 158, 0.1);
  z-index: 2;
  pointer-events: none;
  animation: scanline 4s linear infinite;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 20px;
  position: relative;
  display: block;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-subtitle {
  font-size: var(--text-base);
  max-width: 700px;
  margin: 0 auto 30px;
  font-weight: var(--font-normal);
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius-full);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 102, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ====================== */
/* CONSULTATION BUTTON FIX */
/* ====================== */

/* Hero buttons - for dark background */
.hero-buttons .btn-secondary {
  background: transparent;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.hero-buttons .btn-secondary:hover {
  background: #ffffff !important;
  color: var(--primary-dark) !important;
  border-color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2) !important;
}

/* CTA buttons - for light background */
.cta-buttons .btn-secondary {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.cta-buttons .btn-secondary:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: var(--shadow-primary) !important;
}

/* ====================== */
/* PRESERVE EXISTING BUTTONS */
/* ====================== */

/* This maintains all other secondary buttons as they were */
.btn-secondary:not(.hero-buttons .btn-secondary):not(.cta-buttons .btn-secondary) {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-secondary:not(.hero-buttons .btn-secondary):not(.cta-buttons .btn-secondary):hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}

/* Header - White Background */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  padding: 12px 0;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(to bottom, #0E3550 0%, #0E3550 50%, #228A9E 50%, #228A9E 100%);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.98);
}

.header.scrolled .logo img {
  height: 50px;
}

/* Make the header background fully transparent when scrolling down */
.header.scrolled-down {
  background: transparent;
  box-shadow: none;
  border-bottom: none;
}

/* Keep logo visible when header is transparent */
.header.scrolled-down .logo img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Nav Dark Mode - White text when over dark sections */
.header.nav-dark-mode {
  background: transparent;
}

.header.nav-dark-mode .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.header.nav-dark-mode .nav-link:hover {
  color: #ffffff;
}

.header.nav-dark-mode .nav-link::after {
  background: #ffffff;
}

.header.nav-dark-mode .nav-link.active-section {
  color: #ffffff !important;
}

.header.nav-dark-mode .logo img {
  filter: brightness(0) invert(1);
}

.header.nav-dark-mode .mobile-menu-toggle span {
  background-color: #ffffff;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigation Logo - Bigger logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: var(--font-bold);
  font-size: var(--text-2xl);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.logo:hover img {
  transform: scale(1.05);
}

/* Footer Logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  margin-bottom: 10px;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.footer-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.footer-logo:hover img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 20px;
  /* Smaller gap between nav items */
  list-style: none;
  align-items: center;
}

.nav-link {
  position: relative;
  font-weight: var(--font-semibold);
  color: var(--primary-dark);
  transition: var(--transition);
  font-size: var(--text-sm);
  /* Smaller font size */
  font-family: var(--font-heading);
  padding: 6px 0;
  /* Smaller padding */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  /* Thinner underline */
  background: var(--gradient-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: 10px;
  /* Smaller margin */
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  /* Smaller gap */
  cursor: pointer;
  z-index: 1001;
  width: 28px;
  /* Smaller toggle */
  height: 28px;
  justify-content: center;
  align-items: center;
}

.mobile-menu-toggle span {
  width: 22px;
  /* Smaller bars */
  height: 2px;
  background: var(--primary-dark);
  border-radius: 3px;
  transition: var(--transition);
  display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, #0a1929 0%, var(--primary) 50%, #0a1929 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(34, 138, 158, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 138, 158, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
  z-index: 0;
}

#tech-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
  z-index: 0;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-content {
  padding: 0 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #ffffff;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Digital Transformation Pioneers Badass Effect */
.digital-pioneers {
  position: relative;
  display: inline-block;
}

.digital-pioneers::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.digital-pioneers:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.digital-pioneers::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease 0.3s;
}

.digital-pioneers:hover::after {
  transform: scaleX(1);
  transform-origin: right;
}

/* Add techy animation to the text */
@keyframes techGlow {

  0%,
  100% {
    text-shadow: 0 0 5px rgba(34, 138, 158, 0.5);
  }

  50% {
    text-shadow: 0 0 15px rgba(34, 138, 158, 0.8), 0 0 30px rgba(34, 138, 158, 0.4);
  }
}

.digital-pioneers:hover {
  animation: techGlow 2s infinite;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  line-height: 1.6;
  font-weight: var(--font-normal);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Services Section */
.services {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%230066ff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--light);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card:hover .service-icon {
  background: var(--gradient-accent);
  color: var(--white);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-xl);
  margin-bottom: 20px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-title {
  font-size: var(--text-2xl);
  margin-bottom: 14px;
  color: var(--text-primary);
  transition: var(--transition);
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.7;
  font-weight: var(--font-normal);
  font-size: var(--text-base);
  transition: var(--transition);
}

.service-features {
  list-style: none;
  margin-bottom: 20px;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-weight: var(--font-normal);
  font-size: var(--text-sm);
  transition: var(--transition);
}

.service-feature i {
  color: var(--accent);
  font-size: var(--text-xs);
  transition: var(--transition);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  transition: var(--transition);
}

.service-link:hover {
  gap: 12px;
  color: var(--text-primary);
}

.service-link i {
  color: inherit;
}

/* About Section - White Background */
.about {
  background: var(--white);
  position: relative;
  overflow: hidden;
  color: var(--light-text);
}

.about h2,
.about h3,
.about .section-title,
.about .section-title::after {
  color: var(--light-text);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-content h2 {
  margin-bottom: 20px;
  color: var(--light-text);
}

.about-text {
  color: var(--light-text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: var(--text-base);
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
  position: relative;
  z-index: 3;
}

.mission-card,
.vision-card {
  background: var(--light-bg);
  border-radius: var(--border-radius-lg);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-border);
  transition: var(--transition);
}

.mission-card:hover,
.vision-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.mission-card h3,
.vision-card h3 {
  font-size: var(--text-xl);
  margin-bottom: 14px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mission-card h3 i,
.vision-card h3 i {
  color: var(--accent);
}

.mission-card p,
.vision-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--text-sm);
}

.hero {
  padding-bottom: 0;
  margin-bottom: -80px;
}

.services-header {
  padding-top: 10px;
}


.hero-visual {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 100%;
  transform-style: preserve-3d;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(20px);
}

/* Portfolio Section */
.portfolio {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.portfolio-item {
  background: var(--light);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.portfolio-image {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.portfolio-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: 1;
  mix-blend-mode: overlay;
}

.portfolio-item:hover .portfolio-image::before {
  opacity: 0.3;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 18px 20px;
}

.portfolio-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: 4px;
  color: var(--text-primary);
}

.portfolio-subtitle {
  font-size: var(--text-sm);
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: var(--font-normal);
}

.portfolio-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  font-size: var(--text-xs);
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  transition: var(--transition);
}

.portfolio-link:hover {
  gap: 12px;
  color: var(--text-primary);
}

.portfolio-link i {
  color: inherit;
}

/* Team Section */
/* Team Section Styling */
.team {
  padding: 70px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
}

.team::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 53, 80, 0.1), transparent);
}

.team-header {
  text-align: center;
  margin-bottom: 35px;
}

.section-title {
  color: var(--text-primary);
  font-size: var(--text-3xl);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-base);
  max-width: 600px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* Team Card Styling */
.team-member {
  background: white;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(14, 53, 80, 0.1);
  border-color: rgba(34, 138, 158, 0.2);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 3px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  color: #0E3550;
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  margin-bottom: 4px;
}

.team-role {
  color: #228A9E;
  font-weight: var(--font-normal);
  margin-bottom: 12px;
  font-size: var(--text-sm);
}

.team-bio {
  color: #666;
  line-height: 1.5;
  margin-bottom: 16px;
  font-size: var(--text-xs);
}

/* Team Social Icons */
.team-social {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.team-social .social-link {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.3s ease;
  background: #f0f4f8;
  color: #64748b;
}

.team-social .social-link.linkedin {
  color: #0a66c2;
}

.team-social .social-link.facebook {
  color: #1877f2;
}

.team-social .social-link.twitter {
  color: #1da1f2;
}

.team-social .social-link:hover {
  transform: translateY(-2px);
}

.team-social .social-link.linkedin:hover {
  background: #0a66c2;
  color: white;
}

.team-social .social-link.facebook:hover {
  background: #1877f2;
  color: white;
}

.team-social .social-link.twitter:hover {
  background: #1da1f2;
  color: white;
}

/* Animations */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

/* Testimonials Section */
.testimonials {
  background: var(--primary-dark);
  padding: var(--section-padding) 0;
  text-align: center;
  color: var(--text-primary);
}

.testimonials .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonials-header {
  width: 100%;
  margin-bottom: 60px;
}

.testimonials .section-title {
  color: var(--white);
}

.testimonials .section-subtitle {
  color: var(--light-text-secondary);
  opacity: 0.8;
}

.testimonial-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
}

.testimonial-wrapper {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53);
  transform: translateX(100%);
  display: flex;
  justify-content: center;
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial.prev {
  transform: translateX(-100%);
}

.testimonial-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 800px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.testimonial-content p {
  font-size: var(--text-xl);
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--white);
  position: relative;
  font-style: italic;
  padding: 0 20px;
}

.testimonial-content p::before,
.testimonial-content p::after {
  color: rgba(255, 255, 255, 0.2);
  font-size: var(--text-5xl);
  font-family: serif;
  line-height: 1;
  position: absolute;
}

.testimonial-content p::before {
  content: '"';
  top: -15px;
  left: 0;
}

.testimonial-content p::after {
  content: '"';
  bottom: -40px;
  right: 0;
}

.client-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.client-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.client-details {
  text-align: left;
}

.client-info h4 {
  font-size: var(--text-xl);
  margin-bottom: 5px;
  color: var(--white);
}

.client-info span {
  font-size: var(--text-sm);
  color: #cbd5e1;
  display: block;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.nav-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

/* Makes the gradient text pop more */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
}

.nav-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* CTA Section - White Background */
.cta {
  background: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--light-text);
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2300d4ff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.cta-container {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 20px;
  color: var(--light-text);
}

.cta-subtitle {
  font-size: var(--text-lg);
  color: var(--light-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Section */
.contact {
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.contact-info h2 {
  color: var(--text-primary);
  margin-bottom: 20px;
}

.contact-text {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.8;
  font-weight: var(--font-normal);
  max-width: 500px;
  font-size: var(--text-base);
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-lg);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.contact-label {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: var(--text-base);
}

.contact-value {
  color: var(--text-secondary);
  font-weight: var(--font-normal);
  font-size: var(--text-sm);
}

.contact-form {
  background: var(--light);
  border-radius: var(--border-radius-xl);
  padding: 50px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--light-border);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: var(--text-base);
}

.form-control {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--light-border);
  border-radius: var(--border-radius-md);
  background: var(--light-bg);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: var(--transition);
  font-family: var(--font-body);
}

/* Form Dropdown Styling */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

select.form-control option {
  background: var(--light);
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
  background: var(--white);
}

.form-control.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-control.error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  background: var(--gradient-primary);
  color: var(--white);
  font-weight: var(--font-bold);
  padding: 16px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-primary);
  transition: var(--transition);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: var(--text-sm);
  border: none;
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 102, 255, 0.5);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, #0a1f33 0%, #081824 100%);
  padding-top: 60px;
  padding-bottom: 30px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: 12px;
  color: #ffffff;
  font-family: var(--font-heading);
}

.footer-logo img {
  height: 50px;
  filter: brightness(0) invert(1);
}

.footer-description {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 20px;
  font-weight: var(--font-normal);
  font-size: var(--text-sm);
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  font-size: var(--text-sm);
}

.social-link:hover {
  transform: translateY(-2px);
}

.social-link.facebook:hover {
  background: #1877f2;
  color: white;
}

.social-link.twitter:hover {
  background: #1da1f2;
  color: white;
}

.social-link.linkedin:hover {
  background: #0a66c2;
  color: white;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.social-link.github:hover {
  background: #333;
  color: white;
}

.footer-section h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #ffffff;
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}

.footer-link a {
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
  font-weight: var(--font-normal);
  display: inline-block;
  font-size: var(--text-sm);
}

.footer-link a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-weight: var(--font-normal);
  font-size: var(--text-xs);
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  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% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes techGlow {

  0%,
  100% {
    text-shadow: 0 0 5px rgba(34, 138, 158, 0.5);
  }

  50% {
    text-shadow: 0 0 15px rgba(34, 138, 158, 0.8), 0 0 30px rgba(34, 138, 158, 0.4);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  opacity: 0;
  animation: slideInRight 0.8s ease forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

.delay-5 {
  animation-delay: 1s;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .container {
    max-width: 1200px;
  }
}

@media (max-width: 1200px) {
  :root {
    --section-padding: 70px;
  }

  .container {
    padding: 0 25px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 992px) {

  .hero-container,
  .about-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero {
    padding-top: 100px;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 35px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 31, 46, 1);
    /* Solid background for maximum clarity */
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px;
    gap: 20px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    z-index: 4000;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
  }

  .nav-link:hover,
  .nav-link.active-section {
    color: var(--accent) !important;
    padding-left: 10px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin-left: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .portfolio-grid,
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-content {
    padding: 35px;
  }

  .testimonial-content p {
    font-size: var(--text-base);
    /* Smaller font on mobile */
  }

  .client-info h4 {
    font-size: var(--text-base);
    /* Smaller font on mobile */
  }

  .client-info span {
    font-size: var(--text-xs);
    /* Smaller font on mobile */
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  /* Mobile button adjustments */
  .btn {
    padding: 12px 20px;
    /* Slightly smaller buttons on mobile */
    font-size: var(--text-sm);
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .cta-buttons .btn {
    width: auto;
    min-width: 140px;
  }
}

@media (max-width: 576px) {
  :root {
    --section-padding: 50px;
  }

  .container {
    padding: 0 15px;
  }

  .services-grid,
  .portfolio-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-content {
    padding: 25px 15px;
  }

  .testimonial-content p {
    font-size: var(--text-sm);
    /* Even smaller font on very small screens */
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .testimonial-content p::before,
  .testimonial-content p::after {
    font-size: var(--text-3xl);
    /* Smaller quotes */
  }

  .client-info img {
    width: 50px;
    /* Smaller avatar */
    height: 50px;
  }

  .client-info h4 {
    font-size: var(--text-sm);
  }

  .client-info span {
    font-size: var(--text-xs);
  }

  .contact-form {
    padding: 25px 15px;
  }
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 28, 45, 0.85);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-primary);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-xl);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(14, 53, 80, 0.4);
}

/* Premium Scroll Indicator - Mouse */
.scroll-indicator {
  display: block;
  margin: 40px auto 0;
  z-index: 10;
  text-decoration: none;
  width: fit-content;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 13px;
  position: relative;
  transition: border-color 0.3s ease;
}

.scroll-indicator:hover .mouse {
  border-color: rgba(255, 255, 255, 0.9);
}

.wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(12px);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

/* Active Nav Link */
.nav-link.active-section {
  color: var(--accent) !important;
  font-weight: var(--font-bold);
}

/* Dropdown Styling */
.dropdown-container {
  position: relative;
}

.dropdown-container>.nav-link {
  padding-bottom: 15px;
  margin-bottom: -10px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: -10px;
  background: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow-xl);
  border-radius: var(--border-radius-md);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1001;
  list-style: none;
}

.dropdown-container:hover .dropdown-menu,
.dropdown-container:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 20px;
  color: var(--text-primary);
  transition: var(--transition);
  font-size: var(--text-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
  padding-left: 25px;
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    padding: 0;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown-container.active .dropdown-menu {
    display: block;
    max-height: 200px;
  }

  .dropdown-item {
    padding: 10px 0;
    text-align: center;
    border: none;
    font-size: var(--text-sm);
    color: var(--text-muted);
  }

  .dropdown-container>.nav-link .fa-chevron-down {
    transition: transform 0.3s ease;
  }

  .dropdown-container.active>.nav-link .fa-chevron-down {
    transform: rotate(180deg);
  }
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  z-index: 9999;
  transition: top 0.3s ease;
  text-decoration: none;
  font-weight: var(--font-semibold);
  border-radius: 0 0 var(--border-radius-md) 0;
}

.skip-link:focus {
  top: 0;
}

/* ================================ */
/* ENHANCED SERVICES SECTION UI     */
/* ================================ */

.services {
  background: var(--white);
}

.services-header {
  text-align: center;
  margin-bottom: 50px;
}

.services-header .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--light-border);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(14, 53, 80, 0.1);
  border-color: var(--accent);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: var(--text-lg);
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--gradient-accent);
}

.service-title {
  font-size: var(--text-lg);
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-weight: var(--font-bold);
}

.service-description {
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
  font-size: var(--text-sm);
}

.service-features {
  list-style: none;
  margin-bottom: 16px;
  padding: 0;
}

.service-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--text-secondary);
  font-size: var(--text-xs);
}

.service-feature i {
  color: var(--accent);
  font-size: var(--text-xs);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: var(--font-semibold);
  font-size: var(--text-sm);
  transition: all 0.3s ease;
}

.service-link:hover {
  color: var(--primary);
  gap: 10px;
}

/* ================================ */
/* ENHANCED PORTFOLIO SECTION UI    */
/* ================================ */

.portfolio {
  background: linear-gradient(135deg, #0a1929 0%, #0E3550 50%, #0a1929 100%);
  position: relative;
}

.portfolio::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(34, 138, 158, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(34, 138, 158, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Cyber grid animation */
.portfolio::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(34, 138, 158, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 138, 158, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(50px, 50px);
  }
}

.portfolio-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.portfolio-header .section-title {
  color: var(--white);
}

.portfolio-header .section-title::after {
  background: var(--gradient-accent);
  left: 50%;
  transform: translateX(-50%);
}

.portfolio-header .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.portfolio-item {
  background: #ffffff;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(14, 53, 80, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(135deg, #0E3550 0%, #228A9E 100%);
  z-index: 0;
}

.portfolio-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34, 138, 158, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.portfolio-item:hover::after {
  left: 100%;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 138, 158, 0.3);
  box-shadow: 0 15px 40px rgba(14, 53, 80, 0.15), 0 0 20px rgba(34, 138, 158, 0.1);
}

.portfolio-content {
  position: relative;
  z-index: 2;
  padding: 24px !important;
  background: #ffffff;
}

.portfolio-item .portfolio-content>div:first-child {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0E3550 0%, #228A9E 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  margin-top: -80px;
  box-shadow: 0 8px 20px rgba(14, 53, 80, 0.25);
  position: relative;
  z-index: 3;
}

.portfolio-item .portfolio-content>div:first-child i {
  font-size: var(--text-xl) !important;
  color: #ffffff !important;
}

.portfolio-title {
  font-size: var(--text-lg);
  margin-bottom: 4px;
  color: #0E3550;
  font-weight: var(--font-semibold);
}

.portfolio-item span[style*="color:var(--accent)"] {
  color: #228A9E !important;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--font-semibold);
}

.portfolio-description {
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 14px;
  font-size: var(--text-xs);
}

.tech-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tech-tags span {
  background: rgba(14, 53, 80, 0.08);
  color: #0E3550;
  padding: 4px 10px;
  border-radius: var(--border-radius-full);
  font-size: 0.7rem;
  font-weight: var(--font-semibold);
  border: 1px solid rgba(14, 53, 80, 0.1);
  transition: all 0.3s ease;
}

.portfolio-item:hover .tech-tags span {
  background: rgba(34, 138, 158, 0.15);
  color: #228A9E;
  border-color: rgba(34, 138, 158, 0.3);
}

/* Responsive adjustments for new UI */
@media (max-width: 1200px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 20px;
  }

  .portfolio-item::before {
    height: 100px;
  }

  .portfolio-item .portfolio-content>div:first-child {
    margin-bottom: 60px;
  }
}