:root {
  --navy: #0b1f3a;
  --navy-2: #13305a;
  --volt: #ffc629;
  --volt-dark: #e0a800;
  --cool: #1fa2ff;
  --wa: #25d366;
  --wa-dark: #1ebe5a;
  --text: #1c2533;
  --muted: #5b6678;
  --bg: #ffffff;
  --bg-alt: #f3f6fa;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.08);
  --font: "Poppins", "Noto Sans Tamil", system-ui, sans-serif;
}

html[lang="ta"] {
  --font: "Noto Sans Tamil", "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, transform .15s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 20px; height: 20px; fill: currentColor; }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-dark); }
.btn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline:hover { border-color: var(--volt); color: var(--volt); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-block { width: 100%; }

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--volt-dark);
}
html[lang="ta"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 31, 58, 0.96);
  backdrop-filter: blur(8px);
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--volt);
}
.brand-mark svg { width: 24px; height: 24px; fill: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: 12px; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { display: flex; gap: 26px; }
.main-nav a { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.85); }
.main-nav a:hover { color: var(--volt); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: flex;
  background: rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: #fff;
  font-family: "Poppins", "Noto Sans Tamil", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch button.active { background: var(--volt); color: var(--navy); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(31,162,255,.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,198,41,.18), transparent 40%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 90px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.2;
}
html[lang="ta"] .hero h1 { font-size: clamp(26px, 4.2vw, 40px); line-height: 1.35; }
.hero .eyebrow { color: var(--volt); }
.lead { font-size: 18px; color: rgba(255,255,255,.8); margin: 0 0 28px; max-width: 560px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 14px;
  color: rgba(255,255,255,.8);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--volt);
}

.hero-card {
  background: #fff;
  color: var(--text);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
}
.hero-card-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.hero-card-row h3 { margin: 0; font-size: 18px; }
.hero-card-row p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.hc-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
}
.hc-icon svg { width: 28px; height: 28px; }
.hc-cool { background: rgba(31,162,255,.12); }
.hc-cool svg { fill: var(--cool); }
.hc-volt { background: rgba(255,198,41,.2); }
.hc-volt svg { fill: var(--volt-dark); }
.hero-card-contact {
  display: flex;
  flex-direction: column;
  padding-top: 18px;
}
.hero-card-contact span { font-size: 13px; color: var(--muted); }
.hero-card-contact a { font-size: 24px; font-weight: 700; color: var(--navy); }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2, .contact-info h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--navy);
  line-height: 1.25;
}

.service-group + .service-group { margin-top: 56px; }
.group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  font-size: 22px;
  color: var(--navy);
}
.group-title .dot { width: 12px; height: 12px; border-radius: 50%; }
.group-cool .dot { background: var(--cool); }
.group-volt .dot { background: var(--volt); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card h4 { margin: 0 0 8px; font-size: 17px; color: var(--navy); }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
}
.why-icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy);
  margin-bottom: 16px;
}
.why-icon svg { width: 24px; height: 24px; fill: var(--volt); }
.why-item h4 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }
.why-item p { margin: 0; font-size: 14.5px; color: var(--muted); }

.steps { margin-top: 64px; text-align: center; }
.steps h3 { margin: 0 0 28px; font-size: 24px; color: var(--navy); }
.steps ol {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--volt);
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}
.steps strong { color: var(--navy); }
.steps span { font-size: 14.5px; color: var(--muted); }

/* FAQ */
.faq-inner { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.faq-list details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  font-size: 20px;
  line-height: 1;
  transition: transform .25s, background .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--volt); }
.faq-list details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.faq-list details[open] p { animation: fadeUp .35s ease; }

/* Contact */
.section-alt .contact-card { background: #fff; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info > p { color: var(--muted); margin: 14px 0 24px; }
.contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-line {
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.contact-line .label { font-size: 13px; color: var(--muted); }
.contact-line .value { font-size: 20px; font-weight: 600; color: var(--navy); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.contact-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cool);
  box-shadow: 0 0 0 3px rgba(31,162,255,.15);
}
.form-error { margin: 0; color: #c0392b; font-size: 14px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding-top: 40px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 28px;
}
.footer-inner strong { color: #fff; font-size: 18px; }
.footer-inner p { margin: 4px 0 0; font-size: 14px; }
.footer-contact { display: flex; gap: 20px; font-weight: 600; }
.footer-contact a:hover { color: var(--volt); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px;
  padding-bottom: 24px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.credit strong { color: var(--volt); font-weight: 600; }
.credit a:hover strong { text-decoration: underline; }
.credit .heart {
  display: inline-block;
  color: #ff5a6e;
  animation: heartbeat 1.6s ease-in-out infinite;
}

/* ===== Animations ===== */

/* Header gets a shadow after scrolling */
.site-header { transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }

/* Logo bolt flicker */
.brand-mark svg { animation: flicker 4s linear infinite; }
.brand:hover .brand-mark { animation: zap .5s ease; }

/* Hero entrance */
.hero-copy > * {
  opacity: 0;
  animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: .1s; }
.hero-copy > *:nth-child(2) { animation-delay: .25s; }
.hero-copy > *:nth-child(3) { animation-delay: .4s; }
.hero-copy > *:nth-child(4) { animation-delay: .55s; }
.hero-copy > *:nth-child(5) { animation-delay: .7s; }

.hero-card {
  opacity: 0;
  animation: cardIn .9s .5s cubic-bezier(.2,.7,.2,1) forwards, float 6s 1.4s ease-in-out infinite;
}
.hc-cool svg { animation: spin 12s linear infinite; }
.hc-volt svg { animation: flicker 3s linear infinite; }

/* Moving background glows */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 380px; height: 380px;
  top: -120px; right: -60px;
  background: rgba(31,162,255,.35);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero-glow-2 {
  width: 300px; height: 300px;
  bottom: -120px; left: -80px;
  background: rgba(255,198,41,.25);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
.hero-inner { position: relative; z-index: 1; }

/* Button shine */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
}
.btn:hover::after { animation: shine .7s ease; }

/* Floating WhatsApp pulse */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa);
  z-index: -1;
  animation: pulse 2s ease-out infinite;
}

/* Card accent line on hover */
.card { position: relative; overflow: hidden; }
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.group-cool + .cards .card::before { background: var(--cool); }
.group-volt + .cards .card::before { background: var(--volt); }
.card:hover::before { transform: scaleX(1); }

.why-item { transition: transform .25s, box-shadow .25s; }
.why-item:hover { transform: translateY(-4px); }
.why-item:hover .why-icon { animation: zap .5s ease; }

/* Scroll reveal (class added by script.js) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), box-shadow .2s, border-color .2s;
}
.reveal.in-view { opacity: 1; transform: none; }
.card.reveal.in-view:hover { transform: translateY(-3px); }
.why-item.reveal.in-view:hover { transform: translateY(-4px); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-60px, 40px); }
}
@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .35; }
}
@keyframes zap {
  0%   { transform: rotate(0) scale(1); }
  30%  { transform: rotate(-12deg) scale(1.1); }
  60%  { transform: rotate(10deg) scale(1.05); }
  100% { transform: rotate(0) scale(1); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shine { to { left: 125%; } }
@keyframes pulse {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes heartbeat {
  0%, 60%, 100% { transform: scale(1); }
  15%, 45% { transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-copy > *, .hero-card { opacity: 1; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    padding: 8px 20px 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 14px; }
  .brand-mark { width: 36px; height: 36px; }
  .section { padding: 64px 0; }
  .lead { font-size: 16px; }
  .hero-buttons .btn { flex: 1 1 100%; }
  .why-grid { grid-template-columns: 1fr; }
  .steps ol { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
  .lang-switch button { padding: 6px 10px; }
}
