/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #f0f0f0;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Arial Black', sans-serif;
    margin-bottom: 20px;
}

p {
    line-height: 1.6;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 50px;
    background-color: rgba(13, 13, 13, 0.9);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.navbar .logo {
    font-size: 2rem;
    font-weight: bold;
    color: #f44336;
    letter-spacing: 1px;
    text-transform: capitalize;
    margin-right: 20px;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 0;
}

.navbar .nav-links li {
    display: inline;
}

.navbar .nav-links a {
    text-decoration: none;
    color: #f0f0f0;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 2px solid transparent;
    padding: 5px;
}

.navbar .nav-links a:hover {
    color: #f44336;
    border-bottom: 2px solid #f44336;
}

/* Align logo and links centrally */
.navbar {
    flex-wrap: wrap;
}


/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9)), url('images/dtb-tails.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #f0f0f0;
    animation: fadeIn 1.5s ease;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: #f44336;
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: #d32f2f;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about, #about {
    padding: 80px 20px;
    text-align: center;
    background-color: #2a2a2a;
}

.about h2, #about h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: #f44336;
}

.about p, #about p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #ccc;
}

/* Team Section */
#team {
    padding: 80px 20px;
    background-color: #1e1e1e;
}

#team h2 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    color: #f44336;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.team-member {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 3px solid #f44336;
}

.team-member:hover {
    transform: translateY(-10px);
    cursor: pointer;
}

.team-member img {
    width: 100%;
    border-radius: 50%;
    max-width: 150px;
    margin-bottom: 20px;
}

.team-member h3 {
    font-size: 1.5rem;
    color: #200480;
}

.team-member h4 {
    font-size: 1rem;
    color: #002060;
}

.team-member p {
    font-size: 1rem;
    color: #260C83;
}

/* Popup Styling */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    font-weight: bold;
}

.popup-content h2 {
    color: #f44336;
    margin-bottom: 15px;
}

.popup-content p {
    color: #333;
    line-height: 1.5;
}


/* Events Section */
.events, #events {
    padding: 80px 20px;
    background-color: #2a2a2a;
    text-align: center;
}

.events h2, #events h2 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: #f44336;
}

/* Event Grid Layout */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Month Section */
.month-section {
    margin-bottom: 30px;
}

/* Month Title */
.month-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #003B5C; /* Thunderbirds blue */
    margin-bottom: 10px;
    border-bottom: 2px solid #00b5e2;
    padding-bottom: 5px;
    text-shadow: 1px 1px 2px white, -1px -1px 2px white; /* Softer white outline */
}

/* Event Card Styling */
.event-card {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-align: center;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-card:hover {
    transform: translateY(-10px);
    background-color: #444; /* Darker background on hover */
}

.event-card h3 {
    color: #f44336;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.event-card p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.event-card .cta-button {
    margin-top: 10px;
}

/* Event Header */
.event-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

/* Event Date Styling */
.event-date {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f4f4f4;
    background-color: #C7A000;
    padding: 10px 20px;
    border-radius: 5px;
    white-space: nowrap;
    text-align: center;
    margin-bottom: 10px;
}

/* Event Location Styling */
.event-location {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f4f4f4;
    text-transform: capitalize;
    text-align: center;
    width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .event-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        padding: 15px;
    }

    .event-date {
        font-size: 1.25rem;
    }

    .event-location {
        font-size: 1.2rem;
    }
}

/* Gallery Section */
#gallery {
    padding: 80px 20px;
    background-color: #1e1e1e;
    text-align: center;
}

#gallery h2 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: #f44336;
}

#more-images {
    margin-top: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    justify-items: center;
}

.gallery-grid img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

/* Button Styling */
.gallery-button {
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background-color: #f44336;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery-button:hover {
    background-color: #c62828;
    transform: translateY(-3px);
}

/* Image Popup Overlay */
.image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Dark overlay */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Popup Content Container */
.image-popup-content {
    position: relative;
    max-width: 90%; /* Adjust the maximum width of the popup container */
    max-height: 90%; /* Adjust the maximum height of the popup container */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popup Image */
.image-popup-content img {
    display: block;
    max-width: 100%; /* Ensures the image never overflows the container's width */
    max-height: 100%; /* Ensures the image never overflows the container's height */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
    image-rendering: auto;
}

/* Close Button */
.image-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s;
}

.image-popup-close:hover {
    color: #f00;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Contact Section */
.contact, #contact {
    padding: 80px 20px;
    background-color: #2a2a2a;
    text-align: center;
}

.contact h2, #contact h2 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: #f44336;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: #333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
    background-color: #444;
    color: #f0f0f0;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    background-color: #f44336;
    color: white;
    font-size: 1.2rem;
    padding: 15px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
    background-color: #d32f2f;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
}

/* Footer */
.footer {
    padding: 30px;
    background-color: #121212;
    text-align: center;
    color: #aaa;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer .container {
    max-width: 1200px;
    width: 100%;
}

.footer p {
    margin-bottom: 20px;
    font-size: 1rem; /* Increased font size */
    color: #ccc; /* Slightly lighter for better contrast */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #f44336;
}

.social-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.social-name {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        gap: 15px;
    }

    .social-icon-img {
        width: 35px;
        height: 35px;
    }

    .footer p {
        font-size: 1.1rem; /* Adjusted for smaller screens */
    }
}
