/* ===== CSS Variables (Purple/Pink/Cyan Cosmic Theme) ===== */
:root {
  /* Reverted to purple/pink/cyan color scheme */
  --primary: #a855f7;
  --primary-dark: #7c3aed;
  --primary-light: #c084fc;
  --accent-pink: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;

  /* Background Colors */
  --bg-dark: #0a0a1f;
  --bg-darker: #050510;
  --bg-card: #1a1a3e;
  --bg-card-hover: #252550;
  --bg-gradient-start: #0a0a1f;
  --bg-gradient-end: #1a0a2e;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0a0c0;
  --text-muted: #666680;

  /* Effects */
  --glow-primary: 0 0 30px rgba(168, 85, 247, 0.5);
  --glow-strong: 0 0 50px rgba(168, 85, 247, 0.7);
  --glow-pink: 0 0 30px rgba(236, 72, 153, 0.5);
  --glow-cyan: 0 0 30px rgba(6, 182, 212, 0.5);

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 100px 0;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Purple gradient background */
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  max-width: 100vw;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: none;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none;
}

/* ===== Custom Cursor ===== */
.custom-cursor {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.2s ease;
  box-shadow: var(--glow-primary);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.3s ease;
  opacity: 0.5;
}

body:hover .custom-cursor {
  transform: scale(1.5);
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  /* Multi-color gradient with purple/pink/cyan */
  background: linear-gradient(90deg, var(--primary), var(--accent-pink), var(--accent-cyan));
  z-index: 9998;
  transform-origin: left;
  box-shadow: var(--glow-primary);
}

/* ===== Floating Background Orbs ===== */
.floating-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  /* Increased blur for more cosmic effect */
  filter: blur(100px);
  opacity: 0.2;
  animation: float 20s infinite ease-in-out;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -250px;
  left: -250px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-pink);
  bottom: -200px;
  right: -200px;
  animation-delay: 7s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: var(--accent-cyan);
  top: 50%;
  right: -225px;
  animation-delay: 14s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -100px) scale(1.1);
  }
  66% {
    transform: translate(-100px, 100px) scale(0.9);
  }
}

/* ===== Glassmorphism Navbar ===== */
.navbar {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
}

.nav-pill {
  /* Glassmorphism effect */
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  
  border-radius: 60px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  transition: all 0.3s ease;
}

/* Enhanced glass effect on scroll */
.navbar.scrolled .nav-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-pink));
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-light);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.nav-login {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
}

.nav-login:hover {
  color: var(--primary-light);
}

.nav-signup {
  padding: 10px 24px;
  background: rgba(168, 85, 247, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-signup:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.5);
  border-color: transparent;
}

/* Mobile overlay menu */
.mobile-menu-btn {
  display: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 16, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  z-index: 1500;
}

.nav-overlay.active {
  display: block;
}

.nav-overlay-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 24px 40px;
}

.nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

.nav-overlay-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-overlay-link {
  display: block;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

/* Responsive navbar */
@media (max-width: 968px) {
  .nav-links {
    display: none !important;
  }

  .nav-pill {
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
  }

  .mobile-menu-btn {
      display: inline-flex !important;
  }

  /* Hide extra actions on mobile to prevent overflow */
  .nav-login,
  .nav-signup {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .navbar {
    top: 20px;
  }

  .nav-pill {
    padding: 8px 12px;
  }

  .nav-actions {
    gap: 12px;
  }

  .nav-signup {
    padding: 8px 20px;
    font-size: 13px;
  }

  /* Reduce logo text to save space */
  .logo span { display: none !important; }
  .logo img { width: 32px; height: auto; }
}

@media (max-width: 400px) {
  .navbar { top: 16px; }
  .mobile-menu-btn { width: 38px; height: 38px; }
}

/* ===== Hero Section with Background Video ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
  overflow: hidden;
}

/* Background Video - Goes Behind Everything */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark Overlay for Better Text Readability */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 31, 0.8) 0%,
    rgba(26, 10, 46, 0.8) 100%
  );
  z-index: 1;
}

/* Centered Content Container */
.hero-content-centered {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title span {
  display: block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent-pink), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  background-size: 200% 200%;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== Hero Buttons - Fixed Styling ===== */
.btn-primary {
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-strong);
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-play:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateX(5px);
  background: rgba(168, 85, 247, 0.1);
}

.btn-play svg {
  flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding-top: 100px;
  }

  .hero-content-centered {
    padding: 0 20px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-play {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ===== Services Section ===== */
.services {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  transform: perspective(1000px) rotateX(0deg);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: perspective(1000px) rotateX(5deg) translateY(-10px);
  box-shadow: var(--glow-primary);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 50%;
  color: var(--primary);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
}

/* ===== About Section ===== */
.about {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-image {
  flex: 1;
}

.about-image img,
.about-image video {
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(168, 85, 247, 0.5);
  transform: perspective(1000px) rotateY(5deg);
  transition: transform 0.3s ease;
}

.about-image img:hover,
.about-image video:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.about-text {
  flex: 1;
}

.section-label {
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 24px;
  line-height: 1.2;
}

.about-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* ===== Portfolio Section ===== */
.portfolio {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 40px;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 30px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent-pink));
  color: #fff;
  box-shadow: var(--glow-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ===== Portfolio Items - FIXED ===== */
.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  transition: all 0.3s ease;
  transform: perspective(1000px) translateZ(0);
  cursor: pointer;
}

.portfolio-item:hover {
  transform: perspective(1000px) translateZ(20px);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.6);
}

.portfolio-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-video {
  transform: scale(1.05);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Portfolio Overlay - FIXED */
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.5) 40%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* Play Button - Centered - FIXED */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  transition: transform 0.3s ease;
  z-index: 10;
  cursor: pointer;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

.play-btn svg {
  filter: drop-shadow(0 4px 20px rgba(168, 85, 247, 0.8));
  transition: filter 0.3s ease;
}

.play-btn:hover svg {
  filter: drop-shadow(0 6px 30px rgba(168, 85, 247, 1));
}

/* Portfolio Info - Moved Up - FIXED */
.portfolio-info {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 30px;
  z-index: 3;
}

.portfolio-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 80px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.portfolio-info p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

/* ===== Reviews Section ===== */
.reviews {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.reviews-header {
  text-align: center;
  margin-bottom: 60px;
}

.stars {
  font-size: 32px;
  margin-top: 16px;
}

.reviews-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  min-height: 300px;
}

.review-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s ease;
  pointer-events: none;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.review-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.review-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow: var(--glow-primary);
  background: var(--bg-darker);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.review-author {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.review-role {
  color: var(--primary);
  font-size: 14px;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-card);
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background: var(--primary);
  box-shadow: var(--glow-primary);
}

.floating-avatars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-avatar {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0.3;
  animation: floatAvatar 6s infinite ease-in-out;
  box-shadow: var(--glow-primary);
  background: var(--bg-darker);
}

.floating-avatar:nth-child(1) {
  animation-delay: 0s;
}
.floating-avatar:nth-child(2) {
  animation-delay: 1s;
}
.floating-avatar:nth-child(3) {
  animation-delay: 2s;
}
.floating-avatar:nth-child(4) {
  animation-delay: 3s;
}
.floating-avatar:nth-child(5) {
  animation-delay: 4s;
}
.floating-avatar:nth-child(6) {
  animation-delay: 5s;
}

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

/* ===== Contact Section ===== */
.contact {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.contact-content {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
}

.contact-description {
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-secondary);
}

.contact-item svg {
  color: var(--primary);
}

.contact-form {
  flex: 1;
  background: var(--bg-card);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.form-group {
  margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: var(--bg-darker);
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.form-group textarea {
  resize: vertical;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(168, 85, 247, 0.3);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--primary);
}

.footer-text {
  color: var(--text-secondary);
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 50%;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: #000;
  box-shadow: var(--glow-primary);
}

/* ===== Utility Classes ===== */
.text-primary {
  color: var(--primary);
}

.hidden {
  display: none;
}

/* ===== Animations ===== */
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-10px) rotateX(2deg);
  }
}

.portfolio-item,
.service-card {
  animation: floatCard 6s ease-in-out infinite;
}

.portfolio-item:nth-child(1) {
  animation-delay: 0s;
}
.portfolio-item:nth-child(2) {
  animation-delay: 0.5s;
}
.portfolio-item:nth-child(3) {
  animation-delay: 1s;
}
.portfolio-item:nth-child(4) {
  animation-delay: 1.5s;
}
.portfolio-item:nth-child(5) {
  animation-delay: 2s;
}
.portfolio-item:nth-child(6) {
  animation-delay: 2.5s;
}

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

/* ===== Responsive Layout Breakpoints ===== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    gap: 40px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .section-title {
    font-size: 34px;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-image video {
    width: 100% !important;
    height: auto;
  }

  .contact-content {
    flex-direction: column;
    gap: 24px;
  }

  .reviews-slider {
    padding: 0 10px;
  }

  .floating-avatars { display: none; }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item { aspect-ratio: 16/9; }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ===== Touch Device Tweaks ===== */
@media (hover: none) and (pointer: coarse) {
  /* Restore normal cursor on touch */
  body, a, button { cursor: auto; }
  .custom-cursor, .cursor-follower { display: none; }

  /* Ensure overlays are visible on tap by default */
  .portfolio-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, transparent 100%); }
  .portfolio-item:hover .portfolio-video, .portfolio-item:hover img { transform: none; }

  /* Reduce heavy animations */
  .portfolio-item, .service-card { animation: none; }
}