/* ===== SMM.Studio – Custom Styles ===== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1e1b4b;
  background: #ffffff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* staggered children */
.reveal-children>* {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-children.active>*:nth-child(1) {
  transition-delay: 0ms;
}

.reveal-children.active>*:nth-child(2) {
  transition-delay: 120ms;
}

.reveal-children.active>*:nth-child(3) {
  transition-delay: 240ms;
}

.reveal-children.active>*:nth-child(4) {
  transition-delay: 360ms;
}

.reveal-children.active>*:nth-child(5) {
  transition-delay: 480ms;
}

.reveal-children.active>*:nth-child(6) {
  transition-delay: 600ms;
}

.reveal-children.active>* {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Card Hover Lift ---------- */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(59, 40, 204, 0.10),
    0 8px 16px rgba(0, 0, 0, 0.06);
}

/* ---------- Button Micro-interactions ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: #4338ca;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease,
    box-shadow 0.25s ease;
  text-decoration: none;
}

.btn-primary:hover {
  transform: scale(1.05);
  background: #3730a3;
  box-shadow: 0 8px 24px rgba(67, 56, 202, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: #1e1b4b;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.25s ease,
    background 0.25s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  transform: scale(1.05);
  border-color: #4338ca;
  background: rgba(67, 56, 202, 0.05);
}

/* ---------- Navbar glass effect on scroll ---------- */
.navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ---------- Gradient text utility ---------- */
.text-gradient {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Workflow step connector line ---------- */
.workflow-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

/* ---------- Star rating ---------- */
.stars {
  color: #fbbf24;
  font-size: 1.125rem;
  letter-spacing: 2px;
}

/* ---------- Testimonial card ---------- */
.testimonial-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* ---------- Service link animation ---------- */
.service-link {
  color: #4338ca;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.3s ease;
}

.service-link:hover {
  gap: 0.65rem;
}

/* ---------- Mobile nav overlay ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e1b4b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-nav a:hover {
  color: #4338ca;
}

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1e1b4b;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
}

/* ---------- Hero Background Shapes ---------- */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

/* ========== ROCKET ANIMATION SYSTEM ========== */

/* --- Space-themed Hero Background --- */
.hero-space-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #3b1f8e 0%, #5b3cc4 35%, #6c5ce7 60%, #a29bfe 100%);
  z-index: 0;
  overflow: hidden;
}

/* --- Stars --- */
.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0;
  animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {

  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.2);
  }
}

/* --- Planet (Saturn) --- */
.hero-planet {
  position: absolute;
  top: 12%;
  left: 8%;
  width: 80px;
  height: 80px;
  z-index: 2;
  opacity: 0;
  animation: planetFadeIn 1.5s ease-out 0.5s forwards;
  pointer-events: none;
}

@keyframes planetFadeIn {
  to {
    opacity: 0.35;
  }
}

/* --- Clouds --- */
.hero-clouds {
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 200px;
  z-index: 5;
  pointer-events: none;
}

.cloud {
  position: absolute;
  border-radius: 50%;
  background: #e0e7ff;
  opacity: 0.85;
}

.cloud-layer-back {
  position: absolute;
  bottom: 0;
  left: -5%;
  right: -5%;
  height: 120px;
  background: #c7d2fe;
  border-radius: 100% 100% 0 0;
  opacity: 0.5;
}

.cloud-layer-mid {
  position: absolute;
  bottom: 0;
  left: -3%;
  right: -3%;
  height: 90px;
  background: #ddd6fe;
  border-radius: 100% 100% 0 0;
  opacity: 0.7;
}

.cloud-layer-front {
  position: absolute;
  bottom: 0;
  left: -2%;
  right: -2%;
  height: 65px;
  background: #e8e4fc;
  border-radius: 100% 100% 0 0;
  opacity: 0.9;
}

/* Individual cloud puffs */
.cloud-puff {
  position: absolute;
  background: #c7d2fe;
  border-radius: 50%;
  opacity: 0.7;
}

.cloud-puff-1 {
  width: 200px;
  height: 120px;
  bottom: 30px;
  left: 5%;
}

.cloud-puff-2 {
  width: 260px;
  height: 140px;
  bottom: 20px;
  left: 25%;
  opacity: 0.6;
}

.cloud-puff-3 {
  width: 180px;
  height: 100px;
  bottom: 40px;
  right: 15%;
}

.cloud-puff-4 {
  width: 220px;
  height: 110px;
  bottom: 25px;
  right: 30%;
  opacity: 0.5;
}

/* --- Rocket Container --- */
.rocket-container {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  height: 400px;
  z-index: 4;
  pointer-events: none;
}

/* Launch animation */
.rocket-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  animation: rocketLaunch 2s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    rocketFloat 4s ease-in-out 2.2s infinite;
  transform: translateY(120%);
}

@keyframes rocketLaunch {
  0% {
    transform: translateY(120%);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}

@keyframes rocketFloat {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-18px);
  }
}

/* --- Rocket Exhaust / Flame --- */
.rocket-flame {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 90px;
  opacity: 0;
  z-index: 1;
  animation: flameAppear 0.5s ease-out 0.3s forwards;
}

@keyframes flameAppear {
  to {
    opacity: 1;
  }
}

.flame-inner {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 65px;
  background: linear-gradient(to top, transparent 5%, #fbbf24 40%, #f97316 75%, #ef4444 100%);
  border-radius: 50% 50% 35% 35%;
  animation: flameFlicker 0.15s ease-in-out infinite alternate;
  filter: blur(2px);
}

.flame-outer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 80px;
  background: linear-gradient(to top, transparent 5%, #fde68a66 35%, #f9731644 70%, #ef444433 100%);
  border-radius: 50% 50% 35% 35%;
  animation: flameFlicker 0.2s ease-in-out infinite alternate-reverse;
  filter: blur(5px);
}

@keyframes flameFlicker {
  0% {
    transform: translateX(-50%) scaleY(0.90) scaleX(0.93);
  }

  100% {
    transform: translateX(-50%) scaleY(1.10) scaleX(1.07);
  }
}

/* --- Launch particles --- */
.launch-particles {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 120px;
  z-index: -1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fbbf24;
  border-radius: 50%;
  opacity: 0;
  animation: particleFly 1.8s ease-out forwards;
}

@keyframes particleFly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.9;
  }

  100% {
    transform: translate(var(--px), var(--py)) scale(0);
    opacity: 0;
  }
}

/* --- Smoke trails --- */
.smoke-trail {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 80px;
  z-index: -1;
}

.smoke-puff {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: smokeDrift 2s ease-out forwards;
  opacity: 0;
}

@keyframes smokeDrift {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 0.6;
  }

  100% {
    transform: translate(var(--sx), 60px) scale(2);
    opacity: 0;
  }
}

/* --- Responsive adjustments --- */
@media (max-width: 1024px) {
  .rocket-container {
    width: 160px;
    height: 300px;
    right: 3%;
  }
}

@media (max-width: 768px) {
  .rocket-container {
    width: 120px;
    height: 240px;
    right: 5%;
    top: 20%;
    transform: translateY(0);
  }

  .hero-planet {
    width: 50px;
    height: 50px;
    top: 8%;
    left: 5%;
  }

  .cloud-puff {
    display: none;
  }
}

@media (max-width: 480px) {
  .rocket-container {
    width: 90px;
    height: 180px;
    right: 2%;
    top: 15%;
  }
}

/* Hero section text needs to be white over space bg */
.hero-space-active {
  color: #ffffff;
}

.hero-space-active .text-slate-600 {
  color: rgba(255, 255, 255, 0.8) !important;
}

.hero-space-active .text-slate-900 {
  color: #ffffff !important;
}

.hero-space-active .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-space-active .btn-secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-space-active .text-gradient {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Form styles ---------- */
.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: #1e1b4b;
  background: #ffffff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.form-input:focus {
  border-color: #4338ca;
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.form-input::placeholder {
  color: #94a3b8;
}

/* ---------- Contact detail card ---------- */
.contact-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
}

/* ---------- Social icon hover ---------- */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #4338ca;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}

.social-icon:hover {
  transform: scale(1.1);
  background: #3730a3;
}

/* ---------- Team Card specific ---------- */
.team-card-img {
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 0.75rem;
  width: 100%;
}

/* ---------- Feature icon box ---------- */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}