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

/* ===== VARIABLES ===== */
:root{
    --bg: #0a0a0a;
    --bg-2: #141414;
    --main: #b74b4b;
    --text: #ffffff;
    --muted: #c9c9c9;
    --glow: 0 0 25px rgba(183, 75, 75, 0.35);
}

/* ===== RESET ===== */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body{
    width: 100%;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== REUSABLE ===== */
.section{
    flex: 1;
    padding: 12rem 9% 6rem;
}

.heading{
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 5rem;
}

.heading span,
span{
    color: var(--main);
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: transparent;
    color: var(--main);
    border: 2px solid var(--main);
    border-radius: 4rem;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    background-color: var(--main);
    color: #fff;
    box-shadow: var(--glow);
}

.btn-group{
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ===== HEADER ===== */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    z-index: 100;
    transition: 0.4s ease;
}

.header.sticky{
    background-color: var(--bg-2);
    padding: 1.5rem 9%;
    box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.5);
}

.logo{
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--main);
    transition: 0.3s ease;
}

.logo:hover{
    transform: scale(1.05);
}

#menu-icon{
    font-size: 3.4rem;
    color: var(--main);
    cursor: pointer;
    display: none;
}

.navbar a{
    font-size: 1.7rem;
    color: var(--text);
    margin-left: 3.5rem;
    font-weight: 500;
    padding-bottom: 0.3rem;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active{
    color: var(--main);
    border-bottom-color: var(--main);
}

/* ===== HOME ===== */
.home{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    padding: 12rem 9% 4rem;
}

.home-img img{
    width: 32vw;
    max-width: 42rem;
    border-radius: 50%;
    box-shadow: var(--glow);
    transition: 0.4s ease;
    cursor: pointer;
}

.home-img img:hover{
    box-shadow: 0 0 45px rgba(183, 75, 75, 0.6);
    transform: scale(1.02);
}

.home-content{
    max-width: 60rem;
}

.home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.2;
}

.home-content h3{
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0.5rem 0 1.5rem;
    min-height: 3.8rem;
}

.typing-text{
    color: var(--main);
    border-right: 2px solid var(--main);
    padding-right: 6px;
}

.home-content p{
    font-size: 1.6rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.social-icons{
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.2rem;
    height: 4.2rem;
    border: 0.2rem solid var(--main);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main);
    transition: 0.3s ease;
}

.social-icons a:hover{
    background-color: var(--main);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

/* ===== CARDS (services / skills / projects) ===== */
.card-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2.5rem;
}

.card{
    background-color: var(--bg-2);
    border: 0.1rem solid rgba(255, 255, 255, 0.07);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    transition: 0.4s ease;
}

.card:hover{
    border-color: var(--main);
    transform: translateY(-0.8rem);
    box-shadow: var(--glow);
}

.card i{
    font-size: 4.5rem;
    color: var(--main);
    margin-bottom: 1.5rem;
}

.card h3{
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.card .sub{
    display: block;
    font-size: 1.4rem;
    color: var(--main);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card p{
    font-size: 1.5rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card ul{
    list-style: none;
    margin-bottom: 1.5rem;
}

.card ul li{
    font-size: 1.45rem;
    color: var(--muted);
    padding: 0.4rem 0 0.4rem 2rem;
    position: relative;
}

.card ul li::before{
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--main);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.role-badge{
    display: inline-block;
    font-size: 1.3rem;
    background-color: rgba(183, 75, 75, 0.15);
    color: var(--main);
    padding: 0.5rem 1.4rem;
    border-radius: 2rem;
    font-weight: 600;
}

/* ===== TAG CHIPS ===== */
.tags{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag{
    background-color: var(--bg);
    border: 0.1rem solid rgba(183, 75, 75, 0.4);
    color: var(--muted);
    padding: 0.7rem 1.4rem;
    border-radius: 3rem;
    font-size: 1.4rem;
    transition: 0.3s ease;
}

.tag:hover{
    border-color: var(--main);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== ABOUT ===== */
.about-wrap{
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 5rem;
}

.about-img img{
    width: 28vw;
    max-width: 34rem;
    border-radius: 50%;
    box-shadow: var(--glow);
}

.about-content h2{
    font-size: 3.6rem;
    margin-bottom: 0.5rem;
}

.about-content .tagline{
    font-size: 1.8rem;
    color: var(--main);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about-content p{
    font-size: 1.6rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-info{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    margin: 2rem 0;
}

.about-info p{
    margin: 0;
    font-size: 1.5rem;
}

.about-info span{
    color: var(--text);
    font-weight: 600;
}

.subheading{
    font-size: 2.6rem;
    text-align: center;
    margin: 4rem 0 2rem;
}

.subheading span{
    color: var(--main);
}

.approach-text{
    max-width: 80rem;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.6rem;
    color: var(--muted);
    line-height: 1.8;
}

/* ===== CONTACT ===== */
.contact-intro{
    text-align: center;
    max-width: 60rem;
    margin: 0 auto 4rem;
    font-size: 1.6rem;
    color: var(--muted);
    line-height: 1.8;
}

.contact-info{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-info div{
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-2);
    border: 0.1rem solid rgba(255, 255, 255, 0.07);
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    font-size: 1.5rem;
}

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

#contact-form{
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.input-box{
    display: flex;
    gap: 2rem;
}

#contact-form input,
#contact-form textarea{
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text);
    background-color: var(--bg-2);
    border-radius: 1rem;
    border: 0.1rem solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
    transition: 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus{
    border-color: var(--main);
}

#contact-form input::placeholder,
#contact-form textarea::placeholder{
    color: #888;
}

#contact-form textarea{
    resize: none;
    height: 15rem;
}

.form-message{
    margin-top: 1.5rem;
    font-size: 1.5rem;
    min-height: 2rem;
}

.closing{
    text-align: center;
    max-width: 70rem;
    margin: 5rem auto 0;
    padding-top: 4rem;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.08);
}

.closing h3{
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.closing p{
    font-size: 1.55rem;
    color: var(--muted);
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2.5rem 9%;
    background-color: var(--bg-2);
}

.footer-text{
    font-size: 1.5rem;
    color: var(--muted);
}

.footer-social{
    display: flex;
    gap: 1rem;
}

.footer-social a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3.8rem;
    height: 3.8rem;
    border: 0.2rem solid var(--main);
    border-radius: 50%;
    font-size: 1.7rem;
    color: var(--main);
    transition: 0.3s ease;
}

.footer-social a:hover{
    background-color: var(--main);
    color: #fff;
    transform: translateY(-5px);
}

.footer-top{
    width: 4.2rem;
    height: 4.2rem;
    background-color: var(--main);
    border-radius: 0.8rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.9rem;
    color: #fff;
    transition: 0.3s ease;
}

.footer-top:hover{
    transform: translateY(-5px);
    box-shadow: var(--glow);
}

/* ===== SCROLL REVEAL ===== */
.reveal{
    opacity: 0;
    transform: translateY(3rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px){
    html{
        font-size: 58%;
    }

    .home{
        gap: 4rem;
    }
}

/* below 900px = normal phone (desktop-mode OFF) -> hamburger */
@media (max-width: 900px){
    #menu-icon{
        display: block;
    }

    .header,
    .header.sticky{
        padding: 1.8rem 4%;
    }

    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 26rem;
        max-width: 80%;
        padding: 1.5rem 2.5rem;
        background-color: var(--bg-2);
        border-left: 0.2rem solid var(--main);
        border-bottom: 0.2rem solid var(--main);
        border-bottom-left-radius: 2rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
        display: none;
    }

    .navbar.active{
        display: block;
    }

    .navbar a{
        display: block;
        margin: 2.2rem 0;
        font-size: 1.9rem;
    }

    .navbar a:hover,
    .navbar a.active{
        border-bottom: none;
    }

    .section{
        padding: 11rem 5% 5rem;
    }

    .home{
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
        padding: 11rem 5% 4rem;
    }

    .home-content{
        max-width: 100%;
    }

    .home-img img{
        width: 60vw;
        max-width: 30rem;
    }

    .social-icons,
    .btn-group{
        justify-content: center;
    }

    .about-wrap{
        flex-direction: column;
        text-align: center;
    }

    .about-img img{
        width: 55vw;
        max-width: 28rem;
    }

    .about-info{
        text-align: left;
    }

    .footer{
        padding: 2.5rem 5%;
    }
}

@media (max-width: 480px){
    html{
        font-size: 52%;
    }

    .home-content h1{
        font-size: 5.5rem;
    }

    .home-img img,
    .about-img img{
        width: 72vw;
    }

    .heading{
        margin-bottom: 3.5rem;
    }

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

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

    .input-box{
        flex-direction: column;
        gap: 0;
    }

    .footer{
        flex-direction: column;
        text-align: center;
    }
}
