@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%;
    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;
        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{
    position: relative;
    border-radius: 50%;
}

.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;
}

.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;
    }
}