*{
    margin: 0;
    padding: 0;
    font-family: "Sans serif","Monospace";
}
html {
    scroll-behavior: smooth;
}

body{
    background: linear-gradient(rgba(20,20,20,0.7), rgba(0,0,0,0.8)), url("./backgroundimages/homeback.jpg") center/cover no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    scroll-snap-type: y mandatory;
}

header{
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(52, 50, 50, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    transition: 0.3s ease;
}

/* scroll effect */
header.scrolled{
    background: rgba(0, 0, 0, 0.9); /* darker on scroll */
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* layout */
.main{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.logo img{
    width: 200px;  
    height:auto; 
}

/* NAV */
ul{
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    list-style-type: none; 
    margin-top: 25px;
    font-size: 1.5rem;
}

ul li a{
    text-decoration: none;  
    color: rgb(193, 41, 41);      
    padding: 5px 20px;                    
    border-radius: 5rem;           
    transition: 0.6s ease;      
}
ul li a:hover{   
    background-color: rgb(245, 249, 250);            
    color: rgb(14, 14, 14);                
}
ul li.active a{                         
    background-color: rgb(193, 41, 41);        
    color: white;     
}
.menu-toggle{
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}
.hero,
.section {
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero{
    padding: 140px 5% 100px;
    text-align: center;
}

.hero h1{
    font-size: 10rem;
    color: rgb(193,41,41);
    text-shadow: 4px 4px black;
}

.hero h2{
    color: rgb(193, 41, 41);
    font-size: 1.5rem;
    margin-top: 10px;
    opacity: 0.8;
    text-shadow: 2px 2px black;
}
.hero-buttons{
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-buttons a{
    border: 2px solid rgb(193,41,41);
    padding: 10px 25px;
    border-radius: 40px;
    text-decoration: none;
    color: black;
    background: #ffe6e6;
    transition: 0.3s;
}

.hero-buttons a:hover{
    background: white;
}
.section{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section h2{
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: rgb(193,41,41);
    
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    padding: 60px;
    border-radius: 20px;
    transition: 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.card:hover {
    transform: translateY(-15px) scale(1.03);
}
/* stagger effect */
.why.show .card:nth-child(1) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.why.show .card:nth-child(2) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.why.show .card:nth-child(3) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}
.why.show .card:nth-child(4) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}
.why.show .card:nth-child(5) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}
.why.show .card:nth-child(6) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}
.why {
    background: linear-gradient(rgba(81, 35, 35, 0.85), rgba(0,0,0,0.95));
    opacity: 0;
    transform: translateY(80px);
    transition: all 1s ease;
}

.why h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    margin-top: 40px;
}
.why h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 20px;
}
.why h4 {
    margin-top: 10px;
    margin-bottom: 50px;
}
.why.show {
    opacity: 1;
    transform: translateY(0);
}

/* TEAM GRID */
.team h2 {
    font-size: 3rem;
    margin-bottom: 30px;
    margin-top: 40px;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: auto;
}

/* TEAM CARD */
.team-card {
    text-align: center;
    padding: 40px 25px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(15px);
    transition: 0.4s ease;
    cursor: pointer;
    transition: 0.3s ease;
}

/* IMAGE */
.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid rgb(193,41,41);
}

/* NAME */
.team-card h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

/* ROLE */
.team-card .role {
    font-size: 1 rem;
    color: whitesmoke;
    font-style: italic;
    margin-bottom: 15px;
}

/* DESCRIPTION */
.team-card p {
    font-size: 1 rem;
    line-height: 1.5;
    opacity: 0.85;
}

/* HOVER EFFECT */
.team-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(183, 103, 103, 0.6);
    color: rgb(193,41,41);
}
.team-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
/* stagger effect */
.team.show .card:nth-child(1) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.team.show .card:nth-child(2) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.team.show .card:nth-child(3) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
} 
.team.show .card:nth-child(4) {
    transition-delay: 0.8s;
    opacity: 1;
    transform: translateY(0);
} 

/* FOOTER */
.footer{
    padding:50px 5% 20px;
}

.footer-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:30px;
}

.footer-col h4{
    color:rgb(193,41,41);
    margin-bottom:10px;
}

.footer-col ul{
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem; 
}

.footer-col a{
    display: inline-block;
    padding: 6px 14px;
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}
.footer-col a:hover {
    background: white;
    color: black;
}
.footer-bottom{
    text-align:center;
    margin-top:20px;
    opacity:0.7;
}

/* MOBILE */
@media (max-width: 768px){

    .menu-toggle{
        display: block;
        z-index: 1100;
    }

    /* NAV MENU */
    ul{
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;

        background: rgba(0,0,0,0.95);
        backdrop-filter: blur(10px);

        flex-direction: column;
        align-items: center;

        display: none;
        padding: 20px 0;
        z-index: 1000;
    }
    ul.active{
        display: flex;
    }

    ul li{
        margin: 10px 0;
    }

    /* HERO TEXT */
    .hero h1{
        font-size: 2.5rem;
    }

    .hero h2{
        font-size: 1rem;
    }

    /* SECTION SPACING FIX */
    .section{
        padding: 80px 5%;
    }

    /* GRID STACK CLEANLY */
    .grid{
        grid-template-columns: 1fr;
    }

    /* FOOTER FIX */
    .footer{
        text-align: center;
    }

    .footer-container{
        grid-template-columns: 1fr;
        gap: 20px;
    }
}