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

:root {
  --primary: #800000; /* Deep Maroon */
  --secondary: #FFD700; /* Gold */
  --accent: #FF8C00;
  --bg-dark: #121212;
  --text-light: #ffffff;
  --text-muted: #cccccc;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --safe-padding: 20px;
  --loader-bg: #4a0000; /* Darker maroon for loader */
}

#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--loader-bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}

#loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.loader-icon.lotus-hands {
  width: 90px;
  height: 90px;
  overflow: visible;
  margin: 0 auto;
}

.animated-hand {
  fill: var(--secondary);
  filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
  transform-origin: 50% 100%;
}

.left-hand {
  animation: join-left 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}

.right-hand {
  animation: join-right 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}

@keyframes join-left {
  0%, 15% { transform: rotate(-40deg); opacity: 0.6; }
  85%, 100% { transform: rotate(0deg); opacity: 1; }
}

@keyframes join-right {
  0%, 15% { transform: rotate(40deg); opacity: 0.6; }
  85%, 100% { transform: rotate(0deg); opacity: 1; }
}

.loader-text {
  margin-top: 1.5rem;
  color: var(--secondary);
  font-family: 'Noto Sans Tamil', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1.3rem;
}

.pulse-text {
  animation: pulse-gold 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes pulse-gold {
  0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3)); opacity: 0.8; }
  100% { transform: scale(1.05); filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.7)); opacity: 1; }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Noto Sans Tamil', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('banner.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect on desktop */
  text-align: center;
  padding: var(--safe-padding);
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}

body.loaded .hero {
  opacity: 1;
}

/* Fallback for background-attachment on mobile */
@media (max-width: 1024px) {
  .hero {
    background-attachment: scroll;
  }
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 40px;
}

.logo-container {
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease-out;
}

.logo {
  max-width: 320px;
  width: 90%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.badge {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: 6px 20px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
  animation: fadeIn 1.2s ease-out;
}

h1 {
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-light), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out;
}

h2 {
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease-out;
}

.construction-msg {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: #aaa;
  max-width: 700px;
  margin: 0 auto 3rem;
  animation: fadeInUp 1.4s ease-out;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 2rem;
  animation: fadeInUp 1.6s ease-out;
}

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

.info-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: 20px;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.12);
}

.info-card h3 {
  color: var(--secondary);
  margin-bottom: 1.2rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-card p {
  color: #ddd;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.contact-highlight {
  color: var(--text-light);
  font-weight: 700;
  font-size: 1.15rem;
}

.footer-notice {
  margin-top: 3rem;
  padding: 24px;
  border-radius: 12px;
  background: rgba(128, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
  display: inline-block;
  animation: fadeInUp 1.8s ease-out;
}

.footer-notice p {
  font-weight: 700;
  color: var(--secondary);
  font-size: 1.1rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 600px) {
  :root { --safe-padding: 15px; }
  .content-wrapper { padding-top: 20px; }
  .info-card { padding: 20px; }
  .logo { max-width: 240px; }
}
