/* =====================================
   VASHUCODER44 — INDIE GAME CREATOR
   ===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #07070c;
    color: white;
    overflow-x: hidden;
}


/* =====================================
   ANIMATED BACKGROUND
   ===================================== */

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.background::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;

    left: 50%;
    top: 20%;

    transform: translate(-50%, -50%);

    background: radial-gradient(
        circle,
        rgba(109, 93, 252, 0.12),
        transparent 70%
    );

    animation: backgroundGlow 6s infinite alternate ease-in-out;
}

@keyframes backgroundGlow {

    from {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }

}

.background span {
    position: absolute;

    color: rgba(140, 125, 255, 0.35);

    font-size: 22px;

    animation: float 8s infinite ease-in-out;
}

.background span:nth-child(1) {
    left: 5%;
    top: 20%;
}

.background span:nth-child(2) {
    left: 15%;
    top: 70%;
    animation-delay: 1s;
}

.background span:nth-child(3) {
    left: 27%;
    top: 40%;
    animation-delay: 2s;
}

.background span:nth-child(4) {
    left: 40%;
    top: 80%;
    animation-delay: 3s;
}

.background span:nth-child(5) {
    left: 52%;
    top: 25%;
    animation-delay: 1.5s;
}

.background span:nth-child(6) {
    left: 64%;
    top: 65%;
    animation-delay: 2.5s;
}

.background span:nth-child(7) {
    left: 75%;
    top: 35%;
    animation-delay: 3.5s;
}

.background span:nth-child(8) {
    left: 85%;
    top: 75%;
    animation-delay: 4s;
}

.background span:nth-child(9) {
    left: 92%;
    top: 20%;
    animation-delay: 2s;
}

.background span:nth-child(10) {
    left: 48%;
    top: 10%;
    animation-delay: 4.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.25;
    }

    50% {
        transform: translateY(-35px) rotate(180deg);
        opacity: 0.8;
    }

}


/* =====================================
   HEADER
   ===================================== */

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 6%;

    background: rgba(7, 7, 12, 0.78);

    backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    z-index: 100;

    transition: background 0.3s ease;
}

.logo {
    color: white;

    text-decoration: none;

    font-size: 21px;

    font-weight: 800;

    letter-spacing: 1px;
}

nav {
    display: flex;

    gap: 25px;
}

nav a {
    color: #aaa;

    text-decoration: none;

    font-size: 14px;

    transition: 0.3s;
}

nav a:hover {
    color: white;

    text-shadow:
        0 0 12px rgba(140, 125, 255, 0.7);
}


/* =====================================
   HERO
   ===================================== */

.hero {
    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 120px 20px 60px;

    position: relative;
}

.hero-content {
    max-width: 900px;
}

.small-title {
    color: #8e7cff;

    font-weight: bold;

    letter-spacing: 4px;

    font-size: 13px;

    margin-bottom: 20px;
}

h1 {
    font-size: clamp(45px, 8vw, 90px);

    line-height: 1;

    font-weight: 900;

    text-shadow:
        0 0 20px rgba(120, 100, 255, 0.4);
}

h1 span {
    display: block;

    font-size: clamp(20px, 3vw, 32px);

    margin-top: 18px;

    color: #9d93ff;
}

.hero-text {
    max-width: 600px;

    margin: 30px auto;

    color: #aaa;

    font-size: 18px;

    line-height: 1.7;
}

.hero-buttons {
    display: flex;

    justify-content: center;

    gap: 15px;

    flex-wrap: wrap;
}


/* =====================================
   BUTTONS
   ===================================== */

.button {
    display: inline-block;

    padding: 14px 23px;

    border: 1px solid rgba(255, 255, 255, 0.15);

    border-radius: 10px;

    color: white;

    text-decoration: none;

    background: rgba(255, 255, 255, 0.05);

    transition:
        transform 0.3s,
        border-color 0.3s,
        box-shadow 0.3s;
}

.button:hover {
    transform: translateY(-4px);

    border-color: #8e7cff;

    box-shadow:
        0 0 25px rgba(120, 100, 255, 0.25);
}

.button.primary {
    background: #6d5dfc;

    border-color: #6d5dfc;

    animation: buttonPulse 3s infinite;
}

@keyframes buttonPulse {

    0%,
    100% {
        box-shadow: 0 0 0 rgba(109, 93, 252, 0);
    }

    50% {
        box-shadow:
            0 0 25px rgba(109, 93, 252, 0.35);
    }

}


/* =====================================
   SCROLL INDICATOR
   ===================================== */

.scroll-indicator {
    position: absolute;

    bottom: 25px;

    left: 50%;

    transform: translateX(-50%);

    color: #666;

    font-size: 11px;

    letter-spacing: 3px;

    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 8px);
    }

}


/* =====================================
   SECTIONS
   ===================================== */

.section {
    max-width: 1100px;

    margin: auto;

    padding: 110px 25px;
}

.section-title {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}

.section-title span {
    color: #6d5dfc;

    font-weight: bold;
}

.section-title h2 {
    font-size: 36px;
}

.section-description {
    color: #888;

    margin-bottom: 35px;
}


/* =====================================
   CARDS
   ===================================== */

.card,
.game-card,
.profile-card,
.link-card {

    background:
        rgba(255, 255, 255, 0.035);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    border-radius: 18px;

    backdrop-filter: blur(8px);

    transition:
        transform 0.35s,
        border-color 0.35s,
        box-shadow 0.35s;
}

.card:hover,
.game-card:hover,
.profile-card:hover,
.link-card:hover {

    transform: translateY(-6px);

    border-color:
        rgba(140, 120, 255, 0.45);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3);
}


/* =====================================
   ABOUT
   ===================================== */

.about-card {

    display: flex;

    gap: 25px;

    padding: 35px;
}

.card-icon {
    font-size: 45px;
}

.about-card h3 {
    font-size: 23px;

    margin-bottom: 15px;
}

.about-card p {
    color: #aaa;

    line-height: 1.7;

    margin-bottom: 12px;
}


/* =====================================
   GAMES
   ===================================== */

.games-container {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;
}

.game-card {
    padding: 25px;

    overflow: hidden;
}

.game-card.featured {

    border-color:
        rgba(109, 93, 252, 0.45);

    box-shadow:
        0 0 30px rgba(109, 93, 252, 0.08);
}

.game-header h3 {

    font-size: 25px;

    margin-top: 8px;
}

.featured-label,
.game-label {

    display: inline-block;

    font-size: 11px;

    color: #8e7cff;

    letter-spacing: 2px;

    font-weight: bold;
}


/* =====================================
   ITCH.IO EMBEDS
   ===================================== */

.itch-embed {

    margin-top: 25px;

    width: 100%;

    display: flex;

    justify-content: center;

    overflow: hidden;

    border-radius: 10px;
}

.itch-embed iframe {

    display: block;

    width: 560px;

    max-width: 100%;

    height: 175px;

    border: 0;

    border-radius: 10px;
}


/* =====================================
   SCRATCH
   ===================================== */

.profile-card {

    display: flex;

    align-items: center;

    gap: 25px;

    padding: 35px;
}

.scratch-icon {

    font-size: 55px;

    animation:
        scratchPulse 3s infinite;
}

@keyframes scratchPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

}

.profile-content h3 {

    font-size: 24px;

    margin-bottom: 10px;
}

.profile-content p {

    color: #999;

    margin-bottom: 20px;
}


/* =====================================
   LINKS
   ===================================== */

.links-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 20px;
}

.link-card {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 25px;

    color: white;

    text-decoration: none;
}

.link-card > span {

    font-size: 35px;
}

.link-card h3 {

    margin-bottom: 5px;
}

.link-card p {

    color: #888;
}


/* =====================================
   FOOTER
   ===================================== */

footer {

    text-align: center;

    padding: 60px 20px;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);

    color: #777;
}

.footer-logo {

    color: white;

    font-size: 23px;

    font-weight: bold;

    margin-bottom: 8px;
}

.copyright {

    margin-top: 25px;

    font-size: 12px;
}


/* =====================================
   SCROLL REVEAL
   ===================================== */

.reveal {

    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {

    opacity: 1;

    transform: translateY(0);
}


/* =====================================
   MOBILE
   ===================================== */

@media (max-width: 750px) {

    header {

        padding:
            15px 20px;
    }

    nav {

        display: none;
    }

    .section {

        padding:
            80px 20px;
    }

    .games-container,
    .links-grid {

        grid-template-columns:
            1fr;
    }

    .about-card,
    .profile-card {

        flex-direction: column;

        align-items: flex-start;
    }

    .hero {

        padding-top: 100px;
    }

    h1 {

        font-size: 50px;
    }

    .itch-embed iframe {

        width: 100%;

        height: 175px;
    }

}


/* =====================================
   VERY SMALL SCREENS
   ===================================== */

@media (max-width: 400px) {

    h1 {

        font-size: 42px;
    }

    h1 span {

        font-size: 19px;
    }

    .section-title h2 {

        font-size: 30px;
    }

    .button {

        width: 100%;

        text-align: center;
    }

}