/* Base Styles */
:root {
  --bg-main: #050816;
  --bg-alt: rgba(12, 19, 38, 0.9);
  --card-bg: rgba(15, 23, 42, 0.85);
  --accent: #facc15;
  --accent-soft: rgba(250, 204, 21, 0.2);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.4);
  --danger: #f97373;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
  --radius-lg: 18px;
  --radius-full: 999px;
  --transition-fast: 0.2s ease;
  --transition-med: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", "Noto Sans Tamil", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 55%, #000 100%);
  color: var(--text-main);
  line-height: 1.6;
}

/* Background stars (subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(148, 163, 184, 0.25) 1px, transparent 0);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Navbar */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.8), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #facc15, #f97316);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.8);
  font-size: 0.9rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

/* Nav */
.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #facc15, #f97316);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  align-items: center;
  gap: 3rem;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.8;
}

.orb-main {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle at 30% 20%, #facc15, #6366f1);
  animation: floatOrb 9s ease-in-out infinite alternate;
}

.orb-secondary {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 70% 80%, #22c55e, #3b82f6);
  transform: translate(30px, 80px);
  animation: floatOrb 11s ease-in-out infinite alternate;
}

.hero-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.22), rgba(15, 23, 42, 0.96));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
  max-width: 290px;
}

.hero-small {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-card h2 {
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

.hero-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(to right, #facc15, #f97316);
  color: #111827;
  box-shadow: 0 12px 25px rgba(250, 204, 21, 0.4);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(250, 204, 21, 0.55);
}

.btn.outline {
  background: transparent;
  border: 1px solid rgba(249, 250, 251, 0.4);
  color: var(--text-main);
}

.btn.outline:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: var(--accent);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.btn.ghost:hover {
  color: var(--text-main);
  border-color: var(--accent);
}

.btn.small {
  padding: 0.4rem 0.9rem;
  font-size: 0.78rem;
}

/* Section */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95));
}

.section-content {
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0.2rem auto 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.about-card {
  padding: 1.4rem 1.3rem;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.about-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 1.2rem 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.85));
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(250, 204, 21, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-med);
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-grow: 1;
}

.service-card .btn.small {
  align-self: flex-start;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.process-card {
  padding: 1.2rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.step-badge {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--accent);
}

.process-card h3 {
  margin-top: 0.2rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.process-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Form */
.form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: radial-gradient(circle at top right, rgba(250, 204, 21, 0.14), rgba(15, 23, 42, 0.97));
  border-radius: 22px;
  padding: 1.8rem 1.5rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.form-progress {
  margin-bottom: 1.5rem;
}

.progress-steps {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.progress-step {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
  transition: background var(--transition-med), border-color var(--transition-med), color var(--transition-med), transform var(--transition-med);
}

.progress-step.active {
  background: linear-gradient(to right, #facc15, #f97316);
  border-color: transparent;
  color: #111827;
  transform: translateY(-1px);
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-step {
  display: none;
  animation: fadeIn 0.25s ease-out;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label,
.field .field-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.required {
  color: #f97373;
  margin-left: 2px;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.8);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.4);
  background: rgba(15, 23, 42, 0.95);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--text-muted);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Errors */
.error-message {
  display: none;
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 0.2rem;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
}

.field.invalid .error-message {
  display: block;
}

/* Form actions */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.form-status {
  font-size: 0.82rem;
  margin-top: 0.8rem;
  color: var(--accent);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.testimonial-card p {
  margin: 0 0 0.7rem;
  color: var(--text-muted);
}

.testimonial-card h4 {
  margin: 0;
  font-size: 0.85rem;
}

/* FAQ */
.faq-accordion {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.96);
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 0.85rem 1rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 0.9rem;
  cursor: pointer;
}

.faq-icon {
  margin-left: 0.6rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1rem;
}

.faq-answer p {
  margin: 0.3rem 0 0.8rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* Contact */
.contact-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 1.2rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow-soft);
}

.contact-card a {
  color: var(--accent);
}

.contact-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.9rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #22c55e, #15803d);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.6);
  z-index: 60;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-whatsapp:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 36px rgba(34, 197, 94, 0.8);
}

/* Animations */
@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(15px, -20px) scale(1.05);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.2fr);
  }

  .hero-visual {
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(15, 23, 42, 0.98);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav.open {
    max-height: 260px;
  }

  .nav ul {
    flex-direction: column;
    padding: 0.8rem 1.5rem 1rem;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-wrapper {
    padding: 1.3rem 1.1rem 1.5rem;
  }

  .floating-whatsapp {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 4.2rem;
  }

  .nav-container {
    padding-inline: 1.3rem;
  }

  .container {
    padding-inline: 1.3rem;
  }

  .form-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
}
