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

:root {
    --main-color: #ff8733;
}
html{
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}
nav {
    height: 55px;
    width: 100%;
    background-color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: drop 2s ease-in-out forwards;
    opacity: 0;
    transform: translateY(-100px);
    position: fixed;
    top: 0;
    z-index: 10;

    h1 {
        font-size: 2.6rem;
        margin-left: 30px;
    }

    .links {
        height: 100%;
        width: 600px;
        display: flex;
        align-items: center;
        justify-content: space-around;
        margin-right: 50px;

        a {
            text-decoration: none;
            color: whitesmoke;
            font-size: 1.4rem;
        }
        a:hover{
            color: #52525e;
        }
    }
}

@keyframes drop {
    to {
        transform: translateY(0px);
        opacity: 1;
    }
}

/* HOME SECTION */

.home{
    min-height:100vh;
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:80px;
    padding:80px 50px;
    background:#f8f9fa;
}

.prof-img{
    width:280px;
    height:auto;
    filter:drop-shadow(0px 10px 20px rgba(0,0,0,0.15));
}

.home .text{
    max-width:600px;
}

.home .text h1{
    font-size:4rem;
    color:var(--main-color);
    margin-bottom:10px;
    line-height:1.1;
}

.home .text h2{
    font-size:2rem;
    color:#222;
    margin-bottom:20px;
}

.hero-desc{
    font-size:1.2rem;
    color:#555;
    line-height:1.8;
    margin-bottom:30px;
}

.hero-btns{
    display:flex;
    gap:15px;
}

.btn{
    text-decoration:none;
    background:var(--main-color);
    color:white;
    padding:12px 25px;
    border-radius:8px;
    font-weight:600;
}

.btn:hover{
    opacity:.9;
}

.btn-outline{
    background:white;
    color:var(--main-color);
    border:2px solid var(--main-color);
}

/* ABOUT SECTION */

.about{
    min-height:60vh;
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:60px 20px;
}

.section-title{
    font-size:3rem;
    color:var(--main-color);
    margin-bottom:30px;
}

.about .text{
    width:100%;
    max-width:900px;
    margin:0 auto;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:30px;
}

.about .text p{
    font-size:1.2rem;
    line-height:2;
    color:#444;
}

.about .text a{
    text-decoration:none;
    background:var(--main-color);
    color:white;
    padding:14px 35px;
    border-radius:8px;
    font-weight:600;
}

.about .text a:hover{
    background:#e56f1d;
}

.stick {
    background-color: var(--main-color);
    color: white;
    font-size: 3rem;
    padding: 5px 20px;
    display: inline;
    border-radius: 0px 10px 10px 0px;
}

.two{
    position: sticky;
    bottom: 300px;
    left: 0;
}

.skill{
    min-height:80vh;
    width:100%;
    padding:80px 20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

.skills-grid{
    width:100%;
    max-width:1100px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:25px;
    margin-top:40px;
}

.skill-card{
    background:white;
    border-radius:15px;
    padding:30px;
    text-align:center;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition:0.3s;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.skill-item{
    display:flex;
    align-items:center;
    gap:10px;
    width:fit-content;
    padding:8px 16px;
    border-radius:8px;
    transition:all 0.25s ease;
    cursor:default;
}

.skill-item:hover{
    background:rgba(255,135,51,0.1);
    transform:translateX(5px);
    color:var(--main-color);
}

.skill-item:hover span{
    color:var(--main-color);
    font-weight:600;
}

.skill-card:hover{
    transform:translateY(-8px);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.skill-card h3{
    color:var(--main-color);
    margin-bottom:20px;
    font-size:1.5rem;
}

.skill-item img{
    width:28px;
    height:28px;
    object-fit:contain;
}

.skill-fa-icon{
    width:28px;
    font-size:1.3rem;
    color:var(--main-color);
}
/* Project */
.project{
    min-height:100vh;
    width:100%;
    padding:80px 20px;
    text-align:center;
}

.projects-grid{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
    margin-top:40px;
}

.project-card{
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,0.08);
    transition:0.3s;
    border-top:5px solid var(--main-color);
}

.project-card:hover{
    transform:translateY(-10px);
    box-shadow:0 10px 25px rgba(0,0,0,0.15);
}

.project-card img{
    width:100%;
    height:220px;
    object-fit:contain;
    background:#f5f5f5;
}

.project-image{
    width:100%;
    height:220px;
    background:#f0f0f0;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.1rem;
    font-weight:600;
    color:#aaa;
    letter-spacing:0.5px;
}

.project-content{
    padding:20px;
}

.project-content h3{
    color:var(--main-color);
    margin-bottom:10px;
    font-size:1.5rem;
}

.tech-stack{
    color:#666;
    font-size:0.95rem;
    margin-bottom:15px;
    font-weight:600;
}

.project-content p{
    line-height:1.6;
    color:#444;
}

.project-buttons{
    display:flex;
    gap:10px;
    margin-top:20px;
}

.project-buttons a{
    text-decoration:none;
    background:var(--main-color);
    color:white;
    padding:10px 18px;
    border-radius:8px;
    font-size:0.9rem;
    font-weight:600;
}

.project-buttons a:hover{
    opacity:.9;
}
/* Contact */
.contact{
    height: 91.5vh;
    width: 100%;
    background-color: #c2c2c2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact>.contact-wrapper{
    height: 90%;
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* flex-direction: row-reverse; */
}
.contact-left{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    gap:15px;
}

.contact-img{
    width:180px;
    height:180px;
    border-radius:50%;
    object-fit:cover;
    border:4px solid var(--main-color);
    margin-bottom:15px;
}

.contact-left h3{
    font-size:2rem;
    color:var(--main-color);
}

.contact-left p{
    font-size:1.1rem;
    color:#444;
}

.social-icons{
    display:flex;
    gap:25px;
    margin-top:15px;
}

.social-icons a img{
    width:45px;
    height:45px;
    transition:.3s;
}

.social-icons a img:hover{
    transform:translateY(-5px) scale(1.1);
}
.contact-wrapper>.right{
    height: 100%;
    width: 50%;
     display: flex;
        align-items: center;
        justify-content: center;
    form{
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 30px;
        input{
            padding: 0px 10px;
            font-size: 1.2rem;
            height: 40px;
            width:70% ;
            border: 1px solid;
            border-top: transparent;
            border-left: transparent;
            border-right: transparent;
            background-color: transparent;
            outline: none;
        }
        input:focus{
            border: #ff8733 solid 2px;
            border-top: transparent;
            border-left: transparent;
            border-right: transparent;
            background-color: transparent;
        }

        textarea{
            font-size: 1.2rem;
            padding: 0px 10px;
            height: 170px;
            width: 70%;
            border: 1px solid;
            border-top: transparent;
            border-left: transparent;
            border-right: transparent;
            background-color: transparent;
            outline: none;
            resize: none;
        }
        textarea:focus{
            border: #ff8733 solid 2px;
            border-top: transparent;
            border-left: transparent;
            border-right: transparent;
            background-color: transparent;
        }
        button{
            text-transform: uppercase;
            font-size: 1.2rem;
            height: 50px;
            width: 73%;
            display: flex;
            align-items: center;
            justify-content: center; 
            background-color: #ff8833d8;
            border: none;
        }
        button:hover{
            background-color: var(--main-color);
            transform: scale(1.05);
            transition: all .2s ease-in;
        }
    }
}
footer{
    height: 100px;
    width: 100%;
    background-color: #52525e;
    display: flex;
    align-items: center;
    justify-content: center;
    p{
        color: white;
    }
}

/* Hamburger button — hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 25px;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ===== MOBILE ===== */
@media screen and (max-width: 767px) {

    html {
        scroll-padding-top: 62px;
    }

    body {
        overflow-x: hidden;
    }

    /* --- Nav --- */
    .hamburger {
        display: flex;
    }

    nav {
        height: 62px;
        flex-direction: row;
        padding: 0 15px;
        position: fixed;

        h1 {
            font-size: 1.8rem;
            margin-left: 10px;
        }

        .links {
            display: none;
            position: absolute;
            top: 62px;
            left: 0;
            width: 100%;
            height: auto;
            flex-direction: column;
            background-color: var(--main-color);
            margin-right: 0;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
            z-index: 9;

            a {
                width: 100%;
                text-align: center;
                padding: 14px 20px;
                font-size: 1.1rem;
                border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            }

            &.open {
                display: flex;
            }
        }
    }

    /* --- Home --- */
    .home {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 90px 20px 50px;
    }

    .prof-img {
        width: 200px;
    }

    .home .text h1 {
        font-size: 2.5rem;
    }

    .home .text h2 {
        font-size: 1.5rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* --- About --- */
    .section-title {
        font-size: 2rem;
    }

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

    /* --- Skills --- */
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    /* --- Projects --- */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* --- Contact --- */
    .contact {
        height: auto;
        min-height: 100svh;
        padding: 40px 0;
    }

    .contact-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px;
        height: auto;
        width: 100%;

        .right {
            width: 100%;
            height: auto;

            form {
                gap: 20px;

                input,
                textarea {
                    width: 90%;
                }

                button {
                    width: 90%;
                }
            }
        }
    }

    /* --- Footer --- */
    footer {
        height: auto;
        padding: 20px;
        text-align: center;
    }
}