/* --- OCEAN THEME VARIABLES --- */
:root {
  --deep-ocean: #001219;
  --mid-ocean: #005f73;
  --shallow-water: #0a9396;
  --foam: #e0fbfc;
  --sand: #e9d8a6;
  --text-main: #ffffff;
  --text-muted: #b0c4de;
}

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

body {
  font-family: 'Georgia', serif;
  background: linear-gradient(180deg, #022026 0%, #001219 100%);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Ocean wave canvas */
#ocean-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
}

/* Underwater Caustics (Sun rays) Effect */
.caustics {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: 
    radial-gradient(ellipse at 20% 30%, rgba(10, 147, 150, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(0, 191, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(10, 147, 150, 0.18) 0%, transparent 50%);
  animation: caustic-drift 15s ease-in-out infinite;
}

@keyframes caustic-drift {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% { 
    transform: translate(30px, -20px) scale(1.1);
    opacity: 0.7;
  }
}

/* Bubble background canvas */
#dots-bg {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.6;
}

/* --- LOGO --- */
.msa-logo {
  position: fixed;
  left: 2rem;
  top: 1rem;
  width: 150px;
  height: auto;
  z-index: 1000;
  filter: drop-shadow(0 0 20px rgba(10, 147, 150, 0.6));
  transition: all 0.3s ease;
}

.msa-logo:hover {
  filter: drop-shadow(0 0 25px rgba(10, 147, 150, 0.8))
          drop-shadow(0 0 50px rgba(224, 251, 252, 0.6));
  transform: scale(1.05);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background: transparent;
  padding: clamp(2rem, 4vw, 3rem) 1rem;
  overflow: visible;
  z-index: 10;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(10, 147, 150, 0.15), transparent 60%);
  animation: pulseLight 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseLight {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

/* --- WAVE ANIMATION --- */
.ocean-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  margin-bottom: -1px;
  min-height: 100px;
  max-height: 150px;
  z-index: 15;
  pointer-events: none;
}

.parallax > use {
  animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
  fill: rgba(224, 251, 252, 0.7);
}
.parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
  fill: rgba(10, 147, 150, 0.5);
}
.parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
  fill: rgba(0, 95, 115, 0.3);
}
.parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
  fill: var(--deep-ocean);
}

@keyframes move-forever {
  0% { transform: translate3d(-90px,0,0); }
  100% { transform: translate3d(85px,0,0); }
}

/* --- BANNER --- */
.banner-container {
  position: relative;
  z-index: 10;
  width: min(100%, 1200px);
  /* Changed aspect ratio to be more compact for text if needed, or keep same */
  aspect-ratio: 21 / 9;
  margin-bottom: 2rem;
  animation: fadeInScale 1.2s ease-out;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Removed img style as it is no longer used
.banner-container img { ... } 
*/

.countdown-wrapper {
  display: flex;
  gap: clamp(1rem, 4vw, 4rem);
  text-align: center;
  justify-content: center;
  width: 100%;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.time-block span:first-child {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--foam);
  text-shadow: 0 0 20px rgba(10, 147, 150, 0.8);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.time-block .label {
  font-size: clamp(0.8rem, 1.5vw, 1.2rem);
  color: var(--shallow-water);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.5rem;
}

/* Add separator dots between blocks on larger screens */
.time-block:not(:last-child)::after {
  content: ':';
  position: absolute;
  right: clamp(-1rem, -2vw, -2rem);
  top: 5%;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--mid-ocean);
  opacity: 0.5;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- TYPOGRAPHY --- */
.hero-subtitle {
  position: relative;
  z-index: 10;
  font-size: 1.8rem;
  text-align: center;
  margin-top: 1.5rem;
  opacity: 0;
  animation: fadeIn 1s ease-out 0.6s forwards;
  color: var(--foam);
  font-style: italic;
  max-width: 800px;
  line-height: 1.6;
  text-shadow: 0 0 15px rgba(10, 147, 150, 0.6);
}

.tagline-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 0.5rem;
  animation-delay: 1s;
}

@keyframes fadeIn { to { opacity: 1; } }

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
  position: absolute;
  bottom: clamp(3rem, 25vh, 8rem);
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  opacity: 0;
  animation: fadeInBounce 1s ease-out 1.2s forwards;
  z-index: 10;
}

@keyframes fadeInBounce { to { opacity: 0.8; } }

.scroll-indicator span {
  font-size: 2.5rem;
  color: var(--foam);
  animation: bounce 2s infinite;
  display: block;
  text-shadow: 0 0 10px rgba(10, 147, 150, 0.8);
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* --- SECTIONS --- */
.section {
  padding: clamp(2.5rem, 4vw + 1rem, 5rem) clamp(1rem, 3vw, 2rem);
  max-width: min(1400px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  color: var(--foam);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--mid-ocean), var(--shallow-water));
  border-radius: 2px;
}

/* --- EVENT CARDS --- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.event-card {
  background: linear-gradient(135deg, rgba(0, 95, 115, 0.25), rgba(10, 147, 150, 0.1));
  border: 1px solid rgba(224, 251, 252, 0.1);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(10, 147, 150, 0.08) 50%,
    transparent 70%
  );
  animation: wave-shimmer 8s linear infinite;
}

@keyframes wave-shimmer {
  0% { transform: translateX(-50%) translateY(-50%) rotate(0deg); }
  100% { transform: translateX(50%) translateY(50%) rotate(360deg); }
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(10, 147, 150, 0.25);
  border-color: rgba(224, 251, 252, 0.3);
}

.event-date {
  font-size: 0.95rem;
  color: var(--shallow-water);
  font-weight: bold;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.event-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--foam);
  position: relative;
  z-index: 1;
}

.event-time {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.event-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #e0e0e0;
  position: relative;
  z-index: 1;
}

.event-description:last-child {
  margin-top: auto;
}

/* --- BUTTONS --- */
.donation-btn {
  background: linear-gradient(135deg, var(--mid-ocean), #023e8a);
  color: white;
  padding: 1.5rem 3rem;
  border: none;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 5px 15px rgba(2, 62, 138, 0.3);
  position: relative;
  z-index: 1;
}

.donation-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(2, 62, 138, 0.5);
  background: linear-gradient(135deg, #023e8a, var(--mid-ocean));
}

.donation-btn.secondary {
  background: linear-gradient(135deg, var(--shallow-water), var(--mid-ocean));
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  box-shadow: 0 5px 15px rgba(10, 147, 150, 0.2);
}

.donation-btn.secondary:hover {
  background: linear-gradient(135deg, var(--mid-ocean), var(--shallow-water));
  box-shadow: 0 10px 25px rgba(10, 147, 150, 0.4);
}

/* --- DONATION SECTION --- */
.donation-section {
  background: linear-gradient(135deg, rgba(0, 95, 115, 0.2), rgba(2, 62, 138, 0.2));
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  border: 1px solid rgba(224, 251, 252, 0.1);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

.donation-copy {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.donation-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* --- INSTAGRAM --- */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.instagram-embed {
  background: rgba(0, 95, 115, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 1rem;
  min-height: 320px;
  display: flex;
  justify-content: center;
  transition: all 0.3s ease;
}

.instagram-embed:hover {
  transform: scale(1.02);
  border-color: rgba(10, 147, 150, 0.4);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .msa-logo {
    width: 80px;
    top: 1rem;
    left: 1rem;
  }
  
  .banner-container {
    width: 100%;
    aspect-ratio: auto; /* Allow height to adjust */
    padding: 3rem 1rem;
  }

  /* Remove separators on mobile to prevent clutter */
  .time-block:not(:last-child)::after {
    content: none;
  }

  .countdown-wrapper {
    gap: 1.5rem;
    flex-wrap: wrap; 
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .event-grid, .instagram-grid {
    grid-template-columns: 1fr;
  }
  
  .ocean-waves {
    height: 10vh;
  }
}


/* --- DAILY SCHEDULE LAYOUT --- */

/* The main container: 5 columns on desktop */
.daily-schedule {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  width: 100%;
  margin-top: 2rem;
}
.daily-schedule {
  max-width: 1400px;   /* was effectively ~1100 */
  margin-left: auto;
  margin-right: auto;
}


/* Individual Day Column (The vertical lane) */
.day-column {
  background: rgba(0, 50, 70, 0.3); /* Darker semi-transparent background */
  border: 1px solid rgba(10, 147, 150, 0.2);
  border-radius: 12px;
  padding: 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Header for the Day (e.g. MONDAY) */
.day-header {
  text-align: center;
  color: var(--shallow-water);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(224, 251, 252, 0.1);
  padding-bottom: 0.5rem;
}

.day-date {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: normal;
  margin-top: 0.2rem;
}

/* The individual event box inside a column */
.schedule-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(224, 251, 252, 0.1);
  border-radius: 8px;
  padding: 1rem;
  transition: transform 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(5px);
}
.schedule-card {
  padding: 0.8rem 0.9rem;
}


.schedule-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--shallow-water);
}

/* Typography for the mini cards */
.card-time {
  font-size: 0.75rem;
  color: var(--sand); /* Using Sand color for time to pop */
  margin-bottom: 0.3rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 1rem;
  color: var(--foam);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.card-title {
  font-size: 0.95rem;
}


.card-loc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- RESPONSIVE ADJUSTMENTS --- */

/* On Tablets (Less than 1024px): Switch to 2 rows? Or scroll? 
   Let's stack them vertically for readability. */
@media (max-width: 1024px) {
  .daily-schedule {
    grid-template-columns: repeat(2, 1fr); /* 2 Columns on tablet */
  }
}

/* On Mobile: Stack everything in 1 column */
@media (max-width: 600px) {
  .daily-schedule {
    grid-template-columns: 1fr;
  }
  
  .day-column {
    margin-bottom: 1rem;
  }
}

  .hero-video {
    width: min(95vw, 1200px);   /* BIG but capped */
    margin: 0 auto;
    z-index: 10;
  }

  .hero-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  }

  /* Add this to styles.css */

.register-btn {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, var(--shallow-water), var(--mid-ocean));
  color: var(--foam);
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 1px solid rgba(224, 251, 252, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.register-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--mid-ocean), var(--shallow-water));
  box-shadow: 0 6px 15px rgba(10, 147, 150, 0.4);
  color: #ffffff;
  border-color: rgba(224, 251, 252, 0.5);
}

.donation-copy { font-size: 1.2rem; margin-bottom: 2rem; max-width: 700px; margin: 0 auto 2rem; line-height: 1.6; } .donation-copy img { width: 100%; max-width: 600px; height: auto; border-radius: 15px; box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); margin: 0 auto 2rem auto; display: block; } .donation-copy img:last-child { margin-bottom: 0; }
