html {
    scroll-behavior: smooth;
}

body {
    padding-top: 80px;
}

/* ===== NAVBAR MAIN LINKS (Team/Khelsea/Eep) ===== */
.nav-links-flex a {
    color: #b8c1d9 !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-links-flex a.active {
    color: white !important;
    background-color: #ff8c42 !important;
}

.nav-links-flex a:hover {
    color: white !important;
    background-color: #ff8c42 !important;
}

/* ===== SECTION LINKS (Home/About/Skill) ===== */
.section-links-flex a {
    color: #b8c1d9;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    border-radius: 3px;
    transition: all 0.3s;
    border: 1px solid #2a2a2a;
}

.section-links-flex a:hover,
.section-links-flex a.active {
    color: white;
    background-color: #ff8c42;
    border-color: #ff8c42;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #ff8c42 !important;
}

.card button:hover {
    opacity: 0.9;
}

/* ===== FLEXBOX - VERTICAL STACK ON MOBILE ===== */
.navbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-links-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.section-links-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.card-flex {
    display: flex;
    flex-direction: column;
}

/* ===== SIMPLE GRID FOR CARDS ===== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MEDIA QUERIES - FLEX DIRECTION COLUMN ON MOBILE ===== */
@media (max-width: 767px) {
    body {
        padding-top: 140px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    section h1 {
        font-size: 1.8rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    /* Navbar stacks vertically on mobile */
    .navbar-flex {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-links-flex {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-links-flex li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links-flex a {
        display: block;
        padding: 0.75rem;
    }
    
    .section-links-flex {
        flex-direction: column;
        width: 100%;
        gap: 0.3rem;
    }
    
    .section-links-flex a {
        display: block;
        text-align: center;
        padding: 0.5rem;
    }
    
    .skill-label {
        width: 100px;
        font-size: 0.9rem;
    }
}