/* =============================================
   Kerplunked! — Website Styles
   ============================================= */

:root {
    --color-primary: #6c3ce0;
    --color-primary-light: #8b5cf6;
    --color-primary-dark: #5521c6;
    --color-accent: #f59e0b;
    --color-accent-light: #fbbf24;
    --color-pink: #ec4899;
    --color-teal: #14b8a6;
    --color-bg: #0f0b1a;
    --color-bg-light: #1a1429;
    --color-surface: #231c35;
    --color-surface-hover: #2d2445;
    --color-text: #f1eff5;
    --color-text-muted: #a09bb5;
    --color-border: #352d4d;
    --font-display: 'Fredoka', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 30px rgba(108, 60, 224, 0.15);
    --shadow-lg: 0 8px 50px rgba(108, 60, 224, 0.25);
    --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;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 11, 26, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--color-text);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.03);
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
    border-radius: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-light);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--color-pink);
    bottom: 10%;
    left: -3%;
    animation-delay: -5s;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: var(--color-accent);
    top: 40%;
    right: 15%;
    animation-delay: -10s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: var(--color-teal);
    top: 20%;
    left: 10%;
    animation-delay: -7s;
}

.shape-5 {
    width: 300px;
    height: 300px;
    background: var(--color-primary-light);
    bottom: -5%;
    right: 30%;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 10px) scale(1.02); }
}

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

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, var(--color-accent), var(--color-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 60, 224, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(108, 60, 224, 0.5);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(6px, 6px); opacity: 1; }
}

/* =============================================
   Section Shared Styles
   ============================================= */

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* =============================================
   About Section
   ============================================= */

.about {
    padding: 100px 0;
    background: var(--color-bg);
}

.about .section-title {
    margin-bottom: 48px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--color-primary);
}

.about-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(108, 60, 224, 0.15), rgba(236, 72, 153, 0.1));
    border-radius: 14px;
    color: var(--color-primary-light);
}

.about-icon svg {
    width: 28px;
    height: 28px;
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =============================================
   Games Section
   ============================================= */

.games {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    justify-items: center;
}

.game-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    transition: var(--transition);
    position: relative;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.game-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-bg));
    color: var(--color-text-muted);
}

.game-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.game-info {
    padding: 24px;
}

.game-info h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.game-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: rgba(245, 158, 11, 0.15);
    color: var(--color-accent-light);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

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

.contact {
    padding: 100px 0;
    background: var(--color-bg);
    text-align: center;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-primary-light);
    transition: var(--transition);
}

.contact-email:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.contact-email svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

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

.footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

.footer-brand .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
    border-radius: 9px;
}

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

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-copy {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    opacity: 0.7;
}

/* =============================================
   Privacy Page Styles
   ============================================= */

.privacy-page {
    padding: 120px 24px 80px;
    min-height: 100vh;
}

.privacy-content {
    max-width: 720px;
    margin: 0 auto;
}

.privacy-content h1 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.privacy-content .last-updated {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.privacy-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 36px 0 12px;
    color: var(--color-primary-light);
}

.privacy-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 8px;
}

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

.privacy-content ul {
    color: var(--color-text-muted);
    margin: 8px 0 16px 24px;
    line-height: 1.8;
}

.privacy-content a {
    color: var(--color-primary-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-content a:hover {
    color: var(--color-accent-light);
}

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

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--color-bg-light);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        border-left: 1px solid var(--color-border);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        color: var(--color-text);
    }

    .about-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

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

    .hero {
        padding: 100px 24px 60px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .contact-email {
        font-size: 0.9rem;
        padding: 14px 24px;
    }
}
