/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Ruthless Minimalism & Apple Aesthetics)
   ========================================================================== */
:root {
    --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    
    /* Strict Monochrome Palette */
    --bg-dark: #000000; /* Apple Pure Black */
    --bg-card: #0c0c0e; /* Obsidian Grey Panel */
    --bg-navbar: rgba(0, 0, 0, 0.8);
    
    --text-white: #ffffff;
    --text-gray: #86868b; /* Apple Subtitle Gray */
    --text-muted: #424245; /* Apple Dark Gray */
    
    --border-color: #1c1c1e; /* Thin Apple Border */
    --border-hover: #3a3a3c;
    
    /* Subtle Accent Tones */
    --accent-yellow: #fabf30; /* Highlight Yellow */
    --accent-beige: #bca78c;  /* Logo Dot Beige */
    
    --transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    --border-radius: 12px;
    --max-width: 1100px;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-system);
    line-height: 1.5;
    letter-spacing: -0.011em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   BUTTONS & UI
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

/* Apple Solid Button */
.btn-primary {
    background-color: var(--text-white);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background-color: #f5f5f7;
    transform: scale(1.02);
}

/* Apple Outline Button */
.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(250, 191, 48, 0.08);
    border: 1px solid rgba(250, 191, 48, 0.2);
    color: var(--accent-yellow);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

/* ==========================================================================
   NAVBAR (Apple Style)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 2px 0;
}

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

/* Typography Logo matching the user image */
.logo {
    display: inline-flex;
    flex-direction: column;
    font-family: var(--font-system);
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--text-white);
    text-transform: lowercase;
}

.logo-top {
    display: block;
}

.logo-bottom {
    display: flex;
    align-items: center;
}

.logo-dot {
    display: inline-block;
    width: 6.5px;
    height: 6.5px;
    background-color: var(--accent-beige);
    border-radius: 50%;
    margin-right: 3.5px;
    margin-bottom: 2px; /* align precisely to baseline */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-gray);
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-btn {
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: 20px;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.3rem;
    cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.035em;
    color: var(--text-white);
}

.text-gradient {
    color: var(--text-white); /* No colorful gradients */
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-gray);
    margin-bottom: 48px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.015em;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ==========================================================================
   SECTION HEADER
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px auto;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    font-weight: 400;
}

/* ==========================================================================
   GRID LAYOUTS & CARDS
   ========================================================================== */
.games-section, .apps-section, .services-section {
    padding: 120px 0;
    border-top: 1px solid var(--border-color);
}

.games-grid, .apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.project-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #16161a;
    border-bottom: 1px solid var(--border-color);
}

.game-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.crossword-gradient, .space-gradient {
    background: #121214; /* Flat clean grey background */
}

.grid-overlay-decor {
    display: none; /* Removed for ruthless minimalism */
}

.project-icon-large {
    font-size: 2.5rem;
    color: var(--text-gray);
    transition: var(--transition);
}

.project-card:hover .project-icon-large {
    color: var(--text-white);
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.badge-soon {
    background: rgba(250, 191, 48, 0.1);
    color: var(--accent-yellow);
    border: 1px solid rgba(250, 191, 48, 0.3);
}

.project-info {
    padding: 24px;
}

.project-name {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text-gray);
    font-size: 0.88rem;
    margin-bottom: 20px;
    line-height: 1.5;
    height: 66px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.game-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-gray);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.store-buttons {
    display: flex;
    gap: 10px;
}

.store-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: var(--transition);
}

.store-btn:hover:not(.disabled) {
    background: var(--text-white);
    color: var(--bg-dark);
    border-color: var(--text-white);
}

.store-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--border-hover);
}

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    border-color: var(--text-white);
}

.service-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-desc {
    color: var(--text-gray);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ==========================================================================
   PARTNERS & TECH STACK
   ========================================================================== */
.partners-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.partners-title {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 40px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: default;
}

.partner-logo i {
    font-size: 1.4rem;
}

.partner-logo:hover {
    color: var(--text-white);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 120px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.contact-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.contact-text {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-item i {
    font-size: 1.1rem;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-item p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #000000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-white);
    font-family: var(--font-system);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   FOOTER & LEGAL
   ========================================================================== */
.footer {
    background: #000000;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 300px;
}

.footer-links, 
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4, 
.footer-legal h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
}

.footer-links a, 
.footer-legal a {
    color: var(--text-gray);
    font-size: 0.88rem;
}

.footer-links a:hover, 
.footer-legal a:hover {
    color: var(--text-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.8rem;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--text-white);
    transform: translateY(-1px);
}

/* ==========================================================================
   MODALS (Apple Style)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background: #121214;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.98);
    transition: transform 0.2s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-white);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.modal-body h4 {
    color: var(--text-white);
    margin: 20px 0 8px 0;
    font-weight: 600;
}

.modal-body p {
    margin-bottom: 12px;
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1024px) {
    .games-grid, .apps-grid {
        gap: 24px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .games-grid, .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Responsive Navigation Hamburger */
    .hamburger-menu {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 66px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 66px);
        background: #000000;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-btn {
        width: 80%;
    }
}
