@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;
}

body {
    width: 100%;
    min-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: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* ===============================
   COMMON HEADER
================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 9999;
}

.logo {
    font-size: 3rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav {
    display: flex;
    align-items: center;
}

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;
}

.menu-toggle {
    display: none;
    width: 4.5rem;
    height: 4.5rem;
    border: 2px solid #b74b4b;
    border-radius: 0.8rem;
    background: transparent;
    color: #b74b4b;
    font-size: 2.2rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.menu-toggle:hover {
    background: #b74b4b;
    color: black;
}

/* Hero */
section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
    padding-top: 10rem;
}

.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home .home-content .name{
    background: linear-gradient(90deg, #00c6ff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

span {
    color: #b74b4b;
    
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    max-width: 700px;
}

.home-img {
    border-radius: 2%;
    flex-shrink: 0;
}

.home-img img {
    position: relative;
    width: 32vw;
    max-width: 430px;
    min-width: 260px;
    border-radius: 50%;
    box-shadow: 0 0 25px #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover {
    transform: scale(1.03);
}

.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: "Software Developer";
    color: #b74b4b;
    animation: words 20s infinite;
}

.typing-text span::after {
    content: "";
    background-color: black;
    position: relative;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    animation: cursor 0.6s infinite;
}

@keyframes cursor {
    to {
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words {
    0%, 20% {
        content: "Web Developer";
    }
    21%, 40% {
        content: "Software Developer";
    }
    41%, 60% {
        content: "Web Designer";
    }
    61%, 80% {
        content: "Content Creator";
    }
    81%, 100% {
        content: "Gamer";
    }
}

/* Tablet */
@media (max-width: 995px) {
    header {
        margin-top: 0;
        padding: 1.2rem 5%;
    }

    .menu-toggle {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1002;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 80%);
        height: 100vh;
        padding: 9rem 3rem 3rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        background: #161616;
        border-left: 3px solid #b74b4b;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav a {
        display: block;
        font-size: 2rem;
        margin: 0;
        padding: 1.5rem 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    nav a:hover,
    nav a.active {
        padding-left: 1.5rem;
        border-bottom: 2px solid #b74b4b;
        background: rgba(183, 75, 75, 0.08);
        border-radius: 0.5rem;
    }

    .home {
        gap: 4rem;
    }
}

/* Tablet layout */
@media (min-width: 601px) and (max-width: 995px) {
    .home {
        flex-direction: column;
        padding-top: 11rem;
        text-align: center;
        gap: 3rem;
    }

    .home-content {
        max-width: 750px;
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home .home-content h3 {
        font-size: 3rem;
    }

    .home-content p {
        font-size: 1.5rem;
    }

    .home-img img {
        width: min(45vw, 360px);
        min-width: 0;
        margin-top: 2rem;
    }

    .social-icons a {
        margin-right: 0.8rem;
        margin-left: 0.8rem;
    }
}

/* Mobile layout */
@media (max-width: 600px) {
    html {
        font-size: 55%;
    }

    header {
        padding: 1rem 5%;
    }

    .logo {
        font-size: 2.7rem;
    }

    .menu-toggle {
        width: 4.2rem;
        height: 4.2rem;
    }

    nav {
        width: min(300px, 85%);
        padding: 8rem 2rem 2rem;
    }

    nav a {
        font-size: 1.8rem;
        padding: 1.4rem 1rem;
    }

    .home {
        flex-direction: column;
        margin: 0;
        min-height: 100vh;
        padding: 10rem 5% 5rem;
        gap: 2.5rem;
        text-align: center;
    }

    .home-img {
        order: 1;
    }

    .home-content {
        order: 2;
        width: 100%;
    }

    .home .home-content h1 {
        font-size: clamp(3.8rem, 11vw, 5rem);
    }

    .home .home-content h3 {
        font-size: clamp(2.3rem, 7vw, 3rem);
        min-width: 0;
    }

    .typing-text {
        min-width: 0;
    }

    .home-content p {
        font-size: 1.45rem;
        line-height: 1.7;
    }

    .home-img img {
        width: min(65vw, 280px);
        min-width: 0;
        margin-top: 1rem;
    }

    .social-icons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .social-icons a {
        width: 4rem;
        height: 4rem;
        margin: 2rem 0 1rem;
    }

    .btn {
        margin-top: 1rem;
        padding: 0.9rem 2.3rem;
    }
}


