
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#cac7c2;
    color:#222;
}

/* Header */

header{
    width:100%;
    background:#0f172a;
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 10%;
    
}

.logo{
    font-size:26px;
    font-weight:700;
}

nav a{
    color:#fff;
    text-decoration:none;
    margin-left:25px;
    transition:.3s;
    font-weight:500;
}

nav a:hover{
    color:#858788;
}

/* Home */

.home{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:80px 10%;
    gap:60px;
}

.home-text{
    flex:1;
}

.home-text h3{
    color:#403a43;
    font-size:25px;
}

.home-text h1{
    font-size:52px;
    margin:10px 0;
}

.home-text h2{
    color:#0f172a;
    margin-bottom:20px;
}

.home-text p{
    line-height:1.8;
    color:#555;
    margin-bottom:30px;
}

.buttons{
    display:flex;
    gap:15px;
}

.btn,
.btn2{
    text-decoration:none;
    padding:12px 28px;
    border-radius:8px;
    transition:.3s;
    font-weight:600;
}

.btn{
    background:#2c2c2d;
    color:white;
}

.btn:hover{
    background:#a5a8aa;
}

.btn2{
    border:2px solid #4a4b4b;
    color:#0c0c0c;
}

.btn2:hover{
    background:#9a9d9e;
    color:rgb(22, 21, 21);
}

.home-image{
    flex:1;
    display:flex;
    justify-content:center;
}

.home-image img{
    width:370px;
    border-radius:20%;
    border:8px solid white;
    box-shadow:0 15px 35px rgba(0,0,0,.2);
}

/* Sections */

section{
    padding:80px 10%;
}

.title{
    text-align:center;
    font-size:38px;
    margin-bottom:50px;
    color:#0f172a;
}

/* About */

.about-box{
    background:rgb(100, 98, 98);
    color: #fff7f7;
    padding:35px;
    border-radius:12px;
    box-shadow:0 8px 20px ;
    text-align:center;
    line-height:2;
}

/* Skills */

.skills-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:20px;
}

.skill{
    background:rgb(220, 211, 211);
    padding:25px;
    border-radius:10px;
    text-align:center;
    font-weight:600;
    box-shadow:0 8px 18px rgba(0,0,0,.08);
    transition:.3s;
}

.skill:hover{
    transform:translateY(-8px);
    background:#a19f96;
    color:white;
}

/* Projects */

.projects{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.card{
    background:rgb(172, 168, 168);
    padding:30px;
    border-radius:12px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.card:hover{
    transform:translateY(-10px);
}

.card h3{
    margin-bottom:15px;
    color:#0f172a;
}

.card p{
    color:#666;
    line-height:1.8;
}

/* Education */

.education-box{
    background:rgb(209, 200, 200);
    padding:35px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.education-box h3{
    margin-bottom:15px;
}

/* Contact */

.contact-box{
    background:rgb(185, 176, 176);
    padding:35px;
    border-radius:12px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.contact-box p{
    margin:15px 0;
}

.contact-box a{
    text-decoration:none;
    color:#000000;
    font-weight:600;
}

/* Footer */

footer{
    background:#0f172a;
    color:white;
    text-align:center;
    padding:20px;
    margin-top:50px;
}

/* Responsive */

@media(max-width:992px){

.home{
    flex-direction:column-reverse;
    text-align:center;
}

.buttons{
    justify-content:center;
}

.home-text h1{
    font-size:40px;
}

.home-image img{
    width:280px;
}

header{
    flex-direction:column;
    gap:15px;
}

nav{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
}

nav a{
    margin:8px;
}

}

@media(max-width:600px){

.home-text h1{
    font-size:32px;
}

.title{
    font-size:30px;
}

.home-image img{
    width:220px;
}


.btn2{
    padding:10px 18px;
}

}