@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: 93.75%;
}

body{
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    color: white;
    /* background: #000000; */
    background:
        linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
        url('bg1.png') no-repeat center center fixed;
    background-size: cover;

    /* background-image:
        radial-gradient(circle at 20% 30%, rgba(183, 75, 75, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(183, 75, 75, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(42, 16, 16, 0.9) 0%, #000000 70%);
    background-size: 200% 200%, 200% 200%, 100% 100%; */
}

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;
        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;
    z-index: 2;
    /* 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{
    position: relative;
    border-radius: 50%;
}

.feed-frame{
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 40rem;
    max-width: 56vw;
    height: 32rem;
    overflow: hidden;
    z-index: 50;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
            mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}


.feed-belt{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.8rem;
    animation: belt 30s linear infinite;   /* the continuous downward drift */
}

/* pause the whole belt when hovering the frame */
.feed-frame:hover .feed-belt{
    animation-play-state: paused;
}

.feed-card .feed-body{
    font-size: 1.15rem;
    color: #bbb;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.feed-card{
    flex-shrink: 0;
    background: rgba(13,13,13,0.4);
    backdrop-filter: blur(8px);
    border: 1.5px solid #b74b4b;
    border-radius: 0.8rem;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 0 12px rgba(183,75,75,0.4);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center right;
}

.feed-card .feed-tag{
    font-size: 1.1rem; color: #b74b4b; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05rem;
}
.feed-card .feed-title{
    font-size: 1.5rem; color: white; margin-top: 0.3rem; line-height: 1.3;
}

/* hover (belt is paused): dim all, grow the one you're on, over the others */
.feed-frame:hover .feed-card{ opacity: 0.35; }
.feed-frame .feed-card:hover{
    opacity: 1;
    transform: scale(1.03);          /* smaller growth — stays inside */
    transform-origin: center;        /* even expansion, not toward an edge */
    box-shadow: 0 0 22px rgba(183,75,75,0.8);
    z-index: 2;
}

.feed-pop{
    position: fixed;
    display: none;
    z-index: 300;               /* above the frame and the mask */
    pointer-events: none;       /* so it doesn't block hovering the real card */
    transform-origin: center;
    animation: popGrow 0.2s ease forwards;
}
.feed-pop.show{ display: block; }

@keyframes popGrow{
    from{ transform: scale(1); opacity: 0.6; }
    to  { transform: scale(1.12); opacity: 1; }
}

/* the popped card reuses feed-card styling but brighter */
.feed-pop .feed-card{
    box-shadow: 0 0 28px rgba(183,75,75,0.9);
    background: rgba(13,13,13,0.85);   /* more solid since it's floating free */
}

@keyframes belt{
    from{ transform: translateY(0); }
    to  { transform: translateY(-50%); }   /* moves down one full set (see JS) */
}

@media(max-width: 995px){
    .feed-frame{ display: none; }   /* hide on mobile */
}

.peek-bug{
    position: absolute;
    top: 12%;             /* where on the frame it peeks — tweak */
    right: 5rem;         /* how far it sits outside the circle edge */
    font-size: 3rem;
    cursor: pointer;
    color: #b74b4b;
    z-index: 0;          /* behind the photo, so it looks like it's hiding */
    animation: peek 4s ease-in-out infinite;
    transform-origin: bottom center;
}
.bug-plea{
    position: absolute;
    top: -2.2rem;              /* sits above the bug */
    left: 50%;
    transform: translateX(-50%) scale(0);   /* hidden: shrunk to nothing */
    background: #b74b4b;
    color: black;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;       /* keeps it on one line */
    padding: 0.3rem 0.8rem;
    border-radius: 0.5rem;
    transition: transform 0.2s ease;
    pointer-events: none;      /* bubble itself isn't hoverable */
}

.peek-bug:hover .bug-plea{
    transform: translateX(-50%) scale(1);   /* pops into view */
}
.home-img img{
    position: relative;
    z-index: 1;
    width: 25vw;
    border-radius: 50%;
    box-shadow: 0 0 25px #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
    -webkit-user-drag: none;
    user-select: none;
}

.home-img img:hover{
    transform: scale(1.03);
    box-shadow: 0 0 40px #b74b4b;
}

.social-icons{
    display: flex;
    align-items: center;
}

.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;
    line-height: 0;
}

.social-icons a:hover{
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

.social-icons a .htb-icon{
    width: 2.4rem;
    height: 2.4rem;
    object-fit: contain;
    display: block;
    transition: 0.3s ease;
}

.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: scale(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

.typing-text{
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.talk-wrap{
    position: relative;
    display: inline-block;
}

.card-draw{
    position: absolute;
    top: 50%;
    left: 100%;                 /* sits to the right of the button */
    transform: translateY(-50%);
    width: 40rem;
    height: 24rem;
    opacity: 0;
    pointer-events: none;       /* ignore until shown */
    transition: opacity 0.2s ease;
}

.talk-wrap:hover .card-draw{
    opacity: 1;
    pointer-events: auto;
}

.draw-svg{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.draw-line, .draw-frame{
    fill: none;
    stroke: #b74b4b;
    stroke-width: 2;
    filter: drop-shadow(0 0 4px #b74b4b);   /* neon glow */
}

body::before{
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(183,75,75,0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: beat 4s ease-in-out infinite;
}

@keyframes beat{
    0%, 100% { transform: translate(-50%,-50%) scale(1);   opacity: 0.5; }
    50%      { transform: translate(-50%,-50%) scale(1.15); opacity: 0.9; }
}

/* line: length ~60, hidden then drawn */
.draw-line{
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
}
.talk-wrap:hover .draw-line{
    animation: drawLine 0.3s ease forwards;
}

/* frame: perimeter ~1060, hidden then drawn, starts after the line */
.draw-frame{
    stroke-dasharray: 1060;
    stroke-dashoffset: 1060;
}
.talk-wrap:hover .draw-frame{
    animation: drawFrame 0.7s ease forwards 0.3s;   /* delay = line duration */
}

/* content fades in after the frame finishes */
.card-content{
    position: absolute;
    inset: 20px 8px 20px 70px;   /* fit inside the drawn frame */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
    opacity: 0;
}
.talk-wrap:hover .card-content{
    animation: fadeIn 0.4s ease forwards 1s;   /* after line+frame (0.3+0.7) */
}

.card-content h2{ font-size: 2.2rem; color: #b74b4b; }
.card-content .card-role{ font-size: 1.2rem; color: #ccc; margin-bottom: 0.5rem; }
.card-content a{ color: white; font-size: 1.3rem; }
.card-content a:hover{ color: #b74b4b; }
.card-content i{ color: #b74b4b; margin-right: 0.5rem; }

@keyframes drawLine{  to{ stroke-dashoffset: 0; } }
@keyframes drawFrame{ to{ stroke-dashoffset: 0; } }
@keyframes fadeIn{    to{ opacity: 1; } }

.typing-text span{
    position: relative;
    border-right: 2px solid #b74b4b;
    animation: blink 0.7s steps(1) infinite;
}


@keyframes blink{
    50% { border-color: transparent; }
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@keyframes peek{
0%, 70%   { transform: translateX(0) rotate(0deg); }   /* hidden-ish, resting */
80%, 90%  { transform: translateX(1.2rem) rotate(15deg); } /* peeks out */
100%      { transform: translateX(0) rotate(0deg); }   /* ducks back */
}
@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;
    }
}