/* =====================================================
   Ganthix — Custom Styles
   (Tailwind CDN handles utilities; this file handles
    custom components, animations, and brand polish)
===================================================== */

/* ---- Base ---- */
html { scroll-behavior: smooth; }

*:focus-visible {
  outline: 2px solid #673de6;
  outline-offset: 3px;
}

/* ---- Navbar scroll effect ---- */
#navbar.scrolled {
  background: rgba(13, 8, 32, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

/* ---- Hamburger lines ---- */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s ease;
}
#menu-btn.open .hamburger-line:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
#menu-btn.open .hamburger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-btn.open .hamburger-line:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav-link {
  display: block;
  padding: 0.625rem 0;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: #fff; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #673de6 0%, #e040b5 100%);
  color: #fff;
  font-weight: 600;
  border-radius: 0.625rem;
  padding: 0.75rem 1.5rem;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(103,61,230,0.4);
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(103,61,230,0.55);
}

.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-weight: 600;
  border-radius: 0.625rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
  font-size: 0.875rem;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-1px);
}

/* ---- Gradient text ---- */
.gradient-text {
  background: linear-gradient(135deg, #8b66f0 0%, #e040b5 50%, #00d4c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Animated orbs ---- */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}
.orb-purple {
  width: 500px;
  height: 500px;
  background: #673de6;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}
.orb-pink {
  width: 350px;
  height: 350px;
  background: #e040b5;
  bottom: 50px;
  left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}
.orb-cta {
  width: 400px;
  height: 400px;
  background: #673de6;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
  animation: pulse-orb 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}
@keyframes pulse-orb {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
  50%       { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

/* ---- Scroll indicator ---- */
.scroll-indicator {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 2px;
  animation: scroll-anim 1.8s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---- Section typography ---- */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 1.0625rem;
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Stats ---- */
.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #8b66f0, #e040b5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.375rem;
}
.stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Service cards ---- */
.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(103,61,230,0.2);
  border-color: rgba(103,61,230,0.4);
}
.service-card--featured {
  background: linear-gradient(135deg, rgba(103,61,230,0.15), rgba(224,64,181,0.1));
  border-color: rgba(103,61,230,0.35);
}
.featured-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: linear-gradient(135deg, #673de6, #e040b5);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.service-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  space-y: 0.5rem;
}
.service-list li {
  padding: 0.375rem 0;
  color: rgba(255,255,255,0.65);
  font-size: 0.875rem;
  padding-left: 1.25rem;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #673de6, #e040b5);
}
.service-link {
  color: #8b66f0;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
.service-link:hover { color: #fff; }

/* ---- How it works steps ---- */
.step-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s;
}
.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(103,61,230,0.3);
}
.step-number {
  font-size: 3rem;
  font-weight: 900;
  color: rgba(103,61,230,0.35);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}
.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
}
.step-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ---- Why Ganthix cards ---- */
.why-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: transform 0.25s, border-color 0.25s;
}
.why-card:hover {
  transform: translateY(-3px);
  border-color: rgba(103,61,230,0.3);
}
.why-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: rgba(103,61,230,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b66f0;
  margin-bottom: 1rem;
}
.why-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.why-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ---- Testimonials ---- */
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.25s;
}
.testimonial-card:hover { transform: translateY(-3px); }
.stars {
  color: #f59e0b;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.testimonial-text {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #673de6, #e040b5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.author-name {
  font-size: 0.875rem;
  font-weight: 600;
}
.author-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.125rem;
}

/* ---- CTA banner ---- */
.cta-banner {
  background: linear-gradient(135deg, rgba(103,61,230,0.2), rgba(224,64,181,0.1));
  border: 1px solid rgba(103,61,230,0.35);
  border-radius: 2rem;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

/* ---- Contact form ---- */
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
}
.form-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.625rem;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus {
  border-color: #673de6;
  background: rgba(103,61,230,0.1);
}
.form-input option { background: #1a0f3a; color: #fff; }

/* ---- Contact info items ---- */
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---- Footer ---- */
.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.social-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.social-icon:hover {
  background: rgba(103,61,230,0.3);
  color: #fff;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
