/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #111532);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    flex-direction: column;
    overflow: hidden; /* Prevents unwanted scrolling */
}

/* Main Container */
.index-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px; /* Adjusted for better spacing */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    width: 85%;
    max-width: 1000px;
    animation: fadeIn 0.8s ease-in-out;
    flex-wrap: wrap;
    text-align: center;
}

/* Content Area */
.index-content {
    flex: 1;
    text-align: center;
    max-width: 650px;
}

.index-content h1 {
    font-size: 60px;
    color: gold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.index-content p {
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Buttons */
.index-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.index-buttons a {
    text-decoration: none;
    color: gold;
    font-size: 22px;
    font-weight: bold;
    padding: 16px 40px;
    border-radius: 12px;
    border: 2px solid gold;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease-in-out;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

/* Hover Effect */
.index-buttons a:hover {
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

/* Animated Border */
.index-buttons a::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, gold, orange, gold);
    transition: width 0.4s ease-in-out;
    z-index: -1;
}

.index-buttons a:hover::before {
    width: 105%;
}

/* Click Effect */
.index-buttons a:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.7);
}


/* Firefly Animation (Optional) */
#fireflyCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    pointer-events: none;
    z-index: -1;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.imgFirefly {
    position: absolute;
    top: 30%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 5px;  /* Adjusted size */
    height: auto; /* Maintains aspect ratio */
    z-index: 0;
}


/* Background Fireflies */
#fireflyCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Firefly Mascot */
.mascot {
    width: 350px; /* Smaller firefly */
    height: auto;
    position: absolute;
    left: 5%; /* Adjusted position to the left */
    top: -1%;
    transform-origin: center;
    animation: float 3s infinite ease-in-out, glow 2s infinite alternate ease-in-out;
    transition: transform 0.3s ease-in-out;
}

/* Floating Effect */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* Glowing Effect */
@keyframes glow {
    0% { filter: drop-shadow(0 0 4px rgba(255, 255, 100, 0.6)); }
    100% { filter: drop-shadow(0 0 12px rgba(255, 255, 100, 1)); }
}

/* Hover Interaction */
.mascot:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 14px rgba(255, 255, 100, 1));
}