*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI',sans-serif;
scroll-behavior:smooth;
}

body{
background:#f4f4f4;
color:#333;
}

header{
background:#0f172a;
padding:20px 10%;
position:fixed;
width:100%;
top:0;
z-index:1000;
}

.navbar{
display:flex;
justify-content:space-between;
align-items:center;
}

.logo{
color:white;
font-size:24px;
}

.logo span{
color:#00c9a7;
}

.nav-links{
list-style:none;
display:flex;
}

.nav-links li{
margin-left:25px;
}

.nav-links a{
text-decoration:none;
color:white;
transition:0.3s;
}

.nav-links a:hover{
color:#00c9a7;
}

.hero{
height:100vh;
background:linear-gradient(to right,#0f172a,#1e293b);
color:white;
display:flex;
align-items:center;
padding:0 10%;
margin-top:80px;
}

.hero-content h2 span{
color:#00c9a7;
}

.hero-content h2{
font-size:40px;
}

.hero-content h3{
margin:15px 0;
font-weight:400;
}

.hero-content p{
margin-bottom:20px;
}

.btn{
background:#00c9a7;
color:white;
padding:12px 25px;
text-decoration:none;
border-radius:5px;
transition:0.3s;
display:inline-block;
}

.btn:hover{
background:#00a98b;
}

section{
padding:80px 10%;
}

section h2{
text-align:center;
margin-bottom:40px;
color:#0f172a;
}

.about-content{
display:flex;
align-items:center;
gap:40px;
}

.about-text{
flex:1;
}

.about-image img{
width:250px;
border-radius:50%;
border:5px solid #00c9a7;
}

.project-cards{
display:flex;
gap:20px;
justify-content:center;
}

.card{
background:white;
padding:25px;
border-radius:10px;
width:300px;
text-align:center;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
transition:0.3s;
}

 .card:hover{
transform:translateY(-10px) scale(1.05);
box-shadow:0 15px 30px rgba(0,0,0,0.2);
transition:0.4s;
}

.btn-small{
margin-top:15px;
padding:8px 18px;
background:#00c9a7;
border:none;
color:white;
border-radius:5px;
cursor:pointer;
}

.skills-container{
display:flex;
gap:40px;
justify-content:center;
}

.skill-box{
background:white;
padding:30px;
border-radius:10px;
width:300px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
}

.contact{
background:#0f172a;
color:white;
text-align:center;
}

.contact form{
margin-top:30px;
display:flex;
flex-direction:column;
gap:15px;
align-items:center;
}

.contact input,
.contact textarea{
width:60%;
padding:10px;
border-radius:5px;
border:none;
}

.contact textarea{
height:120px;
}

.contact .btn{
width:200px;
}

footer{
background:#111;
color:white;
text-align:center;
padding:15px;
}

@media(max-width:900px){

.about-content,
.project-cards,
.skills-container{
flex-direction:column;
align-items:center;
}

.contact input,
.contact textarea{
width:90%;
}

}

section{
opacity:0;
transform:translateY(50px);
}
/* Menu mobile toggle */
.navbar{
    flex-wrap:wrap;
}

.nav-toggle{
    display:none;
    cursor:pointer;
    font-size:28px;
    color:white;
}

@media(max-width:768px){
    .nav-links{
        display:none;
        flex-direction:column;
        width:100%;
        background:#0f172a;
        margin-top:10px;
    }
    .nav-links li{
        margin:15px 0;
        text-align:center;
    }
    .nav-toggle{
        display:block;
    }
}

/* WhatsApp flottant */
.whatsapp-btn{
position:fixed;
bottom:30px;
right:30px;
background:#25D366;
color:white;
padding:15px 20px;
border-radius:50px;
font-size:18px;
text-decoration:none;
box-shadow:0 5px 15px rgba(0,0,0,0.3);
transition:0.3s;
z-index:1000;
}

.whatsapp-btn:hover{
background:#1ebe5b;
transform:translateY(-3px);
}

.nav-links.active{
    display:flex;
}

/* Lightbox / Pop-up projet */
.lightbox{
    display:none;
    position:fixed;
    z-index:2000;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.8);
    justify-content:center;
    align-items:center;
}

.lightbox-img{
    max-width:80%;
    max-height:80%;
    border-radius:10px;
    box-shadow:0 5px 20px rgba(0,0,0,0.5);
}

.lightbox .close{
    position:absolute;
    top:30px;
    right:30px;
    color:white;
    font-size:40px;
    cursor:pointer;
}