/* ========================================
   RESET & BASE
======================================== */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.page-content{
  margin-top: 40px;
}


#home,
#about,
#performances,
#gallery{
  scroll-margin-top: 100px;
}

#timeline,
#awards{
  scroll-margin-top: 120px;
}

html {
  scroll-behavior: smooth;
}

/* ========================================
   PRELOADER
======================================== */

#preloader{
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: black;
  z-index: 9999;
  transition: opacity 0.8s ease;
}

#preloader video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preloader-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45),
    rgba(18, 0, 24, 0.75)
  );
  z-index: 1;
}

.preloader-content{
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.preloader-title{
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 4px;
  color: #f3c16d;
  text-shadow:
    0 0 10px rgba(243, 193, 109, 0.5),
    0 0 30px rgba(243, 193, 109, 0.25);
  animation: fadeUp 1.2s ease forwards;
}

.preloader-subtitle{
  margin-top: 10px;
  margin-bottom: 40px;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: white;
  opacity: 0.85;
  animation: fadeUp 1.5s ease forwards;
}

#soundBtn{
  margin-top: 100px;
  padding: 14px 34px;
  border: none;
  border-radius: 40px;
  background: #f3c16d;
  color: #120018;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  animation: fadeUp 1.8s ease forwards;
}

#soundBtn:hover{
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(243, 193, 109, 0.45);
}

#soundBtn.skip-mode{
  background: #ffffff;
  color: #120018;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

#skipText{
  margin-top: 22px;
  font-size: 0.9rem;
  color: white;
  opacity: 0.7;
  animation: fadeUp 2s ease forwards;
}

@keyframes fadeUp{
  from{
    opacity: 0;
    transform: translateY(20px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   BIRTHDAY MODAL
========================= */

.birthday-modal{
  position:fixed;
  inset:0;

  display:flex;
  justify-content:center;
  align-items:center;

  background:rgba(0,0,0,.85);

  z-index:999999;

  opacity:0;
  visibility:hidden;

  transition:.4s ease;
}

.birthday-modal.show{
  opacity:1;
  visibility:visible;
}

/* =========================
   MODAL CONTENT
========================= */

.birthday-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(0,0,0,.75);
  backdrop-filter: blur(6px);

  z-index: 9999;
}

.birthday-modal.show {
  display: flex;
}

.birthday-content {
  position: relative;
  display: inline-block;
}

.birthday-content::before {
  content: "";
  position: absolute;
  inset: -10px;

  border-radius: 28px;

  background: radial-gradient(
    circle,
    rgba(255, 215, 0, 0.35),
    rgba(255, 69, 0, 0.15),
    transparent 70%
  );

  filter: blur(20px);
  z-index: 0;
}

.birthday-card {
  display: block;
  width: min(90vw, 450px);
  max-height: 80vh;

  border-radius: 20px;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(255, 215, 0, 0.25);

  animation: popIn .4s ease;
}

@keyframes popIn {
  from {
    transform: scale(.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.birthday-close {
  position: absolute;
  top: 25px;
  right: 25px;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: rgba(255,255,255,0.95);
  color: black;

  font-size: 22px;
  font-weight: bold;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 20px rgba(0,0,0,.4);

  z-index: 10001;

  transition: transform .2s ease, background .2s ease;
}

.birthday-close:hover {
  transform: scale(1.1);
  background: white;
}

.birthday-close:hover {
  transform: scale(1.1);
}

.confetti-container {
  position: fixed;
  inset: 0;

  pointer-events: none;
  overflow: hidden;

  z-index: 10000;
}


/* =========================
   CONFETTI
========================= */



.confetti{
  position:absolute;
  width:10px;
  height:10px;

  animation:fall 4s linear forwards;
}

@keyframes fall{

  from{
    transform:
      translateY(-100px)
      rotate(0deg);
  }

  to{
    transform:
      translateY(110vh)
      rotate(720deg);
  }

}

@media (max-width: 768px) {

  .birthday-card {
    width: 85vw;
    max-height: 70vh;

    object-fit: contain; /* IMPORTANT */
    display: block;

    border-radius: 16px;
  }

  .birthday-content {
    padding: 12px;
  }
}



/* ========================================
   HERO
======================================== */

.hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 50px 8%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.4s ease, transform 1.4s ease;
  
}

.hero.show{
  opacity: 1;
  transform: translateY(0);
}

.hero-text{
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-text h2{
  margin-bottom: 20px;
  font-size: 4rem;
  font-family: 'Playfair Display', serif;
  color: #f3c16d;
}

.hero-text p{
  max-width: 500px;
  line-height: 1.8;
}

.hero-image img{
  width: 450px;
  margin-top: 20px;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(243, 193, 109, 0.3);
}

.buttons{
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.buttons a{
  padding: 12px 20px;
  text-decoration: none;
  color: #f3c16d;
  border-radius: 30px;
}

/* SOCIAL BUTTONS */
.btn{
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px; /* Reduced from 50px to prevent overflow inside a 50px wrapper */
  color: #f3c16d;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.btn i{
  color: #f3c16d;
}

.btn:hover{
  transform: scale(1.1);
  background: rgba(243, 193, 109, 0.12);
  box-shadow: 0 0 15px rgba(243, 193, 109, 0.4);
}



/* ========================================
   ABOUT MORISSETTE
======================================== */

.info-section{
  width:100%;
 
}

/* ========================================
   GLOBAL SECTION TITLES
======================================== */

.highlights h2,
.gallery h2,
.updates h2 {
  position: relative;
  padding: 20px 8%;
  text-align: center;
  font-size: 2.5rem;
  color: #f3c16d;
  font-family: 'Playfair Display', serif;
  color: #f3c16d;
}


.artist-bio h2,
.timeline-section h2,
.awards-section h2{
  text-align:center;
  font-size:2.8rem;
  font-family:'Playfair Display', serif;
  color:#f3c16d;
  margin-bottom:40px;
  position:relative;
}

.artist-bio h2::after,
.timeline-section h2::after,
.awards-section h2::after{
  content:"";
  display:block;
  width:80px;
  height:3px;
  background:#f3c16d;
  margin:15px auto 0;
  border-radius:20px;
}

.artist-bio,
.timeline-section,
.awards-section{
  position: relative;
  overflow: hidden;
}

/* ========================================
   ARTIST BIO
======================================== */

.artist-bio{
  max-width:1000px;
  margin:0 auto 100px;

  background:rgba(30,10,40,.45);
  border-radius:20px;
  backdrop-filter:blur(8px);
  box-shadow:0 0 30px rgba(243,193,109,.08);
    transition:.3s ease;
}

.artist-bio p{
  color:#f3f3f3;
  line-height:1.9;
  margin-bottom:18px;
  text-align:justify;
  text-indent:0.5in;
}



.artist-bio:hover{
  transform:translateY(-5px);
}

.highlight-name{
  color:#f3c16d;
  font-family:'Playfair Display', serif;
  font-weight:600;
}

/* ========================================
   TIMELINE
======================================== */

.timeline-section{
    max-width:1000px;
  margin:0 auto 100px;
  padding:50px;
  background:rgba(30,10,40,.45);
  border-radius:20px;
  backdrop-filter:blur(8px);
  box-shadow:0 0 30px rgba(243,193,109,.08);
    transition:.3s ease;
}

 .timeline-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;

  max-height:700px;   /* desktop height */
  overflow-y:auto;

  padding-right:10px;
  align-items:start;
}

.timeline-card{
  background:#1e0a28;
  border-radius:10px;
  padding:5px;
  transition:.3s ease;
}

.timeline-card:hover{
  transform:translateY(-5px);
  box-shadow:0 0 25px rgba(243,193,109,.15);
}

/* ========================================
   AWARDS
======================================== */

.awards-section{
   max-width:1000px;
  margin:0 auto 100px;
  padding:50px;
  background:rgba(30,10,40,.45);
  border-radius:20px;
  backdrop-filter:blur(8px);
  box-shadow:0 0 30px rgba(243,193,109,.08);
    transition:.3s ease;
}

.awards-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;

  max-height:700px;   /* desktop height */
  overflow-y:auto;

  padding-right:10px;
  align-items:start;

    /* Hide scrollbar */
  scrollbar-width:none;      /* Firefox */
  -ms-overflow-style:none;   /* IE/Edge */
}

.awards-container::-webkit-scrollbar{
  display:none;              /* Chrome/Safari */
}

.award-card{
  background:#1e0a28;
  border-radius:10px;
  padding:5px;
  transition:.3s ease;
}

.award-card:hover{
  transform:translateY(-5px);
  box-shadow:0 0 25px rgba(243,193,109,.15);
}




/* ========================================
   UPDATES
======================================== */

.updates{
  padding: 100px 8%;
  text-align: center;
}

.update-card{
  margin-bottom: 15px;
  padding: 20px;
  background: #1e0a28;
  border-radius: 20px;
  text-align: left;
  transition: transform 0.3s ease;
}

.update-card:hover{
  transform: translateY(-5px);
}

.update-card h3{
  margin-bottom: 10px;
  color: #f3c16d;
}

.update-card p{
  line-height: 1.6;
}

/* ========================================
   HIGHLIGHTS
======================================== */

.highlights{
   position: relative;
margin-bottom: 90PX;
  padding: 20px 8%;
}

.card-container{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card{
  display: block;
  padding: 20px; /* Changed from percentage to pixels for grid stability */
  background: #1e0a28;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

.card:hover{
  transform: translateY(-5px);
}

.slideshow{
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 15px;
  position: relative;
  overflow: hidden;
}

.highlight-slide{
  border-radius: 15px;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease, transform 4s ease;
}

.highlight-slide.active{
  opacity: 1;
  transform: scale(1);
}

/* ========================================
   GALLERY
======================================== */

.gallery{
  padding: 20px 8%;
  text-align: center;
  margin-bottom: 50PX;
}

.slideshow-container{
  position: relative;
  max-width: 1000px;
  height: 500px;
  margin: auto;
  overflow: hidden;
}

.slide{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 1;
}

.slide.active{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  z-index: 3;
}

.slide.prev{
  opacity: 0.35;
  transform: translate(-85%, -50%) scale(0.85);
  z-index: 2;
}

.slide.next{
  opacity: 0.35;
  transform: translate(-15%, -50%) scale(0.85);
  z-index: 2;
}

.slide img{
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
}

.see-more-container{
  margin-top: 30px;
  text-align: center;
}

.see-more-btn{
  display: inline-block;
  padding: 12px 30px;
  background: #f3c16d;
  color: #120018;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.see-more-btn:hover{
  background: #d1ad4f;
  transform: scale(1.05);
}

.dots-container{
  margin-top: 15px;
  text-align: center;
}

.dot{
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active{
  background: #f3c16d;
}



/* ========================================
   ACCORDION
======================================== */

.accordion-btn{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 8px;
  background: none;
  border: none;
  color: #f3c16d;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.accordion-btn::after{
  content: "";
  transition: transform 0.3s ease;
}

.accordion-content{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .4s ease, opacity .3s ease;
  
}

/* Fixed active state so scrollbars and overflow function properly */
.accordion-card.active .accordion-content{
  max-height: 1000px;
  opacity: 1;
  margin-top: 15px;
}

.accordion-content p{
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.accordion-content::-webkit-scrollbar{
  width: 4px;
}

.accordion-content::-webkit-scrollbar-thumb{
  background: #f3c16d;
  border-radius: 10px;
}



/* Always-on Glow Background Effect on Headings */
.highlights::before,
.gallery::before,
.updates::before,
.timeline-section::before,
.awards-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(243, 193, 109, 0.14),
    transparent 60%
  );
  border-radius: 20px;
  pointer-events: none;
  z-index: 0;
}

.artist-bio::before,
.updates::before,
.timeline-section::before,
.awards-section::before {
  content: "";
  position: absolute;
  inset: 0;
    border-radius: 20px;
  background: radial-gradient(
    circle at top,
    rgba(243, 193, 109, 0.14),
    transparent 60%
  );
 
  pointer-events: none;
  z-index: 0;
}

.highlights h2 > *,
.gallery h2 > *,
.updates h2 > *,
.timeline-section h2 > *,
.awards-section h2 > * {
  position: relative;
  z-index: 1;
}


/* ========================================
   REVEAL ANIMATION (Performance Optimized)
======================================== */

.reveal{
  opacity: 0;
  transform: translateY(120px);
  transition: opacity 1.4s ease, transform 1.4s ease; /* Avoids transition: all */
}

.reveal.active{
  opacity: 1;
  transform: translateY(0);
}




/* ========================================
   MOBILE STYLES (768px and down)
======================================== */

@media(max-width: 768px){
  .page-content{
    margin-top: 65px;
  }

  .hero{
    flex-direction: column;
    text-align: center;
    gap: 25px;
    padding: 40px 8%;
  }



   .hero{
    transform: translateY(60px);
    transition: opacity 1.4s ease, transform 1.4s ease;
  }


.hero.show{
  opacity: 1;
  transform: translateY(0);
}

  .hero-image{
    order: 1;
  }

  .hero-text{
    order: 2;
    align-items: center;
  }

  .hero-text h2{
    font-size: 2.2rem;
  }

  .hero-text p{
    max-width: 100%;
    margin: auto;
  }

  .buttons{
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-image img{
    width: 100%;
    max-width: 320px;
  }

  .slideshow-container{
    height: 320px;
  }

  .slide{
    width: 85%;
  }

  .slide img{
    height: 300px;
  }

  .prev,
  .next{
    padding: 12px;
    font-size: 18px;
  }

 

  .artist-bio{
    padding:30px 25px;
    margin-bottom:70px;
    
  }

.artist-bio p{
  color:#f3f3f3;
  line-height:1.9;
  margin-bottom:18px;
  text-align:justify;
  text-indent:0.5in;
}

  .artist-bio h2,
  .timeline-section h2,
  .awards-section h2{
    font-size:2rem;
  }

  .timeline-section,
  .awards-section{
    margin-bottom:70px;
  }

 .accordion-btn{
    font-size:1.3rem;   /* smaller title */
    padding:12px 0;
    
  }

  .accordion-content p{
    font-size:0.9rem;   /* smaller text */
    line-height:1;
   
  }
  
  .accordion-card,
  .timeline-card,
  .award-card{
    padding:5px;       /* smaller card padding */
   
  }

  .awards-container{
    grid-template-columns:1fr;
     max-height:330px;
    overflow-y:auto;

    padding-right:5px;
     scrollbar-width:none;
    -ms-overflow-style:none;
  }

  .awards-container::-webkit-scrollbar{
    display:none;
  }


    .timeline-container{
    grid-template-columns:1fr;

   
  }
 

}
