*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

:root{
    --bg:#0f172a;
    --card:#1e293b;
    --text:#ffffff;
    --accent:#38bdf8;
}

body.light{
    --bg:#949494;
    --card:#ffffff;
    --text:#747474;
    --accent:#0284c7;
}

body{
    background:var(--bg);
    color:var(--text);
    transition:.3s;
}

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    background:rgba(15,23,42,.9);
    backdrop-filter:blur(10px);
}

.navbar{
    max-width:1200px;
    margin:auto;
    padding:15px 20px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo{
    font-size:1.5rem;
    font-weight:700;
    color:var(--accent);
}

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

.nav-links a{
    color:var(--text);
    text-decoration:none;
    transition:.3s;
}

.nav-links a:hover{
    color:var(--accent);
}

#themeToggle{
    width:70px;
    height:40px;

    border:none;
    border-radius:999px;

    background:var(--card);

    color:var(--accent);

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:1.2rem;

    transition:all 0.3s ease;

    box-shadow:0 4px 15px rgba(0,0,0,.2);
}

#themeToggle:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 20px rgba(0,0,0,.3);
}

#themeToggle i{
    transition:transform .4s ease;
}

#themeToggle:hover i{
    transform:rotate(360deg);
}

.hero{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:100px 20px;
    background:
    linear-gradient(rgba(0,0,0,.6),rgba(0,0,0,.6)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1600&q=80");
    background-size:cover;
    background-position:center;
}

.hero h1{
    font-size:4rem;
}

.hero h2{
    color:var(--accent);
    margin:15px 0;
    min-height:40px;
}

.hero p{
    max-width:700px;
    margin:auto;
}

.hero-buttons{
    margin-top:25px;
}

.btn{
    display:inline-block;
    padding:12px 25px;
    background:var(--accent);
    color:white;
    text-decoration:none;
    border:none;
    border-radius:30px;
    margin:5px;
    cursor:pointer;
}

.secondary{
    background:transparent;
    border:2px solid var(--accent);
}

section{
    padding:90px 10%;
}



.about-container{
    display:flex;
    justify-content:center;
}

.about-card{
    max-width:900px;
    width:100%;

    display:flex;
    align-items:center;
    gap:30px;

    padding:35px;

    border-radius:25px;

    background:rgba(255,255,255,.04);

    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.08);

    transition:.4s;
}

.about-card:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(56,189,248,.15);
}

.about-icon{
    min-width:100px;
    width:100px;
    height:100px;

    border-radius:50%;

    display:flex;
    align-items:center;
    justify-content:center;

    background:linear-gradient(
        135deg,
        #38bdf8,
        #6366f1
    );

    color:white;
    font-size:2.5rem;
}

.about-text h3{
    color:#38bdf8;
    margin-bottom:10px;
    font-size:2rem;
}

.about-text p{
    color:#cbd5e1;
    line-height:1.8;
    margin-bottom:10px;
}
@media (max-width:768px){

    .about-card{
        flex-direction:column;
        text-align:center;
        padding:25px;
    }

    .about-icon{
        margin-bottom:15px;
    }

    .about-text h3{
        font-size:1.8rem;
    }

    .about-text p{
        font-size:1rem;
        line-height:1.7;
    }

}

.stats{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

    gap:20px;

    margin-top:50px;

    padding:30px;

    border-radius:25px;

    background:linear-gradient(
        135deg,
        rgba(56,189,248,.08),
        rgba(99,102,241,.08)
    );

    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.08);

    position:relative;

    overflow:hidden;
}
.stats::before{
    content:"";

    position:absolute;

    width:300px;
    height:300px;

    background:#38bdf8;

    opacity:.08;

    border-radius:50%;

    filter:blur(100px);

    top:-100px;
    left:-100px;
}
.stats::after{
    content:"";

    position:absolute;

    width:250px;
    height:250px;

    background:#6366f1;

    opacity:.08;

    border-radius:50%;

    filter:blur(100px);

    bottom:-100px;
    right:-100px;
}
.stat-box{
    position:relative;
    z-index:2;
}

.stat-box{
    min-height:160px;
}
.stat-box{
    background:rgba(255,255,255,.05);

    backdrop-filter:blur(10px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    padding:30px 20px;

    text-align:center;

    transition:.3s;

    position:relative;

    overflow:hidden;
}

.stat-box:hover{
    transform:translateY(-8px);

    box-shadow:0 15px 30px rgba(56,189,248,.2);
}

.stat-box i{
    font-size:2rem;

    color:#38bdf8;

    margin-bottom:15px;
}

.counter{
    font-size:3rem;

    font-weight:700;

    color:white;

    margin-bottom:5px;
}

.stat-box p{
    color:#94a3b8;

    font-size:1rem;
}

.stat-box::before{
    content:"";

    position:absolute;

    inset:0;

    background:linear-gradient(
        135deg,
        rgba(56,189,248,.08),
        rgba(99,102,241,.08)
    );

    opacity:0;

    transition:.3s;
}

.stat-box:hover::before{
    opacity:1;
}

.stat-box *{
    position:relative;
    z-index:1;
}


.project-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:25px;
}

.project-card{
    background:var(--card);
    border-radius:15px;
    overflow:hidden;
    transition:.3s;
}

.project-card:hover{
    transform:translateY(-10px);
}

.project-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.project-info{
    padding:20px;
}

.contact-form{
    width:100%;
    max-width:500px;
    margin:auto;
    padding:25px;
    background:rgba(255,255,255,.03);
    border-radius:25px;
    border:1px solid rgba(255,255,255,.08);
}

.input-box{
    display:flex;
    align-items:center;
    gap:15px;

    width:100%;

    background:#182544;

    padding:18px;

    margin-bottom:15px;

    border-radius:18px;
}

.input-box i{
    font-size:1.3rem;
    color:#38bdf8;
    min-width:25px;
}

.input-box input,
.input-box textarea{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    color:white;
    font-size:1rem;
}

.input-box textarea{
    min-height:120px;
    resize:none;
}

.submit-btn{
    width:100%;

    height:60px;

    border:none;
    border-radius:18px;

    background:linear-gradient(
        135deg,
        #38bdf8,
        #6366f1
    );

    color:white;

    font-size:1.1rem;
    font-weight:600;

    cursor:pointer;

    transition:.3s;
}

.submit-btn:hover{
    transform:translateY(-3px);
}

@media(max-width:768px){

    .contact-form{
        padding:15px;
    }

    .input-box{
        padding:15px;
    }

}

footer{
    text-align:center;
    padding:40px 20px;
    background:#020617;
}

.socials{
    margin:15px 0;
}

.socials a{
    color:var(--accent);
    text-decoration:none;
    margin:0 10px;
}

#topBtn{
    position:fixed;
    bottom:20px;
    right:20px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:var(--accent);
    color:white;
    cursor:pointer;
    display:none;
    font-size:20px;
}

.show{
    opacity:1 !important;
    transform:translateY(0) !important;
}

.project-card,
.stat-box,
.skill{
    opacity:0;
    transform:translateY(40px);
    transition:.7s;
}

@media(max-width:768px){

.hero h1{
    font-size:2.5rem;
}

.nav-links{
    display:none;
}

.about-container{
    text-align:center;
    justify-content:center;
}

.about-container img{
    width:250px;
}

.section-title{
    text-align:center;

    font-size:clamp(2rem,5vw,3rem);

    font-weight:800;

    margin-bottom:50px;

    color:white;

    position:relative;

    text-transform:uppercase;

    letter-spacing:2px;
}

.section-title::before{
    content:"";

    position:absolute;

    left:50%;
    bottom:-15px;

    transform:translateX(-50%);

    width:80px;
    height:4px;

    border-radius:999px;

    background:linear-gradient(
        90deg,
        #38bdf8,
        #6366f1
    );
}

.section-title::after{
    content:"";

    position:absolute;

    left:50%;
    bottom:-22px;

    transform:translateX(-50%);

    width:35px;
    height:35px;

    border-radius:50%;

    background:rgba(56,189,248,.15);

    filter:blur(10px);
}
.section-title{
    animation:titleFade 5s ease;
}

@keyframes titleFade{
    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}
}
.logo{
    display:flex;
    align-items:center;
}

.logo img{
    height:60px;
    width:auto;
}
@media(max-width:768px){

.logo img{
    height:45px;
}

}
.socials{
    display:flex;
    justify-content:center;
    gap:20px;
    margin-top:20px;
}

.socials a{
    width:50px;
    height:50px;
    background:var(--card);
    color:var(--accent);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:1.3rem;
    transition:.3s;
}

.socials a:hover{
    transform:translateY(-5px);
    background:var(--accent);
    color:white;
}
.logo-link{
    display:flex;
    align-items:center;
    gap:10px;

    text-decoration:none;
    color:var(--accent);

    font-weight:700;
    font-size:2rem;
}
.skills-container{
    width:100%;
    max-width:700px;
    margin:auto;

    padding:30px;

    background:rgba(255,255,255,.03);

    backdrop-filter:blur(15px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:25px;
}

.skill{
    margin-bottom:25px;
}

.skill:last-child{
    margin-bottom:0;
}

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

    color:white;

    font-weight:600;

    margin-bottom:10px;
}

.bar{
    height:14px;

    background:#111827;

    border-radius:999px;

    overflow:hidden;

    box-shadow:
    inset 0 2px 8px rgba(0,0,0,.4);
}

.progress{
    height:100%;

    width:0;

    border-radius:999px;

    animation:fill 2s ease forwards;
}

.html{
    --width:95%;
    background:linear-gradient(
        90deg,
        #38bdf8,
        #0ea5e9
    );

    box-shadow:0 0 15px #38bdf8;
}

.css{
    --width:90%;
    background:linear-gradient(
        90deg,
        #8b5cf6,
        #6366f1
    );

    box-shadow:0 0 15px #8b5cf6;
}

.js{
    --width:85%;
    background:linear-gradient(
        90deg,
        #06b6d4,
        #14b8a6
    );

    box-shadow:0 0 15px #06b6d4;
}

@keyframes fill{

    from{
        width:0;
    }

    to{
        width:var(--width);
    }

}
