/* =========================================================
   LONGCLAW STUDIO
   Modern Creative / Digital Studio
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
    --bg-main: #07090d;
    --bg-secondary: #0b0f15;
    --bg-card: #10151d;

    --gold: #f0a202;
    --gold-light: #ffc44d;
    --gold-dark: #c67e00;

    --text-main: #f5f7fa;
    --text-secondary: #a5adb9;
    --text-muted: #707987;

    --border: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(240, 162, 2, 0.35);

    --shadow: rgba(0, 0, 0, 0.45);

    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 22px;

    --max-width: 1400px;
}


/* =========================================================
   2. RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family:
        "Inter",
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text-main);

    background:
        radial-gradient(
            circle at 50% -15%,
            rgba(240, 162, 2, 0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at 0% 50%,
            rgba(30, 75, 120, 0.10),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--bg-main),
            var(--bg-secondary)
        );

    overflow-x: hidden;
}


/* =========================================================
   3. TEXT / LINKS
   ========================================================= */

h1,
h2,
p {
    margin: 0;
}


a {
    color: inherit;
}


::selection {
    background: var(--gold);
    color: #080a0e;
}


/* =========================================================
   4. MAIN CONTAINER
   ========================================================= */

.container {
    width: min(92%, var(--max-width));

    margin: 0 auto;

    padding:
        0 0 80px;
}


/* =========================================================
   5. HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 600px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding:
        100px 20px
        80px;

    isolation: isolate;
}


/* Large atmospheric glow */

.hero::before {
    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(240, 162, 2, 0.10),
            transparent 65%
        );

    filter: blur(30px);

    z-index: -1;

    pointer-events: none;
}


/* Subtle grid */

.hero::after {
    content: "";

    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 80%
        );

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 80%
        );

    opacity: 0.35;

    z-index: -2;

    pointer-events: none;
}


/* =========================================================
   6. HERO TITLE
   ========================================================= */

.hero h1 {
    font-size:
        clamp(3rem, 8vw, 6.5rem);

    font-weight: 900;

    letter-spacing:
        clamp(1px, 0.5vw, 6px);

    line-height: 0.95;

    margin-bottom: 28px;

    color: var(--text-main);

    background:
        linear-gradient(
            135deg,
            #ffffff 15%,
            #f0a202 75%,
            #c67e00
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    text-shadow:
        0 0 35px rgba(240, 162, 2, 0.08);

    animation:
        hero-enter 0.8s ease-out;
}


/* =========================================================
   7. TAGLINE
   ========================================================= */

.tagline {
    max-width: 700px;

    color: var(--text-secondary);

    font-size:
        clamp(1rem, 2vw, 1.2rem);

    line-height: 1.7;

    letter-spacing: 0.2px;

    animation:
        hero-enter 0.8s ease-out 0.1s both;
}


/* =========================================================
   8. PROJECT / GAME SECTION
   ========================================================= */

.games {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(320px, 1fr)
        );

    gap: 28px;

    margin-top: 20px;
}


/* =========================================================
   9. PROJECT CARD
   ========================================================= */

.game-card {
    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    min-height: 500px;

    padding: 30px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-large);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018)
        );

    box-shadow:
        0 20px 50px var(--shadow);

    -webkit-backdrop-filter:
        blur(12px);

    backdrop-filter:
        blur(12px);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* Gold line */

.game-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 15%;

    width: 70%;
    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--gold),
            transparent
        );

    opacity: 0.65;
}


/* Background glow */

.game-card::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    right: -150px;
    top: -150px;

    border-radius: 50%;

    background:
        rgba(240, 162, 2, 0.08);

    filter: blur(45px);

    pointer-events: none;
}


.game-card:hover {
    transform:
        translateY(-8px);

    border-color:
        var(--border-gold);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(240, 162, 2, 0.07);
}


/* =========================================================
   10. PROJECT TITLE
   ========================================================= */

.game-card h2 {
    position: relative;

    z-index: 2;

    margin-bottom: 25px;

    font-size: 1.8rem;

    font-weight: 800;

    color: var(--text-main);

    letter-spacing: 0.3px;

    transition:
        color 0.25s ease;
}


.game-card:hover h2 {
    color: var(--gold-light);
}


/* =========================================================
   11. LOGO / IMAGE AREA
   ========================================================= */

.logo-box {
    position: relative;

    width: min(240px, 80%);

    aspect-ratio: 1 / 1;

    height: auto;

    display: flex;

    align-items: center;
    justify-content: center;

    margin:
        0 auto 28px;

    border:
        1px solid rgba(240, 162, 2, 0.22);

    border-radius:
        var(--radius-medium);

    background:
        radial-gradient(
            circle at center,
            rgba(240, 162, 2, 0.08),
            rgba(5, 8, 12, 0.85)
        );

    color:
        var(--text-muted);

    font-size: 1rem;

    font-weight: 700;

    letter-spacing: 2px;

    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.5),
        0 15px 30px rgba(0, 0, 0, 0.25);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* Image shine */

.logo-box::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.07),
            transparent 35%
        );

    pointer-events: none;
}


.game-card:hover .logo-box {
    transform:
        scale(1.025);

    border-color:
        rgba(240, 162, 2, 0.5);

    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.5),
        0 20px 35px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   12. DESCRIPTION
   ========================================================= */

.game-card p {
    max-width: 500px;

    margin-bottom: 28px;

    color:
        var(--text-secondary);

    font-size: 0.98rem;

    line-height: 1.7;

    flex-grow: 1;
}


/* =========================================================
   13. BUTTON
   ========================================================= */

.btn {
    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 150px;

    padding:
        13px 25px;

    border-radius:
        var(--radius-small);

    border:
        1px solid rgba(240, 162, 2, 0.45);

    background:
        linear-gradient(
            135deg,
            var(--gold-light),
            var(--gold-dark)
        );

    color:
        #090b0f;

    text-decoration: none;

    font-size: 0.95rem;

    font-weight: 800;

    letter-spacing: 0.2px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3);

    transition:
        transform 0.25s ease,
        filter 0.25s ease,
        box-shadow 0.25s ease;
}


.btn:hover {
    transform:
        translateY(-3px);

    filter:
        brightness(1.08);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(240, 162, 2, 0.12);
}


.btn:active {
    transform:
        translateY(-1px);
}


/* =========================================================
   14. RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {

    .container {
        width: 90%;
    }

    .hero {
        min-height: 540px;

        padding:
            80px 20px
            60px;
    }

    .games {
        grid-template-columns:
            repeat(
                auto-fit,
                minmax(280px, 1fr)
            );
    }

    .game-card {
        min-height: 470px;
    }

}


/* =========================================================
   15. RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .container {
        width: 92%;

        padding-bottom: 50px;
    }

    .hero {
        min-height: 500px;

        padding:
            70px 10px
            50px;
    }

    .hero h1 {
        font-size:
            clamp(2.8rem, 15vw, 4.5rem);

        letter-spacing: 1px;
    }

    .tagline {
        font-size: 0.95rem;

        line-height: 1.65;
    }

    .games {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .game-card {
        min-height: 450px;

        padding:
            25px 20px;
    }

    .game-card h2 {
        font-size: 1.6rem;
    }

    .logo-box {
        width: min(220px, 75vw);
    }

    .btn {
        width: 100%;

        max-width: 250px;
    }

}


/* =========================================================
   16. VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 380px) {

    .hero h1 {
        font-size: 2.7rem;
    }

    .game-card {
        padding: 22px 16px;
    }

}


/* =========================================================
   17. ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}


/* =========================================================
   18. ANIMATION
   ========================================================= */

@keyframes hero-enter {

    from {
        opacity: 0;

        transform:
            translateY(18px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}
