@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: white;
    overflow-x: hidden;
}

/* HEADER */

header {
    text-align: center;
    padding: 60px 20px 30px 20px;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 5px;
    background: linear-gradient(90deg, #00f5a0, #00d9f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 10px #00f5a0); }
    to { filter: drop-shadow(0 0 25px #00d9f5); }
}

/* NAV */

nav {
    text-align: center;
    padding-bottom: 30px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    position: relative;
    transition: 0.3s;
}

nav a::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #00f5a0;
    position: absolute;
    bottom: -5px;
    left: 0;
    transition: 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* HERO */

.hero {
    max-width: 900px;
    margin: auto;
    text-align: center;
    padding: 80px 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
}

.hero p {
    margin-bottom: 15px;
    font-weight: 300;
    opacity: 0.9;
}

/* CARDS */

.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 50px 20px 100px 20px;
}

.card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    width: 320px;
    text-align: center;
    transition: 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
}

/* BUTTON */

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    border-radius: 30px;
    background: linear-gradient(90deg, #00f5a0, #00d9f5);
    color: black;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,245,160,0.4);
}

.disabled {
    background: gray;
    cursor: not-allowed;
}

/* FOOTER */

footer {
    text-align: center;
    padding: 25px;
    background: rgba(0,0,0,0.4);
    font-size: 0.9rem;
}

/* FADE IN ANIMATION */

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0px);
}

/* RESPONSIVE */

@media(max-width: 768px){
    .logo {
        font-size: 2.5rem;
    }

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

    .cards {
        flex-direction: column;
        align-items: center;
    }
}
/* PAGE PROJETS */

.projects-container {
    min-height: 70vh;
    padding: 100px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Alignement parfait des cards */
.projects-container .card {
    width: 320px;
    max-width: 100%;
}

/* Responsive propre */
@media(max-width: 1000px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
    }
}
