*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
    scroll-behavior:smooth;
}

body{
    background:#f8f8f8;
    color:#222;
    transition:.4s;
}

header{
    background:#fcf5f5;
    position:fixed;
    width:100%;
    top:0;
    z-index:100;
}

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 10%;
}

.logo{
    color:white;
}

.nav-links{
    display:flex;
    list-style:none;
}

.nav-links li{
    margin-left:20px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    transition:.3s;
}

.nav-links a:hover{
    color:#000000;
}

#themeBtn{
    background:white;
    border:none;
    padding:8px 12px;
    border-radius:5px;
    cursor:pointer;
}

section{
    padding:100px 10%;
}

.hero{
    height:100vh;
    display:flex;
    align-items:center;
}

.hero span{
    color:#050607;
}

.hero h1{
    font-size:50px;
}

.hero h2{
    margin:10px 0;
}

.hero p{
    max-width:500px;
    margin:20px 0;
}

.btn{
    display:inline-block;
    padding:12px 25px;
    background:#000000;
    color:white;
    text-decoration:none;
    border-radius:5px;
}

.about p{
    max-width:700px;
    margin:auto;
    text-align:center;
    line-height:1.7;
}

.skills h2,
.projects h2,
.about h2,
.contact h2{
    text-align:center;
    margin-bottom:40px;
}

.skill-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
    gap:20px;
}

.card{
    background:white;
    padding:30px;
    text-align:center;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
}

.project-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.project-card{
    background:white;
    padding:25px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

.contact form{
    max-width:600px;
    margin:auto;
    display:flex;
    flex-direction:column;
}

.contact input,
.contact textarea{
    padding:15px;
    margin:10px 0;
    border:1px solid gray;
    border-radius:5px;
}

.contact button{
    padding:15px;
    border:none;
    background:#000000;
    color:white;
    cursor:pointer;
}

footer{
    background:#000000;
    color:white;
    text-align:center;
    padding:20px;
}

.dark{
    background:#121212;
    color:white;
}

.dark .card,
.dark .project-card,
.dark input,
.dark textarea{
    background:#1f1f1f;
    color:white;
}

.reveal{
    opacity:0;
    transform:translateY(50px);
    transition:1s;
}

.reveal.active{
    opacity:1;
    transform:translateY(0);
}

@media(max-width:768px){

.hero h1{
    font-size:35px;
}

nav{
    flex-direction:column;
}

.nav-links{
    margin-top:15px;
}
}

.hero{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:60px;
    min-height:100vh;
    flex-wrap:wrap;
}

.hero-image img{
    width:280px;
    height:280px;
    object-fit:cover;
    border-radius:50%;
    border:6px solid #000000;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
}

.hero-text{
    max-width:550px;
}

.hero-text h1{
    font-size:3rem;
}

.hero-text h2{
    color:#000000;
    margin:15px 0;
}

.hero-text p{
    line-height:1.8;
    margin-bottom:25px;
}

@media(max-width:768px){

.hero{
    flex-direction:column;
    text-align:center;
}

.hero-image img{
    width:220px;
    height:220px;
}

}