/* ===== Variables & Reset ===== */
:root {
  /* Colors */
  --color-bg: #030407;
  --color-bg-card: rgba(255, 255, 255, 0.03);
  --color-text-main: #ffffff;
  --color-text-muted: #94a3b8;

  --color-primary: #6366f1; /* Indigo 500 */
  --color-primary-glow: rgba(99, 102, 241, 0.5);

  --color-accent: #06b6d4; /* Cyan 500 */
  --color-accent-glow: rgba(6, 182, 212, 0.5);

  --gradient-main: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --gradient-glow: conic-gradient(
    from 180deg at 50% 50%,
    #6366f1 0deg,
    #06b6d4 180deg,
    #6366f1 360deg
  );

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  /* Effects */
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
  --blur-glass: blur(12px);
  --blur-heavy: blur(80px); /* Performance capped blur */
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Background Effects ===== */
.bg-noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  z-index: -2;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: var(--blur-heavy);
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
  animation: drift 10s infinite alternate var(--transition);
}

.bg-glow-1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--color-primary);
}

.bg-glow-2 {
  bottom: -10%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: var(--color-accent);
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 30px);
  }
}

.tech-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}

/* Particle Field */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.6;
  animation: float 15s infinite ease-in-out;
  box-shadow: 0 0 10px var(--color-accent);
}

/* Distribute particles randomly using nth-child */
.particle:nth-child(1) {
  left: 5%;
  top: 20%;
  animation-delay: 0s;
  animation-duration: 12s;
}
.particle:nth-child(2) {
  left: 15%;
  top: 80%;
  animation-delay: 1s;
  animation-duration: 18s;
  width: 3px;
  height: 3px;
}
.particle:nth-child(3) {
  left: 25%;
  top: 40%;
  animation-delay: 2s;
  animation-duration: 14s;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}
.particle:nth-child(4) {
  left: 35%;
  top: 60%;
  animation-delay: 3s;
  animation-duration: 16s;
  width: 2px;
  height: 2px;
  opacity: 0.4;
}
.particle:nth-child(5) {
  left: 45%;
  top: 10%;
  animation-delay: 4s;
  animation-duration: 20s;
}
.particle:nth-child(6) {
  left: 55%;
  top: 70%;
  animation-delay: 5s;
  animation-duration: 13s;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}
.particle:nth-child(7) {
  left: 65%;
  top: 30%;
  animation-delay: 6s;
  animation-duration: 17s;
  width: 5px;
  height: 5px;
}
.particle:nth-child(8) {
  left: 75%;
  top: 90%;
  animation-delay: 7s;
  animation-duration: 15s;
  width: 2px;
  height: 2px;
  opacity: 0.3;
}
.particle:nth-child(9) {
  left: 85%;
  top: 50%;
  animation-delay: 8s;
  animation-duration: 19s;
}
.particle:nth-child(10) {
  left: 95%;
  top: 15%;
  animation-delay: 9s;
  animation-duration: 14s;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}
.particle:nth-child(11) {
  left: 10%;
  top: 55%;
  animation-delay: 1.5s;
  animation-duration: 16s;
  width: 3px;
  height: 3px;
}
.particle:nth-child(12) {
  left: 20%;
  top: 25%;
  animation-delay: 2.5s;
  animation-duration: 18s;
  opacity: 0.5;
}
.particle:nth-child(13) {
  left: 30%;
  top: 85%;
  animation-delay: 3.5s;
  animation-duration: 13s;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}
.particle:nth-child(14) {
  left: 40%;
  top: 35%;
  animation-delay: 4.5s;
  animation-duration: 15s;
  width: 2px;
  height: 2px;
}
.particle:nth-child(15) {
  left: 50%;
  top: 75%;
  animation-delay: 5.5s;
  animation-duration: 17s;
}
.particle:nth-child(16) {
  left: 60%;
  top: 5%;
  animation-delay: 6.5s;
  animation-duration: 19s;
  width: 3px;
  height: 3px;
}
.particle:nth-child(17) {
  left: 70%;
  top: 45%;
  animation-delay: 7.5s;
  animation-duration: 14s;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
  opacity: 0.4;
}
.particle:nth-child(18) {
  left: 80%;
  top: 65%;
  animation-delay: 8.5s;
  animation-duration: 16s;
}
.particle:nth-child(19) {
  left: 90%;
  top: 95%;
  animation-delay: 9.5s;
  animation-duration: 18s;
  width: 2px;
  height: 2px;
}
.particle:nth-child(20) {
  left: 3%;
  top: 88%;
  animation-delay: 0.5s;
  animation-duration: 20s;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-30px) translateX(10px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-20px) translateX(-15px);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-40px) translateX(5px);
    opacity: 0.7;
  }
}

/* ===== Components ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-family: var(--font-heading);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s var(--transition);
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text-main);
}

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

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Glass Basics */
.glass {
  background: rgba(3, 4, 7, 0.7);
  backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 32px;
  height: 100%;
}

/* Reduced glow for strategic contact form */
.contact-form.glass-card {
  background: rgba(14, 15, 19, 0.4); /* Darker, less transparent */
  border-color: rgba(255, 255, 255, 0.04); /* Subtler border */
  box-shadow: none; /* Remove any default shadow */
}

/* Typography Helpers */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: rgba(6, 182, 212, 0.08);
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.15);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  height: var(--header-height);
}

.nav-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: white;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--color-text-muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--color-text-main);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 180px 0 100px;
  text-align: center;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981; /* Green */
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ===== Stats Section ===== */
.section-stats {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Services Section ===== */
.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 80px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.service-card {
  position: relative;
  transition: transform 0.3s var(--transition), border-color 0.3s ease,
    box-shadow 0.3s ease;
  overflow: hidden;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.15);
}

/* Featured Service Highlight */
.service-card.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-main);
  opacity: 0.5;
}

.service-icon-wrapper {
  width: 100px;
  height: 100px;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 20px;
  overflow: visible;
  background: transparent;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.05);
}

.service-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.3));
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 28px;
  line-height: 1.7;
}

/* Mandate text styling */
.service-mandate {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-top: 8px;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 4px;
  border-left: 2px solid var(--color-primary);
  display: inline-block;
}

.feature-list {
  list-style: none;
  margin-top: auto;
  padding-top: 24px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.feature-list li i {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ===== Portfolio ===== */
.portfolio-showcase {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-brand {
  margin-bottom: 16px;
}

.brand-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.thirdretail {
  background: linear-gradient(90deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.asnjunagal {
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 20px;
}

.tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.link-with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s;
}

.link-with-arrow:hover {
  gap: 12px;
  color: var(--color-accent);
}

/* Dashbord Mockup */
.dashboard-mockup {
  perspective: 1000px;
  width: 100%;
}

.img-responsive {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.glow-image {
  width: 100%;
  border-radius: 12px;
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item:hover .glow-image {
  border-color: rgba(99, 102, 241, 0.3);
}

/* ===== Process ===== */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 40px 0;
}

.process-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--color-primary) 50%,
    transparent 100%
  );
  transform: translateX(-50%);
  opacity: 0.8;
}

.step {
  display: flex;
  justify-content: center;
  position: relative;
  margin-bottom: 60px;
}

.step-marker {
  width: 40px;
  height: 40px;
  background: var(--color-bg);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.step-content {
  position: absolute;
  width: 40%;
}

.text-left {
  right: 55%;
  text-align: right;
}

.text-right {
  left: 55%;
  text-align: left;
}

.move-down {
  top: 50%; /* Staggering visual */
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 Columns: Text Left, Form Right */
  gap: 80px;
  align-items: center;
}

.contact-content {
  max-width: 500px;
}

.contact-methods {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.method-item i {
  color: var(--color-primary);
}

.contact-form {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  font-family: var(--font-body);
  color: var(--color-text-main);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-full {
  width: 100%;
  margin-top: 8px;
}

.form-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  margin-top: 16px;
}

.hidden {
  display: none;
}

/* Responsive Contact */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ===== Footer ===== */
.footer {
  padding: 100px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.brand-col .logo {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.footer-col h4 {
  color: var(--color-text-main);
  margin-bottom: 24px;
  font-family: var(--font-heading);
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--color-text-muted);
  text-decoration: none;
}

/* ===== Animations ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}
.delay-400 {
  animation-delay: 0.4s;
}

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

/* ===== Scroll Reveal System ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(2) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(3) {
  transition-delay: 0.3s;
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(4) {
  transition-delay: 0.4s;
  opacity: 1;
  transform: translateY(0);
}

/* Timeline Sequential Reveal */
.step.reveal {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.step.reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Counter Animation Pulse */
.stat-number.counting {
  animation: pulse 0.3s ease-in-out;
}

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

/* ===== Cursor Glow Effect ===== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow {
    display: none;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex; /* Show only on mobile */
  }

  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }

  /* Stack hero CTA buttons on mobile */
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .portfolio-item {
    grid-template-columns: 1fr;
  }
  .process-line {
    left: 20px;
  }
  .step {
    justify-content: flex-start;
    padding-left: 60px;
  }
  .step-marker {
    position: absolute;
    left: 0;
  }
  .step-content {
    position: static;
    width: 100%;
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Improve section spacing on mobile */
  .section {
    padding: 60px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }

  /* Service cards on mobile */
  .services-grid {
    gap: 24px;
  }
  .service-card {
    padding: 24px;
  }
  .service-icon-wrapper {
    width: 80px;
    height: 80px;
  }
}

/* Base styles for mobile elements (hidden on desktop) */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 101;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(3, 4, 7, 0.95);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 600;
}

.mobile-cta {
  margin-top: 16px;
  width: 80%;
  text-align: center;
  justify-content: center;
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(150%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-content {
  flex: 1;
  min-width: 300px;
}

.cookie-content h4 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.cookie-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.cookie-banner.hidden {
  display: none;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 12px 12px 0 0;
    padding: 32px 24px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* ===== Reduced Motion Gradient ===== */
@media (prefers-reduced-motion: reduce) {
  .bg-glow,
  .particle {
    animation: none;
  }
}
