/* Reset default margin and padding */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    text-align: justify; /* Justify text globally */
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F5F5F5; /* Light gray color */
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    z-index: 1000;
    position: relative; /* Ensure header is positioned correctly */
}

header.sticky {
    background-color: rgba(74, 144, 226, 0.9); /* Semi-transparent blue */
}

header .logo img {
    height: 120px;
}

header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0 20px;
    transition: all 0.3s ease;
}

header nav ul li a {
    color: #1c1770;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
}

header nav ul li a:hover {
    color: #FFD700; /* Yellow color */
    transform: scale(1.1);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1001; /* Ensure it's above other elements */
}

/* Home Section */
.home-section {
    background-image: url('images/img2.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    position: relative;
    animation: fadeIn 2s ease-in-out;
}

.home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.home-content {
    text-align: center;
    z-index: 1;
    animation: bounceIn 1s ease-in-out;
}

.home-content h1 {
    font-size: 4rem; /* Increased font size */
    font-weight: bold;
    border: 2px solid #FFD700; /* Yellow color */
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.home-content .event-day {
    font-size: 1.5rem;
    color: #FFD700; /* Yellow color for Event Day */
}

.home-content .event-day span {
    font-weight: bold;
}

.home-content .cultural-fest-text {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    max-width: 800px;
    text-align: justify; /* Justify text */
}

.home-content .cultural-fest-text p {
    font-size: 1rem;
    line-height: 1.6;
}

.home-content .registration-deadline {
    font-size: 1.5rem;
    color: #efefef; /* Light gray color for Registration Deadline */
}

.home-content .registration-deadline span {
    font-weight: bold;
}

/* Home Section */
.home-content .details-btn {
    background-color: #32CD32; /* Lime green color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.home-content .details-btn:hover {
    background-color: #228B22; /* Forest green color */
    transform: scale(1.1);
}

.register-btn {
    display: inline-block;
    background-color: darkblue; /* Initial Dark Blue Background */
    color: white; /* White Text */
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
}

/* Hover Effect */
.register-btn:hover {
    background-color: navy; /* Slightly Darker Blue */
    transform: scale(1.05); /* Slight Zoom Effect */
}

.registration-options {
    display: none;
    margin-top: 10px;
}

.registration-options.active {
    display: block;
}

.register-option-btn {
    display: block;
    background-color: #32CD32; /* Lime green color */
    color: white;
    padding: 10px 10px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.register-option-btn:hover {
    background-color: #228B22; /* Forest green color */
    transform: scale(1);
}

/* Events Section */
.events-section {
    padding: 100px 20px 50px;
    background-color: #fdfcfc;
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

.events-section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: #161353; /* Purple color */
    border: 2px solid #32CD32; /* Lime green color */
    background-color: #989898;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}

.event-list-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.event-item {
    background-color: #fff;
    border: 2px solid #ccc;
    padding: 20px;
    width: 260px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-item:hover {
    transform: translateY(-10px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.event-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.event-item img:hover {
    transform: scale(1.1);
}

.prize-highlight {
    background-color: #fef5e1;
    border: 2px solid #FFD700; /* Yellow color */
    padding: 25px;
    animation: pulse 1.5s infinite alternate;
}

.highlighted-prize {
    color: #8A2BE2; /* Purple color */
    font-weight: bold; /* Make prize amounts bold */
}

/* Past Events Section */
.past-events-section {
    background-color: #fff;
    padding: 50px 20px;
    text-align: center;
}

.past-events-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    padding: 10px;
    border: 2px solid #32CD32; /* Lime green color */
    display: inline-block;
    background-color: #c1bdbd;
    border-radius: 8px;
}

.past-event-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.past-event-images img {
    width: 40%;
    margin: 10px 2%;
    transition: transform 0.3s ease;
}

.past-event-images img:hover {
    transform: scale(1.1);
}

/* Contact Section */
.contact-section {
    background-color: #ebf4fa;
    padding: 50px 20px;
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

.contact-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    padding: 10px;
    border: 2px solid #32CD32; /* Lime green color */
    display: inline-block;
    background-color: #989898;
    border-radius: 8px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.contact-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    text-align: center;
}

.contact-item i {
    font-size: 2rem;
    color: #1c1770; /* Purple color */
    margin-bottom: 10px;
}

.contact-item p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.contact-item p strong {
    color: #1c1770; /* Purple color */
}

.social-links {
    margin-top: 20px;
}

.social-links p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.social-links i {
    margin-right: 10px;
    color: #1c1770; /* Purple color */
}

.social-links a {
    color: #32CD32; /* Lime green color */
    text-decoration: none;
    font-weight: bold;
}

.social-links a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Popup Modal */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 80%;
    text-align: center;
}

.popup-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.popup-content .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Header */
    header {
        flex-direction: column;
        padding: 10px;
        position: static; /* Ensure header is not fixed */
    }

    header .logo img {
        height: 50px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        display: none; /* Hide nav links by default on mobile */
    }

    header nav ul.active {
        display: flex; /* Show nav links when active */
    }

    header nav ul li {
        margin: 10px 0;
    }

    .hamburger {
        display: block; /* Show hamburger menu */
    }

    /* Home Section */
    .home-content h1 {
        font-size: 3rem; /* Adjusted for mobile */
    }

    .home-content .event-day,
    .home-content .registration-deadline {
        font-size: 1.2rem;
    }

    .home-content .cultural-fest-text p {
        font-size: 0.9rem;
    }

    /* Events Section */
    .event-item {
        width: 100%;
        max-width: 300px;
    }

    /* Past Events Section */
    .past-event-images img {
        width: 80%;
    }

    /* Contact Section */
    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    /* Home Section */
    .home-content h1 {
        font-size: 2.5rem; /* Adjusted for smaller screens */
    }

    .home-content .event-day,
    .home-content .registration-deadline {
        font-size: 1rem;
    }

    .home-content .cultural-fest-text p {
        font-size: 0.8rem;
    }

    /* Events Section */
    .event-item {
        width: 100%;
        max-width: 250px;
    }

    /* Past Events Section */
    .past-event-images img {
        width: 100%;
    }

    /* Contact Section */
    .contact-item {
        width: 100%;
        max-width: 250px;
    }
}