/* General Body & Typography (no changes here) */
:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --text-dark: #333;
    --text-light: #f4f4f4;
    --bg-gradient-start: #6a11cb;
    --bg-gradient-end: #2575fc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-shadow: rgba(0, 0, 0, 0.1);
}

*, *::before, *::after {
    box-sizing: border-box;
}
  

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    cursor: default;
    position: relative;
}

body.scroll-enabled {
    overflow-y: scroll;
    overflow-x: hidden;
}

/* --- Scrollbar Styling (Webkit only - Chrome, Safari, Edge) --- */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #e05b5b;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h1, h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.copyright {
    position: fixed;
    top: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8em;
    font-family: 'Poppins', sans-serif;
    z-index: 1001;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* --- Hero Section (no changes) --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    flex-shrink: 0;
}

.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: particleMove var(--duration) ease-out forwards;
}

@keyframes particleMove {
    0% { transform: translateY(0) translateX(0) scale(0); opacity: 0; }
    10% { opacity: 1; transform: translateY(-20px) translateX(var(--offset-x)) scale(1); }
    100% { transform: translateY(-500px) translateX(var(--offset-x)) scale(0.5); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(0);
    opacity: 1;
    animation: contentFadeIn 2s ease-out;
}

@keyframes contentFadeIn {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hod-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
    animation: pictureScaleIn 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

@keyframes pictureScaleIn {
    0% { transform: scale(0); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.main-title {
    font-size: 3.5em;
    margin: 0;
    letter-spacing: 2px;
    overflow: hidden;
}

.main-title .hod-name {
    color: var(--primary-color);
    display: inline-block;
    animation: textPopIn 1s ease-out forwards;
    animation-delay: 1.5s;
    opacity: 0;
    transform: scale(0.8);
}

@keyframes textPopIn {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.subtitle {
    font-size: 1.2em;
    margin-top: 10px;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 2s;
    opacity: 0;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.explore-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 40px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: bounceIn 1s ease-out forwards;
    animation-delay: 2.5s;
    opacity: 0;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.explore-btn:hover {
    background-color: #e05b5b;
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.explore-btn .arrow {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.explore-btn:hover .arrow {
    transform: translateY(3px);
}

/* --- Wishes Section --- */
.wishes-section {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 60px 20px;
    text-align: center;
    min-height: 100vh;
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 100vh;
    opacity: 0;
    transition: top 1s ease-out, opacity 1s ease-out;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.wishes-section.active {
    top: 0;
    opacity: 1;
}

.wishes-section h2 {
    color: var(--primary-color);
    font-size: 2.5em;
    margin-bottom: 40px;
    text-shadow: none;
}

/* >>>>>>>>>> START OF WISHES CAROUSEL STYLES (UPDATED) <<<<<<<<<< */
.wishes-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background-color: var(--card-bg);
    min-height: 500px;
    display: flex;
    align-items: center; 
}

.wishes-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    align-items: stretch;
    justify-content: flex-start;
}

.wish-item {
    min-width: 100%;
    box-sizing: border-box;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    height: 100%;
    overflow-y: auto;
    flex: 1 0 100%;
}

.wish-item.active {
    opacity: 1;
    pointer-events: auto;
}

.member-pic-carousel {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 25px;
    animation: fadeInScale 0.8s ease-out forwards;
    flex-shrink: 0; /* Prevents image from shrinking */
}

.wish-message-carousel {
    font-size: 1.15em;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-style: italic;
    padding-right: 0;
    line-height: 1.8;
    animation: fadeInText 1s ease-out forwards;
    width: 100%; /* IMPORTANT: Ensure it takes full available width */
    max-width: 600px; /* Keep max-width for readability on large screens */
    box-sizing: border-box;
    flex-grow: 1; /* Allow message to take up remaining vertical space in wish-item */
}

/* Custom scrollbar for wish-item (if overflow-y: auto is present on .wish-item) */
.wish-item::-webkit-scrollbar {
    width: 6px;
}

.wish-item::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.wish-item::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.member-name-carousel {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1em;
    animation: fadeInText 1s ease-out forwards;
    flex-shrink: 0; /* Prevents name from shrinking */
    margin-top: auto; /* Pushes the name to the bottom if content is short */
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes fadeInText {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: -25px;
}

.carousel-nav.next {
    right: -25px;
}

.carousel-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Confetti Shower (initial burst - no changes) */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(-100vh) rotate(0deg) scale(0.5); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg) scale(1); opacity: 0; }
}

/* Confetti for Wishes Section (Continuous - no changes) */
.confetti-container-wishes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.confetti-wishes {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 200, 0, 0.8);
    border-radius: 50%;
    opacity: 0;
    animation: confettiSlowFall var(--duration) linear forwards;
    box-shadow: 0 0 5px rgba(255, 200, 0, 0.5);
}

@keyframes confettiSlowFall {
    0% { transform: translateY(-50px) translateX(var(--x-start)) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translateY(calc(100% + 50px)) translateX(var(--x-end)) rotate(var(--rotate-end)); opacity: 0; }
}

/* Music Toggle Button (Optional - no changes) */
.music-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.music-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


/* Media Queries for Responsiveness (UPDATED for mobile content rendering) */
@media (max-width: 768px) {
    .main-title {
      font-size: 2.5em;
    }
    .subtitle {
      font-size: 1em;
    }
    .hod-picture {
      width: 150px;
      height: 150px;
    }
    .explore-btn {
      padding: 12px 25px;
      font-size: 1em;
    }
    .wishes-section h2 {
      font-size: 2em;
    }
  
    .wishes-carousel-wrapper {
      max-width: 95%;
      min-height: 400px;
      flex-direction: column;
    }
  
    .wishes-carousel {
      height: 100%;
    }
  
    .wish-item {
      flex: 1 0 100%;
      padding: 25px;
      height: 100%; /* Ensure height fills carousel */
      overflow-y: auto; /* Allow scroll if content is long */
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      text-align: center;
      box-sizing: border-box;
    }
  
    .member-pic-carousel {
      width: 80px;
      height: 80px;
      margin-bottom: 15px;
    }
  
    .wish-message-carousel {
      font-size: 0.95em;
      line-height: 1.5;
      max-width: 100%;
      min-height: 80px;
      margin-bottom: 15px;
      padding: 0;
      display: block;
    }
  
    .member-name-carousel {
      font-size: 0.9em;
      margin-top: 10px;
    }
  
    .carousel-nav {
      width: 30px;
      height: 30px;
      font-size: 1em;
      top: 50%;
      transform: translateY(-50%);
    }
  
    .carousel-nav.prev {
      left: 5px;
    }
  
    .carousel-nav.next {
      right: 5px;
    }
  
    .carousel-pagination {
      margin-top: 10px;
    }
  }
  
  @media (max-width: 480px) {
    .main-title {
      font-size: 1.8em;
    }
  
    .subtitle {
      font-size: 0.85em;
    }
  
    .wishes-carousel-wrapper {
      max-width: 100%;
      min-height: 320px;
      border-radius: 10px;
    }
  
    .wish-item {
      padding: 15px;
    }
  
    .member-pic-carousel {
      width: 60px;
      height: 60px;
      margin-bottom: 10px;
    }
  
    .wish-message-carousel {
      font-size: 0.85em;
      line-height: 1.4;
      min-height: 60px;
    }
  
    .member-name-carousel {
      font-size: 0.8em;
    }
  
    .carousel-nav {
      width: 25px;
      height: 25px;
      font-size: 0.9em;
    }
  
    .carousel-nav.prev {
      left: 2px;
    }
  
    .carousel-nav.next {
      right: 2px;
    }
  
    .dot {
      width: 8px;
      height: 8px;
      margin: 0 3px;
    }
  
    .copyright {
      font-size: 0.6em;
      top: 5px;
      right: 5px;
    }
}