html{
    scroll-behavior:smooth;
}

::selection{
    background:#9A6F98;
    color:#FFFFFF;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

section{
    scroll-margin-top:90px;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#1A1A1A;
    color:#F5F5F5;
    overflow-x:hidden;
}

.container{
    width:min(1200px,92%);
    margin:auto;
}

/* ===========================
   NAVIGATION
=========================== */

nav{
    position:sticky;
    top:0;
    z-index:1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 80px;

    background:rgba(26,26,26,.92);
    backdrop-filter:blur(12px);
    border-bottom:1px solid #2D2D2D;
}

.logo{
    display:flex;
    align-items:center;
    gap:14px;

    font-size:28px;
    font-weight:700;
    letter-spacing:.5px;
}

.logo-img{
    width:56px;
    height:auto;
    display:block;
}

nav ul{
    display:flex;
    align-items:center;
    gap:40px;
    list-style:none;
}

nav a{
    position:relative;
    text-decoration:none;
    color:#F5F5F5;
    font-size:16px;
    font-weight:500;
    transition:color .3s ease;
}

nav a::after{

    content:"";
    position:absolute;

    left:0;
    bottom:-8px;

    width:0;
    height:2px;

    background:#9A6F98;
    border-radius:2px;

    transition:width .3s ease;
}

nav a:hover{
    color:#FFFFFF;
}

nav a:hover::after{
    width:100%;
}

/* ===========================
   HERO
=========================== */

.hero{

    min-height:90vh;

    display:flex;
    align-items:center;

    padding:0 80px;

    border-bottom:1px solid #2D2D2D;
}

.hero-wrapper{

    display:flex;
    justify-content:space-between;
    align-items:center;

    gap:60px;
}

.hero-content{

    flex:1;
    max-width:600px;
}

.hero-image{

    flex:1;

    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-image img{

    width:100%;
    max-width:520px;

    height:auto;

    display:block;

    transition:transform .35s ease;
}

.hero-image img:hover{

    transform:translateY(-6px);
}

.hero h1{

    font-size:50px;
    font-weight:700;

    line-height:1.15;

    margin-bottom:14px;
}

.hero h2{

    font-size:28px;

    color:#9A6F98;

    margin-bottom:24px;

    line-height:1.35;
}

.description{

    font-size:18px;

    color:#B3B3B3;

    line-height:1.9;

    margin-bottom:48px;
}

.hero-buttons{

    display:flex;

    gap:20px;

    margin-bottom:45px;
}

.btn{

    display:inline-flex;

    justify-content:center;
    align-items:center;

    min-width:190px;

    padding:16px 36px;

    border-radius:8px;

    text-decoration:none;

    font-weight:600;

    transition:
        transform .3s ease,
        background .3s ease,
        color .3s ease,
        border-color .3s ease;
}

.btn:hover{

    transform:translateY(-3px);
}

.primary-btn{

    background:#9A6F98;

    border:2px solid #9A6F98;

    color:#FFFFFF;
}

.primary-btn:hover{

    background:#A87DA6;

    border-color:#A87DA6;
}

.secondary-btn{

    background:transparent;

    color:#9A6F98;

    border:2px solid #9A6F98;
}

.secondary-btn:hover{

    background:#9A6F98;

    color:#FFFFFF;
}

.social-links{

    display:flex;

    gap:32px;
}

.social-links a{

    display:flex;

    align-items:center;

    gap:8px;

    text-decoration:none;

    color:#9CA3AF;

    font-size:18px;

    transition:color .3s ease;
}

.social-links a:hover{

    color:#9A6F98;
}

/* ===========================
   PROJECTS
=========================== */

.projects{
    padding:100px 80px;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:42px;
    font-weight:700;
    color:#F5F5F5;
    margin-bottom:18px;
}

.section-title p{
    max-width:700px;
    margin:auto;
    color:#B3B3B3;
    font-size:18px;
    line-height:1.7;
}

/* ===========================
   PROJECT GRID
=========================== */

.project-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:35px;
    align-items:stretch;
}

.project-card{

    display:flex;
    flex-direction:column;

    background:#262626;

    border:1px solid #3A3A3A;

    border-radius:18px;

    overflow:hidden;

    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.project-card:hover{

    transform:translateY(-8px);

    border-color:#9A6F98;

    box-shadow:
        0 18px 40px rgba(0,0,0,.35),
        0 0 0 1px rgba(154,111,152,.18);
}

/* ===========================
   PROJECT IMAGES
=========================== */

.project-images{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));

    gap:12px;

    padding:16px;
}

.project-images img{

    width:100%;

    height:185px;

    object-fit:cover;

    border-radius:10px;

    display:block;

    transition:
        transform .35s ease,
        filter .35s ease;
}


/* ===========================
   PROJECT CONTENT
=========================== */

.project-content{

    flex:1;

    display:flex;

    flex-direction:column;

    padding:24px;
}

.project-content h3{

    font-size:28px;

    color:#F5F5F5;

    margin-bottom:16px;
}

.project-content>p{

    color:#B3B3B3;

    line-height:1.8;

    margin-bottom:24px;
}

/* ===========================
   PROJECT HIGHLIGHTS
=========================== */

.project-highlights{

    margin-bottom:24px;
}

.project-highlights p{

    color:#D4D4D4;

    font-size:15px;

    line-height:1.7;

    margin-bottom:8px;
}

/* ===========================
   TECH STACK
=========================== */

.tech-stack{

    display:flex;

    flex-wrap:wrap;

    gap:8px;

    margin-bottom:28px;
}

.tech-stack span{

    padding:6px 12px;

    background:#303030;

    border:1px solid #444;

    border-radius:6px;

    color:#D8D8D8;

    font-size:13px;

    font-weight:500;

    transition:
        background .3s ease,
        border-color .3s ease,
        color .3s ease;
}

.tech-stack span:hover{

    background:#3A3A3A;

    border-color:#9A6F98;

    color:#FFFFFF;
}

/* ===========================
   PROJECT LINKS
=========================== */

.project-links{

    margin-top:auto;

    display:flex;

    gap:12px;
}

.project-links a{

    text-decoration:none;

    padding:11px 22px;

    border-radius:8px;

    font-size:15px;

    font-weight:600;

    transition:.3s ease;
}

.project-links a:first-child{

    background:transparent;

    color:#F5F5F5;

    border:1px solid #4A4A4A;
}

.project-links a:first-child:hover{

    background:#343434;

    border-color:#9A6F98;
}

.project-links a:last-child{

    background:#9A6F98;

    color:#FFFFFF;
}

.project-links a:last-child:hover{

    background:#A87DA6;
}

/* ===========================
   ABOUT
=========================== */

.about{
    padding:100px 80px;
}

.about-content{
    max-width:900px;
    margin:auto;
}

.about-text{
    background:#262626;
    border:1px solid #3A3A3A;
    border-radius:18px;
    padding:40px;
    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.about-text:hover{
    transform:translateY(-5px);
    border-color:#9A6F98;
    box-shadow:
        0 18px 40px rgba(0,0,0,.30),
        0 0 0 1px rgba(154,111,152,.15);
}

.about-text p{
    color:#B3B3B3;
    font-size:18px;
    line-height:1.9;
    margin-bottom:20px;
}

.about-text p:last-child{
    margin-bottom:0;
}


/* ===========================
   SKILLS
=========================== */

.skills{
    padding:100px 80px;
}

.skills-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.skill-card{

    background:#262626;

    border:1px solid #3A3A3A;

    border-radius:18px;

    padding:30px;

    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.skill-card:hover{

    transform:translateY(-8px);

    border-color:#9A6F98;

    box-shadow:
        0 18px 40px rgba(0,0,0,.35),
        0 0 0 1px rgba(154,111,152,.15);
}

.skill-card h3{

    color:#F5F5F5;

    font-size:24px;

    margin-bottom:18px;
}

.skill-card p{

    color:#B3B3B3;

    line-height:1.8;

    font-size:16px;
}


/* ===========================
   CONTACT
=========================== */

.contact{
    padding:100px 80px;
}

.contact-content{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:22px;

    margin-top:45px;
}

.contact-content a{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:10px;

    min-width:220px;

    padding:15px 28px;

    text-decoration:none;

    color:#F5F5F5;

    background:#262626;

    border:1px solid #3A3A3A;

    border-radius:10px;

    font-size:16px;

    font-weight:500;

    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease,
        color .3s ease,
        box-shadow .3s ease;
}

.contact-content a i{

    font-size:18px;

    color:#9A6F98;

    transition:color .3s ease;
}

.contact-content a span{

    line-height:1;
}

.contact-content a:hover{

    transform:translateY(-5px);

    background:#2D2D2D;

    border-color:#9A6F98;

    color:#FFFFFF;

    box-shadow:
        0 10px 25px rgba(0,0,0,.25),
        0 0 0 1px rgba(154,111,152,.15);
}

.contact-content a:hover i{

    color:#C18CBD;
}


/* ===========================
   FOOTER
=========================== */

footer{

    padding:35px 80px;

    text-align:center;

    border-top:1px solid #3A3A3A;

    background:#1A1A1A;
}

footer p{

    color:#8F8F8F;

    font-size:14px;

    letter-spacing:.3px;
}


/* ===========================
   FADE ANIMATION
=========================== */

.fade-up{

    animation:fadeUp .8s ease forwards;
}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(30px);
    }

    to{

        opacity:1;

        transform:translateY(0);
    }
}


/* ===========================
   SCROLLBAR
=========================== */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#1A1A1A;
}

::-webkit-scrollbar-thumb{
    background:#555555;
    border-radius:20px;
}

::-webkit-scrollbar-thumb:hover{
    background:#9A6F98;
}


/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:992px){

    nav{
        padding:18px 40px;
    }

    .hero,
    .projects,
    .about,
    .skills,
    .contact,
    footer{
        padding-left:40px;
        padding-right:40px;
    }

    .hero-wrapper{

        flex-direction:column-reverse;

        text-align:center;

        gap:50px;
    }

    .hero-content{

        max-width:700px;
    }

    .hero-buttons{

        justify-content:center;

        flex-wrap:wrap;
    }

    .social-links{

        justify-content:center;
    }

    .project-grid,
    .skills-grid{

        grid-template-columns:1fr;
    }

    .hero h1{
        font-size:46px;
    }

    .hero-image img{
        max-width:450px;
    }

}

@media (max-width:768px){

    nav{

        flex-direction:column;

        gap:18px;

        padding:20px;
    }

    nav ul{

        flex-wrap:wrap;

        justify-content:center;

        gap:18px;
    }

    .hero{

        min-height:auto;

        padding-top:70px;

        padding-bottom:70px;
    }

    .hero h1{

        font-size:38px;
    }

    .hero h2{

        font-size:22px;
    }

    .description{

        font-size:17px;
    }

    .hero-buttons{

        flex-direction:column;

        align-items:center;
    }

    .btn{

        width:100%;
        max-width:300px;
    }

    .hero-image img{

        max-width:340px;
    }

    .project-images{

        grid-template-columns:1fr;
    }

    .project-images img{

        height:220px;
    }

    .section-title h2{

        font-size:34px;
    }

    .contact-content{

        flex-direction:column;

        align-items:center;
    }

    .contact-content a{

        width:100%;
        max-width:350px;
    }

    #prev-image,
    #next-image{

        width:45px;

        height:45px;

        font-size:34px;

    }

    #prev-image{

        left:10px;

    }

    #next-image{

        right:10px;

    }

    #close-lightbox{

        top:15px;

        right:15px;

    }
    }

/* ===========================
   IMAGE LIGHTBOX
=========================== */

.clickable-image{
    cursor:pointer;
    transition:transform .3s ease, filter .3s ease;
}

.clickable-image:hover{
    transform:scale(1.03);

    filter:brightness(1.03);
}

#lightbox{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.9);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;

    padding:30px;

}

#lightbox img{

    width:auto;

    height:auto;

    max-width:min(1200px,90vw);

    max-height:90vh;

    object-fit:contain;

    border-radius:12px;

    animation:zoomIn .35s cubic-bezier(.22,.61,.36,1) forwards;

}

@keyframes zoomIn{

    from{
        opacity:0;
        transform:scale(.9);
    }

    to{
        opacity:1;
        transform:scale(1);
    }

}

#close-lightbox{

    width:52px;

    height:52px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(6px);

    font-size:34px;

}

#close-lightbox:hover{

    color:#9A6F98;

}

#prev-image,
#next-image{

    width:60px;
    height:60px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(6px);

    border-radius:50%;

}

#prev-image{

    left:40px;

}

#next-image{

    right:40px;

}

#prev-image:hover,
#next-image:hover{

    color:#9A6F98;

}