/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    padding-top: 80px; /* For fixed navbar */
}
/* Navbar Styles */
nav {
    background: black;
    color: white;
    height: 90px;
    padding: 5px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    display: block;
}

nav .logo img {
    height: 140px;
    max-width: 100%;
    object-fit: contain; /* Prevent distortion */
    margin-top: 10px;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

/* Reduce Dropdown Box Size */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #222;
    min-width: 160px; /* Reduce width */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 5px 0; /* Reduce padding */
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Adjust Dropdown Items */
.dropdown-menu li {
    list-style: none;
    padding: 8px 12px; /* Reduce padding */
    font-size: 14px; /* Reduce text size */
}

/* Style Dropdown Links */
.dropdown-menu li a {
    text-decoration: none;
    color: white;
    display: block;
    padding: 5px 10px; /* Adjust padding */
    font-size: 14px; /* Reduce font size */
    transition: background 0.3s ease;
}

/* Hover Effect */
.dropdown-menu li a:hover {
    background-color: #ffcc80;
    color: black;
}

/* Show Dropdown Smoothly */
.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}


@media screen and (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: black;
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        padding: 10px 0;
    }

    nav ul.show-menu {
        display: flex;
    }

    nav ul li {
        text-align: center;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        display: block;
        background: none;
        box-shadow: none;
    }

    .dropdown-menu li {
        text-align: center;
    }
}

/* Header */
header {
    background: linear-gradient(135deg, #004080, #ffab40);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: typing 4s steps(30, end), blink 0.6s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid white;
}

header p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

header .btn {
    background: linear-gradient(135deg, #ffab40, #004080);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
}

header .btn:hover {
    background: linear-gradient(135deg, #004080, #ffab40);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 60px 20px;
    margin: 20px auto;
    max-width: 1200px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section.alternate {
    background: linear-gradient(to bottom, #ffcc80, #fff);
}

h2 {
    font-weight: 600;
    color: #004080;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 20px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* List styling */
ul {
    list-style: none;
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    position: relative;
}

ul li i {
    color: #ffab40;
    margin-right: 10px;
}

#timeline {
    background: linear-gradient(to bottom, #ffcc80, #fff);
}

/* Timeline Buttons */
.timeline-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.timeline-button {
    background-color: #ffffff;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-button i {
    margin-right: 10px;
    color: #0078D4;
    font-size: 1.2rem;
}

.timeline-button:hover {
    transform: scale(1.05);
    border-color: #0078D4;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.timeline-button.active {
    background-color: #0078D4;
    color: white;
    border-color: #005A9E;
}

/* Timeline Content */
#timeline-content {
    margin-top: 20px;
    padding: 20px;
    display: none;
}

.timeline-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-in, transform 0.5s ease-in;
}

.timeline-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}


/* Timeline Card */
.timeline-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.timeline-card h3 {
    color: #0078D4;
    margin-bottom: 15px;
}



#prizes {
    background: linear-gradient(to bottom, #fff, #e6f7ff); /* Subtle gradient */
    color: #333;
    border-radius: 10px;
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 1200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#prizes h2 {
    font-size: 2rem;
    color: #004080;
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: fadeIn 1s ease-in-out;
}

#prizes p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

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

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

.prize-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    border-color: #0078D4;
}

.prize-item h3 {
    font-size: 1.5rem;
    color: #004080;
    margin-bottom: 10px;
}

.prize-item i {
    display: block;
    font-size: 2.5rem;
    color: #FF6F61;
    margin: 10px auto;
}

.prize-item:hover i {
    transform: rotate(15deg);
}


.prize-item p {
    font-size: 1.1rem;
    color: #333;
}

#prizes h3 {
    font-size: 1.8rem;
    color: #004080;
    margin-top: 40px;
}

.special-awards {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.special-awards li {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding: 10px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.special-awards li:hover {
    background: #E6F7FF;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.special-awards li i {
    margin-right: 10px;
    color: #FF6F61;
    font-size: 1.5rem;
}

/* Sponsors */
/* Fix sponsor images to maintain consistent size across browsers */
.sponsor-images {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 20px;
}

.sponsor-images img {
    width: auto; /* Maintain natural width */
    max-width: 250px; /* Set a consistent max width */
    height: 120px; /* Set a fixed height to avoid stretching */
    object-fit: contain; /* Ensures image maintains aspect ratio */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sponsor-images img:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

/* Specific fix for the second sponsor image */
.sponsor-images img:nth-child(2) {
    max-width: 350px; /* Adjust width as needed */
    height: auto;
}

/* Contact Form */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

form button {
    background: linear-gradient(135deg, #ffab40, #004080);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background: linear-gradient(135deg, #004080, #ffab40);
}

/* Scroll to Top Button */
#scrollTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffab40;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

#scrollTop:hover {
    transform: scale(1.2);
}

/* Footer */
footer {
    background: black;
    color: white;
    text-align: center;
    padding: 10px 0;
}
.btn:hover {
    background: #004080;
    color: white;
    transform: scale(1.05);
    transition: transform 0.3s ease, background 0.3s ease;
}

/* Keyframes */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}
