/* ========================================
   VILATHIKULAM THENDRAL — Design System
   Vintage Retro Tamil Signboard & Cassette Aesthetic
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  /* Colors — Deepened for a vintage sepia/tape sleeve feel */
  --bg-deep:       #140b08;
  --bg-primary:    #2a1610;
  --bg-card:       #361f17;
  --bg-card-hover: #45291e;

  --gold-primary:  #d4af37;
  --gold-light:    #f3e5ab;
  --gold-dark:     #aa7c11;
  --gold-glow:     rgba(212, 175, 55, 0.4);

  --cream:         #fdf6e3;
  --cream-dim:     #e0d5b5;
  --cream-faded:   rgba(253, 246, 227, 0.7);

  --red-deep:      #7a1818;
  --red-accent:    #b33939;
  --maroon:        #4a1510;

  /* Typography — The Retro Stack */
  --font-tamil:    'Kavivanar', cursive;
  --font-english:  'Courier Prime', monospace;
  --font-body:     'Eczar', serif;

  /* Spacing */
  --section-padding: 5rem 1.5rem;
  --container-max:   1100px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

body {
  background-color: var(--bg-deep);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Decorative Kolam Border --- */
.kolam-border {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  margin: 1.5rem auto;
  position: relative;
}

.kolam-border::before {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold-primary);
  font-size: 0.7rem;
  background: var(--bg-deep);
  padding: 0 0.5rem;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(20, 11, 8, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: var(--transition-smooth);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-brand-icon {
  font-size: 1.5rem;
}

.nav-brand-text {
  font-family: var(--font-tamil);
  color: var(--gold-light);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-family: var(--font-english);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-primary);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--gold-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(122, 24, 24, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse at top, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    var(--bg-deep);
}

/* Enhanced Vintage Film Grain Overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* Decorative kolam corners */
.hero::after {
  content: '';
  position: absolute;
  inset: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.12);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Radio wave animation behind title */
.radio-waves {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.radio-waves::before,
.radio-waves::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--gold-primary);
  opacity: 0;
  animation: wave-pulse 3s ease-out infinite;
}

.radio-waves::before {
  width: 120px;
  height: 120px;
  animation-delay: 0s;
}

.radio-waves::after {
  width: 180px;
  height: 180px;
  animation-delay: 1s;
}

@keyframes wave-pulse {
  0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.8); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}

.radio-icon {
  font-size: 3rem;
  color: var(--gold-primary);
  display: block;
  filter: drop-shadow(0 0 20px var(--gold-glow));
}

.hero-title-tamil {
  font-family: var(--font-tamil);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--gold-light);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-shadow: 2px 4px 8px rgba(0,0,0,0.7), 0 0 40px var(--gold-glow);
}

.hero-title-english {
  font-family: var(--font-english);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  color: var(--cream);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-tagline-tamil {
  font-family: var(--font-tamil);
  font-size: 1.2rem;
  color: var(--cream-faded);
}

.hero-tagline-divider {
  width: 4px;
  height: 4px;
  background: var(--gold-primary);
  border-radius: 50%;
}

.hero-tagline-english {
  font-family: var(--font-english);
  font-size: 0.95rem;
  color: var(--cream-faded);
  letter-spacing: 0.1em;
}

.hero-since {
  font-family: var(--font-english);
  font-size: 0.85rem;
  color: var(--gold-dark);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

/* Cassette-Inspired Listen Now Button */
.btn-listen {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 2.5rem;
  background: var(--cream);
  color: var(--bg-deep);
  font-family: var(--font-english);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  border: 2px solid var(--gold-dark);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  box-shadow: 4px 4px 0px var(--gold-dark);
}

.btn-listen:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px var(--gold-dark);
  background: var(--gold-light);
}

.btn-listen span {
  position: relative;
  z-index: 1;
}

.btn-listen-icon {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
  display: block;
  color: var(--gold-dark);
  font-size: 1.5rem;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   PLAYER SECTION
   ======================================== */

.player-section {
  padding: 4rem 1.5rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 50%, var(--bg-deep) 100%);
  position: relative;
}

.player-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 2.5rem;
  text-align: center;
  position: relative;
  border-radius: 6px;
}

.player-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.player-label {
  font-family: var(--font-english);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.player-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 1.5rem;
  font-family: var(--font-english);
  font-size: 0.85rem;
  color: var(--gold-light);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #E74C3C;
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(231, 76, 60, 0); }
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Retro Radio Dial Play Button with Warm Vacuum Tube Glow */
.play-btn {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold-light) 0%, var(--gold-dark) 80%, #000 100%);
  border: 2px solid var(--cream-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-deep);
  font-size: 1.8rem;
  transition: var(--transition-smooth);
  box-shadow: 
    inset 0 0 10px rgba(0,0,0,0.8),
    0 4px 15px rgba(0,0,0,0.6),
    0 0 25px var(--gold-glow);
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 
    inset 0 0 5px rgba(0,0,0,0.8),
    0 6px 20px rgba(0,0,0,0.7),
    0 0 35px var(--gold-glow);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 3px;
  background: var(--maroon);
  outline: none;
  border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-primary);
  cursor: pointer;
}

.player-now-playing {
  font-family: var(--font-tamil);
  font-size: 1.1rem;
  color: var(--cream-dim);
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
  padding: var(--section-padding);
  background: var(--bg-deep);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header-tamil {
  font-family: var(--font-tamil);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.section-header-english {
  font-family: var(--font-english);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--cream-dim);
  font-style: italic;
  letter-spacing: 0.08em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.25);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-family: var(--font-english);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stat-label-tamil {
  font-family: var(--font-tamil);
  font-size: 1.1rem;
  color: var(--cream-faded);
  margin-bottom: 0.15rem;
}

.stat-label-english {
  font-family: var(--font-english);
  font-size: 0.8rem;
  color: var(--cream-dim);
  letter-spacing: 0.05em;
}

/* Countries list */
.countries-section {
  margin-top: 2rem;
  text-align: center;
}

.countries-title {
  font-family: var(--font-tamil);
  font-size: 1.3rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.countries-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.country-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  font-family: var(--font-english);
  font-size: 0.85rem;
  color: var(--cream-dim);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.country-tag:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
  padding: var(--section-padding);
  background:
    radial-gradient(ellipse at 20% 50%, rgba(122, 24, 24, 0.2) 0%, transparent 50%),
    var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-content {
  padding-right: 1rem;
}

.about-text {
  margin-bottom: 1.5rem;
}

.about-text-tamil {
  font-family: var(--font-tamil);
  font-size: 1.2rem;
  color: var(--cream);
  line-height: 2;
  margin-bottom: 1rem;
}

.about-text-english {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--cream-faded);
  line-height: 1.8;
}

.about-details {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  padding: 2rem;
  border-radius: 4px;
}

.about-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.about-detail-item:last-child {
  border-bottom: none;
}

.about-detail-label {
  font-family: var(--font-english);
  color: var(--cream-dim);
  font-size: 0.9rem;
}

.about-detail-value {
  font-family: var(--font-english);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ========================================
   CITIES / LISTENER MAP
   ======================================== */

.cities-section {
  padding: var(--section-padding);
  background: var(--bg-deep);
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.city-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.08);
  transition: var(--transition-smooth);
  border-radius: 4px;
}

.city-card:hover {
  border-color: rgba(212, 175, 55, 0.2);
  background: var(--bg-card-hover);
}

.city-rank {
  font-family: var(--font-english);
  font-size: 0.75rem;
  color: var(--gold-dark);
  min-width: 20px;
}

.city-name {
  font-family: var(--font-tamil);
  color: var(--cream);
  font-size: 1rem;
  flex: 1;
}

.city-hours {
  font-family: var(--font-english);
  font-size: 0.75rem;
  color: var(--cream-dim);
}

/* ========================================
   CONTACT / REQUEST SECTION
   ======================================== */

.contact-section {
  padding: var(--section-padding);
  background:
    radial-gradient(ellipse at 80% 50%, rgba(122, 24, 24, 0.15) 0%, transparent 50%),
    var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-family: var(--font-english);
  color: var(--cream-dim);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
  border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-submit {
  padding: 0.9rem 2rem;
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-family: var(--font-english);
  font-size: 1rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: 4px;
}

.btn-submit:hover {
  background: var(--gold-primary);
  color: var(--bg-deep);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.1);
  text-decoration: none;
  transition: var(--transition-smooth);
  border-radius: 4px;
}

.social-link:hover {
  border-color: var(--gold-primary);
  transform: translateX(5px);
}

.social-link-icon {
  font-size: 1.5rem;
}

.social-link-text {
  flex: 1;
}

.social-link-name {
  font-family: var(--font-english);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 600;
}

.social-link-desc {
  font-family: var(--font-english);
  color: var(--cream-dim);
  font-size: 0.8rem;
}

.social-link-arrow {
  color: var(--gold-dark);
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.social-link:hover .social-link-arrow {
  transform: translateX(4px);
  color: var(--gold-primary);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  padding: 3rem 1.5rem 2rem;
  background: var(--bg-deep);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  text-align: center;
}

.footer-brand-tamil {
  font-family: var(--font-tamil);
  font-size: 1.4rem;
  color: var(--gold-light);
  margin-bottom: 0.25rem;
}

.footer-brand-english {
  font-family: var(--font-english);
  font-size: 0.9rem;
  color: var(--cream-dim);
  font-style: italic;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-text {
  font-family: var(--font-english);
  color: var(--cream-dim);
  font-size: 0.85rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.footer-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-family: var(--font-english);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 1rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 11, 8, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 7rem 1rem 4rem;
  }

  .hero::after {
    inset: 1rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .player-controls {
    flex-wrap: wrap;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cities-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes gold-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-text {
  background: linear-gradient(90deg,
    var(--gold-dark) 0%,
    var(--gold-primary) 25%,
    var(--gold-light) 50%,
    var(--gold-primary) 75%,
    var(--gold-dark) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 6s linear infinite;
}