/* Tailwind CSS Configuration */
/* Note: This configuration should be applied via tailwind.config.js for proper functionality */
/* For now, including as comments for reference */
/*
tailwind.config = {
    theme: {
        extend: {
            colors: {
                primary: '#5e17eb',
                secondary: '#8c52ff',
                accent: '#ff66c4',
            },
            fontFamily: {
                heading: ['"Oswald"', 'sans-serif'],
                body: ['"Poppins"', 'sans-serif'],
            },
            animation: {
                'float': 'float 6s ease-in-out infinite',
                'float-reverse': 'float-reverse 8s ease-in-out infinite',
                'float-slow': 'float-slow 10s ease-in-out infinite',
            },
            keyframes: {
                float: {
                    '0%, 100%': { transform: 'translateY(0)' },
                    '50%': { transform: 'translateY(-20px)' },
                },
                'float-reverse': {
                    '0%, 100%': { transform: 'translateY(-10px)' },
                    '50%': { transform: 'translateY(10px)' },
                },
                'float-slow': {
                    '0%, 100%': { transform: 'translateY(0)' },
                    '50%': { transform: 'translateY(-15px)' },
                },
            }
        }
    }
}
*/

/* Custom Styles */
.cloud {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    filter: blur(8px);
    z-index: 0;
}

.gradient-bg {
    background: linear-gradient(135deg, #5e17eb 0%, #8c52ff 50%, #ff66c4 100%);
}

/* Creative Animated Background */
.animated-gradient {
    background: linear-gradient(-45deg, #5e17eb, #8c52ff, #ff66c4, #5e17eb);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



/* Glowing Text Effect */
.glow-text {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 40px rgba(255, 102, 196, 0.3),
                 0 0 60px rgba(142, 82, 255, 0.2);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
                     0 0 40px rgba(255, 102, 196, 0.3),
                     0 0 60px rgba(142, 82, 255, 0.2);
    }
    to {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8),
                     0 0 60px rgba(255, 102, 196, 0.6),
                     0 0 90px rgba(142, 82, 255, 0.4);
    }
}

/* Creative Typography Effects */
.gradient-text {
    background: linear-gradient(45deg, #ff66c4, #8c52ff, #5e17eb);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.typewriter {
    overflow: hidden;
    border-right: 3px solid #ff66c4;
    white-space: nowrap;
    animation: typewriter 4s steps(40) 1s 1 normal both,
               blinkCursor 1s steps(2) infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: #ff66c4; }
}

/* Parallax Scroll Effects */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* Smooth reveal animations */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Enhanced Button Animations */
.btn-magical {
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #ff66c4, #8c52ff);
    transition: all 0.3s ease;
}

.btn-magical::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-magical:hover::before {
    left: 100%;
}

.btn-magical:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 102, 196, 0.4);
}

.hover-grow {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hover-grow:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 15px 35px rgba(94, 23, 235, 0.2);
}

/* Card Shimmer Effect */
.card-shimmer {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
    z-index: 1;
}

.card-shimmer:hover::before {
    left: 100%;
}

/* Floating Card Effect */
.float-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.float-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Pulse Animation for Icons */
.pulse-icon {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(142, 82, 255, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(142, 82, 255, 0);
    }
}

/* Morphing Button Effect */
.morph-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: linear-gradient(45deg, #ff66c4, #8c52ff) padding-box,
                linear-gradient(45deg, #ff66c4, #8c52ff, #5e17eb) border-box;
}

.morph-btn:hover {
    transform: scale(1.05);
    border-radius: 25px;
    box-shadow: 0 0 30px rgba(255, 102, 196, 0.5);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:hover::after {
    width: 300px;
    height: 300px;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ff66c4;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.sponsor-card {
    background: linear-gradient(135deg, rgba(94, 23, 235, 0.9) 0%, rgba(255, 102, 196, 0.9) 100%);
    transition: all 0.3s ease;
}

.sponsor-card:hover {
    box-shadow: 0 10px 25px -5px rgba(142, 68, 235, 0.4);
    transform: translateY(-5px);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8c52ff;
}

/* Basic reset */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Fix form elements */
input, textarea, select {
    max-width: 100%;
}

/* Floating Clouds Animation - Home Section */
#home-background-wrap {
    bottom: 0;
    left: 0;
    padding-top: 50px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
    pointer-events: none;
}

/* Cloud Keyframes and Animations */
@keyframes homeAnimateCloud {
    0% { margin-left: -1000px; }
    100% { margin-left: 100%; }
}

#home .x1 { animation: homeAnimateCloud 35s linear infinite; transform: scale(0.65); }
#home .x2 { animation: homeAnimateCloud 20s linear infinite; transform: scale(0.3); }
#home .x3 { animation: homeAnimateCloud 30s linear infinite; transform: scale(0.5); }
#home .x4 { animation: homeAnimateCloud 18s linear infinite; transform: scale(0.4); }
#home .x5 { animation: homeAnimateCloud 25s linear infinite; transform: scale(0.55); }
#home .x6 { animation: homeAnimateCloud 40s linear infinite; transform: scale(0.7); }
#home .x7 { animation: homeAnimateCloud 22s linear infinite; transform: scale(0.35); }
#home .x8 { animation: homeAnimateCloud 28s linear infinite; transform: scale(0.45); }
#home .x9 { animation: homeAnimateCloud 33s linear infinite; transform: scale(0.6); }
#home .x10 { animation: homeAnimateCloud 26s linear infinite; transform: scale(0.5); }

#home .cloud {
    background: #fff;
    background: linear-gradient(to bottom, #fff 5%, #f1f1f1 100%);
    border-radius: 100px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
    height: 120px;
    position: relative;
    width: 350px;
    opacity: 0.8;
}

#home .cloud:after, #home .cloud:before {
    background: #fff;
    content: '';
    position: absolute;
    z-index: -1;
}

#home .cloud:after {
    border-radius: 100px;
    height: 100px;
    left: 50px;
    top: -50px;
    width: 100px;
}

#home .cloud:before {
    border-radius: 200px;
    width: 180px;
    height: 180px;
    right: 50px;
    top: -90px;
}

button#next-photo, button#close-modal {
    right: -80px;
}

/* Photo Gallery Styles */
.photo-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.photo-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(94, 23, 235, 0.3);
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-gallery-item:hover img {
    transform: scale(1.1);
}

.photo-gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(94, 23, 235, 0.3), rgba(255, 102, 196, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.photo-gallery-item:hover::before {
    opacity: 1;
}



/* Modal Styles */
#photo-modal {
    backdrop-filter: blur(5px);
}

#photo-modal.show {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#modal-image {
    max-height: 90vh;
    max-width: 90vw;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Navigation buttons */
#prev-photo, #next-photo, #close-modal {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 60;
}

/* Stagger animation for gallery items */
.stagger .photo-gallery-item:nth-child(1) { animation-delay: 0.1s; }
.stagger .photo-gallery-item:nth-child(2) { animation-delay: 0.2s; }
.stagger .photo-gallery-item:nth-child(3) { animation-delay: 0.3s; }
.stagger .photo-gallery-item:nth-child(4) { animation-delay: 0.4s; }
.stagger .photo-gallery-item:nth-child(5) { animation-delay: 0.5s; }
.stagger .photo-gallery-item:nth-child(6) { animation-delay: 0.6s; }
.stagger .photo-gallery-item:nth-child(7) { animation-delay: 0.7s; }
.stagger .photo-gallery-item:nth-child(8) { animation-delay: 0.8s; }

@media (max-width: 768px) {
    .timeline-item::before {
        left: -18px;
    }
    
    /* Additional mobile fixes */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Ensure text doesn't overflow */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix potential button overflow */
    .flex {
        flex-wrap: wrap;
    }
    
    /* Mobile cloud adjustments */
    #home .cloud {
        height: 80px;
        width: 250px;
    }
    
    #home .cloud:after {
        height: 70px;
        left: 35px;
        top: -35px;
        width: 70px;
    }
    
    #home .cloud:before {
        width: 120px;
        height: 120px;
        right: 35px;
        top: -60px;
    }
    
    /* Mobile gallery adjustments */
    
    #prev-photo, #next-photo {
        width: 40px;
        height: 40px;
        left: 2px;
        right: 2px;
    }
    
    #close-modal {
        width: 40px;
        height: 40px;
        top: -50px;
    }
}