/* Modern CSS Reset and Variables */
:root {
  /* Primary Colors - Moderate Blue Palette */
  --primary-blue: #4a90e2;
  --primary-dark: #2c5aa0;
  --primary-light: #6ba3f0;
  --accent-gold: #ffd700;

  /* Background Colors */
  --bg-primary: #0f1419;
  --bg-secondary: #1a1f2e;
  --bg-tertiary: #252a3a;
  --bg-glass: rgba(26, 31, 46, 0.85);

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #e6eaf3;
  --text-muted: #9ca3af;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4a90e2 0%, #2c5aa0 100%);
  --gradient-secondary: linear-gradient(135deg, #6ba3f0 0%, #4a90e2 100%);
  --gradient-accent: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  --gradient-dark: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(74, 144, 226, 0.1);
  --shadow-medium: 0 8px 32px rgba(74, 144, 226, 0.15);
  --shadow-strong: 0 16px 64px rgba(74, 144, 226, 0.2);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.37);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-primary: "Inter", "Montserrat", sans-serif;
  --font-secondary: "Montserrat", sans-serif;
}

/* CSS Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Hardware acceleration for all elements */
*[style*="transform"],
*:hover,
*:focus,
*:active {
  will-change: auto;
  transform-style: preserve-3d;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  touch-action: manipulation;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Modern Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(15, 20, 25, 0.05);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  background: var(--bg-glass);
  box-shadow: var(--shadow-medium);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo .logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast);
}

.nav-logo .logo-link:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 2rem;
  background: var(--gradient-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 2s ease-in-out infinite;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  font-family: var(--font-secondary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding: 0.5rem 0;
  transition: all var(--transition-fast);
  touch-action: manipulation;
  will-change: transform;
  transform: translateZ(0);
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  transform: translateY(-1px) scale(1.05);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
  touch-action: manipulation;
}

.nav-toggle .bar {
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.nav-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Header */
.hero-header {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 10;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  background-size: 400% 400%;
  animation: gradientShift 8s ease-in-out infinite;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(106, 163, 240, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 215, 0, 0.2) 0%,
      transparent 50%
    ),
    linear-gradient(
      135deg,
      rgba(15, 20, 25, 0.8) 0%,
      rgba(26, 31, 46, 0.6) 100%
    );
}

/* Hero parallax particles */
.hero-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 10% 20%,
      rgba(74, 144, 226, 0.1) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(106, 163, 240, 0.08) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 30% 90%,
      rgba(255, 215, 0, 0.06) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 70% 10%,
      rgba(74, 144, 226, 0.05) 1px,
      transparent 1px
    );
  background-size: 150px 150px, 200px 200px, 120px 120px, 180px 180px;
  animation: heroParallax 30s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 15;
  text-align: center;
  width: 100%;
  padding: 2rem;
}

.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-primary);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s
    forwards;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 3rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s
    forwards;
}

.hero-highlight {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary-light);
  font-size: 1.05em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-secondary);
  color: var(--text-primary);
  padding: 1.3rem 3rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-medium);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s
    forwards;
  touch-action: manipulation;
  will-change: transform;
}

.hero-cta::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 var(--transition-fast);
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-strong);
  border-color: var(--accent-gold);
}

.hero-cta:hover::before {
  left: 100%;
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  opacity: 0;
  z-index: 12;
  animation: scrollIndicatorFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94)
    0.8s forwards;
  transition: all var(--transition-medium);
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(0) scale(1.1);
}

.scroll-mouse {
  width: 28px;
  height: 48px;
  border: 2px solid var(--primary-light);
  border-radius: 15px;
  position: relative;
  transition: border-color var(--transition-medium);
}

.scroll-indicator:hover .scroll-mouse {
  border-color: var(--accent-gold);
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollAnimation 2s infinite;
  box-shadow: 0 0 4px rgba(106, 163, 240, 0.6);
}

.scroll-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Animations */
@keyframes heroFadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollIndicatorFadeIn {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes scrollAnimation {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Section Styling */
.section {
  padding: 6rem 0;
  position: relative;
  z-index: 5;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-family: var(--font-secondary);
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-accent);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* About Section */
.about-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.about-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.about-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.about-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-strong);
  border-color: var(--primary-light);
}

.about-card:hover::before {
  opacity: 0.05;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  position: relative;
  z-index: 1;
}

.about-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.about-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Modern Vertical Timeline */
.timeline-vertical {
  margin-top: 4rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-header {
  text-align: center;
  margin-bottom: 4rem;
}

.timeline-header h3 {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timeline-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 400;
}

.timeline-track {
  position: relative;
  padding: 2rem 0;
}

/* Central timeline line */
.timeline-track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--primary-blue) 10%,
    var(--primary-blue) 90%,
    transparent 100%
  );
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-milestone {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  min-height: 120px;
}

.timeline-milestone.left {
  justify-content: flex-end;
  text-align: right;
}

.timeline-milestone.right {
  justify-content: flex-start;
  text-align: left;
}

.milestone-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--gradient-accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  box-shadow: 0 0 0 6px var(--bg-primary), 0 0 0 10px rgba(74, 144, 226, 0.2);
  transition: all var(--transition-medium);
}

.timeline-milestone:hover .milestone-dot {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 0 6px var(--bg-primary), 0 0 0 15px rgba(74, 144, 226, 0.3);
}

.milestone-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 144, 226, 0.15);
  border-radius: 24px;
  padding: 2.5rem;
  width: 400px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
  will-change: transform;
  transform: translateZ(0);
}

.timeline-milestone.left .milestone-card {
  margin-right: 3rem;
  transform-origin: right center;
}

.timeline-milestone.right .milestone-card {
  margin-left: 3rem;
  transform-origin: left center;
}

.milestone-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: -1;
}

.timeline-milestone:hover .milestone-card {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-strong);
  border-color: var(--primary-light);
}

.timeline-milestone:hover .milestone-card::before {
  opacity: 0.08;
}

/* Card connecting line */
.milestone-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  transform: translateY(-50%);
  transition: all var(--transition-medium);
}

.timeline-milestone.left .milestone-card::after {
  right: -20px;
}

.timeline-milestone.right .milestone-card::after {
  left: -20px;
}

.milestone-date {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.milestone-card h4 {
  color: var(--text-primary);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1;
}

.milestone-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.milestone-card strong {
  color: var(--primary-light);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.milestone-card strong:hover {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.milestone-card a {
  text-decoration: none;
}

/* Project Pages Styles */
.project-header {
  min-height: 80vh;
  background: var(--gradient-dark);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 50%,
    var(--bg-tertiary) 100%
  );
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(74, 144, 226, 0.1) 0%,
    rgba(15, 20, 25, 0.8) 70%
  );
}

.project-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 0 4rem;
}

.project-badge {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--bg-primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  margin-bottom: 2rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.project-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.project-highlight {
  color: var(--accent-gold);
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.project-cta {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.project-cta.primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  border: 2px solid transparent;
}

.project-cta.secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary-blue);
}

.project-cta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.project-cta.primary:hover {
  background: var(--gradient-accent);
}

.project-cta.secondary:hover {
  background: var(--primary-blue);
}

/* Project Overview */
.project-overview {
  background: var(--bg-primary);
}

.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.overview-text h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.overview-text h3:first-child {
  margin-top: 0;
}

.overview-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.overview-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 144, 226, 0.15);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-medium);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-light);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 144, 226, 0.15);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-strong);
  border-color: var(--primary-light);
}

.feature-card:hover::before {
  opacity: 0.05;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.feature-card h3 {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Tech Stack */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.tech-item {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 144, 226, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-medium);
}

.tech-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-medium);
}

.tech-name {
  color: var(--text-primary);
  font-weight: 600;
}

.tech-value {
  color: var(--primary-light);
  font-weight: 500;
}

/* Video Showcase */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.video-item {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 144, 226, 0.15);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-medium);
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-light);
}

.video-placeholder {
  background: var(--bg-secondary);
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  position: relative;
}

.play-icon {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.video-item h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem;
  margin-bottom: 0.5rem;
}

.video-item p {
  color: var(--text-secondary);
  margin: 0 1.5rem 1.5rem;
  line-height: 1.5;
}

/* Portfolio Showcase Styles */
.portfolio-showcase {
  background: #fafafa;
  padding: 4rem 0;
  color: #2c3e50;
}

.project-documentation {
  margin-bottom: 4rem;
  background: white;
  border: 1px solid #e0e0e0;
  padding: 3rem;
}

.doc-header h2 {
  color: #2c3e50;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.doc-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.doc-overview h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.5rem;
}

.doc-overview > p {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.doc-section {
  margin-bottom: 2rem;
}

.doc-section h4 {
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.doc-section p {
  color: #555;
  line-height: 1.7;
  font-size: 1rem;
}

.metrics-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.metrics-list li {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.metrics-list li:before {
  content: "•";
  color: #2c3e50;
  position: absolute;
  left: 0;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.highlight-label {
  font-weight: 600;
  color: #2b6cb0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.highlight-item span:last-child {
  color: #4a5568;
  line-height: 1.5;
}

.brief-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.stat-item {
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.stat-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.portfolio-section {
  background: white;
  border: 1px solid #e0e0e0;
  padding: 2.5rem;
}

.portfolio-section h3 {
  color: #2c3e50;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.8rem;
}

.feature-documentation {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-detail {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #2c3e50;
  padding: 1.5rem;
}

.feature-detail h4 {
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.feature-detail > p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.feature-specs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-specs li {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.feature-specs li:before {
  content: "→";
  color: #2c3e50;
  position: absolute;
  left: 0;
}

.tech-documentation {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tech-detail {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-left: 3px solid #2c3e50;
  padding: 1.5rem;
}

.tech-detail h4 {
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.tech-detail > p {
  color: #555;
  line-height: 1.6;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.tech-specs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tech-specs li {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.tech-specs li:before {
  content: "→";
  color: #2c3e50;
  position: absolute;
  left: 0;
}

.tech-specs strong {
  color: #2c3e50;
}

/* Responsive Portfolio */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .portfolio-showcase {
    padding: 2rem 0;
  }

  .project-documentation {
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .doc-header h2 {
    font-size: 2rem;
  }

  .portfolio-section {
    padding: 2rem;
  }

  .feature-detail,
  .tech-detail {
    padding: 1rem;
  }
}

/* Services Section */
.services {
  background: var(--gradient-dark);
  position: relative;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%234A90E2" stroke-width="0.3" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.1;
}

/* Parallax floating elements */
.services::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(74, 144, 226, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(106, 163, 240, 0.08) 3px,
      transparent 3px
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(255, 215, 0, 0.05) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(74, 144, 226, 0.06) 2px,
      transparent 2px
    );
  background-size: 200px 200px, 300px 300px, 150px 150px, 250px 250px;
  animation: parallaxFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.service-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 144, 226, 0.15);
  border-radius: 24px;
  padding: 2rem;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-strong);
  border-color: var(--primary-light);
}

.service-card:hover::before {
  opacity: 0.08;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-secondary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: all var(--transition-medium);
}

.service-icon svg {
  width: 40px;
  height: 40px;
  color: var(--text-primary);
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(8deg);
  background: var(--gradient-accent);
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.service-card ul {
  list-style: none;
  position: relative;
  z-index: 1;
}

.service-card li {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.service-card li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: bold;
}

/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-medium);
  will-change: transform;
  transform: translateZ(0);
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-light);
}

.product-card.featured {
  border-color: var(--primary-light);
  background: linear-gradient(
    135deg,
    var(--bg-glass) 0%,
    rgba(74, 144, 226, 0.05) 100%
  );
}

.product-preview {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(74, 144, 226, 0.05) 0%,
    rgba(142, 68, 173, 0.05) 100%
  );
}

.product-screenshot {
  width: 100%;
  height: 200px;
  position: relative;
}

.mockup-browser {
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.browser-bar {
  height: 30px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) {
  background: #ff5f56;
}

.browser-dots span:nth-child(2) {
  background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
  background: #27ca3f;
}

.browser-content {
  padding: 1rem;
  height: calc(100% - 30px);
  overflow: hidden;
}

.taskflow-preview {
  color: #fff;
  font-size: 0.9rem;
}

.task-header {
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(74, 144, 226, 0.3);
  padding-bottom: 0.5rem;
}

.task-item {
  padding: 0.4rem 0;
  color: rgba(255, 255, 255, 0.8);
  border-left: 2px solid rgba(74, 144, 226, 0.3);
  padding-left: 0.8rem;
  margin-bottom: 0.5rem;
}

.travel-preview {
  color: #fff;
  font-size: 0.9rem;
}

.travel-header {
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(142, 68, 173, 0.3);
  padding-bottom: 0.5rem;
}

.travel-item {
  padding: 0.4rem 0;
  color: rgba(255, 255, 255, 0.8);
  border-left: 2px solid rgba(142, 68, 173, 0.3);
  padding-left: 0.8rem;
  margin-bottom: 0.5rem;
}

.coming-soon-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.coming-soon-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.coming-soon-text {
  font-size: 0.9rem;
  font-style: italic;
}

.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.product-info p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.product-stats .stat {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(74, 144, 226, 0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(74, 144, 226, 0.2);
}

.product-link {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  align-self: flex-start;
}

.product-link:hover {
  color: var(--primary-dark);
}

.product-link.disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

.product-card.coming-soon {
  opacity: 0.7;
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 16px;
  transition: all var(--transition-medium);
  will-change: transform;
  transform: translateZ(0);
}

.stat-item:hover {
  transform: scale(1.05);
  border-color: var(--primary-light);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-secondary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  font-family: var(--font-secondary);
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  background: var(--gradient-dark);
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(74, 144, 226, 0.1) 0%,
    transparent 70%
  );
}

/* Contact section parallax elements */
.contact::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      45deg,
      rgba(74, 144, 226, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(-45deg, rgba(106, 163, 240, 0.02) 1px, transparent 1px),
    radial-gradient(
      circle at 30% 20%,
      rgba(255, 215, 0, 0.04) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(74, 144, 226, 0.03) 2px,
      transparent 2px
    );
  background-size: 100px 100px, 120px 120px, 80px 80px, 150px 150px;
  animation: parallaxContact 25s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 16px;
  padding: 2rem;
  transition: all var(--transition-medium);
}

.contact-item:hover {
  transform: translateX(8px) scale(1.02);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-medium);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.contact-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-item p {
  color: var(--primary-light);
  font-weight: 500;
}

/* Enhanced Form Styling */
.contact-form {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow-medium);
}

.form-group {
  margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(26, 31, 46, 0.5);
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: rgba(26, 31, 46, 0.8);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: var(--gradient-secondary);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-fast);
}

.submit-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-medium);
}

.submit-btn:hover::before {
  left: 100%;
}

/* Book a Call Button Styles */
.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-call-btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  background: var(--gradient-secondary);
  color: var(--text-primary);
  text-decoration: none;
  border: none;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.book-call-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-fast);
}

.book-call-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px rgba(74, 144, 226, 0.3);
}

.book-call-btn:hover::before {
  left: 100%;
}

.book-call-btn:focus {
  outline: none;
  box-shadow: var(--shadow-medium), 0 0 0 4px rgba(74, 144, 226, 0.3);
}

.book-call-btn:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 20px rgba(74, 144, 226, 0.2);
}

.book-call-btn:focus:not(:focus-visible) {
  box-shadow: var(--shadow-medium);
}

.book-call-btn:focus-visible {
  box-shadow: var(--shadow-medium), 0 0 0 4px rgba(74, 144, 226, 0.3);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 24px;
  padding: 0;
  box-shadow: var(--shadow-medium);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-medium);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.modal-header h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 2rem;
}

.modal-body p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-form .form-group {
  margin-bottom: 1.5rem;
}

.modal-form label {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.modal-form input {
  width: 100%;
  padding: 1rem 1.2rem;
  background: rgba(26, 31, 46, 0.5);
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
}

.modal-form input::placeholder {
  color: var(--text-muted);
}

.modal-form input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: rgba(26, 31, 46, 0.8);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.cancel-btn {
  padding: 0.8rem 1.5rem;
  background: transparent;
  color: var(--text-muted);
  border: 2px solid rgba(74, 144, 226, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-medium);
}

.cancel-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary-light);
}

.modal-form .submit-btn {
  padding: 0.8rem 1.5rem;
  background: var(--gradient-secondary);
  color: var(--text-primary);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.modal-form .submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left var(--transition-fast);
}

.modal-form .submit-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-medium);
}

.modal-form .submit-btn:hover::before {
  left: 100%;
}

/* Modal Form Error States */
.modal-form input.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.modal-form input.error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.modal-form .submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.modal-form .submit-btn:disabled:hover {
  transform: none;
  box-shadow: var(--shadow-medium);
}

/* Enhanced Footer */
footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(74, 144, 226, 0.1);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-section h4 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(74, 144, 226, 0.1);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modern Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes scrollBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

@keyframes parallaxFloat {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
    background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%;
  }
  25% {
    transform: translateY(-20px) translateX(10px) rotate(1deg);
    background-position: 10% 10%, 90% 90%, 40% 60%, 10% 90%;
  }
  50% {
    transform: translateY(-10px) translateX(-5px) rotate(0deg);
    background-position: 20% 20%, 80% 80%, 60% 40%, 20% 80%;
  }
  75% {
    transform: translateY(-30px) translateX(-10px) rotate(-1deg);
    background-position: 30% 30%, 70% 70%, 70% 30%, 30% 70%;
  }
}

@keyframes parallaxContact {
  0% {
    transform: translateY(0px) rotate(0deg);
    background-position: 0% 0%, 0% 100%, 0% 0%, 100% 100%;
  }
  25% {
    transform: translateY(-15px) rotate(0.5deg);
    background-position: 25% 25%, 25% 75%, 25% 25%, 75% 75%;
  }
  50% {
    transform: translateY(-30px) rotate(0deg);
    background-position: 50% 50%, 50% 50%, 50% 50%, 50% 50%;
  }
  75% {
    transform: translateY(-15px) rotate(-0.5deg);
    background-position: 75% 75%, 75% 25%, 75% 75%, 25% 25%;
  }
  100% {
    transform: translateY(0px) rotate(0deg);
    background-position: 100% 100%, 100% 0%, 100% 100%, 0% 0%;
  }
}

@keyframes heroParallax {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
    background-position: 0% 0%, 100% 100%, 0% 100%, 100% 0%;
  }
  33% {
    transform: translateY(-10px) translateX(5px) scale(1.02);
    background-position: 33% 33%, 67% 67%, 33% 67%, 67% 33%;
  }
  66% {
    transform: translateY(-5px) translateX(-5px) scale(0.98);
    background-position: 66% 66%, 34% 34%, 66% 34%, 34% 66%;
  }
}

/* Animation Classes - Initial Hidden States */
[data-animate="fade-in"]:not(.animated) {
  opacity: 0;
  transform: translateY(20px);
}

[data-animate="slide-up"]:not(.animated) {
  opacity: 0;
  transform: translateY(30px);
}

[data-animate="slide-left"]:not(.animated) {
  opacity: 0;
  transform: translateX(-30px);
}

[data-animate="slide-right"]:not(.animated) {
  opacity: 0;
  transform: translateX(30px);
}

[data-animate="zoom-in"]:not(.animated) {
  opacity: 0;
  transform: scale(0.9);
}

[data-animate="fade-in-delay"]:not(.animated) {
  opacity: 0;
  transform: translateY(20px);
}

/* Animated States */
[data-animate="fade-in"].animated {
  animation: fadeInUp 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

[data-animate="slide-up"].animated {
  animation: fadeInUp 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

[data-animate="slide-left"].animated {
  animation: slideInLeft 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

[data-animate="slide-right"].animated {
  animation: slideInRight 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

[data-animate="zoom-in"].animated {
  animation: zoomIn 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

[data-animate="fade-in-delay"].animated {
  animation: fadeInUp 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s both;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    width: 95%;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: right var(--transition-medium);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding: 1rem;
    margin-top: 80px;
  }

  .hero-title {
    font-size: clamp(1.3rem, 5vw, 2.2rem);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .hero-cta {
    padding: 1.1rem 2.2rem;
    font-size: 1rem;
  }

  .scroll-indicator {
    bottom: 1rem;
    animation-delay: 1s;
  }

  .scroll-text {
    font-size: 0.7rem;
  }

  .section {
    padding: 4rem 0;
  }

  .about-grid,
  .services-grid,
  .products-grid,
  .stats-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Mobile timeline adjustments */
  .timeline-track::before {
    left: 2rem;
  }

  .timeline-milestone {
    justify-content: flex-start !important;
    text-align: left !important;
    margin-bottom: 3rem;
  }

  .milestone-card {
    width: calc(100% - 4rem);
    margin-left: 4rem !important;
    margin-right: 0 !important;
  }

  .milestone-dot {
    left: 2rem !important;
    transform: translate(-50%, -50%);
  }

  .milestone-card::after {
    left: -20px !important;
    right: auto !important;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 0 1rem;
    height: 70px;
  }

  .logo-text {
    font-size: 1.3rem;
  }

  .hero-content {
    padding: 0.5rem;
    margin-top: 70px;
  }

  .hero-title {
    font-size: clamp(1.1rem, 4.5vw, 1.9rem);
  }

  .hero-cta {
    padding: 1rem 2rem;
    font-size: 0.95rem;
  }

  .section {
    padding: 3rem 0;
  }

  .about-card,
  .service-card,
  .product-card,
  .milestone-card {
    padding: 2rem;
  }

  .product-image {
    padding: 1rem;
  }

  .product-screenshot {
    height: 150px;
  }

  .product-stats {
    gap: 0.5rem;
  }

  .product-stats .stat {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }

  .timeline-header h3 {
    font-size: 2rem;
  }

  .milestone-card h4 {
    font-size: 1.3rem;
  }

  /* Project page responsive */
  .project-content {
    padding: 6rem 0 3rem;
  }

  .project-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .project-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .project-cta {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .overview-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .overview-stats {
    flex-direction: row;
    justify-content: space-around;
  }

  .stat-card {
    flex: 1;
    margin: 0 0.5rem;
  }

  .features-grid,
  .tech-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 2rem;
  }

  .book-call-btn {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    border: none;
    outline: none;
  }

  .modal-content {
    width: 95%;
    max-width: none;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .modal-body {
    padding: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cancel-btn,
  .modal-form .submit-btn {
    width: 100%;
    padding: 1rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-secondary);
  border-radius: 3px;
  transition: all var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gradient-primary);
  width: 8px;
}

/* Loading Animation for Images */
img {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* Remove default focus outline for links and add subtle focus */
a:focus {
  outline: none;
}

.nav-link:focus {
  outline: none;
  color: var(--text-primary);
  transform: translateY(-1px) scale(1.05);
}

.nav-link:focus::before {
  width: 100%;
}

/* Remove click delays on interactive elements */
button,
a,
input,
textarea,
[role="button"],
[tabindex] {
  touch-action: manipulation;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

button,
a {
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Print Styles */
@media print {
  * {
    background: white !important;
    color: black !important;
  }

  nav,
  .scroll-indicator {
    display: none;
  }
}
