/* Thunder Tech Services - Custom Styles — Revision 2: Light Theme */
/* Gold (#ffc93c) + Purple (#7c3aed) on Light (#ffffff) */

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

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f9fafb; }
::-webkit-scrollbar-thumb { background: #7c3aed; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #ffc93c; }

/* Base body */
body {
  background: #ffffff;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.7;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #ffc93c 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glow effects */
.glow-gold { box-shadow: 0 0 20px rgba(255, 201, 60, 0.3); }
.glow-purple { box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
.glow-gold-hover:hover { box-shadow: 0 0 30px rgba(255, 201, 60, 0.5); }

/* Light theme card */
.gradient-border {
  position: relative;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, #ffc93c, #7c3aed, #ffc93c);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gradient-border:hover::before {
  opacity: 1;
}

/* Hero background grid — subtle on light */
.hero-grid {
  background-image:
    linear-gradient(rgba(124, 58, 237, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Hero section gradient background */
.hero-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #f5f0ff 40%, #fefce8 70%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero-gradient::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,201,60,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Particle dots in hero */
.hero-dots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-dots::before,
.hero-dots::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}
.hero-dots::before {
  top: 15%;
  right: 15%;
  width: 4px;
  height: 4px;
  background: #7c3aed;
  opacity: 0.3;
  animation: dotFloat 6s ease-in-out infinite;
}
.hero-dots::after {
  bottom: 25%;
  left: 20%;
  width: 6px;
  height: 6px;
  background: #ffc93c;
  opacity: 0.3;
  animation: dotFloat 8s ease-in-out 1s infinite;
}

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

/* Floating shapes */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Particle float animation */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 0.6; }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delay { animation: float 8s ease-in-out 2s infinite; }

/* Fade in up animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slide in left */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
.slide-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Pulse ring */
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.5); opacity: 0; }
}
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid #ffc93c;
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
}

/* Nav — Light frosted glass */
.nav-blur {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-scrolled {
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  border-color: #e5e7eb !important;
}

/* Accordion */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer.open { max-height: 500px; }
.faq-icon { transition: transform 0.3s ease; }
.faq-icon.open { transform: rotate(45deg); }

/* Service card hover */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.08), 0 8px 16px rgba(0,0,0,0.04);
  border-color: #7c3aed;
}

/* Tab active state */
.tab-btn.active {
  color: #7c3aed;
  border-color: #7c3aed;
}
.tab-btn {
  transition: all 0.2s ease;
}
.tab-btn:hover {
  color: #7c3aed;
}

/* Blog card */
.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.blog-card:hover .blog-img {
  transform: scale(1.05);
}
.blog-img { transition: transform 0.3s ease; }

/* CTA button — gold bg with dark text */
.btn-primary {
  background: linear-gradient(135deg, #ffc93c, #f0b429);
  color: #111111;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255,201,60,0.3);
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(255, 201, 60, 0.5), 0 0 40px rgba(124, 58, 237, 0.15);
  transform: translateY(-2px);
}

/* Secondary button — purple outline */
.btn-outline {
  border: 2px solid #7c3aed;
  color: #7c3aed;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  background: #7c3aed;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  transform: translateY(-2px);
}

/* Navbar logo — larger with breathing room */
.nav-logo {
  height: 60px;
  width: auto;
  padding: 4px 0;
}
@media (min-width: 1024px) {
  .nav-logo {
    height: 80px;
    padding: 6px 0;
  }
}

/* SVG icon base styles */
.icon-inline {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}
.icon-xl {
  width: 2rem;
  height: 2rem;
}

/* Section padding — more whitespace */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (min-width: 1024px) {
  .section-padding {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* Light section alt bg */
.section-alt {
  background: #f9fafb;
}

/* Dark section (footer, CTA) */
.section-dark {
  background: #111827;
  color: #d1d5db;
}
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff;
}

/* How it works steps */
.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, #ffc93c, #7c3aed);
  color: #111111;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Stats counter */
.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: #111827;
  line-height: 1;
}
@media (min-width: 1024px) {
  .stat-value {
    font-size: 3rem;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: #7c3aed;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
  z-index: 40;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: #6d28d9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}
.breadcrumbs a {
  color: #7c3aed;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color: #6d28d9;
}
.breadcrumbs .separator {
  color: #d1d5db;
}

/* Form focus states */
.form-input {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #111827;
  font-size: 1rem;
  transition: all 0.2s ease;
  width: 100%;
}
.form-input::placeholder {
  color: #9ca3af;
}
.form-input:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.form-select {
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #111827;
  font-size: 1rem;
  transition: all 0.2s ease;
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}
.form-select:focus {
  outline: none;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}

/* Submit button loading */
.btn-loading {
  position: relative;
  pointer-events: none;
}
.btn-loading::after {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid transparent;
  border-top-color: #111827;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  right: 1rem;
  top: 50%;
  margin-top: -0.625rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile menu animation */
.mobile-menu-enter {
  animation: slideDown 0.3s ease forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Testimonial card accent */
.testimonial-card {
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 6rem;
  color: rgba(124,58,237,0.06);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

/* Prose for blog — light theme */
.prose { max-width: 65ch; }
.prose p { margin-top: 1.25em; margin-bottom: 1.25em; color: #4b5563; }
.prose h2 { margin-top: 2em; margin-bottom: 1em; font-size: 1.5em; font-weight: 700; line-height: 1.333; color: #111827; }
.prose h3 { margin-top: 1.6em; margin-bottom: .6em; font-size: 1.25em; font-weight: 600; line-height: 1.6; color: #111827; }
.prose ul { margin-top: 1.25em; margin-bottom: 1.25em; }
.prose li { margin-top: .5em; margin-bottom: .5em; color: #4b5563; }
.prose strong { font-weight: 600; color: #111827; }
.prose a { color: #7c3aed; text-decoration: underline; }
.prose a:hover { color: #6d28d9; }
.prose code { background: #f3f4f6; padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-size: 0.875em; color: #111827; }
.prose pre { background: #f3f4f6; padding: 1rem; border-radius: 0.5rem; overflow-x: auto; }
.prose blockquote { border-left: 3px solid #7c3aed; padding-left: 1rem; color: #6b7280; font-style: italic; }

/* Hero sections extend to top of viewport — no gap below fixed nav */
.hero-grid,
.hero-gradient,
section:first-of-type {
  margin-top: -1px; /* prevent any sub-pixel gap */
}

@media (min-width: 1024px) {

/* Nav spacer — exactly matches fixed nav height, zero extra */
.nav-spacer {
  display: block;
  height: 110px;  /* extra buffer for mobile nav with logo + padding */
  width: 100%;
  margin: 0;
  padding: 0;
}
@media (min-width: 1024px) {
  .nav-spacer {
    height: 120px;  /* desktop nav with larger logo */
  }
}
