/* Import Google Fonts - including Outfit, Inter, Playfair Display (Italics), and Dancing Script */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@1,400;1,600;1,700&display=swap');

/* CSS Custom Properties / Design System */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-cursive: 'Dancing Script', cursive;
  --font-italic-serif: 'Playfair Display', Georgia, serif;

  /* LIGHT THEME (Default) */
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --border-card: rgba(148, 163, 184, 0.15);
  
  --color-gold-light: #dfb76c;
  --color-gold: #b5891b;
  --color-gold-dark: #8e6c13;
  --color-gold-gradient: linear-gradient(135deg, #dfb76c 0%, #b5891b 50%, #8e6c13 100%);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --shadow-gold: 0 4px 20px rgba(181, 137, 27, 0.1);
  --shadow-gold-strong: 0 4px 30px rgba(181, 137, 27, 0.2);
  --shadow-card: 0 8px 30px rgba(148, 163, 184, 0.08);

  --bg-input: #ffffff;
  --border-input: #cbd5e1;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

body.dark-theme {
  /* DARK THEME */
  --bg-primary: #060913;
  --bg-secondary: #0d1224;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-card: rgba(255, 255, 255, 0.06);
  
  --color-gold-light: #f3e5ab;
  --color-gold: #d4af37;
  --color-gold-dark: #aa7c11;
  --color-gold-gradient: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa7c11 100%);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.15);
  --shadow-gold-strong: 0 0 35px rgba(212, 175, 55, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.37);

  --bg-input: rgba(255, 255, 255, 0.05);
  --border-input: rgba(255, 255, 255, 0.1);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(181, 137, 27, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease, background-image 0.4s ease;
}

body.dark-theme {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(13, 18, 36, 0.8) 0%, var(--bg-primary) 70%);
}

/* Selection Styles */
::selection {
  background-color: var(--color-gold);
  color: var(--bg-primary);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.gradient-text {
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Kerchef Stylish Cursive and Serif Italic */
.italic-script {
  font-family: var(--font-cursive);
  font-style: italic;
  font-weight: 700;
  color: var(--color-gold);
  padding: 0 0.2rem;
  font-size: 1.1em;
}

.italic-serif {
  font-family: var(--font-italic-serif);
  font-style: italic;
  font-weight: 600;
}

/* Layout Elements */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Brand Navbar */
header {
  padding: 1.25rem 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  font-size: 1.6rem;
  color: var(--color-gold);
  animation: pulseGold 3s infinite alternate;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.brand-dot {
  color: var(--color-gold);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0.2rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-gold-gradient);
  transition: var(--transition-smooth);
}

nav a:hover {
  color: var(--text-primary);
}

nav a:hover::after {
  width: 100%;
}

/* Theme Toggle Button */
.header-actions {
  display: flex;
  align-items: center;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.toggle-icon {
  font-size: 1.15rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 1.5rem;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(181, 137, 27, 0.08);
  border: 1px solid rgba(181, 137, 27, 0.25);
  color: var(--color-gold);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease;
}

body.dark-theme .badge {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--color-gold-light);
}

.badge-dot {
  width: 9px;
  height: 9px;
  background-color: var(--color-gold);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px var(--color-gold);
  animation: blink 1.5s infinite;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1.2s ease;
}

/* Countdown Timer */
.countdown-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  animation: fadeInUp 1.4s ease;
}

.countdown-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
  padding: 1.25rem 0.75rem;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.countdown-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-gold-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
}

.countdown-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 137, 27, 0.3);
  box-shadow: var(--shadow-gold);
}

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

.countdown-val {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Newsletter Form */
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
  animation: fadeInUp 1.6s ease;
}

.input-group {
  flex-grow: 1;
}

.newsletter-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
}

.newsletter-input:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 12px rgba(181, 137, 27, 0.15);
}

.btn-submit {
  padding: 0.85rem 1.75rem;
  background: var(--color-gold-gradient);
  border: none;
  border-radius: 50px;
  color: #060913;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(181, 137, 27, 0.25);
  transition: var(--transition-bounce);
  white-space: nowrap;
}

.btn-submit:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(181, 137, 27, 0.4);
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transition: var(--transition-smooth);
}

.form-message.success {
  color: #059669;
  opacity: 1;
}

.form-message.error {
  color: #dc2626;
  opacity: 1;
}

/* Sections General */
section {
  padding: 2.75rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 550px;
  margin: 0 auto 1.75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* About / Vision Section */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.vision-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 2.25rem 1.75rem;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
  text-align: left;
}

.vision-card:hover {
  transform: translateY(-6px);
  border-color: rgba(181, 137, 27, 0.25);
  box-shadow: var(--shadow-gold);
}

.vision-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(181, 137, 27, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--color-gold);
  border: 1px solid rgba(181, 137, 27, 0.15);
}

.vision-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.vision-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Team Section */
.team-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

/* Special spotlight for Thakur Ji */
.inspiration-spotlight {
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.inspiration-card {
  width: 100%;
  background: var(--bg-card);
  border: 1.5px solid rgba(181, 137, 27, 0.3);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-bounce);
}

.inspiration-card::before {
  content: 'GUIDING FORCE';
  position: absolute;
  top: 1.2rem;
  right: -2.3rem;
  background: var(--color-gold-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 2.5rem;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.inspiration-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold-strong);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-bounce);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(181, 137, 27, 0.25);
  box-shadow: var(--shadow-gold);
}

.team-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.team-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
  z-index: 1;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.team-card:hover .team-img {
  transform: scale(1.05);
}

.team-info {
  padding: 1.25rem 1rem;
  position: relative;
  z-index: 2;
}

.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  list-style: none;
}

.team-socials a {
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.team-socials a:hover {
  color: var(--color-gold);
  transform: scale(1.1);
}

/* Contact Section & Info */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-card);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.contact-info {
  text-align: left;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(181, 137, 27, 0.08);
  border: 1px solid rgba(181, 137, 27, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.contact-item-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--color-gold);
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.btn-primary {
  width: 100%;
  padding: 0.85rem;
  background: var(--color-gold-gradient);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: 0 4px 12px rgba(181, 137, 27, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(181, 137, 27, 0.35);
}

/* Footer Section */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border-card);
  text-align: center;
  background: var(--bg-primary);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  list-style: none;
}

.footer-socials a {
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

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

.footer-copyright {
  margin-top: 0.5rem;
}

/* Scroll Animation Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes pulseGold {
  0% { text-shadow: 0 0 5px rgba(181, 137, 27, 0.2); }
  100% { text-shadow: 0 0 15px rgba(181, 137, 27, 0.6); }
}

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

/* Media Queries */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  header {
    padding: 1rem 0;
  }
  
  nav {
    display: none;
  }
  
  .countdown-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .btn-submit {
    width: 100%;
  }
  
  section {
    padding: 2rem 0;
  }
  
  .contact-content {
    gap: 2rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Floating Flowers Animation Styles */
.flower-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.floating-flower {
  position: absolute;
  top: -50px;
  pointer-events: none;
  will-change: transform, opacity;
  animation: float-down var(--fall-duration) linear infinite;
  animation-delay: var(--fall-delay);
}

.flower-inner {
  display: block;
  width: auto;
  height: auto;
  will-change: transform;
  animation: sway-rotate var(--sway-duration) ease-in-out infinite;
  animation-delay: var(--sway-delay);
}

.flower-svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

@keyframes float-down {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: var(--max-opacity, 0.75);
  }
  90% {
    opacity: var(--max-opacity, 0.75);
  }
  100% {
    transform: translateY(110vh);
    opacity: 0;
  }
}

@keyframes sway-rotate {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(var(--sway-distance)) rotate(180deg);
  }
  100% {
    transform: translateX(0) rotate(360deg);
  }
}
