html {
  scroll-behavior: smooth;
}

/* Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  font-weight: 300; /* light as default */
  color: #fff;
  background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
  line-height: 1.6;
}

/* ==== Subtle Purple Glow Background ==== */
.background-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(51, 53, 190, 0.192),
    rgba(0, 0, 0, 0.856) 70%
  );
  filter: blur(120px);
  animation: glow-move 20s ease-in-out infinite alternate;
}

@keyframes glow-move {
  0%   { background-position: 40% 30%; }
  50%  { background-position: 60% 40%; }
  100% { background-position: 50% 30%; }
}

/* ==== Navbar (Floating Center) ==== */
.navbar {
  width: 100%;
  position: fixed;
  top: 3.5rem;
  left: 0;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.nav-container {
  background: rgba(0, 0, 0, 0);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.527);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #ccc;
  font-weight: 300;
  font-size: 0.9rem;   /* smaller font size */
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.btn-nav {
  background: none;
  border: 1.5px solid #333;
  padding: 0.4rem 1rem;   /* smaller padding */
  border-radius: 30px;
  color: #eee;
  font-size: 0.60rem;     /* smaller text */
  font-weight: 300;
  transition: 0.3s ease;
}

.btn-nav:hover {
  border-color: #4a65ff;
  color: #4a65ff;
}

.btn, .btn-nav {
  font-family: 'Manrope', sans-serif;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* Default: hide hamburger */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

/* Mobile navbar */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none; /* hidden by default */
    flex-direction: column;
    position: absolute;
    top: 60px; /* below navbar */
    right: 20px;
    background: rgba(20, 20, 20, 0.95);
    border-radius: 10px;
    padding: 1rem;
    gap: 1rem;
    width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  }

  .nav-links.show {
    display: flex; /* show when active */
  }
}

/* Hero */
.hero {
  min-height: 100vh;
  padding: 12rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
  background: transparent; /* remove its own gradient */
}

.hero-logo {
  position: absolute;
  top: 3rem;
  left: 5rem;
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #4a65ff, #99c5ffc7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 {
  font-size: 3.2rem;
  max-width: 800px;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #4a65ff, #99c5ffc7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  margin: 1rem 0 2rem;
  font-size: 1.2rem;
  max-width: 600px;
  color: #ddd;
}

.btn {
  background: linear-gradient(90deg, #4a65ff, #99c5ffc7);
  color: #ffffff;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: 0.3s ease;
  box-shadow: 0 4px 12px rgba(229, 46, 113, 0.171);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(229, 46, 113, 0.178);
}

.hero-cube {
  position: absolute;
  top: -10%;
  left: 30%;
  width: 700px;   /* adjust size */
  height: 700px;
  transform: translate(-50%, -50%);
  z-index: 0; /* stays behind text */
  opacity: 0.10; /* subtle */
  pointer-events: none; /* so it doesn't block clicks */
}

.hero-cube img {
  width: 100%;
  height: auto;
  animation: rotateCube 15s linear infinite;
}

@keyframes rotateCube {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Work Section */
.work-v3 {
  min-height: 100vh;
  text-align: center;
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.workv3-header h3 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #4a65ff, #99c5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.work-subtext {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.945);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Grid of videos */
.work-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);  /* force 5 per row */
  gap: 1rem;  /* very small spacing */
  justify-items: center;
}

/* Portrait box */
.work-box {
  position: relative;
  width: 150px;        /* 🔹 adjust this number to make boxes bigger/smaller */
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.work-box:hover {
  transform: scale(1.05);
  border-color: #4a65ff;
  box-shadow: 0 0 15px rgba(74,101,255,0.3);
}

.work-box video {
  width: 150%;
  height: 390%;
  object-fit: cover;   /* fills container fully, crops excess */
  display: block;
  border-radius: inherit; /* ensures video matches rounded corners */
}

/* Overlay Play Button */
.work-box::after {
  content: "▶";
  font-size: 2.5rem;
  color: rgba(255,255,255,0.9);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.work-box.playing::after {
  opacity: 0; /* hide play button when playing */
}

/* Stats Section */
#stats {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 6rem 2rem;
  overflow: hidden;
  text-align: center;
}


/* Header */
.stats-header .section-label {
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stats-header h2 {
  font-size: 2.8rem;
  background: linear-gradient(90deg, #4a65ff, #99c5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4rem;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  width: 100%;
  max-width: 1000px;
  position: relative;
  z-index: 1;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 5px 20px rgba(74, 101, 255, 0.144);
}

.stat-card h2 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #4a65ff, #99c5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
}

/* Background grid */
#stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.1;
  z-index: 0;
  animation: gridMove 30s linear infinite;
}
@keyframes gridMove {
  from { background-position: 0 0; }
  to { background-position: 80px 80px; }
}

#stats::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,15,30,1) 0%, rgba(255, 255, 255, 0) 20%),
              linear-gradient(to bottom, rgba(11, 15, 30, 0) 0%, rgba(11,15,30,0) 20%)
  z-index: 0;
  pointer-events: none;
}

/* Shapes */
.shape {
  position: absolute;
  width: 150px;
  height: 150px;
  opacity: 0.2;
  z-index: 0;
}

.shape.cube {
  background: linear-gradient(135deg, #4a65ff, #99c5ff);
  left: 10%;
  top: 20%;
  transform: rotate(45deg);
  animation: rotateCube 20s linear infinite;
}
@keyframes rotateCube {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.shape.hexagon {
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  background: linear-gradient(135deg, #99c5ff, #4a65ff);
  right: 15%;
  bottom: 50%;
  animation: floatHex 8s ease-in-out infinite, rotateHex 25s linear infinite;
}

/* Floating effect */
@keyframes floatHex {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-30px); }
}

/* Continuous rotation */
@keyframes rotateHex {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.shape.triangle {
  clip-path: polygon(50% 0%, 0% 86.6%, 100% 86.6%);
  background: linear-gradient(135deg, #4a65ff, #99c5ff);
  left: 50%;
  bottom: 10%;
  animation: floatTri 15s ease-in-out infinite, rotateTri 20s linear infinite;
}

@keyframes floatTri {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(0deg); }
}

@keyframes rotateTri {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Particles Canvas */
#particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Section */
.how-it-works {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.how-header h2 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #4a65ff, #99c5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.how-header p {
  font-size: 2.5rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4rem;
}

/* Grid */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Glassy Cards */
.how-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 3rem 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* 🔥 Gradient border */
  border: 3px solid transparent;
  background-image: linear-gradient(
      rgb(10, 10, 20),
      rgba(10, 10, 20, 0.795)
    ),
    linear-gradient(100deg, #4a65ff, #99c5ff);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.how-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(74, 101, 255, 0.3);
}

.icon {
  width: 150px;
  margin-bottom: 1rem;
}

.how-card h3 {
  font-size: 1.5rem;
  font-weight: 550;
  color: #4a65ff;
  margin-bottom: 1rem;
}

.how-card p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
}


/*Testimonial*/
.testimonials-clean {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
   background: radial-gradient(
    circle at 50% 30%,
    rgba(51, 53, 190, 0.192),
    rgba(0, 0, 0, 0.856) 70%
  )
  padding: 4rem 2rem;
  color: #ffff;
}

.testimonials-clean h3 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, #4a65ff, #99c5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testimonial-slider {
  max-width: 1000px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  max-width: 1600px;
  padding: 0 2rem;
}

.testimonial.active {
  display: block;
  opacity: 1;
}

.client-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.2rem;
  border: 2px solid rgba(255,255,255,0.2);
}

.quote {
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1rem;
}

.client {
  font-size: 1rem;
  color: #bbb;
}

/* arrows */
.arrow {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0.5rem;
}

.arrow:hover {
  color: #4a65ff;
}

.arrow.left {
  position: absolute;
  left: -2rem;
}

.arrow.right {
  position: absolute;
  right: -2rem;
}

/* dots */
.testimonial-dots {
  margin-top: 2rem;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #4a65ff;
}

/* Why Us */
.why-us {
  text-align: center;
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.why-us h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, #4a65ff, #99c5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.why-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.why-card {
position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(12px);
  text-align: center;
  font-size: 1.2rem;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* 🔥 Gradient border */
  border: 3px solid transparent;
  background-image: linear-gradient(
      rgb(10, 10, 20),
      rgba(10, 10, 20, 0.884)
    ),
    linear-gradient(135deg, #4a65ff, #99c5ff);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(74, 101, 255, 0.3);
}

.why-card img {
  width: 60%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.why-card h3 {
  font-size: 1.5rem;
  font-weight: 550;
  color: #4a65ff;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
}


/* FAQ Section */
.faqs {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.8rem;
  padding: 0; /* keep all consistent */
  margin-top: 8%;
}

.faqs h2.section-title {
  font-size: 2.5rem;
  font-weight: 100;
  margin-bottom: 3rem; /* space between heading & questions */
  background: linear-gradient(90deg, #4a65ff, #99c5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 0.8rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 400; /* bolder */
  color: #fff;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  background: rgba(255,255,255,0.05); /* slightly stronger */
  transition: all 0.3s ease;
}

.faq-question:hover {
  border-color: #4a65ff;
  background: rgba(74,101,255,0.08);
}

.faq-toggle {
  font-size: 2.5rem;
  transition: transform 0.3s ease;
}

.faq.active .faq-toggle {
  transform: rotate(45deg); /* turns + into × */
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0.5rem;
  padding: 0 1rem;
  background: transparent; /* ❌ remove bg */
  border-left: 2px solid #4a65ff; /* ✅ subtle accent */
  border-radius: 0;
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.6;
  transition: all 0.4s ease;
}

.faq.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding: 0.8rem 1.2rem;
  margin-top: 0.8rem;
}


/* CTA */
.cta {
  padding: 4rem 2rem;
  text-align: center;
}
.cta h3 {
  color: #fff;
}

/* CTA Section */
.cta {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  text-align: center;
}

/* CTA Section */
.cta {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
}

/* CTA Box Style */
.cta-box {
  max-width: 1200px;                /* controls WIDTH */
  width: 120%;
  padding: 3rem 2rem;              /* controls HEIGHT & spacing inside */
  border-radius: 20px;             /* rounded corners */
  background: rgba(255, 255, 255, 0.04); 
  border: 1px solid rgba(255, 255, 255, 0.397);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Heading inside CTA */
.cta-box h3 {
  font-size: 2.2rem;
  font-weight: 300;
  color: #fff;
  margin: 0;
}

/* Subtext */
.cta-box p {
  font-size: 1rem;
  color: #aaa;
  margin: 0;
}

/* CTA Button */
.cta-box .btn {
  align-self: center;
  background: linear-gradient(90deg, #4a65ff, #99c5ffc7);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Fade-in effect */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==== Portfolio Section ==== */
.portfolio {
  padding: 4rem 2rem;
  text-align: center;
  background: transparent;
}

.portfolio h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Make every section full page */
section {
  min-height: 100vh;   /* each section takes full screen */
  display: flex;
  flex-direction: column;
  justify-content: center; /* center vertically */
  align-items: center;     /* center horizontally */
  padding: 4rem 2rem;
  text-align: center;
}

/* Section headings */

h1, h2, h3, h4 {
  font-weight: 200;  /* ultra-light */
  letter-spacing: -0.3px;
  color: #fff;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 400;
  color: #ffffff; /* match testimonials style */
  margin-bottom: 2rem;
  line-height: 1.3;
}

.section-label {
  font-weight: 300; /* small labels slightly stronger */
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* Box grids inside sections */
.grid, .process-grid, .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* was 200px */
  gap: 3rem;        /* more space between boxes */
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1300px; /* wider container */
  margin-top: 3rem;  /* more spacing below headings */
  margin-left: auto;
  margin-right: auto;
}

/* Box style (square tiles) */
.info-box, .work-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.61); /* subtle border */
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  /* Bigger square */
  aspect-ratio: 1.25 / 1;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  margin: auto;

  /* More internal space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.2rem;     /* increased from 2rem */
  margin: auto;
}

.info-box:hover, .work-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.35);
}

.info-box h4 {
  font-size: 1.3rem;   /* slightly bigger heading */
  margin-bottom: 0.8rem;
  color: #fff;
}

.info-box p, .info-box span {
  color: #bbb;
  font-size: 1rem;     /* scale text up with box */
  line-height: 1.6;
}

  /* Smoke overlay */
.smoke-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;

  /* Multiple overlapping smoke blobs */
  background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.08), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255,255,255,0.1), transparent 55%),
              radial-gradient(circle at 50% 90%, rgba(255,255,255,0.12), transparent 60%),
              radial-gradient(circle at 20% 40%, rgba(255,255,255,0.05), transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(255,255,255,0.03), transparent 40%);
  
  background-size: 200% 200%;
  animation: smokeMove 25s ease-in-out infinite alternate;
  filter: blur(90px);
  opacity: 0.4; /* more visible */
}

/* Smooth drifting animation */
@keyframes smokeMove {
  0%   { background-position: 40% 100%; }
  50%  { background-position: 60% 80%; }
  100% { background-position: 50% 90%; }
}

/* ====== Global Animations ====== */

/* Initial hidden state */
.fade-up, .fade-down, .fade-left, .fade-right, .fade-scale {
  opacity: 0;
  transition: all 0.8s ease-out;
}

/* Different directions */
.fade-up    { transform: translateY(90px); }
.fade-down  { transform: translateY(-90px); }
.fade-left  { transform: translateX(-90px); }
.fade-right { transform: translateX(90px); }
.fade-scale { transform: scale(0.9); }

/* When visible */
.fade-up.visible,
.fade-down.visible,
.fade-left.visible,
.fade-right.visible,
.fade-scale.visible {
  opacity: 1;
  transform: translate(0,0) scale(1);
}

/* Staggered animations for grids */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.stagger > *.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger > *:nth-child(1) { transition-delay: 0.1s; }
.stagger > *:nth-child(2) { transition-delay: 0.2s; }
.stagger > *:nth-child(3) { transition-delay: 0.3s; }
.stagger > *:nth-child(4) { transition-delay: 0.4s; }
.stagger > *:nth-child(5) { transition-delay: 0.5s; }

/* Base hidden state */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

/* Visible state */
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional variations */
.animate-left {
  transform: translateX(-140px);
}
.animate-right {
  transform: translateX(140px);
}
.animate-up {
  transform: translateY(140px);
}
.animate-down {
  transform: translateY(-140px);
}

.animate-left.visible,
.animate-right.visible,
.animate-up.visible,
.animate-down.visible {
  transform: translateX(0) translateY(0);
  opacity: 1;
}

/* =======================
   📱 Mobile Optimizations
   ======================= */
@media (max-width: 768px) {
  /* Navbar */
  .nav-links {
    gap: 1rem;
    font-size: 0.8rem;
  }
  .btn-nav {
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
  }

  /* Hero */
  .hero {
    padding: 8rem 1rem 2rem;
  }
  .hero-logo {
    font-size: 1.4rem;
    left: 1rem;
    top: 2rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
    max-width: 90%;
  }
  .hero-cube {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 15%;
  }

  /* Work section */
  .work-grid {
    grid-template-columns: 1fr; /* stack videos */
    gap: 1rem;
  }
  .work-box {
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
  }
  .work-box video {
    width: 100%;
    height: auto;
  }

  /* Stats */
  #stats {
    padding: 4rem 1rem;
  }
  .stats-grid {
    grid-template-columns: 1fr; /* stack */
    gap: 2rem;
  }
  .stat-card h2 {
    font-size: 2rem;
  }
  .stat-card p {
    font-size: 1rem;
  }

  /* How it Works + Why Us */
  .how-grid,
  .why-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 2rem;
  }
  .how-card,
  .why-card {
    padding: 2rem 1rem;
  }
  .icon {
    width: 100px;
  }

  /* Testimonials */
  .testimonials-clean h3 {
    font-size: 2rem;
  }
  .testimonial {
    font-size: 0.9rem;
    padding: 0 1rem;
  }
  .arrow.left {
    left: -1rem;
  }
  .arrow.right {
    right: -1rem;
  }

  /* FAQ */
  .faqs {
    padding: 2rem 1rem;
  }
  .faq-question {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }
  .faq-answer {
    font-size: 0.9rem;
  }

  /* CTA */
  .cta-box {
    width: 100%;
    padding: 2rem 1rem;
  }
  .cta-box h3 {
    font-size: 1.6rem;
  }
  .cta-box p {
    font-size: 0.9rem;
  }
}

/* Footer */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  background: transparent; /* 🔥 removes the box */
  border-top: 0px solid rgba(255, 255, 255, 0.1);
  margin-top: 5rem;
}

.footer-logo img {
  width: 100px;
  height: auto;
  transition: transform 0.3s ease;
}
.footer-links {
  font-size: 1rem;
  color: #bbb;
}

.footer-links a {
  color: #4a65ff;
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #99c5ff;
}
