/* ========================================
   NESAM MEDIA — Global Style System
   Deep Blue + White + Orange Accent
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────── */
:root {
  --primary:      #0A1F44;  /* Deep Navy Blue */
  --primary-light:#1A3A6E;  /* Medium Blue */
  --accent:       #FF6B2B;  /* Vibrant Orange */
  --accent-light: #FF8C5A;  /* Light Orange */
  --white:        #FFFFFF;
  --off-white:    #F4F7FC;
  --text-dark:    #0D1B2A;
  --text-muted:   #5A6A82;
  --border:       #DDE3EF;
  --gradient-hero: linear-gradient(135deg, #0A1F44 0%, #1A3A6E 50%, #0D2B5C 100%);
  --gradient-accent: linear-gradient(135deg, #FF6B2B 0%, #FF9A56 100%);
  --gradient-card: linear-gradient(160deg, #f4f7fc 0%, #eaf0fb 100%);
  --shadow-sm:    0 2px 8px rgba(10,31,68,0.08);
  --shadow-md:    0 8px 32px rgba(10,31,68,0.14);
  --shadow-lg:    0 20px 60px rgba(10,31,68,0.18);
  --shadow-accent:0 8px 30px rgba(255,107,43,0.35);
  --radius:       16px;
  --radius-sm:    8px;
  --transition:   all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font:         'Poppins', sans-serif;
  --nav-height:   76px;
}

/* ─── Reset & Base ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

/* ─── Tamil Language Adjustments ─────────── */
html[lang="ta"] { font-size: 17.5px; }
html[lang="ta"] body { font-family: 'Noto Sans Tamil', var(--font); }
html[lang="ta"] h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
html[lang="ta"] h2 { font-size: clamp(1.95rem, 3.8vw, 3rem); }
html[lang="ta"] h3 { font-size: clamp(1.3rem, 2.7vw, 1.8rem); }
html[lang="ta"] p, html[lang="ta"] li { line-height: 1.75; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, button { font-family: var(--font); }

/* ─── Typography ────────────────────────── */
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: var(--text-dark); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text-muted); line-height: 1.75; }

/* ─── Container ─────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Section padding ───────────────────── */
section { padding: 100px 0; }

/* ─── Section headers ───────────────────── */
.section-tag {
  display: inline-block;
  background: rgba(255,107,43,0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title span { color: var(--accent); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 60px;
}

.text-center { text-align: center; }

/* ─── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255,107,43,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-3px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-3px);
}

/* ─── NAVBAR ────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 31, 68, 0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(10,31,68,0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}
.logo-text span.brand {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.logo-text span.sub {
  display: block;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { margin-left: 16px; padding: 10px 24px !important; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  padding: 8px 14px;
  background: transparent;
  border: 2px solid var(--accent, #6c63ff);
  border-radius: 50px;
  color: var(--accent, #6c63ff);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.lang-toggle:hover {
  background: var(--accent, #6c63ff);
  color: #fff;
}
.lang-toggle .lang-icon { font-size: 1rem; }

/* ─── Tamil Nav Adjustments ──────────────── */
html[lang="ta"] .logo-text span.brand { font-size: 1rem; }
html[lang="ta"] .logo-text span.sub   { font-size: 0.55rem; letter-spacing: 1px; }
html[lang="ta"] .logo-img             { height: 40px; }
html[lang="ta"] .nav-links            { gap: 18px; }
html[lang="ta"] .nav-links a          { font-size: 0.82rem; white-space: nowrap; }
html[lang="ta"] .nav-cta              { padding: 9px 16px !important; font-size: 0.8rem; margin-left: 8px; }
html[lang="ta"] .lang-toggle          { font-size: 0.8rem; padding: 8px 12px; margin-left: 4px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── LANGUAGE TOGGLE ───────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  overflow: hidden;
  margin-left: 12px;
  flex-shrink: 0;
}
.lang-btn {
  display: block;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: transparent;
  font-family: var(--font);
  text-decoration: none;
  line-height: 1.6;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active {
  background: var(--gradient-accent);
  color: var(--white);
  border-radius: 50px;
}
.lang-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

/* ─── PAGE HERO (inner pages) ──────────── */
.page-hero {
  background: var(--gradient-hero);
  padding: 150px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.72); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }
.breadcrumb .current { color: var(--accent); }

/* ─── CARDS ─────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

/* ─── STATS BAR ─────────────────────────── */
.stats-bar {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  margin: -50px auto 0;
  position: relative;
  z-index: 10;
  max-width: 1100px;
}
.stat-item {
  padding: 30px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--gradient-card); }
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-number span { color: var(--accent); }
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── FOOTER ────────────────────────────── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin: 16px 0 24px;
  line-height: 1.8;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-3px);
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  position: relative;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: -8px;
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}
.footer-contact-item i {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a { color: var(--accent); }

/* ─── BACK TO TOP ───────────────────────── */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  background: var(--gradient-accent);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { transform: translateY(-4px); }

/* ─── WHATSAPP FLOAT ────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 80px;
  right: 28px;
  width: 46px; height: 46px;
  background: #25D366;
  color: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  transition: var(--transition);
  z-index: 999;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.05); }

/* ─── RESPONSIVE ────────────────────────── */
@media (max-width: 1024px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }
  section { padding: 70px 0; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(10, 31, 68, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 0;
    transform: translateY(-120%);
    transition: var(--transition);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
  }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 8px 28px; width: calc(100% - 56px); justify-content: center; }
  .lang-toggle { margin: 8px 28px; width: calc(100% - 56px); justify-content: center; }
  .hamburger { display: flex; }

  /* Tamil mobile adjustments */
  html[lang="ta"] .nav-links a { font-size: 1.08rem; }
  html[lang="ta"] .nav-cta { font-size: 0.98rem; }
  html[lang="ta"] .lang-toggle { font-size: 0.98rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 22px 12px; }
  .stat-number { font-size: 1.8rem; }
}
