/* Rai Farms - Premium Marriage Hall Website Styles */

/* Import Google Fonts - Adding 'Great Vibes' for that "Punjabi/Grand" script feel */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&family=Great+Vibes&display=swap');

/* CSS Variables - Design System */
:root {
  /* Colors - Deep Rich Tones */
  --gold: #D4AF37;
  --gold-light: #F9E5B0;
  --gold-dark: #AA8A2E;
  --deep-red: #5e0a0a;
  /* Darker, richer red */
  --red-accent: #800000;
  --cream: #FFFDD0;
  --dark-bg: #0f0f0f;
  --dark-secondary: #1a1a1a;
  --dark-tertiary: #252525;
  --white: #ffffff;
  --text-light: #e0e0e0;
  --text-muted: #a0a0a0;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-script: 'Great Vibes', cursive;

  /* Spacing - More breathing room */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1.5rem;
  --spacing-md: 3rem;
  --spacing-lg: 5rem;
  --spacing-xl: 8rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Shadows - Soft, glowing gold */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 0 25px rgba(212, 175, 55, 0.2);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.8;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(139, 0, 0, 0.05) 0%, transparent 20%);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(to right, var(--gold-light), var(--gold), var(--gold-light));
  background-size: 200% auto;
  animation: shine 5s linear infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--gold);
}

h3 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--gold-light);
}

.script-text {
  font-family: var(--font-script);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  color: var(--text-light);
  font-weight: 300;
}

/* Navigation - Enhanced */
nav {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  padding: 1rem 2rem;
  position: sticky;
  top: 60px;
  /* Below contact bar */
  z-index: 999;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.nav-logo {
  height: 70px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
  transition: transform 0.3s ease;
}

nav a {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: var(--text-light);
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
}

nav a.active,
nav a:hover {
  color: var(--gold);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 80%;
  left: 10%;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
  padding: 0;
}

/* Hero Section - The Grand Welcome */
.hero {
  min-height: 90vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)),
    url('assets/hero-bg.jpg');
  /* Ensure this exists or fallback color */
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: var(--spacing-xl) 0;
  margin-bottom: 0;
}

/* Contact Bar - Refined */
.contact-bar {
  background: linear-gradient(90deg, #2c0404 0%, #4a0d0d 100%);
  padding: 0.8rem 2rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  justify-content: center;
  gap: 3rem;
  z-index: 1000;
  position: fixed;
  top: 0;
  width: 100%;
}

.contact-bar a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  font-weight: 500;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-bar a:hover {
  color: var(--white);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* Cards & Glassmorphism */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  padding: var(--spacing-md);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 15px 40px 0 rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(212, 175, 55, 0.05);
}

/* Feature Grid aka Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  /* Wider cards */
  gap: 2rem;
  margin-top: 3rem;
}

.info-card {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #151515, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.info-card:hover::before {
  transform: scaleX(1);
}

.info-card h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: black;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
  filter: brightness(1.1);
}

/* Footer */
footer {
  background: #0a0a0a;
  padding: 6rem 2rem 3rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  text-align: center;
  position: relative;
}

footer::before {
  content: 'Rai Farms';
  font-family: var(--font-script);
  font-size: 15rem;
  color: rgba(255, 255, 255, 0.02);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-sm);
  margin-top: 50px;
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: var(--spacing-sm);
  color: var(--gold);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 968px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    flex-direction: column;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .contact-bar {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    position: static;
  }
  
  nav {
    top: 0;
  }
}