/* ============================================
   LUCAS EDUARDO - TRAFFIC MANAGER
   Landing Page Premium - Black & Gold
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Gold palette */
  --gold-100: #FFF8E1;
  --gold-200: #FFE082;
  --gold-300: #FFD54F;
  --gold-400: #FFCA28;
  --gold-500: #D4AF37;
  --gold-600: #C5A028;
  --gold-700: #B8860B;
  --gold-800: #9A7209;
  --gold-900: #7A5A07;

  /* Dark palette */
  --black-100: #1a1a1a;
  --black-200: #141414;
  --black-300: #111111;
  --black-400: #0d0d0d;
  --black-500: #0a0a0a;
  --black-600: #050505;
  --black-700: #000000;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(212, 175, 55, 0.15);
  --glass-shadow: rgba(212, 175, 55, 0.1);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;

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

  /* Gold gradient */
  --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #FFD54F 25%, #D4AF37 50%, #B8860B 75%, #D4AF37 100%);
  --gold-gradient-text: linear-gradient(135deg, #FFE082 0%, #D4AF37 50%, #FFE082 100%);
  --gold-shine: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.4) 50%, transparent 100%);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) #0d0d0d;
}

body {
  font-family: var(--font-body);
  background-color: var(--black-700);
  color: #e0e0e0;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   GOLD LATERAL SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0a0a0a;
  border-left: 1px solid rgba(212, 175, 55, 0.15);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FFE082 0%, #D4AF37 50%, #9A7209 100%);
  border-radius: 10px;
  border: 2px solid #0a0a0a;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #FFF8E1 0%, #FFD54F 40%, #D4AF37 100%);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.7);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, #FFCA28 0%, #B8860B 100%);
}

::-webkit-scrollbar-corner {
  background: #0a0a0a;
}

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

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

ul {
  list-style: none;
}

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

.gold-text {
  background: var(--gold-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 20px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--gold-gradient);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}

.section-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 600px;
  font-weight: 300;
}

/* ============================================
   3D RAINDROP / GLASS BUTTONS
   ============================================ */
.btn-rain {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #000000 !important;
  border: none;
  border-radius: 60px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: var(--gold-gradient);
  background-size: 200% 200%;
  animation: goldShimmer 3s ease infinite;
  /* 3D drop shadow effect */
  box-shadow:
    0 2px 4px rgba(212, 175, 55, 0.3),
    0 6px 12px rgba(212, 175, 55, 0.2),
    0 12px 24px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.5),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  text-shadow: none;
  /* Glass raindrop 3D border */
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(0, 0, 0, 0.2);
}

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

.btn-rain::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 10%;
  width: 80%;
  height: 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
  border-radius: 60px;
  pointer-events: none;
}

.btn-rain:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 4px 8px rgba(212, 175, 55, 0.4),
    0 10px 20px rgba(212, 175, 55, 0.3),
    0 20px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}

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

.btn-rain:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 1px 2px rgba(212, 175, 55, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 -1px 2px rgba(255, 255, 255, 0.3);
}

/* Glass variant */
.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-500);
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 60px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  /* Glass 3D */
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(212, 175, 55, 0.15),
    inset 0 -1px 2px rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(212, 175, 55, 0.4);
}

.btn-glass::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 10%;
  width: 80%;
  height: 35%;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, transparent 100%);
  border-radius: 60px;
  pointer-events: none;
}

.btn-glass:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(212, 175, 55, 0.1),
    inset 0 1px 1px rgba(212, 175, 55, 0.2);
  color: var(--gold-300);
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding: 10px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
  transition: transform 0.3s ease;
}

.nav-logo img:hover {
  transform: rotate(15deg) scale(1.1);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.nav-logo-text span {
  color: var(--gold-500);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold-400);
}

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

.nav-cta,
.nav-links a.nav-cta,
.nav-links li a.nav-cta,
#nav-cta-btn {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #000000 !important;
  text-shadow: none !important;
  letter-spacing: 0.02em;
}

.nav-cta:hover,
.nav-links a.nav-cta:hover,
.nav-links li a.nav-cta:hover,
#nav-cta-btn:hover {
  color: #000000 !important;
  text-shadow: none !important;
}

.nav-links a.nav-cta::after,
#nav-cta-btn::after {
  display: none !important;
}

.nav-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.85rem !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 30px;
  background: rgba(212, 175, 55, 0.05);
  transition: all 0.3s ease;
}

.nav-instagram svg {
  stroke: var(--gold-400);
  transition: transform 0.3s ease;
}

.nav-instagram:hover {
  color: #fff !important;
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.18);
  transform: translateY(-2px);
}

.nav-instagram:hover svg {
  transform: rotate(8deg) scale(1.1);
}

.nav-links a.nav-instagram::after {
  display: none !important;
}

/* Mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-500);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.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);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, transparent 100%);
}

/* Animated gold particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 50%;
  opacity: 0;
  animation: floatParticle 6s infinite;
}

@keyframes floatParticle {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  20% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(3rem, 6.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-line {
  display: block;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.hero-title .highlight {
  position: relative;
  display: inline;
}

.hero-title .highlight.gold-text {
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gold-gradient);
  border-radius: 4px;
  opacity: 0.7;
  z-index: -1;
}

.hero-description {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 36px;
  font-weight: 400;
  max-width: 520px;
  line-height: 1.75;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
  will-change: transform, opacity;
  transform: translate3d(0, 0, 0);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease 0.3s forwards;
  opacity: 0;
}

.hero-image-wrapper {
  position: relative;
  width: 420px;
  height: 520px;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 20px;
  border: 2px solid rgba(212, 175, 55, 0.2);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(212, 175, 55, 0.1);
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 80px;
  height: 80px;
  border-top: 3px solid var(--gold-500);
  border-right: 3px solid var(--gold-500);
  border-radius: 0 20px 0 0;
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 80px;
  height: 80px;
  border-bottom: 3px solid var(--gold-500);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 0 0 20px;
}

/* Floating badge on hero image */
.hero-float-badge {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}

.hero-float-badge.top-badge {
  top: 20px;
  right: -30px;
  animation-delay: 0s;
}

.hero-float-badge.bottom-badge {
  bottom: 40px;
  left: -40px;
  animation-delay: 2s;
}

.hero-float-badge .icon {
  width: 40px;
  height: 40px;
  background: var(--gold-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.hero-float-badge .text {
  font-size: 0.82rem;
}

.hero-float-badge .text strong {
  display: block;
  font-weight: 600;
  color: #fff;
  font-size: 0.9rem;
}

.hero-float-badge .text span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

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

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

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: var(--section-padding);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

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

.services-header .section-subtitle {
  margin: 0 auto;
}

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

.service-card {
  position: relative;
  padding: 36px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: 20px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  cursor: default;
  /* Glass 3D effect */
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
  transform: translateY(-8px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(212, 175, 55, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.service-card:hover .service-icon {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.3);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.service-card h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.service-card p {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  line-height: 1.7;
}

/* Service card with image */
.service-card-image {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}

.service-card-image .card-image {
  height: 300px;
  overflow: hidden;
}

.service-card-image .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card-image:hover .card-image img {
  transform: scale(1.05);
}

.service-card-image .card-content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  padding: var(--section-padding);
  position: relative;
  background: linear-gradient(180deg, var(--black-700) 0%, var(--black-400) 50%, var(--black-700) 100%);
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 70px;
}

.how-it-works-header .section-subtitle {
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connection line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-500), rgba(212, 175, 55, 0.1), var(--gold-500), rgba(212, 175, 55, 0.1), var(--gold-500));
}

.step-item {
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--black-700);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-500);
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
  /* Glass 3D */
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(212, 175, 55, 0.1);
}

.step-item:hover .step-number {
  border-color: var(--gold-500);
  background: rgba(212, 175, 55, 0.1);
  transform: scale(1.1);
  box-shadow:
    0 4px 30px rgba(212, 175, 55, 0.2),
    0 0 0 8px rgba(212, 175, 55, 0.05),
    inset 0 1px 2px rgba(212, 175, 55, 0.2);
}

.step-item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.step-item p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 300;
  line-height: 1.6;
}

/* ============================================
   PORTFOLIO 3D SECTION
   ============================================ */
.portfolio-section {
  padding: var(--section-padding);
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  overflow: hidden;
}

.portfolio-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.08) 0%, rgba(184, 134, 11, 0.02) 50%, transparent 80%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

/* 3D Card Container */
.portfolio-3d-card {
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: transform;
}

.portfolio-card-flipper {
  position: relative;
  width: 100%;
  min-height: 540px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-3d-card.flipped .portfolio-card-flipper {
  transform: rotateY(180deg);
}

/* Card Faces */
.portfolio-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(24, 24, 24, 0.92) 0%, rgba(12, 12, 12, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(212, 175, 55, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-3d-card:hover .portfolio-card-face {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(212, 175, 55, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Dynamic Glare Reflection */
.portfolio-glare {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  background: radial-gradient(circle 350px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 224, 130, 0.16) 0%, transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
}

/* Browser Frame Mockup */
.browser-frame {
  margin: 16px 16px 0 16px;
  background: #080808;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateZ(25px);
  transition: transform 0.3s ease;
}

.browser-header {
  height: 38px;
  background: #111111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.browser-url-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  max-width: 170px;
}

.url-lock {
  stroke: var(--gold-500);
  flex-shrink: 0;
}

.url-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-status {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-pulse {
  width: 7px;
  height: 7px;
  background: #27c93f;
  border-radius: 50%;
  box-shadow: 0 0 8px #27c93f;
  animation: statusBlink 2s infinite ease-in-out;
}

@keyframes statusBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.status-text {
  font-size: 0.68rem;
  font-weight: 600;
  color: #27c93f;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Browser Screen */
.browser-screen {
  position: relative;
  display: block;
  height: 195px;
  overflow: hidden;
  background: #000;
}

.browser-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.browser-screen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.browser-screen:hover img {
  transform: scale(1.08);
}

.browser-screen:hover .browser-screen-overlay {
  opacity: 1;
}

.overlay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(212, 175, 55, 0.9);
  color: #0a0a0a;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  transform: translateY(10px);
  transition: transform 0.3s ease, background 0.2s ease;
}

.browser-screen:hover .overlay-btn {
  transform: translateY(0);
}

.overlay-btn:hover {
  background: #fff;
  color: #000;
}

/* Portfolio Card Content (Front) */
.portfolio-content {
  padding: 20px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  transform: translateZ(20px);
}

.portfolio-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.portfolio-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.portfolio-flip-trigger, .portfolio-flip-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 20px;
  color: var(--gold-200);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.portfolio-flip-trigger:hover, .portfolio-flip-close:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-400);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.portfolio-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.portfolio-chips .chip {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

.portfolio-actions {
  margin-top: auto;
}

.portfolio-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 24px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 12px;
  color: var(--black-700);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
  text-decoration: none;
}

.portfolio-btn-primary svg {
  transition: transform 0.3s ease;
}

.portfolio-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
  color: #000;
}

.portfolio-btn-primary:hover svg {
  transform: translate(3px, -3px);
}

/* Card Back (Strategy & Details) */
.portfolio-card-back {
  transform: rotateY(180deg);
  padding: 28px 24px;
  justify-content: space-between;
}

.portfolio-back-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.portfolio-back-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.portfolio-back-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}

.detail-box {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 12px;
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-400);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.detail-box p {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0;
}

.portfolio-back-actions {
  margin-top: auto;
}

/* Responsive Grid for Portfolio */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
  .portfolio-card-flipper {
    min-height: 520px;
  }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
  padding: var(--section-padding);
  position: relative;
}

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

.faq-header .section-subtitle {
  margin: 0 auto;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  /* Glass 3D */
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.faq-item:hover {
  border-color: rgba(212, 175, 55, 0.15);
}

.faq-item.active {
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(212, 175, 55, 0.05);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-align: left;
  gap: 16px;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--gold-400);
}

.faq-icon {
  width: 32px;
  height: 32px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s ease;
  color: var(--gold-500);
  font-size: 1.1rem;
}

.faq-item.active .faq-icon {
  background: rgba(212, 175, 55, 0.15);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-content {
  padding: 0 28px 22px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 40px;
  background: rgba(212, 175, 55, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: 30px;
  /* Glass 3D */
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-box .section-title {
  margin-bottom: 16px;
}

.cta-box .section-subtitle {
  margin: 0 auto 36px;
  text-align: center;
}

.cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 0.95rem;
  font-weight: 500;
}

.cta-instagram-btn svg {
  stroke: var(--gold-400);
  transition: transform 0.3s ease;
}

.cta-instagram-btn:hover svg {
  transform: scale(1.15) rotate(6deg);
}

.cta-whatsapp-number {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 16px;
  font-weight: 300;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(212, 175, 55, 0.08);
}

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

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 30px;
  color: var(--gold-400);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.footer-instagram-link svg {
  stroke: var(--gold-400);
  transition: transform 0.3s ease;
}

.footer-instagram-link:hover {
  color: #fff;
  border-color: var(--gold-400);
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  transform: translateY(-2px);
}

.footer-instagram-link:hover svg {
  transform: scale(1.12);
}

.footer-text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.footer-text a {
  color: var(--gold-500);
  transition: color 0.3s ease;
}

.footer-text a:hover {
  color: var(--gold-300);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   MEDIA IMAGE SECTION (additional services)
   ============================================ */
.media-services {
  padding: var(--section-padding);
  position: relative;
}

.media-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.media-image-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.12);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(212, 175, 55, 0.05);
}

.media-image-box img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.media-image-box:hover img {
  transform: scale(1.03);
}

.media-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 16px;
}

.media-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 24px;
}

.media-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.media-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
}

.media-list-item .check {
  width: 24px;
  height: 24px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    order: -1;
    opacity: 1;
    animation: none;
  }

  .hero-image-wrapper {
    width: 300px;
    height: 380px;
    margin: 0 auto;
  }

  .hero-content {
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-services {
    justify-content: center;
  }

  .hero-float-badge.top-badge {
    right: 10px;
    top: 10px;
  }

  .hero-float-badge.bottom-badge {
    left: 10px;
    bottom: 20px;
  }

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

  .service-card-image {
    grid-column: span 2;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .steps-grid::before {
    display: none;
  }

  .media-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(212, 175, 55, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

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

  .service-card-image {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .service-card-image .card-image {
    height: 200px;
  }

  .hero-image-wrapper {
    width: 260px;
    height: 340px;
  }

  .hero-float-badge {
    display: none;
  }

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

  .cta-box {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
    line-height: 1.08;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-rain, .btn-glass {
    width: 100%;
  }

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

  .section-title {
    font-size: 1.6rem;
  }
}

/* ============================================
   GOLD LINE DECORATIONS
   ============================================ */
.gold-line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 3px;
  margin: 16px auto 0;
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 20px rgba(37, 211, 102, 0.4),
    0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: whatsappPulse 2s infinite;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow:
    0 8px 30px rgba(37, 211, 102, 0.5),
    0 12px 40px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3); }
  70% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============================================
   PRELOADER INITIAL EXPERIENCE
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background-color: #050505;
  background-image: radial-gradient(circle at center, #0c0a06 0%, #050505 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  overflow: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Cosmic starfield */
.preloader-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.star-dot {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 0 12px rgba(212, 175, 55, 0.6);
  animation: starTwinkle 3s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

.preloader-nebula {
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.03) 45%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
  animation: nebulaPulse 4s ease-in-out infinite alternate;
}

@keyframes nebulaPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.15); opacity: 1; }
}

.preloader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Stage container */
.preloader-stage {
  position: relative;
  width: 230px;
  height: 230px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer Orbit Rings */
.preloader-orbit-outer {
  position: absolute;
  width: 234px;
  height: 234px;
  border-radius: 50%;
  border: 1.5px dashed rgba(212, 175, 55, 0.35);
  animation: orbitSpin 16s linear infinite;
  pointer-events: none;
}

.preloader-orbit-glow {
  position: absolute;
  width: 224px;
  height: 224px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--gold-300);
  border-right-color: rgba(212, 175, 55, 0.4);
  animation: orbitSpinRev 3s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.7));
  pointer-events: none;
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes orbitSpinRev {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* Logo Emblem with 3D Zero-G Float */
.preloader-emblem {
  position: relative;
  width: 195px;
  height: 195px;
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: spaceHover 3.2s ease-in-out infinite;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 25px rgba(212, 175, 55, 0.25));
  transition: transform 0.4s ease;
}

.preloader-emblem.launching {
  animation: rocketLaunch 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

@keyframes spaceHover {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(-1.5deg);
  }
  75% {
    transform: translateY(6px) rotate(2deg);
  }
}

@keyframes rocketLaunch {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5));
  }
  20% {
    transform: translateY(12px) scale(0.95);
  }
  100% {
    transform: translateY(-160px) scale(1.18);
    filter: drop-shadow(0 0 60px rgba(212, 175, 55, 1));
    opacity: 0.7;
  }
}

.preloader-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

/* Thruster flame flare at the rocket exhaust */
.preloader-thruster-flame {
  position: absolute;
  bottom: 22px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: radial-gradient(circle, rgba(255, 230, 100, 0.95) 0%, rgba(255, 140, 0, 0.8) 35%, rgba(255, 50, 0, 0.5) 55%, transparent 75%);
  border-radius: 50%;
  filter: blur(5px);
  pointer-events: none;
  animation: thrusterFlicker 0.12s ease-in-out infinite alternate;
  z-index: 3;
}

@keyframes thrusterFlicker {
  0% {
    transform: scale(0.85) translate(0, 0);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.25) translate(3px, 3px);
    opacity: 1;
  }
}

/* Micro-sparks drifting back from thruster */
.preloader-thruster-sparks {
  position: absolute;
  bottom: 15px;
  right: 20px;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 4;
}

.preloader-thruster-sparks .spark {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #FFE082;
  border-radius: 50%;
  box-shadow: 0 0 6px #FFD54F;
  animation: sparkFly 0.8s ease-out infinite;
}

.preloader-thruster-sparks .spark.s1 { top: 10px; left: 10px; animation-delay: 0s; }
.preloader-thruster-sparks .spark.s2 { top: 16px; left: 16px; animation-delay: 0.2s; }
.preloader-thruster-sparks .spark.s3 { top: 20px; left: 12px; animation-delay: 0.4s; }
.preloader-thruster-sparks .spark.s4 { top: 14px; left: 22px; animation-delay: 0.6s; }

@keyframes sparkFly {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(32px, 32px) scale(0.2);
  }
}


/* Preloader UI */
.preloader-ui {
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}

.preloader-brand .brand-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #ffffff;
  text-transform: uppercase;
}

.preloader-brand .brand-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold-400);
  text-transform: uppercase;
}

.preloader-bar-wrap {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.18);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.preloader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #D4AF37 0%, #FFE082 50%, #FFD54F 100%);
  box-shadow: 0 0 12px rgba(255, 224, 130, 0.8);
  border-radius: 6px;
  transition: width 0.08s linear;
}

.preloader-status-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.preloader-status {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.preloader-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-400);
  font-family: monospace;
}

@media (max-width: 400px) {
  .preloader-stage {
    width: 190px;
    height: 190px;
    margin-bottom: 24px;
  }
  .preloader-orbit-outer {
    width: 194px;
    height: 194px;
  }
  .preloader-orbit-glow {
    width: 184px;
    height: 184px;
  }
  .preloader-emblem {
    width: 160px;
    height: 160px;
  }
  .preloader-thruster-flame {
    bottom: 16px;
    right: 22px;
    width: 38px;
    height: 38px;
  }
}
