/* ===================================
   ULAGON.COM - Main Stylesheet
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #c8a45a;
  --gold-light:  #e8c87a;
  --deep:        #0d0a1a;
  --deep2:       #1a1030;
  --chera:       #2d5a3d;
  --chola:       #8b2500;
  --pandya:      #0a2d5a;
  --white:       #ffffff;
  --off-white:   #f5f0e8;
  --text-muted:  #8a8090;
  --card-bg:     rgba(255,255,255,0.04);
  --card-border: rgba(200,164,90,0.2);
  --radius:      16px;
  --radius-lg:   24px;
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Noto Serif Tamil', sans-serif;
  background: var(--deep);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Hero / Header --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #0d0a1a 0%, #1a0d2e 40%, #0a1a2e 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(200,164,90,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(26,80,150,0.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(200,164,90,0.03) 60px, rgba(200,164,90,0.03) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(200,164,90,0.03) 60px, rgba(200,164,90,0.03) 61px);
  pointer-events: none;
}

/* --- Dynasty emblems floating --- */
.emblem {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.18;
  animation: float 6s ease-in-out infinite;
}

.emblem img { width: 64px; height: 64px; filter: brightness(1.5); }

.emblem-label {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
}

.emblem-chera  { top: 15%; left: 5%; animation-delay: 0s; }
.emblem-chola  { top: 20%; right: 6%; animation-delay: 2s; }
.emblem-pandya { bottom: 25%; left: 8%; animation-delay: 4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* --- Navbar --- */
.navbar {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  border-bottom: 1px solid rgba(200,164,90,0.12);
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
}

.brand-ta {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 22px;
  color: var(--gold);
}
.brand-en {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--white);
}
.brand-hi {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 18px;
  color: var(--gold-light);
  opacity: 0.8;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

.nav-link:hover { background: rgba(255,255,255,0.08); border-color: var(--gold); color: var(--gold); }
.nav-link--neet { color: #7ecba0; border-color: rgba(126,203,160,0.3); }
.nav-link--neet:hover { background: rgba(126,203,160,0.1); border-color: #7ecba0; }
.nav-link--jee { color: #7eb5e8; border-color: rgba(126,181,232,0.3); }
.nav-link--jee:hover { background: rgba(126,181,232,0.1); border-color: #7eb5e8; }
.nav-link--ai { color: #d8a0e8; border-color: rgba(216,160,232,0.3); }
.nav-link--ai:hover { background: rgba(216,160,232,0.1); border-color: #d8a0e8; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

/* --- Hero Content --- */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 80px;
  position: relative;
  z-index: 10;
}

/* Trilingual block */
.trilingual {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.trilingual-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lang-script {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(200,164,90,0.4));
}

.lang-tamil .lang-script  { font-family: 'Noto Serif Tamil', serif; }
.lang-english .lang-script { font-family: 'Playfair Display', serif; }
.lang-hindi .lang-script  { font-family: 'Noto Serif Devanagari', serif; }

.lang-name {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.trilingual-divider {
  font-size: 28px;
  color: var(--gold);
  opacity: 0.4;
  align-self: center;
}

/* Tagline */
.hero-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: clamp(14px, 2vw, 18px);
  margin-bottom: 40px;
  color: rgba(255,255,255,0.75);
}

.tagline-ta  { font-family: 'Noto Serif Tamil', serif; color: var(--gold-light); }
.tagline-hi  { font-family: 'Noto Serif Devanagari', serif; color: rgba(255,255,255,0.6); }
.tagline-sep { color: var(--gold); opacity: 0.5; }

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary { background: var(--gold); color: #0d0a1a; border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,164,90,0.4); }

.btn--neet { background: rgba(126,203,160,0.15); color: #7ecba0; border-color: rgba(126,203,160,0.4); }
.btn--neet:hover { background: rgba(126,203,160,0.25); transform: translateY(-2px); }

.btn--jee { background: rgba(126,181,232,0.15); color: #7eb5e8; border-color: rgba(126,181,232,0.4); }
.btn--jee:hover { background: rgba(126,181,232,0.25); transform: translateY(-2px); }

.btn--ai { background: rgba(216,160,232,0.15); color: #d8a0e8; border-color: rgba(216,160,232,0.4); }
.btn--ai:hover { background: rgba(216,160,232,0.25); transform: translateY(-2px); }

.btn-icon { font-size: 18px; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: 0.5;
  animation: bounce 2s infinite;
  font-size: 20px;
  z-index: 10;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* --- Section Shared --- */
section { padding: 96px 0; }

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(200,164,90,0.06);
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Noto Serif Tamil', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--white);
}

.section-title-en {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 28px);
  color: var(--gold-light);
  font-weight: 400;
  margin-top: 4px;
}

.section-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  line-height: 1.7;
  margin-top: 8px;
}

/* --- Kural Section --- */
.kural-section {
  background: linear-gradient(180deg, var(--deep) 0%, #130f25 100%);
  text-align: center;
}

.kural-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 56px;
}

.kural-card {
  background: linear-gradient(135deg, rgba(200,164,90,0.06), rgba(200,164,90,0.02));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kural-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(200,164,90,0.12);
}

.kural-ornament {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 48px;
  color: var(--gold);
  opacity: 0.15;
  font-family: 'Noto Serif Tamil', serif;
  line-height: 1;
}

.kural-number {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  font-weight: 600;
}

.kural-text {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 28px;
}

.kural-lines {
  font-family: 'Noto Serif Tamil', serif;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  line-height: 1.8;
  color: var(--white);
}

.kural-meaning { margin-bottom: 20px; }

.meaning-ta {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 8px;
}
.meaning-en {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 8px;
}
.meaning-hi {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.kural-chapter {
  font-size: 11px;
  color: var(--gold);
  opacity: 0.7;
  letter-spacing: 1px;
  border-top: 1px solid var(--card-border);
  padding-top: 16px;
  margin-top: 16px;
}

/* --- Dynasty Section --- */
.dynasty-section {
  background: linear-gradient(180deg, #130f25 0%, #0a0d1a 100%);
  text-align: center;
}

.dynasty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.dynasty-card {
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dynasty-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.dynasty-card:hover { transform: translateY(-6px); }

.dynasty-card--chera {
  background: linear-gradient(135deg, rgba(45,90,61,0.15), rgba(45,90,61,0.05));
  border-color: rgba(45,90,61,0.4);
}
.dynasty-card--chera::before { background: linear-gradient(90deg, #2d5a3d, #5a9a72); }
.dynasty-card--chera:hover   { box-shadow: 0 16px 48px rgba(45,90,61,0.2); }

.dynasty-card--chola {
  background: linear-gradient(135deg, rgba(139,37,0,0.15), rgba(139,37,0,0.05));
  border-color: rgba(139,37,0,0.4);
}
.dynasty-card--chola::before { background: linear-gradient(90deg, #8b2500, #d44000); }
.dynasty-card--chola:hover   { box-shadow: 0 16px 48px rgba(139,37,0,0.25); }

.dynasty-card--pandya {
  background: linear-gradient(135deg, rgba(10,45,90,0.20), rgba(10,45,90,0.05));
  border-color: rgba(10,45,90,0.5);
}
.dynasty-card--pandya::before { background: linear-gradient(90deg, #0a2d5a, #1a5aaa); }
.dynasty-card--pandya:hover   { box-shadow: 0 16px 48px rgba(10,45,90,0.25); }

.dynasty-symbol {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.dynasty-name {
  margin-bottom: 4px;
}

.dynasty-ta {
  display: block;
  font-family: 'Noto Serif Tamil', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.dynasty-en {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.dynasty-symbol-name {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

.dynasty-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 20px;
}

.dynasty-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.value-tag {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

/* --- Platforms Section --- */
.platforms-section {
  background: linear-gradient(180deg, #0a0d1a 0%, #0d0a1a 100%);
  text-align: center;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.platform-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.platform-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.platform-card:hover::after { opacity: 1; }

.platform-card--learn::after { background: var(--gold); }
.platform-card--neet::after  { background: #7ecba0; }
.platform-card--jee::after   { background: #7eb5e8; }
.platform-card--ai::after    { background: #d8a0e8; }

.platform-card--learn:hover { box-shadow: 0 12px 40px rgba(200,164,90,0.15); }
.platform-card--neet:hover  { box-shadow: 0 12px 40px rgba(126,203,160,0.15); }
.platform-card--jee:hover   { box-shadow: 0 12px 40px rgba(126,181,232,0.15); }
.platform-card--ai:hover    { box-shadow: 0 12px 40px rgba(216,160,232,0.15); }

.platform-icon {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1;
}

.platform-url {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-transform: lowercase;
  margin-bottom: 8px;
  font-weight: 500;
}

.platform-card--neet .platform-url { color: #7ecba0; }
.platform-card--jee .platform-url  { color: #7eb5e8; }
.platform-card--ai .platform-url   { color: #d8a0e8; }

.platform-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.platform-ta {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.platform-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  flex: 1;
}

.platform-arrow {
  align-self: flex-end;
  margin-top: 20px;
  font-size: 20px;
  color: var(--gold);
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(-8px);
}

.platform-card:hover .platform-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* --- Letters Section --- */
.letters-section {
  background: linear-gradient(180deg, #0d0a1a 0%, #130f25 100%);
  text-align: center;
}

.letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 56px;
}

.letters-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

.letters-block:hover { transform: translateY(-3px); }

.letters-block--tamil  { border-top: 3px solid var(--gold); }
.letters-block--english { border-top: 3px solid #7eb5e8; }
.letters-block--hindi  { border-top: 3px solid #ff9050; }

.letters-lang-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.letters-block--tamil .letters-lang-title  { font-family: 'Noto Serif Tamil', serif; }
.letters-block--english .letters-lang-title { color: #7eb5e8; }
.letters-block--hindi .letters-lang-title  { font-family: 'Noto Serif Devanagari', serif; color: #ff9050; }

.letters-display { margin-bottom: 20px; }

.letters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
  margin-bottom: 10px;
}

.letters-row span {
  font-size: 22px;
  color: var(--white);
  opacity: 0.85;
  transition: all 0.2s ease;
  cursor: default;
  padding: 4px 2px;
}

.letters-block--tamil .letters-row span  { font-family: 'Noto Serif Tamil', serif; }
.letters-block--hindi .letters-row span  { font-family: 'Noto Serif Devanagari', serif; }

.letters-row span:hover { opacity: 1; transform: scale(1.3); color: var(--gold); }
.letters-block--english .letters-row span:hover { color: #7eb5e8; }
.letters-block--hindi .letters-row span:hover   { color: #ff9050; }

.letters-fact {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-top: 4px;
}

.letters-fact-en { font-style: italic; }

.letters-block--tamil .letters-fact  { font-family: 'Noto Serif Tamil', serif; }
.letters-block--hindi .letters-fact:first-of-type { font-family: 'Noto Serif Devanagari', serif; }

/* --- Footer --- */
.footer {
  background: #08060f;
  border-top: 1px solid rgba(200,164,90,0.15);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo-ta  { font-family: 'Noto Serif Tamil', serif; font-size: 20px; color: var(--gold); font-weight: 700; }
.footer-logo-en  { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--white); font-weight: 700; }
.footer-logo-hi  { font-family: 'Noto Serif Devanagari', serif; font-size: 16px; color: rgba(255,255,255,0.5); }

.footer-tagline { font-family: 'Noto Serif Tamil', serif; font-size: 14px; color: var(--gold-light); opacity: 0.8; }
.footer-tagline-en { font-size: 12px; color: rgba(255,255,255,0.4); font-style: italic; margin-top: 4px; }

.footer-nav-title { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 600; }

.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--gold); }

.footer-kural-text {
  font-family: 'Noto Serif Tamil', serif;
  font-size: 16px;
  color: var(--gold-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.footer-kural-attr { font-size: 12px; color: rgba(255,255,255,0.4); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

.footer-built { color: rgba(255,255,255,0.4); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .navbar { padding: 16px 20px; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(13,10,26,0.98);
    padding: 20px;
    border-bottom: 1px solid var(--card-border);
    z-index: 200;
    gap: 10px;
  }
  .nav-links.open { display: flex; }
  .nav-link { text-align: center; padding: 12px 20px; }

  .nav-toggle { display: flex; }

  .emblem { display: none; }

  .trilingual { gap: 16px; }
  .trilingual-divider { display: none; }

  .hero-cta { gap: 10px; }
  .btn { padding: 12px 20px; font-size: 14px; }

  section { padding: 64px 0; }

  .kural-card { padding: 32px 24px; }
  .kural-lines { font-size: 17px; }

  .dynasty-grid,
  .kural-grid,
  .letters-grid,
  .platforms-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .lang-script { font-size: 36px; }
  .hero-tagline { font-size: 13px; gap: 8px; }
  .btn { padding: 10px 16px; font-size: 13px; }
}
