/* =========================================================
   STORM INDUSTRIES — GAMES PAGE
========================================================= */


/* =========================================================
   GENERAL
========================================================= */

.games-hero,
.games-intro,
.games-section,
.development-section,
.creation-section,
.games-cta {
    width: 100%;
}

.container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}


/* =========================================================
   HERO
========================================================= */

.games-hero {
    position: relative;
    min-height: 760px;
    display: flex;
    align-items: center;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(245, 122, 27, 0.22),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #080808 0%,
            #111111 55%,
            #1a1009 100%
        );

    color: #ffffff;
}

.games-hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    right: -180px;
    top: 100px;

    border: 1px solid rgba(245, 122, 27, 0.25);
    border-radius: 50%;

    box-shadow:
        0 0 0 60px rgba(245, 122, 27, 0.03),
        0 0 0 120px rgba(245, 122, 27, 0.02);

    pointer-events: none;
}

.games-hero::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    height: 180px;

    background: linear-gradient(
        to top,
        var(--bg),
        transparent
    );

    pointer-events: none;
}

.games-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.85),
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.15)
        );

    pointer-events: none;
}

.games-hero-content {
    position: relative;
    z-index: 2;

    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 150px 24px 100px;
}

.games-hero .section-label {
    color: var(--storm-orange);
}

.games-hero h1 {
    max-width: 850px;
    margin: 20px 0;

    font-size: clamp(52px, 8vw, 100px);
    line-height: 0.95;
    letter-spacing: -5px;
    font-weight: 900;
}

.games-hero p {
    max-width: 650px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 18px;
    line-height: 1.8;
}

.games-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 35px;
}

.hero-primary-btn,
.hero-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 52px;
    padding: 0 24px;

    border-radius: 100px;

    font-size: 13px;
    font-weight: 800;

    transition: var(--transition);
}

.hero-primary-btn {
    background: var(--storm-orange);
    color: #ffffff;
}

.hero-primary-btn:hover {
    background: var(--storm-orange-dark);
    transform: translateY(-4px);
}

.hero-secondary-btn {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.hero-secondary-btn:hover {
    border-color: var(--storm-orange);
    color: var(--storm-orange);
    transform: translateY(-4px);
}


/* =========================================================
   INTRO
========================================================= */

.games-intro {
    padding: 120px 0 80px;
    background: var(--bg);
}

.games-intro-content {
    max-width: 850px;
}

.section-label {
    display: inline-block;

    color: var(--storm-orange);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.games-intro h2 {
    margin: 18px 0;

    color: var(--text);

    font-size: clamp(38px, 5vw, 65px);
    line-height: 1;
    letter-spacing: -3px;
}

.games-intro p {
    max-width: 760px;

    color: var(--text-soft);

    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   COMMON GAME SECTIONS
========================================================= */

.games-section {
    padding: 100px 0;
    background: var(--bg);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;

    margin-bottom: 55px;
}

.section-heading h2 {
    margin-top: 15px;

    color: var(--text);

    font-size: clamp(36px, 5vw, 62px);
    line-height: 1;
    letter-spacing: -3px;
}

.section-heading > p {
    max-width: 390px;

    color: var(--text-soft);

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   GAMES GRID
========================================================= */

.games-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   GAME CARD
========================================================= */

.game-card {
    position: relative;

    min-width: 0;
    overflow: hidden;

    border-radius: var(--radius-medium);

    background: var(--surface);

    border: 1px solid var(--border);

    box-shadow: var(--shadow);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);

    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);

    border-color: rgba(245, 122, 27, 0.5);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   GAME IMAGE
========================================================= */

.game-card-image {
    position: relative;

    width: 100%;
    aspect-ratio: 3 / 4;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #171717,
            #090909
        );
}

.game-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.6s cubic-bezier(.2,.8,.2,1),
        filter 0.6s ease;
}

.game-card:hover .game-card-image img {
    transform: scale(1.07);

    filter: brightness(0.78);
}


/* =========================================================
   GAME IMAGE OVERLAY
========================================================= */

.game-card-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.72),
            transparent 55%
        );

    opacity: 0.8;

    transition: opacity var(--transition);
}

.game-card:hover .game-card-image::after {
    opacity: 1;
}


/* =========================================================
   GAME BADGE
========================================================= */

.game-badge {
    position: absolute;

    top: 15px;
    left: 15px;

    z-index: 3;

    padding: 8px 11px;

    border-radius: 100px;

    background: var(--storm-orange);
    color: #ffffff;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;
    text-transform: uppercase;
}


/* =========================================================
   GAME CARD CONTENT
========================================================= */

.game-card-content {
    padding: 20px;
}

.game-card-content h3 {
    margin: 0 0 8px;

    color: var(--text);

    font-size: 19px;
    line-height: 1.2;
}

.game-card-content p {
    margin: 0;

    color: var(--text-soft);

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   GAME CARD FOOTER
========================================================= */

.game-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-top: 18px;
}

.game-platform {
    color: var(--text-soft);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-card-arrow {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--surface-soft);
    color: var(--text);

    transition: var(--transition);
}

.game-card:hover .game-card-arrow {
    background: var(--storm-orange);
    color: #ffffff;

    transform: rotate(-45deg);
}

.game-view-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--storm-orange);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.game-view-link:hover {
    color: var(--text);
}


/* =========================================================
   LOADING
========================================================= */

.games-loading {
    min-height: 180px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 15px;

    color: var(--text-soft);

    text-align: center;
}

.games-loading p {
    margin: 0;
    font-size: 13px;
}

.loader-spinner {
    width: 38px;
    height: 38px;

    border: 3px solid var(--border);
    border-top-color: var(--storm-orange);

    border-radius: 50%;

    animation: gamesSpinner 0.8s linear infinite;
}

@keyframes gamesSpinner {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   EMPTY STATE
========================================================= */

.games-empty {
    min-height: 180px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 15px;

    color: var(--text-soft);

    text-align: center;
}

.games-empty i {
    font-size: 38px;
    color: var(--storm-orange);
}

.games-empty p {
    margin: 0;
}


/* =========================================================
   DEVELOPMENT SECTION
========================================================= */

.development-section {
    padding: 120px 0;

    background:
        linear-gradient(
            135deg,
            #080808,
            #151515
        );

    color: #ffffff;
}

.development-content {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;
}

.development-text .section-label {
    color: var(--storm-orange);
}

.development-text h2 {
    max-width: 650px;

    margin: 20px 0;

    font-size: clamp(40px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -3px;
}

.development-text p {
    max-width: 570px;

    color: rgba(255, 255, 255, 0.68);

    font-size: 16px;
    line-height: 1.8;
}

.development-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 25px;

    padding: 10px 15px;

    border: 1px solid rgba(245, 122, 27, 0.35);

    border-radius: 100px;

    color: var(--storm-orange);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--storm-orange);

    box-shadow:
        0 0 0 5px rgba(245, 122, 27, 0.12);

    animation: statusPulse 1.8s ease-in-out infinite;
}

@keyframes statusPulse {
    50% {
        transform: scale(0.75);
        opacity: 0.5;
    }
}


/* =========================================================
   DEVELOPMENT VISUAL
========================================================= */

.development-visual {
    min-height: 480px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    border-radius: var(--radius-large);

    background:
        radial-gradient(
            circle at center,
            rgba(245, 122, 27, 0.18),
            transparent 55%
        ),
        #0e0e0e;

    border: 1px solid rgba(255, 255, 255, 0.1);

    overflow: hidden;
}

.development-placeholder {
    width: 100%;
    height: 100%;
    min-height: 420px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 18px;

    border: 1px dashed rgba(245, 122, 27, 0.4);

    border-radius: var(--radius-medium);

    color: rgba(255, 255, 255, 0.45);

    text-transform: uppercase;
    letter-spacing: 2px;

    font-size: 10px;
}

.development-placeholder i {
    font-size: 70px;

    color: var(--storm-orange);

    opacity: 0.8;
}


/* =========================================================
   CREATION SECTION
========================================================= */

.creation-section {
    padding: 120px 0;

    background: var(--bg);
}

.creation-heading {
    max-width: 850px;

    margin-bottom: 60px;
}

.creation-heading h2 {
    margin: 18px 0;

    color: var(--text);

    font-size: clamp(40px, 5vw, 65px);
    line-height: 1;
    letter-spacing: -3px;
}

.creation-heading p {
    max-width: 720px;

    color: var(--text-soft);

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   CREATIVE AREAS
========================================================= */

.creation-areas {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.creation-card {
    padding: 32px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    transition: var(--transition);
}

.creation-card:hover {
    transform: translateY(-8px);

    border-color: rgba(245, 122, 27, 0.45);

    box-shadow: var(--shadow);
}

.creation-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 25px;

    border-radius: 16px;

    background:
        rgba(245, 122, 27, 0.12);

    color: var(--storm-orange);

    font-size: 22px;
}

.creation-card h3 {
    margin-bottom: 12px;

    color: var(--text);

    font-size: 20px;
}

.creation-card p {
    margin: 0;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   SOFTWARE
========================================================= */

.software-section {
    margin-top: 100px;
}

.software-heading {
    margin-bottom: 35px;
}

.software-heading h3 {
    margin-top: 14px;

    color: var(--text);

    font-size: clamp(28px, 4vw, 42px);

    letter-spacing: -2px;
}

.software-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.software-card {
    padding: 28px;

    background: var(--surface);

    border: 1px solid var(--border);

    border-radius: var(--radius-medium);

    transition: var(--transition);
}

.software-card:hover {
    transform: translateY(-7px);

    border-color: var(--storm-orange);

    box-shadow: var(--shadow);
}

.software-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    border-radius: 18px;

    background: var(--surface-soft);

    color: var(--storm-orange);

    font-size: 28px;
}

.software-card h4 {
    margin: 0 0 8px;

    color: var(--text);

    font-size: 18px;
}

.software-card p {
    margin: 0;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   CTA
========================================================= */

.games-cta {
    padding: 120px 0;

    background:
        linear-gradient(
            135deg,
            var(--storm-orange),
            var(--storm-orange-dark)
        );

    color: #ffffff;
}

.games-cta-content {
    max-width: 800px;
}

.games-cta .section-label {
    color: #ffffff;
    opacity: 0.8;
}

.games-cta h2 {
    margin: 18px 0;

    font-size: clamp(42px, 6vw, 75px);
    line-height: 0.98;
    letter-spacing: -4px;
}

.games-cta p {
    max-width: 650px;

    color: rgba(255, 255, 255, 0.82);

    font-size: 16px;
    line-height: 1.8;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-top: 28px;
    padding: 15px 23px;

    border-radius: 100px;

    background: #ffffff;
    color: var(--storm-orange-dark);

    font-size: 12px;
    font-weight: 900;

    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-4px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.2);
}

.cta-btn i {
    transition: transform var(--transition);
}

.cta-btn:hover i {
    transform: translateX(5px);
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.game-card,
.creation-card,
.software-card {
    opacity: 0;
    transform: translateY(35px);

    animation:
        gamesReveal 0.7s ease forwards;
}

@keyframes gamesReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   DARK MODE ADJUSTMENTS
========================================================= */

[data-theme="dark"] .game-card,
[data-theme="dark"] .creation-card,
[data-theme="dark"] .software-card {
    background: var(--surface);
}

[data-theme="dark"] .development-section {
    background:
        linear-gradient(
            135deg,
            #050505,
            #111111
        );
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .games-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .development-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .development-visual {
        min-height: 400px;
    }

    .creation-areas {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .software-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .games-hero {
        min-height: 680px;
    }

    .games-hero-content {
        padding: 150px 18px 80px;
    }

    .games-hero h1 {
        font-size: clamp(45px, 15vw, 72px);
        letter-spacing: -3px;
    }

    .games-hero p {
        font-size: 15px;
    }

    .games-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-primary-btn,
    .hero-secondary-btn {
        width: 100%;
    }

    .games-intro,
    .games-section,
    .development-section,
    .creation-section,
    .games-cta {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .games-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 14px;
    }

    .game-card-content {
        padding: 15px;
    }

    .game-card-content h3 {
        font-size: 15px;
    }

    .game-card-content p {
        font-size: 11px;
    }

    .game-card-footer {
        margin-top: 12px;
    }

    .game-card-arrow {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .development-content {
        gap: 35px;
    }

    .development-visual {
        min-height: 320px;
        padding: 15px;
    }

    .development-placeholder {
        min-height: 290px;
    }

    .development-placeholder i {
        font-size: 50px;
    }

    .creation-areas,
    .software-grid {
        grid-template-columns: 1fr;
    }

    .software-section {
        margin-top: 70px;
    }

    .games-cta h2 {
        letter-spacing: -3px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 430px) {

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card-image {
        aspect-ratio: 16 / 10;
    }

    .games-hero h1 {
        font-size: 48px;
    }

    .games-hero h2,
    .creation-heading h2 {
        font-size: 38px;
    }

    .development-text h2 {
        font-size: 40px;
    }
}
