@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    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; /* smooth scroll for #links */
}

body{
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

header{
    margin-top: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: transparent;
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover{
    transform: scale(1.1);
}

nav a{
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active{
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

@media(max-width:995px){
    nav{
        position: absolute;
        display: none;
        top: 0;
        right: 0;
        width: 40%;
        border-left: 3px solid #b74b4b;
        border-bottom: 3px solid #b74b4b;
        border-bottom-left-radius: 2rem;
        padding: 1rem solid;
        background-color: #161616;
        border-top: 0.1rem solid rgba(0,0,0,0.1);
    }

    nav.active{
        display: block;
    }

    nav a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span{
    color: #b74b4b;
}

.home-content h3{
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
}

.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0  0 25px #b74b4b;
}

.btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover{
    transform: scale3d(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span{
    position: relative;
}

.typing-text span::before{
    content: "Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after{
    content: "";
    background-color: black;
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    right: -8;
    animation: cursor 0.6s infinite;
}

@keyframes cursor{
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words{
    0%, 33%{
        content: "Developer";
    }
    34%, 66%{
        content: "Youtuber";
    }
    67%, 100%{
        content: "Scripter";
    }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media(max-width:995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }

    .home .home-content h3{
        font-size: 2.5rem;
    }

    .home-content h1{
        font-size: 5rem;
    }

    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

/* ===== SERVICES SECTION ===== */

.services{
    background-color: #050505;
}

.section-title{
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle{
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #ccc;
}

.services-container{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}

.service-box{
    background-color: #111;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(183, 75, 75, 0.4);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    transition: 0.3s ease;
}

.service-box:hover{
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(183, 75, 75, 0.6);
    border-color: #b74b4b;
}

/* make card text red when "selected" (hovered) */
.service-box:hover h3,
.service-box:hover p{
    color: #b74b4b;
}

.service-icon{
    font-size: 3rem;
    color: #b74b4b;
    margin-bottom: 1.5rem;
}

.service-box h3{
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.service-box p{
    font-size: 1.4rem;
    color: #ddd;
}

/* PRICE LABEL */
.service-price{
    margin-top: 1.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    color: #b74b4b;
}

.service-box:hover .service-price{
    color: #b74b4b;
}

/* Responsive services grid */
@media (max-width: 992px){
    .services-container{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px){
    .services-container{
        grid-template-columns: 1fr;
    }
}

/* ===== EXPERIENCE SECTION ===== */

.experience{
    background-color: #050505;
}

.experience-container{
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    margin-top: 4rem;
}

.experience-text{
    flex: 1.2;
}

.experience-text h3{
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.experience-text p{
    font-size: 1.6rem;
    line-height: 1.8;
}

.experience-image{
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.experience-image img{
    width: 100%;
    max-width: 380px;
    border-radius: 1.5rem;
    box-shadow: 0 0 25px #b74b4b;
    margin-bottom: 1rem;
}

.image-caption{
    font-size: 1.4rem;
    color: #ccc;
    text-align: center;
}

/* Responsive experience layout */
@media (max-width: 992px){
    .experience-container{
        flex-direction: column;
    }

    .experience-image img{
        max-width: 100%;
    }
}

/* ===== CONTACT SECTION ===== */

.contact{
    background-color: #050505;
    padding-bottom: 8rem;
}

.contact-container{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.contact-card{
    background-color: #111;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(183, 75, 75, 0.4);
    text-align: center;
    transition: 0.3s ease;
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

.contact-card:hover{
    transform: translateY(-6px);
    border-color: #b74b4b;
    box-shadow: 0 0 25px rgba(183,75,75,0.6);
}

.contact-icon{
    font-size: 3.5rem;
    color: #b74b4b;
    margin-bottom: 1rem;
}

.contact-card h3{
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-card p{
    font-size: 1.4rem;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.contact-btn{
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4rem;
    background-color: black;
    border: 2px solid #b74b4b;
    color: #b74b4b;
    font-size: 1.3rem;
    transition: 0.3s ease;
}

.contact-btn:hover{
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 15px #b74b4b;
}

/* Responsive Contact Section */
@media (max-width: 992px){
    .contact-container{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px){
    .contact-container{
        grid-template-columns: 1fr;
    }
}

/* ===== MY WORK SECTION ===== */

.work{
    background-color: #050505;
}

.work-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.work-card{
    background-color: #111;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(183, 75, 75, 0.35);
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
    transition: 0.3s ease;
}

.work-card:hover{
    transform: translateY(-6px);
    border-color: #b74b4b;
    box-shadow: 0 0 25px rgba(183, 75, 75, 0.55);
}

/* Clickable YouTube thumbnail */
.work-link{
    position: absolute;
    inset: 0;
    display: block;
}

.work-link img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: 0.25s ease;
}

.work-card:hover .work-link img{
    opacity: 1;
    transform: scale(1.02);
}

/* Play button badge */
.play-badge{
    position: absolute;
    inset: 0;
    margin: auto;
    width: 6.2rem;
    height: 6.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.55);
    border: 2px solid rgba(183,75,75,0.75);
    color: #b74b4b;
    font-size: 2.2rem;
    transition: 0.25s ease;
}

.work-card:hover .play-badge{
    transform: scale(1.08);
    background: #b74b4b;
    color: black;
    box-shadow: 0 0 18px rgba(183,75,75,0.6);
}


/* 16:9 media frame */
.work-media{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.work-media iframe,
.work-media video{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Info */
.work-info{
    padding: 2rem;
}

.work-info h3{
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.work-info p{
    font-size: 1.4rem;
    color: #ddd;
    line-height: 1.7;
}

/* Tags */
.work-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.tag{
    font-size: 1.2rem;
    padding: 0.6rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(183, 75, 75, 0.45);
    color: #b74b4b;
    background: rgba(183, 75, 75, 0.08);
}


/* Footer button alignment */
.work-footer{
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

/* Responsive grid */
@media (max-width: 992px){
    .work-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px){
    .work-grid{
        grid-template-columns: 1fr;
    }
}

/* ===== ACCEPTED PAYMENTS (under Services) ===== */

.payments{
    margin-top: 4rem;
    text-align: center;
}

.payments-title{
    font-size: 1.6rem;
    color: #ccc;
    margin-bottom: 1.6rem;
}

.payments-row{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.payment-pill{
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.6rem;
    border-radius: 999px;
    background: rgba(183, 75, 75, 0.08);
    border: 1px solid rgba(183, 75, 75, 0.45);
    color: #b74b4b;
    font-size: 1.4rem;
    font-weight: 600;
    transition: 0.3s ease;
}

.payment-pill i{
    font-size: 1.8rem;
}

.payment-pill:hover{
    transform: translateY(-3px);
    background: #b74b4b;
    color: black;
    box-shadow: 0 0 18px rgba(183, 75, 75, 0.65);
}

/* ===== TERMS OF SERVICE ===== */

.tos{
    background-color: #050505;
}

.tos-card{
    margin: 4rem auto 0;
    max-width: 980px;
    background: rgba(17,17,17,0.92);
    border: 1px solid rgba(183, 75, 75, 0.35);
    border-radius: 2rem;
    padding: 2.5rem;
    box-shadow: 0 0 20px rgba(0,0,0,0.65);
    position: relative;
    overflow: hidden;
}

/* decorative glow line */
.tos-card::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #b74b4b, transparent);
    opacity: 0.9;
}

.tos-list{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    padding: 0;
    margin: 0;
}

.tos-item{
    display: flex;
    gap: 1.6rem;
    padding: 1.8rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(183, 75, 75, 0.18);
    background: rgba(0,0,0,0.25);
    transition: 0.3s ease;
}

.tos-item:hover{
    transform: translateY(-4px);
    border-color: rgba(183, 75, 75, 0.45);
    box-shadow: 0 0 18px rgba(183, 75, 75, 0.25);
}

.tos-icon{
    width: 4.6rem;
    height: 4.6rem;
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(183, 75, 75, 0.35);
    background: rgba(183, 75, 75, 0.08);
    flex: 0 0 auto;
}

.tos-icon i{
    font-size: 2.2rem;
    color: #b74b4b;
}

.tos-text h3{
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.tos-text p{
    font-size: 1.4rem;
    color: #ddd;
    line-height: 1.7;
}

.tos-footer{
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

@media (max-width: 650px){
    .tos-item{
        flex-direction: column;
        align-items: flex-start;
    }

    .tos-icon{
        width: 4.2rem;
        height: 4.2rem;
        border-radius: 1.1rem;
    }
}

/* ===== PROJECT CHECKLIST ===== */

.requirements{
    background-color: #050505;
}

.req-wrap{
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

.req-card{
    background-color: #111;
    border-radius: 1.5rem;
    padding: 2.5rem 2.2rem;
    border: 1px solid rgba(183, 75, 75, 0.35);
    box-shadow: 0 0 15px rgba(0,0,0,0.6);
    transition: 0.3s ease;
}

.req-card:hover{
    transform: translateY(-6px);
    border-color: #b74b4b;
    box-shadow: 0 0 25px rgba(183, 75, 75, 0.45);
}

.req-card h3{
    font-size: 2.2rem;
    margin-bottom: 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.req-card h3 i{
    color: #b74b4b;
    font-size: 2rem;
}

.req-list{
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.req-list li{
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    color: #ddd;
    line-height: 1.6;
    padding: 1.1rem 1.2rem;
    border-radius: 1.2rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(183, 75, 75, 0.18);
}

.req-list li i{
    color: #b74b4b;
    font-size: 1.6rem;
    min-width: 2rem;
}

.req-footer{
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

@media (max-width: 992px){
    .req-wrap{
        grid-template-columns: 1fr;
    }
}

/* ===== WORK SCREENSHOTS (under each work card) ===== */

.work-screens{
    margin-top: 1.6rem;
}

.work-screens-title{
    font-size: 1.3rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.work-screens-title i{
    color: #b74b4b;
}

.work-screens-grid{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.work-screen{
    position: relative;
    border-radius: 1.1rem;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(183, 75, 75, 0.25);
    transition: 0.25s ease;
}

.work-screen img{
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    opacity: 0.95;
    transition: 0.25s ease;
}

.work-screen-overlay{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: 0.25s ease;
}

.work-screen-overlay i{
    color: #b74b4b;
    font-size: 2rem;
}

.work-screen:hover{
    transform: translateY(-3px);
    border-color: rgba(183, 75, 75, 0.55);
    box-shadow: 0 0 16px rgba(183, 75, 75, 0.25);
}

.work-screen:hover img{
    opacity: 1;
    transform: scale(1.03);
}

.work-screen:hover .work-screen-overlay{
    opacity: 1;
}

/* Responsive thumbnails */
@media (max-width: 650px){
    .work-screens-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
