


* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: Poppins, sans-serif;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-image: url("pictures/Gaming background.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #0b0b0b;
}


    /*HEADER*/

header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 30px;

    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(10px);

    border-bottom: 2px solid red;

    box-shadow:
        0 0 10px red,
        0 0 25px rgba(255, 0, 0, 0.5);

    z-index: 1000;
}


header::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 10%;

    width: 80%;
    height: 2px;

    background: red;

    box-shadow:
        0 0 10px red,
        0 0 25px red;
}

    /*LOGO*/

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}

.logo i {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background-color: rgb(255, 0, 0);

    border: 2px solid black;

    box-shadow:
        0 0 10px red,
        0 0 20px rgba(255, 0, 0, 0.6);

    color: rgb(54, 1, 1);

    font-weight: 700;
    font-size: 1.5rem;

    cursor: pointer;
}

.logo img {
    width: 45px;
    height: 45px;

    object-fit: cover;

    border-radius: 50%;

    border: 2px solid red;

    box-shadow:
        0 0 10px red,
        0 0 20px rgba(255, 0, 0, 0.6);

    display: block;
}

.logo .logo-text {
    font-size: 22px;
    font-weight: 700;

    color: red;

    padding: 7px 15px;

    border: 2px solid red;
    border-radius: 5px;

    letter-spacing: 1.5px;
    text-transform: uppercase;

    white-space: nowrap;

    text-shadow:
        0 0 8px red;

    box-shadow:
        0 0 10px red,
        inset 0 0 10px rgba(255, 0, 0, 0.4);
}

.logo .logo-text::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255, 0, 0, 0.5),
            transparent
        );

    animation: logoScan 3s infinite;
}

@keyframes logoScan {

    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

    /*NAVLINKS*/

nav {
    display: flex;
    align-items: center;

    margin-left: auto;
}

.togglebtn {
    width: 42px;
    height: 42px;

    display: none;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 6px;

    padding: 0;

    background: #050505;

    border: 2px solid red;
    border-radius: 6px;

    cursor: pointer;

    box-shadow:
        0 0 10px rgba(255, 0, 0, 0.5);

    transition: 0.3s ease;
}

.togglebtn span {
    width: 23px;
    height: 3px;

    background: red;

    border-radius: 5px;

    transition: 0.3s ease;
}

.togglebtn:hover {
    background: red;

    box-shadow:
        0 0 15px red,
        0 0 30px red;
}

.togglebtn:hover span {
    background: black;
}


.navlinks {
    display: flex;
    align-items: center;

    gap: 12px;

    list-style: none;

    margin: 0;
    padding: 0;
}

.navlinks li {
    display: block;
}

.navlinks li a {
    display: block;

    color: red;

    padding: 9px 16px;

    background:
        linear-gradient(
            135deg,
            #050505,
            #1a0000
        );

    border: 2px solid red;
    border-radius: 5px;

    letter-spacing: 1px;
    font-weight: 700;

    text-transform: uppercase;

    white-space: nowrap;

    position: relative;
    overflow: hidden;

    box-shadow:
        0 0 10px rgba(255, 0, 0, 0.5),
        inset 0 0 8px rgba(255, 0, 0, 0.3);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.navlinks li a:hover {
    color: black;

    background: red;

    transform: translateY(-2px);

    box-shadow:
        0 0 15px red,
        0 0 35px red;
}


    /*HERO*/
    

.hero-header {
    width: 100%;
    min-height: 100vh;

    padding-top: 120px;

    background: transparent;
}

.wrapper {
    width: 100%;
    height: 95%;

    margin: 0 auto;

    padding: 0 20px;
}

.container {
    width: 100%;
    max-width: 1400px;

    margin: auto;

    display: flex;

    padding: 80px 40px;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 60px;
}

    /*HERO IMG*/

.container .hero-pic {
    width: 450px;
    height: 500px;

    border-radius: 20px;

    overflow: hidden;

    border: 3px solid red;

    background: #050505;

    box-shadow:
        0 0 15px red,
        0 0 35px rgba(255, 0, 0, 0.6);

    position: relative;

    margin: auto;
}

.hero-pic::before {
    content: "";

    position: absolute;

    inset: 0;

    border: 2px solid rgba(255, 0, 0, 0.5);

    clip-path: polygon(
        0 0,
        30% 0,
        0 30%
    );

    z-index: 2;

    pointer-events: none;
}

.hero-pic img {
    height: 100%;
    width: 100%;

    object-fit: cover;

    transition: 0.5s;
}

.hero-pic img:hover {
    transform: translateY(-10px);

    box-shadow:
        0 0 25px red,
        0 0 60px rgba(255, 0, 0, 0.8);
}

    /*HERO TEXT*/

.hero-text {
    max-width: 600px;
}

.hero-text h5 {
    color: #b30000;
    font-size: 20px;
}

.hero-text span {
    font-size: 45px;
    color: red;
}

.hero-text h1 {
    font-size: 65px;

    margin-bottom: 20px;

    color: red;
}

.hero-text p {
    font-size: 22px;

    line-height: 1.8;

    margin-bottom: 30px;

    color: #b30000;
}

    /*SOCIAL LINKS*/

.social {
    display: flex;

    align-items: center;
    justify-content: flex-start;

    gap: 25px;

    margin-top: 30px;
}

.social a {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #050505,
            #220000
        );

    border: 2px solid red;

    border-radius: 10px;

    box-shadow:
        0 0 10px rgba(255, 0, 0, 0.5),
        inset 0 0 10px rgba(255, 0, 0, 0.3);

    transition: 0.3s ease;
}

.social a:hover {
    background: red;

    transform: translateY(-5px);

    box-shadow:
        0 0 20px red,
        0 0 40px rgba(255, 0, 0, 0.8);
}

.social i {
    color: red;

    font-size: 30px;

    transition: 0.3s;
}

.social a:hover i {
    color: black;

    transform: scale(1.2);
}

    /*GENERAL SECTION*/

section {
    min-height: 100vh;

    padding: 120px 60px;

    scroll-margin-top: 80px;
}

.section-container {
    max-width: 1100px;

    margin: auto;
}

.sub-title {
    font-size: 60px;

    color: red;

    margin-bottom: 25px;
}

.section-container p {
    font-size: 24px;

    line-height: 1.8;

    color: #b30000;
}

    /*PROJECT SECTION*/

.projects-grid {
    display: flex;

    justify-content: center;

    gap: 30px;

    flex-wrap: wrap;

    margin-top: 40px;
}

    /*GALLERY SECTION*/

.gallery-container {
    max-width: 1100px;

    margin: auto;
}

.gallery-container p {
    font-size: 24px;

    line-height: 1.8;

    color: #b30000;

    margin-bottom: 25px;
}

    /*CARD*/

.card {
    width: 300px;

    background:
        linear-gradient(
            145deg,
            #160000,
            #8a0101
        );

    border: 2px solid red;

    border-radius: 15px;

    overflow: hidden;

    padding: 20px;

    text-align: center;

    position: relative;

    box-shadow:
        0 0 15px rgba(255, 0, 0, 0.4);

    transition: 0.4s;
}

.card img {
    width: 100%;
    height: 160px;

    object-fit: cover;

    display: block;

    margin: 10px auto;

    border-radius: 10px;

    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.4);

    background: #a30000;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    color: black;

    font-size: 22px;

    letter-spacing: 2px;

    text-shadow:
        0 0 10px red;
}

.card p {
    color: black;

    font-size: 19px;

    letter-spacing: 1px;

    text-shadow:
        0 0 10px red;
}

.card a {
    text-decoration: none;

    color: #000;
}

    /*CONTACT SECTION*/

#contact {
    min-height: 100vh;
}

#contact form {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

form input,
form textarea {
    width: 100%;

    padding: 15px;

    font-size: 16px;

    color: #fff;

    background: #1a1a1a;

    border: 2px solid #550000;

    border-radius: 10px;

    outline: none;

    transition: 0.3s;

    resize: none;
}

form input:focus,
form textarea:focus {
    border-color: #ff0000;

    box-shadow:
        0 0 15px rgba(255, 0, 0, 0.5);
}

.btn-submit {
    width: 180px;

    margin: 20px auto 0;

    padding: 15px;

    font-size: 18px;

    font-weight: bold;

    background: #b30000;

    color: white;

    border: none;

    border-radius: 50px;

    cursor: pointer;

    transition: 0.3s;
}

.btn-submit:hover {
    background: #ff0000;

    transform: translateY(-5px);

    box-shadow:
        0 0 20px rgba(255, 0, 0, 0.7);
}

    /*BACKGROUND MUSIC*/

.bg-music {
    display: none;
}


@media (max-width: 900px) {

    header {
        height: 75px;

        padding: 0 20px;
    }

    .logo {
        gap: 8px;
    }

    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo .logo-text {
        font-size: 18px;
        padding: 6px 10px;

        letter-spacing: 1px;
    }


    /* HAMBURGER */

    .togglebtn {
        display: flex;
    }


    /* NAV CONTAINER */

    nav {
        position: relative;
    }


    /* MOBILE MENU */

    .navlinks {
        position: absolute;

        top: 55px;
        right: 0;

        width: 220px;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 8px;

        background: rgba(0, 0, 0, 0.97);

        border: 2px solid red;
        border-radius: 10px;

        box-shadow:
            0 0 15px red,
            0 0 30px rgba(255, 0, 0, 0.5);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }


    /* MENU OPEN */

    .navlinks.open {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    .navlinks li {
        width: 100%;
    }


    .navlinks li a {
        width: 100%;

        padding: 13px 15px;

        border: none;
        border-radius: 6px;

        text-align: center;

        background: transparent;
    }


    .navlinks li a:hover {
        background: red;

        color: black;

        transform: none;

        box-shadow: none;
    }
}