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

body{
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: whitesmoke;
}

/* ================= HEADER ================= */

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 9%;
    background-color: black;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s 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;
}

/* ================= SECTION ================= */

section{
    min-height: calc(100vh - 80px);
    padding: 10rem 9% 5rem;
}

/* ================= HOME ================= */

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
}

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

.home-content h3{
    font-size: 4rem;
    font-weight: 700;
}

.home-content p{
    font-size: 1.6rem;
    max-width: 55rem;
}

span{
    color: #b74b4b;
}

/* ================= TYPING TEXT ================= */

.typing-text{
    font-size: 3.4rem;
    font-weight: 600;
    height: 4.2rem;
    min-width: 32rem;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.typing-text span{
    position: relative;
    white-space: nowrap;
}

.typing-text span::before{
    content: "Founding Titan";
    color: indianred;
    animation: words 16s infinite;
}

.typing-text span::after{
    content: "";
    position: absolute;
    left: 100%;
    margin-left: 6px;
    width: 2px;
    height: 100%;
    background-color: #b74b4b;
    animation: cursor 0.7s infinite;
}

/* ================= ANIMATIONS ================= */

@keyframes cursor{
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes words{
    0%, 24%{
        content: "Founding Titan";
    }
    25%, 49%{
        content: "Attack Titan";
    }
    50%, 74%{
        content: "Warhammer Titan";
    }
    75%, 100%{
        content: "Protagonist";
    }
}

/* ================= IMAGE ================= */

.home-img img{
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px #b74b4b;
    transition: transform 0.3s ease;
}

.home-img img:hover{
    transform: scale(1.05);
}

/* ================= SOCIAL ICONS ================= */

.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    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.2) translateY(-4px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

/* ================= BUTTON ================= */

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

/* ================= RESPONSIVE ================= */

@media(max-width:995px){
    .home{
        flex-direction: column;
        gap: 4rem;
    }

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

    .home-content h3{
        font-size: 2.6rem;
    }

    .home-img{
        margin-bottom: 3rem; /* ✅ GAP FIX */
    }

    .home-img img{
        width: 70vw;
    }
}