/* ==========================================================================
   Orca Point Studio — stylesheet
   Ocean / deep-sea themed, single-page layout.
   ========================================================================== */

:root {
    /* Ocean palette */
    --color-abyss: #040d18;
    --color-navy-deep: #071a2e;
    --color-navy: #0b2744;
    --color-ocean: #0f3f66;
    --color-ocean-mid: #136e95;
    --color-turquoise: #35d6c4;
    --color-turquoise-soft: #8fe9df;
    --color-foam: #eef7f8;
    --color-text-muted: #a9c6d8;
    --color-text-faint: #6f93a8;

    --gradient-depth: linear-gradient(180deg, var(--color-abyss) 0%, var(--color-navy-deep) 40%, var(--color-navy) 70%, var(--color-ocean) 100%);

    --font-display: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --max-width: 1180px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);

    --shadow-deep: 0 20px 60px rgba(0, 10, 20, 0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    margin: 0;
    background: var(--color-abyss);
    color: var(--color-foam);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; }

p { margin: 0; }

button { font-family: inherit; cursor: pointer; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-turquoise);
    color: var(--color-abyss);
    padding: 12px 20px;
    z-index: 1000;
    border-radius: 0 0 8px 0;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 2px solid var(--color-turquoise);
    outline-offset: 3px;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.section-inner--narrow { max-width: 680px; text-align: center; }

.section-eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-turquoise);
    margin-bottom: 10px;
}
.section-eyebrow--standalone {
    margin-bottom: 44px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--color-foam);
    margin-bottom: 48px;
    letter-spacing: -0.01em;
}
.section-inner--narrow .section-title { margin-bottom: 20px; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: rgba(4, 13, 24, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(143, 233, 223, 0.08);
    transition: background 0.3s var(--ease-soft);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand-text {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 1.05rem;
    color: var(--color-foam);
}

.nav-brand-logo { height: 34px; width: auto; }

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
    padding: 4px 0;
    transition: color 0.25s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-turquoise);
    transition: width 0.3s var(--ease-soft);
}
.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--color-foam);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-foam);
    margin: 0 auto;
    transition: transform 0.3s var(--ease-soft), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--gradient-depth);
    isolation: isolate;
}

.hero-depth-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(53, 214, 196, 0.10), transparent 60%),
        radial-gradient(ellipse 60% 40% at 15% 90%, rgba(19, 110, 149, 0.25), transparent 70%),
        radial-gradient(ellipse 60% 40% at 85% 85%, rgba(53, 214, 196, 0.08), transparent 70%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -10%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(143, 233, 223, 0.15) 70%, transparent 100%);
    opacity: 0;
    animation: rise linear infinite;
}

@keyframes rise {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: var(--p-opacity, 0.5); }
    90% { opacity: var(--p-opacity, 0.5); }
    100% { transform: translateY(-110vh) translateX(var(--p-drift, 20px)); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.hero-logo-wrap {
    animation: fade-up 1.1s var(--ease-soft) both;
}

.hero-logo-img {
    max-width: min(420px, 70vw);
    max-height: 220px;
    width: auto;
    filter: drop-shadow(0 10px 40px rgba(53, 214, 196, 0.25));
}

.hero-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: clamp(2.4rem, 8vw, 4.6rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.02;
    color: var(--color-foam);
    text-shadow: 0 0 60px rgba(53, 214, 196, 0.35);
}

.hero-logo-line--accent {
    background: linear-gradient(90deg, var(--color-turquoise-soft), var(--color-turquoise) 60%, #6fd3ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-tagline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: 0.04em;
    animation: fade-up 1.1s 0.2s var(--ease-soft) both;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: color 0.3s;
}
.scroll-cue:hover, .scroll-cue:focus-visible { color: var(--color-turquoise-soft); }

.scroll-cue-mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid currentColor;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.scroll-cue-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    100% { opacity: 0; }
}

.hero-waves {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    z-index: 2;
    line-height: 0;
    pointer-events: none;
}
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: auto;
}
.wave path { fill-opacity: 1; }
.wave--back { fill: rgba(11, 39, 68, 0.9); animation: drift 26s linear infinite; z-index: 1; }
.wave--mid { fill: rgba(15, 63, 102, 0.85); animation: drift 19s linear infinite reverse; z-index: 2; }
.wave--front { fill: rgba(19, 110, 149, 0.9); animation: drift 13s linear infinite; z-index: 3; }

@keyframes drift {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   Games section
   ========================================================================== */

.games {
    position: relative;
    background: var(--color-ocean);
    padding: 110px 0 120px;
}

.game-list {
    display: flex;
    flex-direction: column;
    gap: 72px;
}

.game-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    background: linear-gradient(165deg, rgba(15, 63, 102, 0.55), rgba(7, 26, 46, 0.55));
    border: 1px solid rgba(143, 233, 223, 0.12);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-deep);
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft), border-color 0.4s;
}
.game-card.is-visible { opacity: 1; transform: translateY(0); }
.game-card:hover { border-color: rgba(143, 233, 223, 0.35); }

.game-card--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.game-card--reverse .game-card-media { order: 2; }
.game-card--reverse .game-card-body { order: 1; }

.game-card-media {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.game-card-capsule {
    width: 100%;
    height: auto;
    aspect-ratio: 460 / 215;
    object-fit: cover;
    transition: transform 0.6s var(--ease-soft);
}
.game-card:hover .game-card-capsule { transform: scale(1.04); }

.status-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}
.status-badge--released {
    background: rgba(53, 214, 196, 0.18);
    color: var(--color-turquoise-soft);
    border: 1px solid rgba(53, 214, 196, 0.4);
}
.status-badge--coming-soon {
    background: rgba(255, 196, 102, 0.15);
    color: #ffd98f;
    border: 1px solid rgba(255, 196, 102, 0.35);
}

.game-card-body { display: flex; flex-direction: column; gap: 16px; }

.game-card-title {
    font-size: clamp(1.4rem, 2.4vw, 1.75rem);
    font-weight: 600;
    color: var(--color-foam);
}

.game-card-desc {
    color: var(--color-text-muted);
    font-size: 0.98rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), background 0.3s;
}
.btn-icon { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.btn--steam {
    background: linear-gradient(135deg, var(--color-turquoise), #1fa8d6);
    color: var(--color-abyss);
    box-shadow: 0 8px 24px rgba(53, 214, 196, 0.25);
}
.btn--steam:hover, .btn--steam:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(53, 214, 196, 0.4);
}

.btn--contact {
    margin: 28px auto 0;
    background: rgba(53, 214, 196, 0.1);
    color: var(--color-turquoise-soft);
    border: 1px solid rgba(53, 214, 196, 0.4);
}
.btn--contact:hover, .btn--contact:focus-visible {
    background: rgba(53, 214, 196, 0.18);
    transform: translateY(-2px);
}

.game-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 6px;
}

.gallery-thumb {
    position: relative;
    border: none;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-navy-deep);
    aspect-ratio: 16 / 9;
    transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-soft), filter 0.4s;
    filter: brightness(0.82);
}
.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(53, 214, 196, 0.3);
}
.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
    position: relative;
    background: linear-gradient(180deg, var(--color-ocean) 0%, var(--color-navy-deep) 100%);
    padding: 110px 0 90px;
    text-align: center;
}

.contact-copy {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--color-navy-deep);
    padding: 28px 0;
    text-align: center;
    border-top: 1px solid rgba(143, 233, 223, 0.08);
}
.site-footer p {
    color: var(--color-text-faint);
    font-size: 0.85rem;
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(2, 7, 14, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s var(--ease-soft);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }

.lightbox-image {
    max-width: min(90vw, 1100px);
    max-height: 82vh;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
    transform: scale(0.97);
    transition: transform 0.3s var(--ease-soft);
}
.lightbox.is-open .lightbox-image { transform: scale(1); }

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--color-foam);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.25s, transform 0.25s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(53, 214, 196, 0.25); }

.lightbox-close { top: 24px; right: 24px; font-size: 1.6rem; }
.lightbox-nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav--next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav--prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-nav--next:hover { transform: translateY(-50%) scale(1.08); }

/* ==========================================================================
   Scroll-reveal base state (JS toggles .is-visible)
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .game-card,
    .game-card--reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 26px;
    }
    .game-card--reverse .game-card-media,
    .game-card--reverse .game-card-body { order: initial; }
}

@media (max-width: 680px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(4, 13, 24, 0.97);
        backdrop-filter: blur(16px);
        padding: 20px 24px 28px;
        gap: 18px;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 0.35s var(--ease-soft), opacity 0.35s var(--ease-soft);
        border-bottom: 1px solid rgba(143, 233, 223, 0.1);
    }
    .nav-links.is-open { transform: translateY(0); opacity: 1; }
    .nav-toggle { display: flex; }

    .game-gallery { grid-template-columns: repeat(2, 1fr); }

    .games { padding: 80px 0 90px; }
    .contact { padding: 80px 0 70px; }

    .lightbox-nav { width: 40px; height: 40px; }
    .lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; }
    .lightbox-nav--prev { left: 10px; }
    .lightbox-nav--next { right: 10px; }
}

@media (max-width: 420px) {
    .game-gallery { grid-template-columns: repeat(2, 1fr); }
    .section-title { margin-bottom: 32px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .wave,
    .scroll-cue-dot,
    .particle,
    .hero-logo-wrap,
    .hero-tagline {
        animation: none !important;
    }
    .reveal,
    .game-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}
