:root {
  --color-primary: #1C1917;
  --color-secondary: #44403C;
  --color-cta: #CA8A04;
  --color-background: #FAFAF9;
  --color-text: #FAFAF9; /* White for overlay content */
  --color-glass-bg: rgba(28, 25, 23, 0.4);
  --color-glass-border: rgba(250, 250, 249, 0.1);
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

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

body, html {
  height: 100%;
  width: 100%;
  font-family: 'Josefin Sans', sans-serif;
  color: var(--color-text);
  overflow: hidden;
  background-color: transparent; /* Changed from var(--color-primary) to allow video to show through */
}

/* Video Background */
.video-container {
  position: fixed; /* Changed from absolute for better persistence during scroll */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Set to 0 to be in front of body but behind content */
  overflow: hidden;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, rgba(28, 25, 23, 0.7) 100%);
}

/* Content Layout */
.content {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-lg);
  position: relative;
  z-index: 2; /* Ensure content is above the video */
}

.glass-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  border-radius: 24px;
  padding: var(--space-3xl);
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  
  /* Advanced Reveal */
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: premiumReveal 1.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
  animation-delay: 0.2s;
}

/* Iridescent Edge Glow */
.glass-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent, 
    rgba(202, 138, 4, 0.1), 
    transparent 30%, 
    rgba(250, 250, 249, 0.05), 
    transparent 60%, 
    rgba(202, 138, 4, 0.1), 
    transparent
  );
  animation: rotateGlow 10s linear infinite;
  pointer-events: none;
  z-index: -1;
}

/* Logo and Brand */
.logo {
  max-width: 260px;
  height: auto;
  margin-bottom: var(--space-xl);
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
  animation: pulse 4s ease-in-out infinite;
}

.brand-name {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem); /* Refined and subtle luxury size */
  letter-spacing: clamp(0.2rem, 3vw, 0.7rem); /* Tighter, more integrated spacing */
  color: var(--color-cta);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(202, 138, 4, 0.2), 0 4px 6px rgba(0,0,0,0.4);
  line-height: 1.2;
  
  /* Shimmer Effect */
  background: linear-gradient(
    90deg, 
    #CA8A04 0%, 
    #FDE047 25%, 
    #CA8A04 50%, 
    #FDE047 75%, 
    #CA8A04 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

.tagline {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.15rem;
  color: #D1D5DB;
  margin-bottom: var(--space-2xl);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-cta), transparent);
  width: 60%;
  margin: 0 auto var(--space-2xl);
  opacity: 0.5;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.social-btn {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-btn:hover {
  background: var(--color-cta);
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 0 20px rgba(202, 138, 4, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
}

.social-btn svg {
  width: 22px;
  height: 22px;
}

/* Button */
.btn-primary {
  background: var(--color-cta);
  color: white;
  border: none;
  padding: 16px 40px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px -5px rgba(202, 138, 4, 0.4);
  background: #EAB308;
}

/* Footer */
.footer {
  position: absolute;
  bottom: var(--space-lg);
  left: 0;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.5); /* Slightly brighter for better desktop visibility */
  font-size: 0.85rem;
  letter-spacing: 0.05rem;
  z-index: 10; /* Set very high to stay atop all layers */
}

/* Animations */
@keyframes premiumReveal {
  0% {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
    backdrop-filter: blur(16px);
  }
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    filter: drop-shadow(0 4px 10px rgba(202, 138, 4, 0));
  }
  50% {
    transform: scale(1.03);
    opacity: 0.98;
    filter: drop-shadow(0 8px 15px rgba(202, 138, 4, 0.2));
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  
  .tagline {
    font-size: 0.95rem;
    margin-bottom: var(--space-xl);
  }
  
  .glass-card {
    padding: var(--space-xl) var(--space-lg);
    width: 92%;
    border-radius: 16px;
  }
  
  .logo {
    max-width: 180px; /* Scaled down for mobile */
  }
  
  .social-links {
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .brand-name {
    letter-spacing: 0.2rem;
  }
  
  .logo {
    max-width: 150px;
  }
}
