/* ===================================================
   SUGO INTERACTIVE — Styles
   Premium dark-themed game studio website
   =================================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #141832;
    --bg-vision: #f5f5f5;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-dark: #0a0a0a;

    --accent: #4a7ab5;
    --accent-glow: rgba(74, 122, 181, 0.15);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --nav-height: 80px;
    --container-max: 1200px;
    --radius-card: 24px;
    --radius-btn: 0px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

/* ---------- HEADER / NAV ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 48px;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.4s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    font-size: 1rem;
    letter-spacing: 4px;
    white-space: nowrap;
}

.logo-bold {
    font-weight: 800;
    color: var(--text-primary);
}

.logo-light {
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--text-secondary);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--text-primary);
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 40px 80px;
    text-align: center;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Subtle radial glow behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74, 122, 181, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.05;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.hero-title-bold {
    font-weight: 800;
    color: var(--text-primary);
}

.hero-title-light {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 10px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 48px;
    letter-spacing: 1px;
}

.hero-cta {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--text-dark);
    background: var(--text-primary);
    padding: 16px 40px;
    border: 1px solid var(--text-primary);
    transition: var(--transition);
}

.hero-cta:hover {
    background: transparent;
    color: var(--text-primary);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity var(--transition);
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

/* ---------- SECTION LABEL ---------- */
.section-label {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 32px;
    text-transform: uppercase;
}

/* ---------- CORE PHILOSOPHY ---------- */
.philosophy {
    padding: 160px 0;
    background: var(--bg-primary);
    position: relative;
}

/* subtle divider line */
.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.philosophy-text {
    text-align: center;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-text strong {
    font-weight: 700;
    color: var(--text-primary);
}

/* ---------- PORTFOLIO / GAMES ---------- */
.portfolio {
    padding: 160px 0 120px;
    background: var(--bg-primary);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.portfolio-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 72px;
    color: var(--text-primary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Game Card */
.game-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: visible;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
    transform: translateY(-8px);
}

.game-card-image {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--bg-card);
}

.game-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0.85;
}

.game-card:hover .game-card-image img {
    transform: scale(1.05);
    opacity: 1;
}

.game-card-watermark {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    letter-spacing: 8px;
    pointer-events: none;
    white-space: nowrap;
}

/* subtle glow under cards */
.game-card-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 40px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent);
    filter: blur(20px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.game-card:hover .game-card-image::after {
    opacity: 1;
}

.game-card-info {
    padding: 24px 4px 8px;
}

.game-card-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.game-card-desc {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.game-card-icons {
    display: flex;
    gap: 16px;
}

.game-card-icons .icon {
    color: var(--text-secondary);
    opacity: 0.5;
    transition: var(--transition);
    cursor: pointer;
}

.game-card-icons .icon:hover {
    opacity: 1;
    color: var(--text-primary);
}

/* ---------- VISION / CTA ---------- */
.vision {
    padding: 160px 0;
    background: var(--bg-vision);
    margin: 80px 0 0;
    position: relative;
}

.vision-text {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    line-height: 1.3;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto;
    letter-spacing: -1px;
}

.vision-text strong {
    font-weight: 800;
}

/* ---------- FOOTER ---------- */
.footer {
    padding: 100px 0 0;
    background: var(--bg-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 64px;
}

.footer-logo {
    font-size: 1rem;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-tagline {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 320px;
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 24px;
}

.footer-link {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 16px;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copyright {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--text-secondary);
    opacity: 0.5;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.social-icon {
    color: var(--text-secondary);
    opacity: 0.6;
    transition: var(--transition);
}

.social-icon:hover {
    opacity: 1;
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ---------- FADE IN ANIMATION ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* staggered delay for cards */
.game-card.fade-in:nth-child(1) { transition-delay: 0.1s; }
.game-card.fade-in:nth-child(2) { transition-delay: 0.25s; }
.game-card.fade-in:nth-child(3) { transition-delay: 0.4s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .header {
        padding: 0 24px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(40px);
        flex-direction: column;
        justify-content: center;
        gap: 32px;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-link {
        font-size: 1rem;
        letter-spacing: 5px;
    }

    .nav-cta {
        font-size: 0.8rem;
        margin-top: 16px;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 100px 24px 80px;
    }

    .hero-title-light {
        display: block;
        letter-spacing: 6px;
        font-size: 0.5em;
    }

    .philosophy {
        padding: 100px 0;
    }

    .portfolio {
        padding: 100px 0 80px;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 400px;
        margin: 0 auto;
    }

    .vision {
        padding: 100px 0;
        margin-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title-light {
        font-size: 1rem;
        letter-spacing: 4px;
    }

    .philosophy-text {
        font-size: 1.2rem;
    }

    .vision-text {
        font-size: 2rem;
    }

    .portfolio-title {
        font-size: 1.8rem;
    }
}

/* ---------- SELECTION ---------- */
::selection {
    background: var(--accent);
    color: var(--text-primary);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
