/* Base styles and variables - New color palette */
:root {
    --primary-dark: #0B1220;
    --secondary-dark: #162238;
    --ui-border: #2B3445;
    --text-white: #F3F6FB;
    --text-grey: #9AA4B2;
    --accent-red: #FF3B30;
    --accent-green: #22C55E;
    --metallic: #C7CFDA;

    --bg-color: var(--primary-dark);
    --bg-secondary: var(--secondary-dark);
    --text-main: var(--text-white);
    --text-muted: var(--text-grey);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
    --shadow-glow-red: 0 0 24px rgba(255, 59, 48, 0.25);

    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
}

/* Gradient text (used on privacy etc.) */
.gradient-text {
    color: var(--text-white);
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.gradient-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 120px;
    height: 4px;
    background: var(--accent-red);
    border-radius: 2px;
}

.accent-text {
    color: var(--accent-red);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
    color: var(--text-white);
}

/* Navbar */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 1200px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ui-border) 20%, var(--ui-border) 80%, transparent);
}

.nav-container {
    max-width: 1200px;
    height: 72px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.02em;
    position: relative;
}

.logo::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-red);
    margin-left: -0.15rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.logo-icon {
    max-height: 36px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.nav-container .logo-icon {
    max-height: 65px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(22, 34, 56, 0.6);
    border: 1px solid var(--ui-border);
    border-radius: 100px;
    padding: 0.3rem;
}

.nav-links a {
    color: var(--text-grey);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    padding: 0.5rem 1.15rem;
    border-radius: 100px;
    position: relative;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active {
    color: var(--text-white);
    background: var(--accent-red);
}

/* Hero Section - Split layout, angled accent */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-bg-accent {
    position: absolute;
    top: 0;
    right: -30px;
    width: 50%;
    height: 100%;
    background: var(--secondary-dark);
    transform: skewX(-8deg);
    transform-origin: top right;
    z-index: 0;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(var(--ui-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--ui-border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.2;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
    max-width: 520px;
}

.hero-tagline {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--text-white);
    line-height: 1.05;
}

.hero-intro {
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn-hero-ghost {
    color: var(--text-grey);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.btn-hero-ghost:hover {
    color: var(--text-white);
    border-bottom-color: var(--ui-border);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: var(--secondary-dark);
    border: 1px solid var(--ui-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 1px;
    width: 4px;
    height: 90%;
    background: var(--accent-red);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.hero-card-inner {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-card-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-grey);
    letter-spacing: 0.05em;
}

.hero-card-highlight {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.02em;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.25rem;
    background: var(--accent-red);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
    box-shadow: var(--shadow-card);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-red);
    background: #ff5249;
}

.btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    background: transparent;
    color: var(--metallic);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1.5px solid var(--ui-border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    text-align: center;
}

.btn-secondary:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
    background: rgba(255, 59, 48, 0.06);
}

/* Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Games Section */
.portfolio-section {
    background-color: var(--secondary-dark);
    position: relative;
    z-index: 5;
    border-top: 1px solid var(--ui-border);
}

.games-status {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 2rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Game Card - Vertical, visual */
.game-card {
    background: var(--primary-dark);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem 1.5rem;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--ui-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 59, 48, 0.25);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.game-card:hover::before {
    transform: scaleX(1);
}

.game-card > .game-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    object-fit: cover;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 1.25rem;
}

.game-card:hover > .game-icon {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.game-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    width: 100%;
    gap: 0.5rem;
}

.game-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    text-align: center;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-desc {
    font-size: 0.85rem;
    color: var(--text-grey);
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-grey);
    margin-top: auto;
    padding-top: 0.75rem;
    transition: var(--transition);
}

.game-badge::before {
    content: '▶';
    font-size: 0.6rem;
    color: var(--accent-red);
}

.game-card:hover .game-badge {
    color: var(--accent-red);
}

/* Contact Section */
.contact-section {
    position: relative;
    z-index: 5;
    background-color: var(--primary-dark);
    border-top: 1px solid var(--ui-border);
}

.contact-card {
    background: var(--secondary-dark);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--ui-border);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    background: var(--accent-red);
    filter: blur(70px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 0;
}

.contact-desc {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-grey);
    font-size: 1.05rem;
    position: relative;
    z-index: 5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 5;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-grey);
    transition: var(--transition);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--primary-dark);
    border: 1px solid var(--ui-border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-family: inherit;
    transition: var(--transition);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: var(--text-grey);
    opacity: 0.7;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

.contact-form .btn-primary {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--secondary-dark);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--ui-border);
    text-align: center;
    position: relative;
    z-index: 5;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-white);
}

.footer-logo .logo-icon {
    max-height: 65px;
    border-radius: var(--radius-sm);
}

.copyright {
    color: var(--text-grey);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-grey);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--accent-red);
}

/* Privacy Page */
.privacy-page {
    background-color: var(--primary-dark);
    padding-top: 72px;
}

.privacy-hero {
    background: var(--secondary-dark);
    border-bottom: 1px solid var(--ui-border);
    padding: 3.5rem 2rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.privacy-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--ui-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--ui-border) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.1;
    pointer-events: none;
}

.privacy-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-white);
    margin: 0 0 0.5rem;
    position: relative;
    letter-spacing: -0.03em;
}

.privacy-hero-sub {
    color: var(--text-grey);
    font-size: 1rem;
    position: relative;
}

.privacy-hero-sub a {
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.privacy-hero-sub a:hover {
    color: #ff5249;
}

.privacy-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}

.privacy-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.privacy-card h1 {
    display: none;
}

.prose {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-grey);
}

.prose h2 {
    color: var(--text-white);
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ui-border);
}

.prose h3 {
    color: var(--metallic);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.4rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.prose p {
    margin-bottom: 1rem;
}

.prose ul {
    margin-bottom: 1.35rem;
    padding-left: 0;
    list-style: none;
}

.prose li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.prose li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-red);
}

.prose a {
    color: var(--accent-red);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 59, 48, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.prose a:hover,
.prose a:focus {
    color: #ff5249;
    border-bottom-color: #ff5249;
}

.prose hr {
    border: 0;
    border-top: 1px solid var(--ui-border);
    margin: 2rem 0 2.1rem;
}

.prose strong {
    color: var(--text-white);
    font-weight: 700;
}

.back-link {
    color: var(--accent-red) !important;
}

.back-link:hover {
    color: #ff5249 !important;
    background: rgba(255, 59, 48, 0.08) !important;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-bounce {
    animation: bounce 2.5s infinite;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-bg-accent {
        width: 80%;
        opacity: 0.9;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-card {
        padding: 2rem 2.5rem;
    }

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

@media (max-width: 768px) {
    .nav-container {
        height: 64px;
    }

    .nav-links {
        gap: 0.25rem;
        padding: 0.25rem;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.9rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-card-highlight {
        font-size: 1.4rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .privacy-hero h1 {
        font-size: 2rem;
    }

    .privacy-container {
        padding: 2rem 1.5rem 3rem;
    }

    .prose h2 {
        font-size: 1.2rem;
        margin-top: 2rem;
    }

    .prose h3 {
        font-size: 1rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 56px;
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.05rem;
    }

    .nav-links {
        padding: 0.2rem;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-card {
        padding: 1.5rem 2rem;
    }

    .hero-card-highlight {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.85rem;
    }

    .logo {
        font-size: 1.15rem;
    }

    .nav-container .logo-icon {
        max-height: 36px;
    }

    .footer-logo .logo-icon {
        max-height: 32px;
    }
}
