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

:root {
  /* Color Palette */
  --brand-navy: #0B192C;
  --brand-navy-light: #1A365D;
  --brand-gold: #D4AF37;
  --brand-gold-light: #F3E5AB;
  --brand-white: #F8F9FA;
  --brand-dark: #0A0A0A;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-bg-dark: rgba(11, 25, 44, 0.7);

  /* Responsive Navbar Heights */
  --navbar-height-desktop: 154px;
  --navbar-height-mobile: 96px;
  --navbar-height: var(--navbar-height-desktop);
}

@media (max-width: 991.98px) {
  :root {
    --navbar-height: var(--navbar-height-mobile);
  }
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--brand-white);
  color: var(--brand-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

/* Navbar overrides */
.navbar {
  background-color: var(--brand-navy) !important;
  transition: all 0.3s ease;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.navbar.scrolled {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  background-color: rgba(11, 25, 44, 0.95) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.navbar-brand {
  color: var(--brand-gold) !important;
  font-size: 1.4rem;
  letter-spacing: 1px;
  transition: font-size 0.3s ease;
}
.navbar-logo {
  height: 130px;
  width: auto;
  object-fit: contain;
  transition: height 0.3s ease;
}
.navbar.scrolled .navbar-logo {
  height: 80px;
}
.nav-link {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--brand-gold) !important;
}

@media (max-width: 991.98px) {
  .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .navbar-logo {
    height: 80px;
  }
  .navbar.scrolled .navbar-logo {
    height: 55px;
  }
  .navbar-brand {
    font-size: 1.15rem;
  }
}
@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 0.95rem;
  }
}

/* Hero Header */
.hero-header {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Parallax effect */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--navbar-height);
  box-sizing: border-box;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(11, 25, 44, 0.8), rgba(0, 0, 0, 0.6));
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  width: 100%;
  padding: 0 1.5rem;
  box-sizing: border-box;
}
.hero-logo {
  max-width: 150px;
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
  animation: pulse-glow 3s infinite alternate;
}
.hero-title {
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  color: var(--brand-white);
  word-wrap: break-word;
}

@media (max-width: 991.98px) {
  .hero-header {
    background-attachment: scroll; /* Fixes parallax zoom bugs on mobile Safari */
  }
}

@media (max-width: 767.98px) {
  .hero-logo {
    max-width: 100px;
    margin-bottom: 1.5rem;
  }
  .hero-title {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  color: white;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

/* Event Cards */
.event-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}
.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.event-card .card-header {
  background-color: var(--brand-navy);
  color: var(--brand-gold);
  font-family: 'Cinzel', serif;
  border-bottom: none;
}
.event-card .list-group-item {
  border-color: rgba(0,0,0,0.05);
}

/* Form Styles */
.custom-form .form-control {
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 12px 15px;
  transition: all 0.3s;
}
.custom-form .form-control:focus {
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}
.btn-gold {
  background-color: var(--brand-gold);
  color: var(--brand-navy);
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
}
.btn-gold:hover {
  background-color: #bfa032;
  color: white;
  transform: scale(1.05);
}

/* Footer */
footer {
  background-color: var(--brand-navy) !important;
  color: rgba(255,255,255,0.7) !important;
  border-top: 3px solid var(--brand-gold);
}

/* Animations */
@keyframes pulse-glow {
  0% { filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3)); }
  100% { filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.8)); }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section Title */
.section-title {
  text-align: center;
  position: relative;
  margin-bottom: 3rem;
  color: var(--brand-navy);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--brand-gold);
}

/* Footer Link */
footer a.footer-link {
  color: var(--brand-gold);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}
footer a.footer-link:hover {
  color: var(--brand-gold-light);
  text-decoration: underline;
}
