/* ==========================
   RESET
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
    scroll-behavior:smooth;
}

body{
    background:linear-gradient(135deg,#0f172a,#1e293b,#334155);
    color:#fff;
    transition:.4s;
}

body.dark{
    background:#f5f5f5;
    color:#222;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
}

/* ==========================
   NAVBAR
========================== */

header{
    position:fixed;
    width:100%;
    top:0;
    left:0;
    backdrop-filter:blur(15px);
    background:rgba(15,23,42,.7);
    z-index:999;
}

body.dark header{
    background:rgba(255,255,255,.8);
}

nav{
    width:90%;
    margin:auto;
    height:80px;

    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-size:28px;
    font-weight:700;
}

.logo span{
    color:#38bdf8;
}

.nav-links{
    display:flex;
    list-style:none;
}

.nav-links li{
    margin-left:35px;
}

.nav-links a{
    transition:.3s;
    font-weight:500;
}

.nav-links a:hover{
    color:#38bdf8;
}

#darkMode{

    border:none;
    background:#38bdf8;
    color:white;

    width:45px;
    height:45px;

    border-radius:50%;
    cursor:pointer;

    transition:.3s;

}

#darkMode:hover{

    transform:rotate(180deg);

}

/* ==========================
 HERO
========================== */

.hero{

    min-height:100vh;

    width:90%;

    margin:auto;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:60px;

}

.hero-text{

    flex:1;

}

.hero-text h3{

    color:#38bdf8;
    margin-bottom:10px;

}

.hero-text h1{

    font-size:65px;

    margin-bottom:15px;

}

.hero-text h2{

    font-size:30px;

    color:#cbd5e1;

    margin-bottom:25px;

}

.hero-text p{

    line-height:1.8;
    max-width:600px;

    margin-bottom:35px;

}

.hero-button{

    display:flex;
    gap:20px;

}

.btn{

    background:#38bdf8;

    color:white;

    padding:14px 35px;

    border-radius:50px;

    transition:.3s;

}

.btn:hover{

    transform:translateY(-5px);

}

.btn-outline{

    border:2px solid #38bdf8;

    padding:14px 35px;

    border-radius:50px;

    transition:.3s;

}

.btn-outline:hover{

    background:#38bdf8;

}

.hero-image{

    flex:1;

    display:flex;

    justify-content:center;

}

.hero-image img{

    width:360px;

    border-radius:50%;

    border:8px solid rgba(255,255,255,.1);

    box-shadow:0 0 40px rgba(56,189,248,.5);

}

/* ==========================
SECTION
========================== */

section{

    width:90%;
    margin:auto;
    padding:120px 0;

}

.section-title{

    text-align:center;

    font-size:40px;

    margin-bottom:60px;

    position:relative;

}

.section-title::after{

    content:"";

    width:90px;
    height:4px;

    background:#38bdf8;

    position:absolute;

    bottom:-12px;
    left:50%;

    transform:translateX(-50%);

}

/* ==========================
ABOUT
========================== */

.about-content{

    max-width:900px;

    margin:auto;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(15px);

    border-radius:20px;

    padding:40px;

    line-height:2;

}

/* ==========================
SKILL
========================== */

.skill-box{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(220px,1fr));

gap:30px;

}

.card{

background:rgba(255,255,255,.08);

backdrop-filter:blur(20px);

padding:40px;

border-radius:20px;

text-align:center;

transition:.4s;

}

.card:hover{

transform:translateY(-10px);

}

.card i{

font-size:55px;

margin-bottom:20px;

color:#38bdf8;

}

/* ==========================
PROJECT
========================== */

.project-list{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(320px,1fr));

gap:35px;

}

.project{

background:rgba(255,255,255,.08);

border-radius:20px;

overflow:hidden;

transition:.4s;

}

.project:hover{

transform:translateY(-12px);

}

.project img{

height:220px;

width:100%;

object-fit:cover;

}

.project h3{

padding:20px;

}

.project p{

padding:0 20px 25px;

line-height:1.8;

}

/* ==========================
CONTACT
========================== */

.contact-box{

max-width:700px;

margin:auto;

display:flex;

flex-direction:column;

gap:25px;

}

.contact-item{

background:rgba(255,255,255,.08);

padding:25px;

border-radius:15px;

display:flex;

align-items:center;

gap:20px;

transition:.3s;

}

.contact-item:hover{

transform:translateX(10px);

}

.contact-item i{

font-size:28px;

color:#38bdf8;

}

/* ==========================
FOOTER
========================== */

footer{

margin-top:100px;

padding:50px;

text-align:center;

background:#020617;

}

.social{

margin:30px 0;

}

.social a{

font-size:30px;

margin:0 15px;

transition:.3s;

}

.social a:hover{

color:#38bdf8;

}

footer p{

color:#cbd5e1;

}

/* ==========================
RESPONSIVE
========================== */

@media(max-width:900px){

.hero{

flex-direction:column-reverse;

text-align:center;

padding-top:130px;

}

.hero-text h1{

font-size:45px;

}

.hero-text h2{

font-size:24px;

}

.hero-button{

justify-content:center;

flex-wrap:wrap;

}

.nav-links{

display:none;

}

.hero-image img{

width:280px;

}

.section-title{

font-size:34px;

}

}