/* ============================
   GOOGLE FONT
============================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');


/* ============================
   CSS RESET
============================ */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


/* ============================
   ROOT VARIABLES
============================ */

:root{

    --primary:#2563EB;
    --secondary:#38BDF8;

    --background:#0F172A;
    --surface:#1E293B;

    --white:#F8FAFC;
    --gray:#CBD5E1;

    --radius:12px;

    --transition:0.3s ease;
}


/* ============================
   GLOBAL STYLES
============================ */

html{
    scroll-behavior:smooth;
}


img{
    max-width:100%;
    display:block;
}


ul{
    list-style:none;
}


a{

    text-decoration:none;

    color:inherit;
}


section{

    padding:100px 10%;
}


h1{

    font-size:3.8rem;

    line-height:1.2;
}


h2{

    font-size:2.3rem;

    margin-bottom:20px;
}


h3{

    margin-bottom:15px;
}


p{

    color:var(--gray);

    margin-bottom:20px;
}


/* ============================
   HEADER
============================ */

header{

    width:100%;

    position:fixed;

    top:0;

    left:0;

    background:rgba(15,23,42,.90);

    backdrop-filter:blur(12px);

    z-index:1000;

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



 nav{

    width:90%;

    margin:auto;

    height:80px;

    display:flex;

    justify-content:space-between;

    align-items:center;
}

nav h2{

    font-size:2rem;

    font-weight:700;
}

nav ul{

    display:flex;

    gap:40px;
}

nav ul li a{

    position:relative;

    transition:.3s;
}

nav ul li a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:#38BDF8;

    transition:.35s;
}

nav ul li a:hover::after{

    width:100%;
}

body{

    font-family:'Poppins',sans-serif;

    color:var(--white);

    background:

    radial-gradient(
        circle at top right,
        rgba(37,99,235,.20),
        transparent 40%
    ),

    radial-gradient(
        circle at bottom left,
        rgba(56,189,248,.10),
        transparent 35%
    ),

    #0F172A;

    line-height:1.7;
}


/*======================================
            HERO
=======================================*/

.hero{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:80px;

    padding-top:90px;
}

.hero-content{

    flex:1;
}

.hero-greeting{

    color:var(--secondary);

    font-size:1rem;

    font-weight:600;

    letter-spacing:1px;

    margin-bottom:15px;
}

.hero h1{

    font-size:5rem;

    line-height:1.1;

    margin-bottom:15px;
}

.hero h2{

    font-size:2rem;

    color:var(--secondary);

    margin-bottom:30px;
}

.hero-description{

    font-size:1.15rem;

    color:var(--gray);

    max-width:620px;

    margin-bottom:45px;

    line-height:1.8;
}

.hero-buttons{

    display:flex;

    gap:20px;

    flex-wrap:wrap;
}


.btn{

    display:inline-block;

    padding:16px 34px;

    border-radius:12px;

    font-size:1rem;

    font-weight:600;

    text-decoration:none;

    transition:.35s;

    cursor:pointer;
}

.primary-btn{

    background:#2563EB;

    color:#fff;
}

.primary-btn:hover{

    background:#1D4ED8;

    transform:translateY(-5px);

    box-shadow:0 15px 35px rgba(37,99,235,.35);
}


.secondary-btn{

    background:transparent;

    color:white;

    border:2px solid #2563EB;
}

.secondary-btn:hover{

    background:#2563EB;

    color:#fff;

    transform:translateY(-5px);

    box-shadow:0 15px 35px rgba(37,99,235,.35);
}



.hero-image{

    flex:1;

    display:flex;

    justify-content:flex-end;
}

.hero-image img{

    width:500px;

    max-width:100%;

    border-radius:24px;

    box-shadow:0 20px 50px rgba(0,0,0,.35);
}


/*======================================
            ABOUT
=======================================*/

.about{

    display:grid;

    grid-template-columns:1.2fr 1fr;

    gap:70px;

    align-items:center;
}

.section-title{

    color:var(--secondary);

    font-weight:600;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:15px;
}

.about h2{

    font-size:3rem;

    margin-bottom:30px;

    line-height:1.2;
}

.about-text p{

    margin-bottom:20px;

    color:var(--gray);

    font-size:1.05rem;
}

.about-cards{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;
}

.about-card{

    background:var(--surface);

    padding:30px;

    border-radius:20px;

    transition:.35s;

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

.about-card:hover{

    transform:translateY(-10px);

    border-color:#2563EB;

    box-shadow:0 20px 50px rgba(0,0,0,.35);
}

.about-card h3{

    margin-bottom:15px;

    color:var(--secondary);
}

.about-card p{

    margin:0;

    color:var(--gray);
}


/*======================================
            SKILLS
=======================================*/

.skills{

    text-align:center;
}

.skills h2{

    margin-bottom:60px;
}

.skills-container{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;
}

.skill-card{

    background:var(--surface);

    padding:40px 30px;

    border-radius:20px;

    transition:.35s;

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

.skill-card:hover{

    transform:translateY(-10px);

    border-color:#2563EB;

    box-shadow:0 20px 50px rgba(0,0,0,.35);
}

.skill-card h3{

    color:var(--secondary);

    margin-bottom:25px;

    font-size:1.5rem;
}

.skill-card ul{

    display:flex;

    flex-direction:column;

    gap:18px;

    list-style:none;
}

.skill-card ul li{

    color:var(--gray);

    transition:.3s;

    font-size:1rem;
}

.skill-card ul li:hover{

    color:white;

    transform:translateX(8px);
}


/*======================================
            SERVICES
=======================================*/

.services{

    text-align:center;
}

.services h2{

    margin-bottom:60px;
}

.services-container{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;
}

.service-card{

    background:var(--surface);

    padding:40px 30px;

    border-radius:20px;

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

    transition:.35s;
}

.service-card:hover{

    transform:translateY(-10px);

    border-color:#2563EB;

    box-shadow:0 20px 50px rgba(0,0,0,.35);
}

.service-icon{

    font-size:3rem;

    margin-bottom:20px;
}

.service-card h3{

    color:var(--secondary);

    margin-bottom:15px;
}

.service-card p{

    color:var(--gray);

    margin:0;
}


/*======================================
            PROJECTS
=======================================*/

.projects{

    text-align:center;
}

.projects h2{

    margin-bottom:60px;
}

.projects-container{

    display:flex;

    justify-content:center;
}

.project-card{

    width:800px;

    background:var(--surface);

    border-radius:20px;

    overflow:hidden;

    transition:.35s;

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

.project-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 50px rgba(0,0,0,.35);
}

.project-card img{

    width:100%;

    height:280px;

    object-fit:cover;
}

.project-content{

    padding:30px;
}

.project-content h3{

    color:var(--secondary);

    margin-bottom:15px;
}

.tech-stack{

    display:flex;

    justify-content:center;

    gap:12px;

    margin:25px 0;
}

.tech-stack span{

    background:#2563EB;

    padding:8px 15px;

    border-radius:30px;

    font-size:.9rem;
}

.project-buttons{

    display:flex;

    justify-content:center;

    gap:20px;
}


/*======================================
            CONTACT
=======================================*/

.contact{

    text-align:center;
}

.contact p{

    max-width:650px;

    margin:auto;

    margin-bottom:40px;
}

.contact-links{

    display:flex;

    justify-content:center;

    gap:25px;

    flex-wrap:wrap;
}

.contact-links a{

    background:var(--surface);

    padding:18px 30px;

    border-radius:15px;

    transition:.35s;

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

.contact-links a:hover{

    background:#2563EB;

    transform:translateY(-8px);
}


/*======================================
            FOOTER
=======================================*/

footer{

    text-align:center;

    padding:60px 10%;

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

footer h2{

    color:var(--secondary);

    margin-bottom:15px;
}

footer p{

    color:var(--gray);

    margin-bottom:10px;
}



@media(max-width:900px){

    .about{
        grid-template-columns:1fr;
    }

    .about-cards{
        grid-template-columns:1fr;
    }

    .skills-container{
        grid-template-columns:1fr;
    }

    .services-container{
        grid-template-columns:1fr;
    }

    .hero{

        flex-direction:column-reverse;

        text-align:center;
    }

    .hero-buttons{

        justify-content:center;
    }

    .hero h1{

        font-size:3rem;
    }

    .hero-image{

        justify-content:center;
    }

    .projects-container{

        flex-direction:column;
    }

    .project-card{

        width:100%;
    }

}

