/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

html{
    scroll-behavior:smooth;
}

/* =========================
   ROOT VARIABLES
========================= */

:root{

    --bg:#eef6ff;
    --bg2:#dceeff;
    --white:#ffffff;

    --primary:#4da8ff;
    --secondary:#8ed0ff;

    --text:#17324d;
    --muted:#5f7891;

    --glass:rgba(255,255,255,0.42);

    --shadow:
    0 10px 30px rgba(77,168,255,.12);

}

/* =========================
   BODY
========================= */

body{

    min-height:100vh;
    overflow-x:hidden;

    color:var(--text);

    background:
    linear-gradient(
        135deg,
        #eef6ff,
        #dceeff,
        #f8fcff
    );

    background-attachment:fixed;

    position:relative;
}

/* subtle background glow */

body::before{

    content:'';

    position:fixed;

    width:500px;
    height:500px;

    border-radius:50%;

    background:
    radial-gradient(
        circle,
        rgba(142,208,255,.35),
        transparent 70%
    );

    top:-150px;
    left:-150px;

    z-index:-1;

}

body::after{

    content:'';

    position:fixed;

    width:450px;
    height:450px;

    border-radius:50%;

    background:
    radial-gradient(
        circle,
        rgba(77,168,255,.20),
        transparent 70%
    );

    bottom:-120px;
    right:-120px;

    z-index:-1;

}

/* =========================
   NAVBAR
========================= */

nav{

    width:100%;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:22px 70px;

    position:sticky;
    top:0;

    z-index:999;

    background:rgba(255,255,255,.35);

    backdrop-filter:blur(14px);

    border-bottom:
    1px solid rgba(255,255,255,.45);

}

/* logo */

.logo{

    font-size:1.4rem;
    font-weight:700;

    color:var(--primary);

    letter-spacing:2px;

}

/* nav links */

.nav-links{

    display:flex;
    align-items:center;
}

.nav-links a{

    margin-left:30px;

    text-decoration:none;

    color:var(--text);

    font-weight:500;

    position:relative;

    transition:.3s ease;

}

/* hover underline */

.nav-links a::after{

    content:'';

    position:absolute;

    left:0;
    bottom:-6px;

    width:0%;
    height:2px;

    background:var(--primary);

    transition:.35s ease;

}

.nav-links a:hover::after{
    width:100%;
}

.nav-links a:hover{
    color:var(--primary);
}

/* =========================
   HERO
========================= */

.hero{

    position:relative;

    min-height:92vh;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;

    padding:0 20px;

    overflow:hidden;

}

/* smaller hero */

.small-hero{
    min-height:55vh;
}

/* hero content */

.hero-content{

    position:relative;
    z-index:2;

    max-width:850px;

}

/* hero glow */

.hero-glow{

    position:absolute;
    border-radius:50%;

    filter:blur(100px);

}

/* glow 1 */

.glow-1{

    width:320px;
    height:320px;

    background:#8ed0ff;

    top:10%;
    left:5%;

    opacity:.35;

}

/* glow 2 */

.glow-2{

    width:260px;
    height:260px;

    background:#4da8ff;

    bottom:10%;
    right:5%;

    opacity:.25;

}

/* top label */

.hero-top{

    font-size:.9rem;

    letter-spacing:4px;

    color:var(--primary);

    margin-bottom:20px;

    font-weight:600;

}

/* title */

.hero h2{

    font-size:4.2rem;

    line-height:1.1;

    margin-bottom:20px;

    font-weight:800;

}

/* animated word */

.dynamic-word{

    display:inline-block;

    color:var(--primary);

    text-shadow:
    0 0 20px rgba(77,168,255,.35);

}

/* description */

.hero-description{

    font-size:1.1rem;

    line-height:1.8;

    color:var(--muted);

    max-width:700px;

    margin:auto auto 35px;

}

/* =========================
   HERO WORD ANIMATION
========================= */

.animate{
    animation:floatWord .6s ease;
}

@keyframes floatWord{

    0%{
        opacity:0;
        transform:translateY(25px);
    }

    100%{
        opacity:1;
        transform:translateY(0);
    }

}

/* =========================
   BUTTONS
========================= */

.hero-buttons{

    display:flex;
    justify-content:center;
    gap:18px;

}

/* primary */

.btn-primary{

    padding:14px 34px;

    border:none;
    border-radius:40px;

    background:
    linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );

    color:white;

    font-size:1rem;
    font-weight:600;

    cursor:pointer;

    transition:.35s ease;

    box-shadow:
    0 10px 30px rgba(77,168,255,.25);

}

/* primary hover */

.btn-primary:hover{

    transform:translateY(-4px);

    box-shadow:
    0 15px 35px rgba(77,168,255,.35);

}

/* secondary */

.btn-secondary{

    padding:14px 34px;

    border-radius:40px;

    border:2px solid var(--primary);

    background:white;

    color:var(--primary);

    font-size:1rem;
    font-weight:600;

    cursor:pointer;

    transition:.35s ease;

}

/* secondary hover */

.btn-secondary:hover{

    background:var(--primary);

    color:white;

}

/* =========================
   GENERAL SECTION
========================= */

section{
    padding:90px 70px;
}

/* section title */

.section-title{

    text-align:center;

    font-size:2.6rem;

    margin-bottom:55px;

    color:var(--text);

}

/* =========================
   GRID
========================= */

.grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:30px;

}

/* =========================
   PROJECT CARDS
========================= */

.project-card{

    background:var(--glass);

    border-radius:26px;

    overflow:hidden;

    backdrop-filter:blur(14px);

    border:
    1px solid rgba(255,255,255,.45);

    transition:.4s ease;

    box-shadow:var(--shadow);

}

/* hover */

.project-card:hover{

    transform:translateY(-10px);

    box-shadow:
    0 20px 40px rgba(77,168,255,.18);

}

/* image */

.image-box{

    height:220px;
    overflow:hidden;

}

.image-box img{

    width:100%;
    height:100%;

    object-fit:cover;

    transition:.5s ease;

}

/* image hover */

.project-card:hover img{
    transform:scale(1.08);
}

/* content */

.project-content{
    padding:25px;
}

.project-content h3{

    margin-bottom:12px;

    font-size:1.3rem;

}

.project-content p{

    color:var(--muted);

    line-height:1.7;

    margin-bottom:20px;

}

.project-content span{

    color:var(--primary);

    font-size:.92rem;

    font-weight:600;

}

/* =========================
   ABOUT PAGE
========================= */

.about-container{
    padding:90px 70px;
}

.about-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:60px;

    align-items:center;

}

/* image */

.about-image img{

    width:100%;

    border-radius:30px;

    box-shadow:
    0 20px 40px rgba(77,168,255,.16);

}

/* text */

.about-text h2{

    font-size:2.2rem;

    margin-bottom:20px;

}

.about-text p{

    color:var(--muted);

    line-height:1.9;

    margin-bottom:18px;

}

/* info cards */

.about-info{

    display:flex;
    gap:20px;

    margin-top:30px;

}

.about-info div{

    flex:1;

    background:rgba(255,255,255,.45);

    padding:22px;

    border-radius:22px;

    backdrop-filter:blur(12px);

    box-shadow:var(--shadow);

    transition:.35s ease;

}

.about-info div:hover{

    transform:translateY(-5px);

}

/* =========================
   SKILLS PAGE
========================= */

.skills-container{
    padding:90px 70px;
}

.skills-grid{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(260px,1fr));

    gap:30px;

}

/* card */

.skill-card{

    background:rgba(255,255,255,.45);

    padding:28px;

    border-radius:25px;

    backdrop-filter:blur(12px);

    transition:.35s ease;

    box-shadow:var(--shadow);

}

/* hover */

.skill-card:hover{

    transform:translateY(-8px);

}

/* title */

.skill-card h3{

    margin-bottom:12px;

    font-size:1.2rem;

}

/* paragraph */

.skill-card p{

    color:var(--muted);

}

/* bar */

.bar{

    width:100%;
    height:10px;

    background:#dbefff;

    border-radius:30px;

    overflow:hidden;

    margin-top:16px;

}

/* fill */

.fill{

    height:100%;

    border-radius:30px;

    background:
    linear-gradient(
        90deg,
        #4da8ff,
        #8ed0ff
    );

    animation:load 2s forwards;

}

/* skill widths */

.html{ width:70%; }
.backend{ width:65%; }
.database{ width:80%; }
.uiux{ width:85%; }

/* load animation */

@keyframes load{

    from{
        width:0;
    }

}

/* =========================
   CONTACT PAGE
========================= */

.contact-container{
    padding:90px 70px;
}

.contact-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:30px;

}

/* card */

.contact-card{

    background:rgba(255,255,255,.45);

    padding:32px;

    border-radius:25px;

    backdrop-filter:blur(12px);

    box-shadow:var(--shadow);

}

/* title */

.contact-card h3{

    margin-bottom:20px;

    font-size:1.5rem;

}

/* text */

.contact-card p{

    color:var(--muted);

    margin-bottom:14px;

}

/* form */

form{

    display:flex;
    flex-direction:column;

    gap:15px;

}

/* inputs */

input,
textarea{

    padding:15px;

    border:none;

    border-radius:16px;

    outline:none;

    resize:none;

    background:white;

    color:var(--text);

    box-shadow:
    inset 0 2px 8px rgba(0,0,0,.03);

}

/* socials */

.socials{

    display:flex;
    gap:12px;

    margin-top:20px;

}

.socials a{

    text-decoration:none;

    padding:10px 16px;

    border-radius:30px;

    background:#e9f4ff;

    color:var(--primary);

    transition:.35s ease;

}

/* socials hover */

.socials a:hover{

    background:var(--primary);

    color:white;

}

/* =========================
   FOOTER
========================= */

footer{

    text-align:center;

    padding:25px;

    color:var(--muted);

}

/* =========================
   MOTION EFFECTS
========================= */

.motion{

    opacity:0;

    transform:translateY(40px);

    transition:
    opacity .8s ease,
    transform .8s ease;

}

.motion.show{

    opacity:1;

    transform:translateY(0);

}

/* delays */

.delay-1{ transition-delay:.1s; }
.delay-2{ transition-delay:.2s; }
.delay-3{ transition-delay:.3s; }
.delay-4{ transition-delay:.4s; }

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    nav{

        padding:20px;

        flex-direction:column;

        gap:15px;

    }

    .nav-links{
        flex-wrap:wrap;
        justify-content:center;
    }

    .nav-links a{
        margin:10px;
    }

    .hero h2{
        font-size:2.8rem;
    }

    section{
        padding:70px 25px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .about-grid,
    .contact-grid{
        grid-template-columns:1fr;
    }

    .about-info{
        flex-direction:column;
    }

}