:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --secondary: #06b6d4;
  --secondary-dark: #0891b2;
  --dark: #1e293b;
  --light: #f8fafc;
  --accent: #f43f5e;
  --accent-dark: #e11d48;
  --gray: #64748b;
  --gray-light: #cbd5e1;
  --background: #0f172a;
  --text: #e2e8f0;
  --fluid-min-width: 320;
  --fluid-max-width: 1200;
  --fluid-min-size: 14;
  --fluid-max-size: 18;
  --fluid-min-scale: 1.2;
  --fluid-max-scale: 1.333;
}

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
  padding-top: 70px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Outfit", sans-serif;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--light);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 2rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

/* Particle background */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease-out;
}

body:not(.loading) #particles-js {
  opacity: 1;
}

/* Navigation */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 1rem 2rem;
  background: rgba(15, 23, 42, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Remove duplicate navigation styles and keep only the essential ones */
.nav-links {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  background: rgba(15, 23, 42, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  z-index: 1000;
}

.nav-links.active {
  transform: translateX(0);
}

.nav-links li a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  position: relative;
  padding: 0.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links li a:hover {
  transform: translateY(-2px);
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links li a:hover::after {
  width: 100%;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--secondary) 50%,
    var(--accent) 100%
  );
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  opacity: 0.8;
}

/* Enhanced hero section */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(244, 63, 94, 0.1)
  );
  overflow: hidden;
  z-index: 2;
  opacity: 1; /* Ensure hero is visible by default */
  transform: translateY(0); /* Reset any transform */
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
}

.geometric-shapes {
  width: 100%;
  height: 100%;
}

.shape {
  fill: var(--primary);
  opacity: 0.5;
}

.shape-1 {
  fill: var(--primary);
  animation: float 8s infinite;
}

.shape-2 {
  fill: var(--secondary);
  animation: pulse 4s infinite;
}

.shape-3 {
  fill: var(--accent);
  animation: spin 6s infinite linear;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards 0.5s;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--text);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-graphics {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  z-index: 1;
  pointer-events: none;
}

.hero-svg {
  width: 100%;
  height: 100px;
  margin-top: 2rem;
}

.wave {
  stroke-width: 2;
  fill: none;
}

.tech-circles {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  opacity: 0.5;
}

/* Hero Animations */
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -20px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gradient-text {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--gray-light);
  margin-bottom: 2.5rem;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--gray);
  margin-bottom: 2rem;
}

.hero-svg {
  width: 100%;
  height: 100px;
  margin-top: 2rem;
}

.wave {
  stroke: var(--primary);
  stroke-width: 2;
  animation: waveFlow 2s infinite;
}

.moving-dot {
  fill: var(--accent);
  animation: moveDot 4s linear infinite;
}

/* Enhanced service cards */
.services {
  position: relative;
  padding: 8rem 2rem;
  background: var(--background);
  z-index: 5;
  opacity: 1; /* Base opacity */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card {
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 2rem;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(124, 58, 237, 0.1),
    rgba(6, 182, 212, 0.1)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  color: var(--light);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  opacity: 1;
}

.service-card p {
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Updated Services Section */
.service-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 2rem;
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.service-icon {
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.pulse {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  animation: pulsate 2s infinite;
}

.orbit {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  animation: rotate 4s linear infinite;
}

/* Service Icons Animations */
.gear {
  stroke-width: 3;
  animation: rotateGear 4s linear infinite;
  transform-origin: center;
}

.gear-center {
  fill: var(--primary);
  animation: pulse 2s infinite;
}

.data-path {
  stroke: var(--primary);
  stroke-width: 2;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawPath 2s forwards;
}

.data-point {
  fill: var(--accent);
  animation: dataPointPulse 1.5s infinite alternate ease-in-out;
}

/* Updated About Section */
.about {
  padding: 6rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(20, 184, 166, 0.05)
  );
}

.about-grid {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

.about-text {
  text-align: left;
}

.tech-animation {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.connection-group {
  animation: rotate 20s linear infinite;
  transform-origin: center;
}

.node {
  fill: var(--primary);
  animation: nodePulse 2s infinite alternate;
}

.connection {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 10;
  animation: dashMove 10s linear infinite;
}

.about {
  padding: 6rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.05),
    rgba(20, 184, 166, 0.05)
  );
  position: relative;
  overflow: hidden;
}

.about-content {
  position: relative;
  z-index: 2;
}

.about-description {
  margin-bottom: 3rem;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.about-features {
  display: grid;
  gap: 2rem;
  margin: 2.5rem 0;
}

.feature {
  background: var(--dark);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature h4 {
  color: var(--light);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.feature p {
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 0;
}

.team-intro {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-animation {
  position: relative;
}

.tech-animation {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.1));
}

@media screen and (min-width: 768px) {
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 4rem;
  }
}

@media screen and (max-width: 767px) {
  .about {
    padding: 4rem 1rem;
  }

  .lead-text {
    font-size: 1.1rem;
  }

  .feature {
    padding: 1.25rem;
  }
}

/* Updated Contact Section */
.contact {
  padding: 6rem 1rem;
  background: var(--dark);
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
  color: var(--text);
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
}

.message-animation {
  width: 100%;
  max-height: 200px;
  filter: drop-shadow(0 0 10px var(--primary));
}

.envelope {
  stroke: var(--primary);
  stroke-width: 3;
  animation: drawEnvelope 3s infinite;
}

.dot {
  fill: var(--accent);
  animation: moveDot 2s infinite;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 0.75rem;
  background: var(--background);
  color: var(--text);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.1);
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
  color: var(--gray-light);
  font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3);
  background: var(--background);
  color: var(--text);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: white;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background: linear-gradient(45deg, var(--primary-dark), var(--accent-dark));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
  outline: none;
}

.btn-arrow {
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow,
.submit-btn:focus-visible .btn-arrow {
  transform: translateX(6px);
}

/* Footer */
.footer {
  padding: 2rem;
  background: var(--dark);
  color: white;
  text-align: center;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.primary-btn {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: white;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.secondary-btn {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.secondary-btn:hover {
  background: var(--primary);
  color: white;
}

/* Enhanced CTA buttons */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.primary-btn,
.secondary-btn {
  padding: 1rem 2.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-3px);
}

/* Service Features */
.service-features {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
}

.service-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--gray-light);
  opacity: 0.9;
}

.service-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  color: var(--gray);
  font-size: 0.875rem;
}

/* Contact List */
.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.contact-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray);
}

/* Footer Styles */
.footer-grid {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* Form Select Styling */
select {
  width: 100%;
  padding: 1rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366f1' 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: 1.2em;
}

select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Hover Effects and Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.stat-item,
.contact-info {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Animations */
@keyframes drawPath {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes colorShift {
  0%,
  100% {
    stroke: var(--primary);
  }
  50% {
    stroke: var(--accent);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes waveFlow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50px);
  }
}

@keyframes moveDot {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(200px);
  }
}

@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateGear {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes dataPointPulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

@keyframes nodePulse {
  from {
    r: 8;
  }
  to {
    r: 10;
  }
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -100;
  }
}

@keyframes drawEnvelope {
  0% {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

/* Loading States */
[data-loading] {
  position: relative;
  overflow: hidden;
}

[data-loading]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 25%,
    rgba(99, 102, 241, 0.1) 50%,
    transparent 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite linear;
}

[data-loading]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(var(--primary), 0.1),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Enhance section transitions */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

section.revealed {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.1;
  transition: all 0.3s ease;
}

.service-card:hover .step-number {
  transform: scale(1.2);
  opacity: 0.15;
}

.service-content {
  position: relative;
  z-index: 1;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  transition: opacity 0.5s ease-out;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  width: 80px;
  height: 80px;
  animation: pulse 2s infinite;
}

.loading-logo .logo-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawPath 2s forwards, colorShift 4s infinite;
}

/* Touch-friendly improvements */
@media (hover: none) {
  .service-card {
    transform: none !important;
  }

  .nav-links a,
  .btn,
  .submit-btn {
    padding: 1rem 1.5rem;
    min-height: 44px; /* Minimum touch target size */
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    min-height: 44px;
    font-size: 16px; /* Prevent iOS zoom on focus */
  }
}

/* Fluid typography */
@media screen and (min-width: 320px) {
  :root {
    --fluid-size: calc(
      (var(--fluid-min-size) * 1px) +
        (var(--fluid-max-size) - var(--fluid-min-size)) *
        (
          (100vw - (var(--fluid-min-width) * 1px)) /
            (var(--fluid-max-width) - var(--fluid-min-width))
        )
    );
  }

  body {
    font-size: var(--fluid-size);
  }
}

/* Enhanced focus styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Progressive Loading Sequence */
.loading {
  overflow: hidden;
}

.loading-dots::after {
  content: "...";
  animation: dots 1.5s steps(4, jump-none) infinite;
}

@keyframes dots {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}

/* Enhanced SVG animations */
[class*="-animation"] path,
[class*="-animation"] circle,
[class*="-animation"] rect {
  opacity: 0;
  animation: fadeInSVG 0.6s ease forwards;
}

@keyframes fadeInSVG {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Staggered animation delays for SVG elements */
[class*="-animation"] *:nth-child(1) {
  animation-delay: 0.1s;
}
[class*="-animation"] *:nth-child(2) {
  animation-delay: 0.2s;
}
[class*="-animation"] *:nth-child(3) {
  animation-delay: 0.3s;
}
[class*="-animation"] *:nth-child(4) {
  animation-delay: 0.4s;
}

@supports not (
  (-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))
) {
  .navbar,
  .nav-links,
  .service-card {
    background: rgba(15, 23, 42, 0.95);
  }
}

/* Mobile Navigation Improvements */
.menu-toggle {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.menu-toggle[aria-expanded="true"] {
  transform: rotate(90deg);
}

.nav-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Responsive Design */
@media screen and (max-width: 767px) {
  .cta-buttons {
    flex-direction: column;
  }

  .nav-links {
    padding-top: 5rem;
  }

  .nav-links a {
    font-size: 1.25rem;
    padding: 1rem;
    width: 100%;
    text-align: center;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .service-card {
    margin: 0 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-container,
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media screen and (min-width: 768px) {
  .navbar {
    padding: 1rem 4rem;
  }

  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    flex-direction: row;
    background: none;
    transform: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .nav-links li a {
    font-size: 1rem;
  }

  .service-grid {
    padding: 4rem;
    gap: 3rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .contact-container {
    grid-template-columns: 1fr 2fr;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
}

@media screen and (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid,
  .contact-container {
    padding: 0 4rem;
    gap: 4rem;
  }
}

/* Section Transitions */
section {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Loading States */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  transition: opacity 0.5s ease-out;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Enhanced Loading Animation */
.loading-logo {
  width: 80px;
  height: 80px;
  animation: pulse 2s infinite;
}

.loading-logo .logo-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawPath 2s forwards, colorShift 4s infinite;
}

/* Performance Optimizations */
@media (prefers-reduced-motion: no-preference) {
  .service-card,
  .hero-content,
  .about-animation,
  .contact-form {
    will-change: transform, opacity;
  }
}

/* Remove any conflicting styles */
.service-card.revealed {
  opacity: 1;
  transform: none;
}
