:root {
  --teal-dark: #003036;
  --teal-main: #064e58;
  --teal-light: #126e7a;
  --gold: #d4af37;
  --gold-light: #f3dfa2;
  --white: #ffffff;
  --text-gray: #e0e0e0;
  
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--white);
  background-color: var(--teal-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   VIDEO BACKGROUND SETTINGS
   ========================================= */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures video fills screen completely */
  z-index: -2;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 48, 54, 0.85); /* Dark teal overlay */
  z-index: -1;
}

/* Hide original gradient */
.bg-gradient {
  display: none;
}
/* ========================================= */

/* UTILITIES */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.text-gold { color: var(--gold); }

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 20px; left: 50%; transform: translateX(-50%);
  width: 95%; max-width: 1200px;
  padding: 12px 25px; z-index: 1000;
  border-radius: 50px;
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }

.logo-text { font-weight: 700; font-size: 1.4rem; letter-spacing: 1px; white-space: nowrap; }

/* Hamburger Menu (Hidden on Desktop) */
.hamburger { display: none; font-size: 2rem; color: var(--gold); cursor: pointer; }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a:not(.btn-gold):not(.btn-gold-outline) { font-size: 0.9rem; font-weight: 500; transition: color 0.3s; white-space: nowrap; }
.nav-links a:not(.btn-gold):not(.btn-gold-outline):hover { color: var(--gold); }

/* BUTTON FIXES */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b89220);
  color: var(--teal-dark) !important;
  padding: 10px 20px; border-radius: 30px;
  font-weight: 600 !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  transition: transform 0.3s;
  white-space: nowrap; flex-shrink: 0;
}
.btn-gold:hover { transform: translateY(-2px); }

.btn-gold-outline {
  border: 1px solid var(--gold);
  padding: 8px 15px; border-radius: 20px;
  color: var(--gold) !important;
  transition: all 0.3s;
  white-space: nowrap; flex-shrink: 0;
}
.btn-gold-outline:hover { background: var(--gold); color: var(--teal-dark) !important; }

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding-top: 120px; padding-bottom: 50px;
}

.hero-logos {
  display: flex; justify-content: center; gap: 19px;
  font-size: 0.9rem; letter-spacing: 1px; color: var(--text-gray);
  margin-bottom: 20px; flex-wrap: wrap;
}
.divider-v { color: var(--gold); }

.subtitle { text-transform: uppercase; letter-spacing: 3px; font-size: 0.9rem; font-family: 'Inter', sans-serif; color: var(--gold); margin-bottom: 5px; }
.main-title { font-size: 3.5rem; font-weight: 700; background: linear-gradient(to right, #fff, #c2c2c2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 5px; line-height: 1.1; }
.theme-title { font-size: 2rem; color: var(--gold); font-style: italic; margin-bottom: 10px; }
.theme-desc { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 25px; }

.event-details { display: inline-flex; gap: 30px; padding: 15px 30px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center;}
.detail-item { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.detail-item i { color: var(--gold); font-size: 1.2rem; }
.hero-actions { margin-bottom: 20px; }

/* COUNTDOWN */
.countdown-container { display: flex; justify-content: center; gap: 15px; margin-top: 20px; flex-wrap: wrap;}
.time-box { background: rgba(0,0,0,0.3); border: 1px solid var(--gold); padding: 15px; min-width: 80px; border-radius: 8px; }
.time-box span { display: block; font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1; }
.time-box small { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }

/* HYBRID BADGE */
.badge-container { width: 100%; display: block; margin-bottom: 20px; }
.hybrid-badge {
  display: inline-block; background: rgba(212, 175, 55, 0.15); border: 1px solid var(--gold); color: var(--gold);
  padding: 8px 24px; border-radius: 50px; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  backdrop-filter: blur(5px); box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.hybrid-badge i { margin-right: 8px; font-size: 1.2rem; vertical-align: middle; }

/* SECTIONS */
.section { padding: 80px 0; }
.section-header { margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.badge { display: inline-block; background: rgba(212, 175, 55, 0.2); color: var(--gold); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; margin-bottom: 15px; }
.divider-gold { height: 3px; width: 60px; background: var(--gold); margin: 0 auto; }
.content-box { padding: 40px; text-align: center; font-size: 1.2rem; max-width: 800px; margin: 0 auto; }

/* GRID SYSTEMS */
.patrons-grid, .speakers-grid, .committee-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 30px; 
}

/* COMMITTEE SPECIFIC */
.committee-grid { 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 25px;
}
.com-card { 
  padding: 30px 20px; text-align: center; 
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 0; 
  height: 100%;
}
.com-role { color: var(--gold); font-weight: 600; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 10px; }
.com-role-sub { color: var(--text-gray); font-weight: 600; font-size: 0.9rem; text-decoration: underline; margin: 10px 0 5px 0; }
.com-inst { font-size: 0.9rem; color: var(--text-gray); font-style: italic; }
.small-h3 { font-size: 1.2rem; margin: 5px 0; font-weight: 600; }
.com-list { font-size: 0.95rem; margin: 4px 0; color: var(--white); }

/* CARDS */
.card, .speaker-card { padding: 40px 20px; text-align: center; transition: transform 0.3s, background 0.3s; }
.card:hover, .speaker-card:hover, .com-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.1); border-color: var(--gold); }
.card h3, .speaker-card h4 { font-size: 1.4rem; margin-bottom: 5px; }
.card .role { color: var(--gold); font-weight: 600; }
.card .inst { font-size: 0.9rem; color: var(--text-gray); }

/* IMAGES */
.patron-img, .speaker-img {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 20px auto; border: 4px solid var(--gold);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3); display: block;
  transition: transform 0.3s ease;
}
.speaker-img { width: 120px; height: 120px; border-width: 3px; }
.sp-title { color: var(--gold); font-size: 0.9rem; font-weight: 600; }
.sp-inst { font-size: 0.85rem; color: var(--text-gray); margin-top: 5px; }

/* FORM ELEMENTS */
.form-wrapper { max-width: 700px; margin: 0 auto; padding: 40px; background: rgba(0, 30, 35, 0.85); border-radius: 16px; border: 1px solid var(--glass-border); }
.form-header { text-align: center; margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.full-width { grid-column: span 2; }
.input-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: var(--gold); font-weight: 500; }
.input-group input, .input-group select {
  width: 100%; padding: 12px; background: rgba(255,255,255,0.1);
  border: 1px solid var(--glass-border); border-radius: 8px;
  color: white; font-family: 'Inter', sans-serif; outline: none;
}
.input-group input:focus, .input-group select:focus { border-color: var(--gold); background: rgba(255,255,255,0.15); }
.form-btn { border: none; cursor: pointer; margin-top: 20px; font-size: 1.1rem; padding: 12px 40px; width: 100%; }
option { color: #333 !important; background-color: #fff !important; }

/* FOOTER */
.footer { padding: 50px 0; background: rgba(0,0,0,0.4); border-top: 1px solid var(--glass-border); margin-top: 50px; }
.lotus-icon { margin-bottom: 20px; }

/* FILE INPUT */
.custom-file-input { width: 100%; padding: 10px; background: rgba(255, 255, 255, 0.1); border: 1px dashed var(--gold); border-radius: 8px; color: var(--text-gray); cursor: pointer; }
.custom-file-input::-webkit-file-upload-button { visibility: hidden; display: none; }
.custom-file-input::before { content: 'Select File'; display: inline-block; background: linear-gradient(135deg, var(--gold), #b89220); color: var(--teal-dark); border-radius: 5px; padding: 5px 15px; outline: none; white-space: nowrap; font-weight: 700; cursor: pointer; margin-right: 10px; }
.payment-section { background: rgba(0, 0, 0, 0.2); }

/* RESPONSIVE */
@media (max-width: 1200px) {
  .hamburger { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: rgba(0, 30, 35, 0.98); 
    flex-direction: column; padding: 40px 0; gap: 25px;
    border-radius: 20px; border: 1px solid var(--gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
  }
  .nav-links.active { display: flex; }
  .hero-logos { flex-direction: column; gap: 5px; }
  .divider-v { display: none; }
  .main-title { font-size: 2.8rem; }
  .hero-actions { display: flex; flex-direction: column; gap: 15px; align-items: center; }
  .btn-gold, .btn-gold-outline { width: 80%; text-align: center; margin: 0 !important; }
}

@media (max-width: 480px) {
  .navbar { width: 95%; padding: 15px; }
  .main-title { font-size: 2.2rem; }
  .theme-title { font-size: 1.5rem; }
  .countdown-container { gap: 10px; }
  .time-box { min-width: 60px; padding: 10px; }
  .time-box span { font-size: 1.5rem; }
  .section-header h2 { font-size: 2rem; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: span 1; }
  .form-wrapper { padding: 25px; }
  .committee-grid { gap: 30px; }

  /* --- SAFETY FALLBACK FOR MOBILE ---
     Uncomment the lines below if video still freezes or doesn't look right on specific phones.
  */
  /*
  #bg-video { display: none; }
  .bg-gradient {
    display: block;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 10%, var(--teal-main), var(--teal-dark));
    z-index: -2;
  }
  */
}