:root{
  --purple: #2a186e;
  --soft-purple: #55429b;
  --gold: #ffed34;
  --white: #ffffff;
  --muted: #6b6b7a;
  --nav-height: 72px;
}

/* base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Poppins',sans-serif;
  color:#222;
  background:#1c1a25;
  -webkit-font-smoothing:antialiased;
}

body {
  overflow-x: hidden;
}

/* confetti canvas: above hero background but below content/navbar */
#confetti{
  position:fixed;
  top:0; left:0;
  width:100vw; height:100vh;
  z-index: 30; /* above hero bg (10) but below navbar (100) */
  pointer-events:none;
}

.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(42, 24, 110, 0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0; /* add breathing room for logo */
}

.logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}


.nav-content{width:100%;max-width:1200px;margin:0 auto;padding:0 20px;display:flex;justify-content:space-between;align-items:center}
/* .logo{
  height:48px;
  width: auto;
  object-fit: contain;
} */

/* nav links */
.nav-links{list-style:none;display:flex;gap:16px;align-items:center;margin:0;padding:0}
.nav-links a{color:var(--white);text-decoration:none;font-weight:600;padding:8px 10px;border-radius:6px;transition:background .15s, color .15s}
.nav-links a:hover{background:rgba(255,255,255,0.04)}

/* hero (you said earlier one worked — using your working code: contain so full flyer shows) */
.hero {
  width: 100%;
  height: 85vh;
  background-color: #2a186e;
  background-image: url('images/Con1.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 10;
  padding-top: 8px; /* keeps it clear of navbar */
  margin-bottom: 0;
  padding-bottom: 0;
}
/* --- Hero Slideshow (replace existing slideshow CSS) --- */
/* --- Hero Slideshow (6-slide smooth crossfade) --- */
.hero-slideshow {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 4px solid var(--purple);
  opacity: 0;
  animation: heroEnter 0.8s ease-in-out 0.15s forwards;
}

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: fadeSlide var(--slideshow-duration, 36s) infinite ease-in-out;
  animation-fill-mode: both;
}

/* --- Smooth crossfade: tuned for 6s per slide --- */
@keyframes fadeSlide {
  0%   { opacity: 0; }
  5%   { opacity: 1; }   /* quick fade in */
  30%  { opacity: 1; }   /* stay fully visible */
  35%  { opacity: 0; }   /* fade out early to overlap next */
  100% { opacity: 0; }   /* remain hidden */
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .hero-slideshow { height: 70vh; }
}
@media (max-width: 600px) {
  .hero-slideshow { height: 55vh; }
}

#about{
  padding-top: 0; 
  margin-top: 0;
}

/* Each slide shows at different times */
.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 6s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 12s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 18s; }



/* content sections — white backgrounds */
.section{background:#fff;padding:48px 20px;text-align:center;z-index:20;position:relative}
.section.alt{background:#f6f6fb}

/* headings */
h2{color:var(--purple);margin-bottom:12px}
p{color:var(--muted);max-width:900px;margin:0 auto;line-height:1.6}

/* social icons (inline svgs inherit color) */
.social-icons{display:flex;gap:20px;justify-content:center;margin-top:12px}
.social-icons a{color:var(--purple);transition:transform .18s, color .18s}
.social-icons a:hover{transform:scale(1.08);color:var(--soft-purple)}

/* modal */
.modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.6);align-items:center;justify-content:center;z-index:1000}
.modal .modal-content{background:#fff;padding:20px;border-radius:10px;text-align:center}
.btn{background:var(--purple);color:#fff;padding:8px 14px;border-radius:8px;border:none;cursor:pointer}

/* footer */
.footer {
  background-color: var(--purple);
  color: var(--white);
  text-align: center;
  padding: 1.5rem 1rem;
  font-weight: 500;
  position: relative;
  z-index: 5;
}

footer.footer {
  background-color: #554297; /* #554297 solid deep purple */
  color: #ffffff; /* make the text white */
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  position: relative;
  z-index: 10; /* keeps it above confetti */
}

footer.footer p {
  margin: 0;
  color: #fff; /* ensure white even if parent styles differ */
}


/* responsive */
@media (max-width:900px){
  .hero{height:70vh;background-position:center top;background-size:contain}
  .logo{height:40px}
  .nav-links{gap:10px}
}
@media (max-width:600px){
  .nav-content{flex-direction:column;gap:8px;padding:10px}
  .nav-links{flex-wrap:wrap;justify-content:center}
  .hero{height:50vh;background-size:contain}
  .logo{height:40px}
}

@media (max-width: 768px) {
  .logo {
    height: 40px;
  }
}
.condates {
  font-weight: bold;
}

/* Fix spacing between hero and About section */
.hero-slideshow {
  margin-bottom: 0;
  padding-bottom: 0;
}

#about {
  margin-top: 0 !important;
  padding-top: 1rem !important; /* reduce top padding */
}

/* Tweak hero height for mobile */
@media (max-width: 900px) {
  .hero-slideshow {
    height: 70vh;
  }
}

@media (max-width: 600px) {
  .hero-slideshow {
    height: 55vh;
  }

  #about {
    padding-top: 0.5rem !important;
  }
}
.hero-slideshow {
  border-bottom: 4px solid var(--purple);
}
/* --- Tighten hero to about spacing --- */
.hero-slideshow {
  height: auto;
  min-height: 50vh;
  max-height: 75vh;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Ensure slides fit edge-to-edge */
.hero-slideshow .slide {
  background-size: cover !important; /* fill the space instead of contain */
  background-position: center center;
}

/* Reduce spacing before "About" */
#about {
  margin-top: 0 !important;
  padding-top: 0.5rem !important;
}

/* Mobile: tighter layout */
@media (max-width: 600px) {
  .hero-slideshow {
    min-height: 45vh;
    max-height: 55vh;
    aspect-ratio: auto;
  }
  #about {
    padding-top: 0.25rem !important;
  }
}
