/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL */
body {
    background: #000;
    color: #fff;
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 55px;
}

.logo-text {
    font-family: "Orbitron", sans-serif;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 0 8px #ff004c;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-family: "Orbitron", sans-serif;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #ff004c;
}

/* TEAM SECTION */
.team-section {
    margin-top: 100px;
    padding: 60px 8%;
    text-align: center;
    background: radial-gradient(circle at 50% 20%, #0a0a0a, #000);
}

.team-title {
    font-family: "Orbitron", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 70px;
    color: #fff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
    position: relative;
}

.team-title::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff004c, transparent);
    box-shadow: 0 0 15px #ff004c;
}

/* GRID LAYOUT (equal height rows) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px 60px;
    justify-items: center;
    align-items: stretch;
    margin: 0 auto;
    max-width: 1200px;
}

/* CARD STYLE */
.team-card {
    width: 100%;
    max-width: 310px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.4s ease;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
    text-align: left;
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 580px;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 35px rgba(255, 0, 76, 0.25);
}

.team-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.team-card:hover img {
    transform: scale(1.05);
}

.team-card h3 {
    font-family: "Orbitron", sans-serif;
    font-size: 1.25rem;
    margin-bottom: 6px;
    color: #fff;
    letter-spacing: 0.5px;
}

.team-card .role {
    font-size: 0.95rem;
    color: #ff004c;
    font-weight: 500;
    margin-bottom: 12px;
    text-shadow: 0 0 8px rgba(255, 0, 76, 0.2);
}

.team-card .bio {
    font-size: 0.88rem;
    color: #d0d0d0;
    line-height: 1.6;
    opacity: 0.9;
    letter-spacing: 0.3px;
    flex-grow: 1;
}


.team-card.commander {
    border: 1px solid rgba(255, 0, 76, 0.4);
    box-shadow: 0 0 25px rgba(255, 0, 76, 0.15);
}

.team-card.commander:hover {
    box-shadow: 0 0 40px rgba(255, 0, 76, 0.4);
    transform: translateY(-12px);
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .team-card {
        height: 600px;
    }
}

@media (max-width: 700px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .team-card {
        max-width: 360px;
        text-align: center;
        height: auto;
    }

    .team-card img {
        height: 330px;
    }
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff004c, #5f0080);
    border-radius: 10px;
}
/* =======================
   FOOTER
======================= */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.8);
    padding: 30px 10%;
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 -5px 15px rgba(255, 0, 76, 0.05);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer-text {
    font-family: "Orbitron", sans-serif;
    font-size: 0.9rem;
    color: #ccc;
    text-shadow: 0 0 10px rgba(255, 0, 76, 0.15);
}

.footer-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-links a {
    color: #ff004c;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    transition: 0.3s;
}

.footer-links a:hover {
    text-shadow: 0 0 10px #ff004c, 0 0 20px #ff004c;
}

.footer-links span {
    color: #666;
}


@media (max-width: 700px) {
    .footer-text {
        font-size: 0.8rem;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 8px;
    }
}
/* MENU TOGGLE */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    cursor: pointer;
    z-index: 1100;
}

.bar {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}
.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}

/* RESPONSIVE MENU */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -220px;
        width: 200px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(8px);
        transition: right 0.4s ease;
        z-index: 1000;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    nav.open {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    nav ul li a {
        color: #fff;
        font-size: 18px;
        text-decoration: none;
    }
}
/* Fix footer position in short screens */
html, body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

body > footer {
    margin-top: auto;
}
