/* ===== CSS Variables ===== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --bg-dark: #fffbf5;
    --bg-darker: #fff4e6;
    --bg-card: #ffffff;
    --bg-card-hover: #fef7ed;
    --text-primary: #1e1b4b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-sm: 0 1px 3px rgba(30, 27, 75, 0.06);
    --shadow-md: 0 4px 12px rgba(30, 27, 75, 0.08);
    --shadow-lg: 0 10px 25px rgba(30, 27, 75, 0.1);
    --shadow-xl: 0 20px 50px rgba(30, 27, 75, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --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;
}

body {
    font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 251, 245, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 251, 245, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    padding: 12px 0;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--bg-card);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #e0e7ff 0%, #fef3c7 50%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 160px;
    height: 160px;
    margin: 0 auto 32px;
    animation: float 3s ease-in-out infinite;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.35);
    border: 4px solid white;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.3);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Particle System */
.particle {
    position: absolute;
    pointer-events: none;
    will-change: transform, top, left;
}

.particle-block {
    opacity: 0.35;
}

.particle-circle {
    border-radius: 50%;
    border: 3px solid;
    background: transparent;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .particle-block {
        opacity: 0.25;
    }
    
    .particle-circle {
        opacity: 0.35;
    }
}

/* ===== Games Section ===== */
.games-section {
    padding: 100px 0;
    background: var(--bg-darker);
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    margin: 16px auto 0;
    border-radius: 2px;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.game-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.game-header {
    padding: 32px 32px 0;
}

.game-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-1);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.game-badge.soon {
    background: var(--gradient-2);
}

.game-header h3 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
}

.game-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 32px;
}

.game-description p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.8;
}

.game-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 480px) {
    .game-features {
        grid-template-columns: 1fr;
    }
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.feature svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.game-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-muted);
}

/* Store Buttons */
.store-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #000;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid #333;
}

.store-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.store-btn svg {
    width: 28px;
    height: 28px;
    color: #fff;
    flex-shrink: 0;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-label {
    font-size: 0.65rem;
    color: #ccc;
    line-height: 1.2;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .store-buttons {
        flex-direction: column;
    }
    
    .store-btn {
        justify-content: center;
    }
}

/* Gallery */
.game-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/9;
    background: var(--bg-darker);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
}

.thumb {
    aspect-ratio: 16/9;
    border-radius: var(--radius-sm);
    overflow: hidden;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumb:hover {
    opacity: 0.9;
}

.thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Star Blox Card Enhancements */
.starblox-card {
    position: relative;
    overflow: hidden;
}

.starblox-bg-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.bg-slide.active {
    opacity: 1;
}

.starblox-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 251, 245, 0.72) 0%,
        rgba(255, 251, 245, 0.62) 50%,
        rgba(255, 251, 245, 0.55) 100%
    );
    z-index: 1;
}

.starblox-card .game-header,
.starblox-card .game-content {
    position: relative;
    z-index: 2;
}

/* Coming Soon Card */
.mystery-card {
    position: relative;
    overflow: hidden;
}

.mystery-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.mystery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 251, 245, 0.72) 0%,
        rgba(255, 251, 245, 0.62) 50%,
        rgba(255, 251, 245, 0.55) 100%
    );
    z-index: 1;
}

.mystery-card .game-header,
.mystery-card .coming-soon-content,
.mystery-card .game-content {
    position: relative;
    z-index: 2;
}

.coming-soon-content {
    padding: 60px 32px;
    text-align: center;
}

.coming-soon-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-icon svg {
    width: 50px;
    height: 50px;
    color: var(--secondary);
}

.coming-soon-content > p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.coming-soon-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.coming-soon-cta span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-mini {
    display: flex;
    gap: 12px;
}

.social-mini a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-mini a svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.social-mini a:hover {
    background: var(--primary);
}

.social-mini a:hover svg {
    color: #fff;
}

/* ===== About Section ===== */
.about-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.about-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-image {
    width: 200px;
    height: 200px;
}

.about-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
}

.about-text h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

/* Industry Credits */
.industry-credits {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.industry-credits h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.credits-intro {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.credits-intro-secondary {
    margin-top: 28px;
}

.credits-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.credits-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.credits-list li:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.credits-list a {
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.credits-list a:hover {
    color: var(--primary);
}

.credits-list .platform {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 0;
    width: 50px;
    text-align: center;
    background: var(--gradient-1);
    color: white;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.credit-subtitle {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.6;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .credits-list {
        grid-template-columns: 1fr;
    }
}

/* ===== Contact Section ===== */
.contact-section {
    padding: 100px 0;
    background: var(--bg-darker);
    text-align: center;
}

.contact-intro {
    color: var(--text-secondary);
    max-width: 500px;
    margin: -40px auto 40px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 40px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.contact-card svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.contact-card span {
    font-weight: 500;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
}

.social-link.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.social-link svg {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-link.youtube:hover {
    background: #ff0000;
}

.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.linkedin:hover {
    background: #0a66c2;
}

.social-link.github:hover {
    background: #333;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.soundcloud:hover {
    background: #ff5500;
}

.social-link:hover svg {
    color: white;
}

.social-link.github:hover svg {
    color: white;
}

/* ===== Footer ===== */
.footer {
    background: #fef7ed;
    padding: 40px 0 24px;
    border-top: 1px solid #fde68a;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bg-card);
    margin-bottom: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .game-content {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        margin: 0 auto;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-logo {
        width: 120px;
        height: 120px;
    }
    
    .games-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .game-header,
    .game-content,
    .coming-soon-content {
        padding: 24px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .contact-card {
        padding: 20px 28px;
    }
    
    .contact-card span {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .game-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
    }
}

/* ===== Video Modal ===== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 1;
    transform: scale(0.9);
    transition: var(--transition);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.video-modal-close svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.video-modal-close:hover {
    background: var(--primary);
}

.video-modal-close:hover svg {
    color: #fff;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .video-modal-content {
        width: 95%;
    }
    
    .video-modal-close {
        top: -45px;
        right: 5px;
    }
}

/* ===== Privacy Page Styles ===== */
.privacy-page {
    padding: 120px 20px 80px;
    min-height: 100vh;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 48px;
    border: 2px solid rgba(30, 27, 75, 0.1);
}

.privacy-content h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.privacy-content .effective-date {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.privacy-content h2 {
    font-size: 1.25rem;
    margin: 32px 0 16px;
    color: var(--primary);
}

.privacy-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.privacy-content a {
    color: var(--primary);
    transition: var(--transition);
}

.privacy-content a:hover {
    color: var(--primary-dark);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .privacy-content {
        padding: 32px 24px;
    }
}
