body {
    font-family: 'Poppins', sans-serif;
    background-color: #FFFDF5; /* Creamy background */
    color: #1f2937;
    /* Hide the default cursor for our custom one */
    cursor: none;
    overflow-x: hidden; /* Prevent horizontal scroll from confetti */
}

/* Party Elements */
#balloon-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Container itself is not clickable */
    z-index: 10;
}

.balloon {
    position: absolute;
    bottom: -150px; /* Start below the screen */
    width: 60px;
    height: 75px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.8;
    pointer-events: auto; /* Balloons are clickable */
    cursor: pointer;
    transition: opacity 0.5s, transform 0.5s;
}

.balloon span { /* This is the tie */
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid; /* Color is set via JS */
}

@keyframes floatBalloon {
    0% {
        transform: translateY(0);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120vh); /* Float up */
        opacity: 0;
    }
}


/* Custom Cursor */
#cursor-dot, #cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    border-radius: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%);
}
#cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #F472B6;
}
#cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid #FBBF24;
    transition: transform 0.2s ease-out, width 0.3s ease, height 0.3s ease;
}
body:has(a:hover, button:hover, .card:hover, .balloon:hover) #cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
     border-color: #F472B6;
}

.gradient-text {
    background: linear-gradient(90deg, #F472B6, #FBBF24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-bg {
    position: relative;
    overflow: hidden;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(244, 114, 182, 0.1), transparent 50%),
                radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.1), transparent 50%),
                #FFFDF5;
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3;
}
.hero-image-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-image {
    position: absolute;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.hero-image.is-visible {
    opacity: 1;
    transform: scale(1);
}

.card {
    background-color: #FFFFFF;
    border-radius: 1rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    transform-style: preserve-3d; /* Needed for 3D tilt */
}
.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.btn-primary {
    background-image: linear-gradient(to right, #F472B6, #FBBF24, #F472B6);
    background-size: 200% auto;
    transition: background-position 0.5s;
}
.btn-primary:hover {
    background-position: right center;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animated Headline */
.headline-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotate(5deg);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.headline-word.is-visible {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

/* Tabs */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}
.tab-content.active {
    display: block;
}
.tab-btn.active {
    color: #F472B6;
}
#tab-underline {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #F472B6, #FBBF24);
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
}

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

/* Accordion */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.accordion-icon {
    transition: transform 0.3s ease-in-out;
}
.accordion-button.active .accordion-icon {
    transform: rotate(45deg);
}

/* Back to Top Button */
#back-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-image: linear-gradient(to right, #F472B6, #FBBF24, #F472B6);
    background-size: 200% auto;
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-position 0.5s;
    z-index: 1000;
}
#back-to-top-btn:hover {
    background-position: right center;
}
#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Floating Form Labels */
.form-group {
    position: relative;
}
.form-input {
    width: 100%;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    transition: border-color 0.2s;
}
.form-label {
    position: absolute;
    left: 1rem;
    top: 0.85rem;
    color: #6b7280;
    pointer-events: none;
    transition: transform 0.2s, font-size 0.2s, color 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: #F472B6;
    box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.3);
}
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    transform: translateY(-1.5rem) scale(0.8);
    background-color: #FFFDF5;
    padding: 0 0.25rem;
    color: #F472B6;
}

/* Upcoming Events Section */
.event-card {
  background-color: #FFFFFF;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* Ensures the image respects the border radius */
}

.event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.event-card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .event-card-img {
  transform: scale(1.05);
}


/* Media Gallery Carousel */
#gallery-carousel .gallery-item {
    position: absolute;
    transition: transform 0.5s ease, opacity 0.5s ease, z-index 0.5s;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
#gallery-carousel .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#gallery-carousel .gallery-item.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 10;
    width: 60%;
    height: 100%;
}
#gallery-carousel .gallery-item.prev {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.5;
    z-index: 5;
    width: 50%;
    height: 80%;
}
#gallery-carousel .gallery-item.next {
    transform: translateX(50%) scale(0.8);
    opacity: 0.5;
    z-index: 5;
    width: 50%;
    height: 80%;
}
#gallery-carousel .gallery-item.hidden-prev {
    transform: translateX(-100%) scale(0.6);
    opacity: 0;
    z-index: 1;
}
#gallery-carousel .gallery-item.hidden-next {
    transform: translateX(100%) scale(0.6);
    opacity: 0;
    z-index: 1;
}


