:root {
  --bg-main: #fdfaf0; /* Light creamy luxury gold */
  --bg-gradient: radial-gradient(circle at top right, #ffffff 0%, #fef5e7 50%, #faedce 100%);
  
  --primary: #d4af37; /* Luxury Metallic Gold */
  --primary-dark: #b8860b; /* Dark Goldenrod */
  --gold: #f9d976; /* Soft glowing gold */
  --gold-metallic: #d4af37;
  
  --text-dark: #2a2010; /* Very dark rich brown/gold */
  --text-muted: #8c7853; /* Soft brown */
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(212, 175, 55, 0.4);
  --glass-shadow: 0 20px 60px rgba(212, 175, 55, 0.15);
  
  --nav-height: 90px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-main);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6, .brand-logo {
  font-family: 'Cinzel', serif;
}

/* Background Glowing Orbs */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.orb-1 { width: 500px; height: 500px; background: rgba(212, 175, 55, 0.25); top: -100px; left: -100px; }
.orb-2 { width: 600px; height: 600px; background: rgba(249, 217, 118, 0.2); bottom: -200px; right: -100px; animation-delay: -5s; }
.orb-3 { width: 400px; height: 400px; background: rgba(184, 134, 11, 0.15); top: 40%; left: 60%; animation-delay: -10s; }

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Typography Enhancements */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6%;
  background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, rgba(253, 250, 240, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
  z-index: 1000;
  transition: all 0.5s ease;
}

.brand-logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 34px;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
}

.brand-logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s ease;
}

.nav-links li a:hover, .nav-links li a.active {
  color: var(--primary-dark);
}

.nav-links li a:hover::after, .nav-links li a.active::after {
  transform: translateX(-50%) scale(1);
}

.login-btn {
  padding: 12px 35px;
  background: linear-gradient(135deg, #d4af37 0%, #f9d976 50%, #b8860b 100%);
  background-size: 200% auto;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.login-btn:hover {
  background-position: right center;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.6);
  border-color: #fff;
}

/* Hero Section */
.hero { position: relative; overflow: hidden;
  min-height: 100vh;
  padding: calc(var(--nav-height) + 50px) 6% 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
}

.hero-content {
  flex: 1;
  max-width: 650px;
}

.badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(243, 156, 18, 0.1);
  color: var(--primary-dark);
  border: 1px solid rgba(243, 156, 18, 0.2);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

.hero-title {
  font-size: 5.5rem;
  line-height: 1.05;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 45px;
  font-weight: 300;
  max-width: 550px;
  line-height: 1.8;
}

.cta-group {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 15px 35px rgba(211, 84, 0, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(211, 84, 0, 0.4);
}

.btn-secondary {
  display: flex;
  align-items: center;
  padding: 18px 40px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  border: 1px solid rgba(0,0,0,0.05);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.stats {
  display: flex;
  gap: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(211, 84, 0, 0.1);
}

.stat-item h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* 3D South Indian Astrology Chart (ஜோதிட சக்கரம்) */
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1500px;
}

.chakra-wrapper {
  position: relative;
  transform: rotateX(15deg) rotateY(-15deg);
  transform-style: preserve-3d;
  transition: transform 0.8s ease;
}

.chakra-wrapper:hover {
  transform: rotateX(5deg) rotateY(-5deg);
}

.rasi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
  width: 520px;
  height: 520px;
  padding: 15px;
  background: #ffffff;
  border: 1px solid rgba(255, 126, 0, 0.15);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(255, 126, 0, 0.08);
  transform-style: preserve-3d;
}

/* Base boxes logic */
.rasi-box {
  background: #ffffff;
  border: 1px solid rgba(255, 126, 0, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--primary);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  cursor: pointer;
  transform: translateZ(10px);
}

.rasi-box::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 10px;
  font-size: 11px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateY(10px);
}

.rasi-box:hover {
  transform: translateZ(40px) scale(1.05);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 20px 40px rgba(211, 84, 0, 0.3);
}

.rasi-box:hover::before {
  opacity: 1;
  transform: translateY(0);
  color: rgba(255,255,255,0.9);
}

/* Specific Grid Placement to create the hollow center */
.rasi-grid .rasi-box:nth-child(1) { grid-column: 1; grid-row: 1; }
.rasi-grid .rasi-box:nth-child(2) { grid-column: 2; grid-row: 1; }
.rasi-grid .rasi-box:nth-child(3) { grid-column: 3; grid-row: 1; }
.rasi-grid .rasi-box:nth-child(4) { grid-column: 4; grid-row: 1; }
.rasi-grid .rasi-box:nth-child(5) { grid-column: 1; grid-row: 2; }
/* Middle Empty area spans 2x2 */
.rasi-grid .rasi-center { grid-column: 2 / 4; grid-row: 2 / 4; }
.rasi-grid .rasi-box:nth-child(7) { grid-column: 4; grid-row: 2; }
.rasi-grid .rasi-box:nth-child(8) { grid-column: 1; grid-row: 3; }
.rasi-grid .rasi-box:nth-child(9) { grid-column: 4; grid-row: 3; }
.rasi-grid .rasi-box:nth-child(10) { grid-column: 1; grid-row: 4; }
.rasi-grid .rasi-box:nth-child(11) { grid-column: 2; grid-row: 4; }
.rasi-grid .rasi-box:nth-child(12) { grid-column: 3; grid-row: 4; }
.rasi-grid .rasi-box:nth-child(13) { grid-column: 4; grid-row: 4; }

/* Center Om Element */
.rasi-center {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transform: translateZ(30px);
}

.om-symbol {
  font-size: 110px;
  color: var(--gold-metallic);
  text-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
  z-index: 2;
  animation: floatOm 4s ease-in-out infinite;
}

.center-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes floatOm {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); text-shadow: 0 20px 40px rgba(212, 175, 55, 0.6); }
}

@keyframes pulseGlow {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 1; }
}

/* General Sections */
.content-section {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 60px) 6% 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 3.5rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 15px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 60px;
  box-shadow: var(--glass-shadow);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero { position: relative; overflow: hidden;
    flex-direction: column;
    text-align: center;
    padding-top: 150px;
  }
  .hero-subtitle {
    margin: 0 auto 45px;
  }
  .cta-group {
    justify-content: center;
  }
  .stats {
    justify-content: center;
  }
  .chakra-wrapper {
    margin-top: 50px;
  }
}
