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

:root {
  --blue: #0066FF;
  --blue-dark: #0044CC;
  --blue-light: #338AFF;
  --white: #ffffff;
  --bg: #0A0A0F;
  --bg2: #10101A;
  --bg3: #16162A;
  --text: #E8E8F0;
  --text-muted: #888899;
  --green: #25D366;
  --radius: 16px;
  --shadow: 0 8px 40px rgba(0,102,255,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== UTILITY ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section-label {
  display: inline-block;
  background: rgba(0,102,255,0.15);
  color: var(--blue-light);
  border: 1px solid rgba(0,102,255,0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 18px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 48px;
}
.gradient-text {
  background: linear-gradient(135deg, #0066FF, #00C6FF, #0066FF);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 3s linear infinite;
}
@keyframes gradShift { to { background-position: 200% center; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 24px rgba(0,102,255,0.4);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,102,255,0.5); }
.btn-whatsapp { background: var(--green); color: white; box-shadow: 0 4px 24px rgba(37,211,102,0.3); }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37,211,102,0.4); }
.btn-white { background: white; color: var(--blue); font-weight: 700; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,255,255,0.2); }
.btn-nav { background: var(--blue); color: white; padding: 10px 22px; font-size: 0.9rem; }
.btn-nav:hover { background: var(--blue-dark); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.nav.scrolled { background: rgba(10,10,15,0.98); }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 38px; height: 38px; border-radius: 9px; overflow: hidden; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.2rem; color: var(--white); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: white; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: all 0.3s; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 16px 24px 20px; border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-menu a { color: var(--text-muted); text-decoration: none; padding: 10px 0; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mobile-menu.open { display: flex; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  gap: 48px;
}
#hero3d {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 580px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,102,255,0.12);
  border: 1px solid rgba(0,102,255,0.3);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7DB8FF;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-sub strong { color: var(--text); }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.4s both;
}
.stat span {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue-light);
}
.stat p { color: var(--text-muted); font-size: 0.85rem; margin-top: 2px; }

/* 3D Card */
.hero-3d-wrapper {
  position: relative;
  z-index: 2;
  flex: 0 0 300px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}
.card-3d {
  width: 220px;
  height: 220px;
  transform-style: preserve-3d;
  cursor: grab;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,102,255,0.4), 0 0 0 1px rgba(255,255,255,0.08);
  animation: floatCard 4s ease-in-out infinite;
  transition: box-shadow 0.3s;
}
.card-3d:active { cursor: grabbing; }
@keyframes floatCard {
  0%, 100% { transform: rotateX(8deg) rotateY(-12deg) translateY(0); }
  50% { transform: rotateX(-8deg) rotateY(12deg) translateY(-16px); }
}
.card-3d.dragging { animation: none; }
.card-3d-face {
  width: 100%; height: 100%;
  border-radius: 28px;
  background: linear-gradient(135deg, #0044CC, #0088FF);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.15);
}
.card-logo-big svg { width: 120px; height: 120px; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4)); }
.card-label { color: rgba(255,255,255,0.6); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em; }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 2;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

/* ===== TRUST ===== */
.trust {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--bg2);
}
.floating-cubes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.stars-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
}
.big-rating {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--blue-light);
  line-height: 1;
}
.stars { color: #FFB800; font-size: 1.5rem; letter-spacing: 2px; }
.stars-row p { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}
.review-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,102,255,0.15); }
.reviewer-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.reviewer-top strong { display: block; font-weight: 700; }
.reviewer-top span { color: var(--text-muted); font-size: 0.82rem; }
.stars-sm { color: #FFB800; font-size: 1rem; margin-bottom: 10px; }
.review-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--bg);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all 0.3s ease;
  cursor: default;
  transform-style: preserve-3d;
}
.service-card:hover {
  border-color: rgba(0,102,255,0.4);
  box-shadow: 0 16px 48px rgba(0,102,255,0.15);
  transform: translateY(-8px) rotateX(3deg);
}
.service-icon { font-size: 2.2rem; margin-bottom: 16px; }
.service-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--bg2);
}
.about-inner {
  display: flex;
  align-items: center;
  gap: 64px;
  flex-wrap: wrap;
}
.about-visual {
  flex: 0 0 280px;
  height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-3d-ring {
  width: 220px; height: 220px;
  position: relative;
  animation: spinRing 8s linear infinite;
}
@keyframes spinRing { to { transform: rotateY(360deg); } }
.about-text { flex: 1; min-width: 280px; }
.about-text p { color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.about-text strong { color: var(--text); }
.about-list { list-style: none; margin-bottom: 32px; }
.about-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 500;
  font-size: 0.95rem;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--bg);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }

/* Phone + country code */
.phone-input-group {
  display: flex;
  gap: 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: border 0.2s;
}
.phone-input-group:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.1);
}
.country-select {
  background: var(--bg3);
  border: none;
  border-right: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  padding: 12px 10px;
  cursor: pointer;
  outline: none;
  min-width: 82px;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888899'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
.country-select option { background: #16162A; }
.phone-input-group input[type="tel"] {
  flex: 1;
  background: var(--bg2);
  border: none;
  border-radius: 0;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.form-group label { font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  transition: border 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,102,255,0.1); }
.form-group textarea { resize: vertical; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-block {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.2s;
}
.contact-block:hover { border-color: rgba(0,102,255,0.4); }
.contact-icon { font-size: 1.5rem; }
.contact-block strong { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 2px; }
.contact-block a, .contact-block span { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.contact-block a:hover { color: var(--blue-light); }
.limited-slots {
  background: rgba(255,170,0,0.1);
  border: 1px solid rgba(255,170,0,0.3);
  border-radius: 12px;
  padding: 16px 20px;
  color: #FFB800;
  font-size: 0.92rem;
  text-align: center;
}

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 100px 24px;
  background: linear-gradient(135deg, #001A66, #0044CC, #0066FF);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-3d-bg { position: absolute; inset: 0; pointer-events: none; }
.final-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.final-cta p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 36px; }
.final-cta .hero-ctas { justify-content: center; }

/* ===== FOOTER ===== */
.footer { background: var(--bg); border-top: 1px solid rgba(255,255,255,0.06); padding: 28px 24px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ===== STICKY WA ===== */
.sticky-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px; height: 58px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulsewa 2.5s infinite;
}
.sticky-wa:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(37,211,102,0.5); }
.sticky-wa svg { width: 30px; height: 30px; }
@keyframes pulsewa {
  0%,100%{box-shadow:0 4px 24px rgba(37,211,102,0.4)}
  50%{box-shadow:0 4px 40px rgba(37,211,102,0.7),0 0 0 10px rgba(37,211,102,0.1)}
}

/* Form success */
.form-success {
  background: rgba(0,200,100,0.1);
  border: 1px solid rgba(0,200,100,0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #00CC66;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */

/* --- Tablet (≤900px) --- */
@media (max-width: 900px) {
  .hero { gap: 32px; }
  .hero-3d-wrapper { flex: 0 0 240px; height: 280px; }
  .card-3d { width: 190px; height: 190px; }
  .about-inner { gap: 40px; }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
  /* Nav */
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .nav-inner { gap: 12px; }

  /* Mobile menu improvements */
  .mobile-menu { padding: 12px 20px 20px; gap: 0; }
  .mobile-menu a {
    color: var(--text);
    font-size: 1rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  .mobile-menu .btn {
    margin-top: 12px;
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 14px;
  }

  /* Hero */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 88px 20px 56px;
    gap: 24px;
    min-height: auto;
  }
  .hero-content { max-width: 100%; }
  .hero-badge { font-size: 0.75rem; padding: 7px 14px; }
  .hero-title { font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.15; }
  .hero-sub { font-size: 1rem; margin-bottom: 24px; }

  /* Full-width hero CTAs on mobile */
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 15px 20px;
  }

  /* Stats row */
  .hero-stats {
    justify-content: space-around;
    gap: 16px;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    width: 100%;
  }
  .stat span { font-size: 1.5rem; }
  .stat p { font-size: 0.78rem; }

  /* 3D card — smaller, comes before text on mobile */
  .hero-3d-wrapper {
    order: -1;
    height: 180px;
    flex: 0 0 auto;
  }
  .card-3d { width: 150px; height: 150px; }
  .card-logo-big svg { width: 90px; height: 90px; }

  /* Section spacing tighter on mobile */
  .trust, .services, .about, .contact { padding: 72px 0; }
  .container { padding: 0 18px; }

  /* Trust */
  .stars-row { gap: 12px; margin-bottom: 32px; }
  .big-rating { font-size: 3rem; }
  .stars { font-size: 1.2rem; }
  .reviews-grid { grid-template-columns: 1fr; gap: 16px; }
  .review-card { padding: 22px 20px; }

  /* Services — 1 column on mobile */
  .services-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-card { padding: 24px 20px; }
  .service-icon { font-size: 1.9rem; margin-bottom: 10px; }
  .service-card h3 { font-size: 1.05rem; }

  /* About */
  .about-inner { flex-direction: column; gap: 28px; text-align: center; }
  .about-visual { height: 180px; flex: 0 0 auto; width: 100%; }
  .about-3d-ring { width: 180px; height: 180px; margin: 0 auto; }
  .about-text { text-align: center; }
  .about-text p { font-size: 0.95rem; }
  .about-list li { text-align: left; }
  .about-text .btn {
    width: 100%;
    justify-content: center;
    display: flex;
  }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .contact-form { gap: 16px; }
  .form-group input,
  .form-group textarea {
    font-size: 1rem; /* prevent zoom on iOS */
    padding: 14px;
  }
  .contact-info { gap: 14px; }
  .contact-block { padding: 16px 18px; gap: 12px; }
  .contact-icon { font-size: 1.3rem; }

  /* Final CTA */
  .final-cta { padding: 72px 20px; }
  .final-cta h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); margin-bottom: 10px; }
  .final-cta p { font-size: 0.98rem; margin-bottom: 28px; }
  .final-cta .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .final-cta .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; gap: 10px; }
  .footer { padding: 22px 20px; }

  /* Sticky WA — slightly smaller on very small screens */
  .sticky-wa { width: 52px; height: 52px; bottom: 20px; right: 20px; }
  .sticky-wa svg { width: 26px; height: 26px; }

  /* Section labels — center them on mobile */
  .section-label { display: block; text-align: center; width: fit-content; margin: 0 auto 16px; }
  .about .section-label { margin: 0 auto 16px; }
  .about-text .section-title { text-align: center; }

  /* Scroll hint hidden on mobile */
  .scroll-hint { display: none; }
}

/* --- Small phones (≤400px) --- */
@media (max-width: 400px) {
  .hero-title { font-size: 1.75rem; }
  .hero-badge { font-size: 0.7rem; padding: 6px 12px; }
  .btn { font-size: 0.92rem; padding: 13px 18px; }
  .big-rating { font-size: 2.6rem; }
  .section-title { font-size: 1.6rem; }
}
