* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #ffffff;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
}

.topnav {
    background: linear-gradient(90deg, #1a1a1a, #2a0a0a);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center; /* Center items vertically */
    position: relative;
    
}

/* Hamburger menu button */
.nav-toggle {
    display: none; /* Hidden by default on larger screens */
    cursor: pointer;
    padding: 15px;
}

.nav-toggle-label {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    margin: 8px;
}

.nav-toggle-label span {
    display: none;
    width: 100%;
    height: 3px;
    background: #ff4444;
    transition: all 0.3s ease;
}

/* Hide checkbox */
.nav-toggle:checked ~ .nav-links {
    display: flex;
}

/* Navigation links container */
.nav-links {
    display: flex;
    flex-wrap: wrap;
}

.topnav a {
    color: #ffffff;
    padding: 15px 25px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.topnav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ff4444;
}

.topnav a.active {
    background: #ff4444;
    color: #ffffff;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: 
        linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9)),
        url('Elements/RedCircuit.jpg') center/cover;
    text-align: center;
    padding: 100px 20px 60px;
    margin-bottom: 60px;
}

#logo {
    max-height: 216px;
    width: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 68, 68, 0.5));
}

h1.redheader {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    padding: 0 10px;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #cccccc;
    margin-top: 10px;
}

section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

h2.redheader {
    font-family: 'Orbitron', sans-serif;
    color: #ff4444;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0 15px;
    margin-bottom: 60px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ff4444;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.feature-card h3 {
    color: #ff4444;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 10px;
}

.join {
    text-align: center;
    background: linear-gradient(45deg, #1a1a1a, #2a0a0a);
    padding: 60px 20px;
    margin-bottom: 60px;
}

.cta-button {
    background: #ff4444;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}


.cta-button:hover {
    background: #ff6666;
    transform: scale(1.05);
}

.cta-buttonDiv {
    border: none;
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.cta-buttonDiv:hover {
    transform: scale(1.05);
}

footer {
    background: #1a1a1a;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ff4444;
    margin-top: 60px;
}

.social-links a {
    color: #ff4444;
    margin: 0 15px;
    text-decoration: none;
}

.officer-card {
    background: rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 25rem;
    margin: 0 auto 60px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ff4444;
    transition: transform 0.3s ease;
}

.officer-card:hover {
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.officer-image {
    width: 100%;
    border-radius: 8px;
}

h3.officertitle {
    padding-bottom: 1em;
    border-bottom: solid 2px rgba(255, 255, 255, 0.125);
}

/* Animation when checked (3 lines horizontal to |||) */
.nav-toggle:checked + .nav-toggle-label {
    transform: rotate(90deg);
}

/* Media Queries */
@media (max-width: 768px) {
    /* Show hamburger menu, hide links by default */
    .nav-toggle {
        display: block;
    }

    #nav-toggle.nav-toggle {
        display: none;
    }
    
    .nav-toggle-label span {
        display: block;
    }
    
    .nav-links {
        display: none; /* Hidden until toggled */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Below the nav bar */
        left: 0;
        width: 100%;
        background: #1a1a1a;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }
    
    .topnav a {
        width: 100%;
        text-align: center;
        padding: 15px;
    }
    
    .hero {
        min-height: 80vh;
        padding: 80px 15px 40px; /* Reduced top padding since nav is smaller */
        margin-bottom: 40px;
    }
    
    #logo {
        max-height: 150px;
    }
    
    section, .join, .features {
        padding: 40px 15px;
        margin-bottom: 40px;
    }
    
    .officer-card {
        margin-bottom: 40px;
    }
    
    footer {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 10px 30px;
        margin-bottom: 30px;
    }
    
    #logo {
        max-height: 120px;
    }
    
    .features {
        grid-template-columns: 1fr;
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    section, .join {
        padding: 30px 10px;
        margin-bottom: 30px;
    }
    
    .officer-card {
        margin-bottom: 30px;
    }
    
    .cta-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    footer {
        margin-top: 30px;
    }
}