/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    line-height: 1.6;
}

/* Fix for header overlap */
section {
    scroll-margin-top: 70px;
}

/* Logo and Text Alignment */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    max-width: 90px;
    margin-right: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Navigation */
header {
    background: linear-gradient(135deg, #0f3460, #16213e);
    padding: 2px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: max-height 0.3s ease;
}

.nav-links a {
    color: #e94560;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
}

/* Register Link Styling */
.register-link {
    display: flex;
    align-items: center;
    gap: 20px; /* Space between the button and the logo */
}

.cta-btn {
    background-color: black;
    padding: 10px 20px;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.cta-btn:hover {
    background-color: #e94560;
}

/* Register Logo Styling */
.register-logo {
    max-width: 40px; /* Adjust the size of the logo */
    height: auto; /* Maintain aspect ratio */
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Add transition for hover effects */
}

.register-logo:hover {
    transform: scale(1.1); /* Slightly enlarge the logo */
    opacity: 0.8; /* Reduce opacity */
}

/* DevPost Button Styling */
.devpost-btn {
    background-color: #0085FF; /* DevPost Blue */
    padding: 15px 30px;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    text-align: center;
    margin-top: 10px; /* Spacing below Register button */
}

/* Hover Effect */
.devpost-btn:hover {
    background-color: #005FCC; /* Darker blue */
    transform: scale(1.05); /* Slightly enlarges on hover */
}

/* Stacking buttons */
.hero-content a {
    display: block; /* Make buttons appear in separate lines */
    width: fit-content;
    margin: 10px auto; /* Centers the buttons */
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #e94560;
    margin: 4px 0;
    transition: 0.4s;
}

/* Section Titles */
section h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #e94560;
    text-align: center; /* Center aligns the header */
    font-family: 'Montserrat', sans-serif;
}

/* Hero Section */
#hero {
    background: url('images/hero-image-test.jpg') no-repeat center center/cover;
    height: 80vh;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-attachment: fixed;
    color: white;
    text-shadow: 8px 8px 16px rgba(0, 0, 0, 0.7);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 45px;
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
}

.hero-content p {
    font-size: 23px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-family: 'Poppins', sans-serif;
}

#hero .cta-btn {
    padding: 15px 30px;
}

/* About Section */
#about {
    padding: 50px 20px;
    background: linear-gradient(135deg, #290092, #6100a6);
    display: flex;
    flex-direction: column; /* Stack header, text, and image vertically */
    align-items: center; /* Center all content horizontally */
    text-align: center; /* Center the text content */
    gap: 50px; /* Space between elements */
}

.about-header {
    text-align: center;
    font-size: 36px;
    color: #e94560;
    font-family: 'Montserrat', sans-serif;
}

.about-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-between;
    align-items: center;
    gap: 50px; /* Space between text and image */
    max-width: 1200px; /* Center the content container */
    width: 100%; /* Make it responsive */
}

.about-text {
    flex: 1 1 47%;
    font-size: 18px;
    line-height: 1.8;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    flex: 1 1 48%;
}

.about-image img {
    width: 100%;
    max-width: 900px;
    height: 400px;
    object-fit: cover;
    object-position: center 40%;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Schedule Section */
#schedule {
    background: linear-gradient(135deg, #0f3460, #1a1a2e);
    padding: 50px 20px;
    text-align: center;
}

.schedule-date {
    font-size: 23px;
    color: #a1c6ea;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.schedule-item {
    background-color: #16213e;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.schedule-item h3 {
    color: #a1c6ea;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.schedule-item p {
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
}

/* Sponsors Section */
#sponsors {
    padding: 50px 20px;
    background: linear-gradient(135deg, #440291, #851af7);
    text-align: center;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    align-items: center; /* Ensures vertical alignment */
    gap: 200px; /* Adds space between logos */
    flex-wrap: wrap; /* Ensures wrapping on smaller screens */
}

.sponsor-logo img {
    width: 200px; /* Uniform width for all logos */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensures logos fit inside the container */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sponsor-logo img:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

/* Judges Section */
#judges {
    padding: 50px 20px;
    background: linear-gradient(135deg, #1a1a2e, #290092);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

#judges h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #e94560;
    font-family: 'Montserrat', sans-serif;
}

/* Grid Layout for Judges (Horizontal) */
.judges-grid {
    display: flex;
    flex-direction: column;
    gap: 25px; /* Space between judges */
    max-width: 1000px;
    margin: 0 auto;
}

/* Judge Box (Row Format) */
.judge {
    display: flex;
    align-items: center;
    background-color: #16213e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.judge:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Judge Photo */
.judge-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Judge Info (Name, Position, Bio) */
.judge-info {
    display: flex;
    flex-direction: column;
}

/* Judge Name */
.judge h3 {
    font-size: 22px;
    color: #e94560;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Judge Position */
.judge-position {
    font-size: 17px;
    font-style: italic;
    color: #a1c6ea;
    margin-bottom: 8px;
}

/* Judge Bio */
.judge-bio {
    font-size: 16px;
    color: #a1c6ea;
    line-height: 1.6;
}

/* Team Section */
#team {
    padding: 50px 20px;
    background: linear-gradient(135deg, #1a1a2e, #290092);
    color: #fff;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

#team h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #e94560;
    font-family: 'Montserrat', sans-serif;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    max-width: 1400px; /* Ensures it stays centered */
    width: 100%;
    margin: 0 auto;
}

.team-member {
    background-color: #16213e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px;
    max-width: 450px;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Team Member Image */
.team-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin: 15px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Name Styling */
.team-member h3 {
    font-size: 22px; /* Slightly bigger */
    color: #e94560;
    font-family: 'Montserrat', sans-serif;
    margin: 10px 0;
    font-weight: bold;
}

/* Position Styling */
.team-member .team-position {
    font-size: 17px;
    font-style: italic;
    color: #a1c6ea;
    margin-bottom: 15px;
}

/* Bio Styling */
.team-member p {
    font-size: 16px;
    color: #a1c6ea;
    line-height: 1.6;
    flex-grow: 1;
}

/* FAQ Section */
#faq {
    padding: 50px 20px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    text-align: left;
}

.faq-item {
    margin-bottom: 20px;
    text-align: left;
}

.faq-item h3 {
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

.faq-item h3::before {
    content: "▶";
    font-size: 16px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.faq-answer {
    color: #fff;
    font-style: italic;
    margin-left: 40px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
}

.faq-answer.active {
    max-height: 200px;
}

.faq-item h3.active::before {
    transform: rotate(90deg);
}

/* Contact Us */
#contact {
    padding: 50px 20px;
    background: linear-gradient(135deg, #290092, #6100a6);
    text-align: center;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.contact-header {
    font-size: 36px;
    margin-bottom: 75px;
    color: #e94560;
    font-family: 'Montserrat', sans-serif;
}

.contact-container {
    display: flex;
    justify-content: space-around; /* Ensures equal spacing between items */
    align-items: center;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    gap: 50px; /* Adjusts spacing between rows on smaller screens */
    padding: 0px 150px
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 120px; /* Ensures consistent width for all contact items */
}

.contact-item:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

/* Specific fix for Discord icon */
.contact-icon.discord {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #0f3460, #16213e);
    color: white;
    text-align: center;
    padding: 10px 0;
}

footer a {
    color: #e94560;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

footer p {
    margin: 10px 0;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: linear-gradient(135deg, #0f3460, #16213e);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-content a {
    color: #e94560;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #1a1a2e;
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropbtn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropbtn:hover {
    color: #fff;
}

/* Winners Section */
#winners {
    padding: 50px 20px;
    background: linear-gradient(135deg, #1a1a2e, #290092);
    text-align: center;
}

.winners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.winner {
    background-color: #16213e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.winner:hover {
    transform: translateY(-10px);
}

.winner h3 {
    color: #e94560;
    font-size: 24px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.winner h4 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.winner p {
    color: #a1c6ea;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.winner .team {
    color: #e94560;
    font-weight: bold;
    font-style: italic;
}

/* Gallery Section */
#gallery {
    padding: 50px 20px;
    background: linear-gradient(135deg, #290092, #6100a6);
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #16213e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(22, 33, 62, 0.9);
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 20px 0;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
}

/* Animation */
.modal-content, #modalCaption {
    animation: zoom 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

/* Responsive Layout */
@media (max-width: 1200px) {
    .navbar {
        padding: 0 15px;
    }

    .about-container {
        gap: 30px;
    }

    .judges-grid, .team-grid, .winners-grid, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 20px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        flex: 1 1 100%;
    }

    .about-image {
        flex: 1 1 100%;
        max-width: 80%;
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, #0f3460, #16213e);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        gap: 20px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

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

    .nav-links a {
        display: block;
        padding: 15px;
        font-size: 1.2rem;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        display: none;
        background: transparent;
        box-shadow: none;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 10px;
        text-align: center;
    }

    .register-link {
        flex-direction: column;
        gap: 10px;
    }

    .register-logo {
        max-width: 30px;
    }

    .judges-grid, .team-grid, .winners-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .sponsors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-item {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 18px;
    }

    section h2 {
        font-size: 28px;
    }

    .about-text {
        font-size: 16px;
    }

    .sponsors-grid {
        grid-template-columns: 1fr;
    }

    .judge, .team-member, .winner {
        padding: 15px;
    }

    .gallery-item {
        margin: 5px;
    }
}

/* Add animation for hamburger menu */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}
