@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

:root {
    --PrimaryColor: #00C4CC;
    --BackGroundColor: #222222;
    --Secondary: #ECFEFF ;
    --Accent: #FFC000;
}

* {
    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%;
    overflow-x: hidden;
    background-color: var(--BackGroundColor);
    color: var(--Secondary);
    overflow-y:scroll; /* Allow vertical scrolling */
    height: fit-content;
}
.backimage{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
    background-image: url('Common Data/background.jpg');
   opacity: 0.3;
   background-repeat: no-repeat;
   background-size: cover;
   pointer-events: none;
}
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: var(--PrimaryColor);
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}
.logo:active{
    color: var(--Accent);
}
nav a {
    font-size: 1.8rem;
    color: var(--Secondary);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: var(--PrimaryColor);
    border-bottom: 3px solid var(--PrimaryColor);
}
.menu-toggle {
    display: none;
    font-size: 3rem;
    color: var(--PrimaryColor);
    cursor: pointer;
    z-index: 200;
}
/* Show menu toggle on small screens */
@media (max-width: 995px) {
    .menu-toggle {
        display: block;
        position: absolute;
        right: 2rem;
        top: 1.5rem;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 6rem;
        right: 1rem;
        background-color: #222222;
        border-radius: 1rem;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        padding: 2rem;
        width: 80%;
        max-width: 300px;
        transition: 0.3s ease;
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 1.5rem 0;
        font-size: 2rem;
        text-align: center;
    }
    nav a:hover,
    nav a.active {
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid var(--PrimaryColor);
    }
}

section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home {
    margin-top: -3%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: var(--BackGroundColor);
}

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

span {
    font-size: 7rem;
    color: var(--Accent);
}

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

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

.home-img img {
    position: relative;
    width: 40vw;
    box-shadow: 0 0 25px solid var(--PrimaryColor);
    cursor: pointer;
    transition: 0.2s linear;
}

.home-img img:hover {
    font-size: 1.8rem;
    font-weight: 500;
}
.social-icons{
    display: flex;
    justify-content: center;
    align-items: center;
}
    .social-icons a {
        display:inline-flex;
        justify-content: center;
        align-items: center;
        align-content: center;
        width: 4rem;
        height: 4rem;
        background-color: transparent;
        border: 0.2rem solid var(--PrimaryColor);
        font-size: 2rem;
        border-radius: 50%;
        margin: 3rem 1.5rem 3rem 0;
        transition: 0.3s ease;
        color: var(--PrimaryColor);
    }

.social-icons a.links-special {
    /* Specific style for .links-special */
    width: 5rem;
    height: 5rem;
    border: 0.2rem solid var(--Accent);
    color: var(--Accent);
}

.social-icons a:not(.links-special):hover {
    /* Hover for ALL links EXCEPT .links-special */
    color: var(--BackGroundColor);
    transform: scale(1.3) translateY(-5px);
    background-color: var(--PrimaryColor);
    box-shadow: 0 0 25px var(--PrimaryColor);
}

.social-icons a.links-special:hover {
    /* Hover specifically for .links-special */
    color: var(--BackGroundColor);
    transform: scale(1.3) translateY(-5px);
    background-color: var(--Accent);
    box-shadow: 0 0 25px var(--Accent);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: var(--BackGroundColor);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: var(--PrimaryColor);
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid var(--PrimaryColor);
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale3d(1.03);
    background-color: var(--PrimaryColor);
    color: var(--BackGroundColor);
    box-shadow: 0 0 25px var(--PrimaryColor);
}

.typing-text {
    font-size: 100px;
    font-weight: 600;
    width: 100%;
    line-height: 45px;
}

.typing-text span {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(2 * 56px); /* Height for 2 lines based on line-height */
    line-height: 1.5; /* Set consistent line spacing */
    overflow: hidden; /* Hide extra content */
    position: relative;
}

.typing-text span::before {
    transform-origin:left;
    content: "Games";
    color: var(--Accent);
    font-size: 56px;
    transition:ease-in-out;
    animation: words 10s infinite;
}


.typing-text span::after {
    background-color: var(--BackGroundColor);
    position: relative;
    width: fit-content;
    height: 100%;
    border-left: 3px solid var(--BackGroundColor);
    right: -8;
}


@keyframes words {
    0%{ opacity: 1; content: "Games";}
    19%{ opacity: 0; content: "Games";filter: blur(5px); transform: scale(0); }
    20%{ opacity: 0; content: "Assets for Games";}
    35%{ opacity: 1; content: "Assets for Games";filter: blur(0px);transform: scale(1); }
    65%{ opacity: 1; content: "Assets for Games";filter: blur(0px);transform: scale(1);}
    79%{ opacity: 0; content: "Assets for Games";filter: blur(5px); transform: scale(0);}
    80%{ opacity: 0; content: "Games";}
    100%{ opacity: 1; content: "Games";filter: blur(0px);transform: scale(1);}
}

.co-text {
    margin-top: -5%;
    position: relative;
}

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

@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;
        text-align: center;
    }

    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
    .backimage{
        position: fixed; /* Ensures it covers the viewport */
        top: 0;
        left: 0;
        width: 100%; /* Covers the full width */
        height: 100%; /* Covers the full height */
        z-index: 0; /* Stays behind all other elements */
        background-image: url('./background.jpg'); /* Your background image */
        background-repeat: repeat;
        background-size:contain; /* Ensures the image covers the entire area */
        background-attachment: fixed; /* Keeps the image fixed during scroll */
        opacity: 0.3; /* Adjust transparency if needed */
        pointer-events: none; /* Makes it non-interactive */
    }
    .typing-text{
        text-align: center;
    }
    .co-text{
        text-align: center;
    }
    .typing-text span {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: calc(2 * 78px); /* Height for 2 lines based on line-height */
        line-height: 1.5; /* Set consistent line spacing */ /* Hide extra content */
        position: relative;
    }
}