/* ===== CSS Variables ===== */
:root {
    --gradient-primary: linear-gradient(135deg, #0061ff 0%, #00d4ff 50%, #60efff 100%);
    --gradient-accent: linear-gradient(135deg, #0061ff 0%, #00b4d8 100%);
    --gradient-warm: linear-gradient(135deg, #00b4d8 0%, #60efff 100%);
    --color-dark: #0a0a1a;
    --color-light: #ffffff;
    --color-gray: #8892b0;
    --color-blue: #0061ff;
    --color-cyan: #00d4ff;
    --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: 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: var(--font-main);
    background: var(--color-dark);
    color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== Particles Background ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ===== Header ===== */
.site-header {
    position: relative;
    z-index: 10;
    padding: 0 5%;
}

/* ===== Hero Section ===== */
.hero {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    padding: 0 5%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    animation: fadeInDown 0.8s var(--transition-smooth);
}

/* Footer contact address styling */
address.footer-contact {
    font-style: normal;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--gradient-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.nav-link {
    font-weight: 600;
    color: var(--color-gray);
    transition: color 0.3s var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width 0.3s var(--transition-smooth);
}

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

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

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    animation: slideInLeft 0.8s var(--transition-smooth) backwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.gradient-text {
    background: var(--gradient-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-gray);
    max-width: 500px;
    margin-bottom: 2.5rem;
    animation: fadeIn 0.8s var(--transition-smooth) 0.8s backwards;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
    animation: fadeIn 0.8s var(--transition-smooth) 1s backwards;
    width: fit-content;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 97, 255, 0.3);
}

.cta-button svg {
    transition: transform 0.3s var(--transition-smooth);
}

.cta-button:hover svg {
    transform: translate(3px, -3px);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 2rem;
    animation: fadeIn 1s var(--transition-smooth) 1.2s backwards;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--color-gray);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-gray);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== Games Section ===== */
.games-section {
    position: relative;
    z-index: 1;
    padding: 8rem 5%;
    background: linear-gradient(180deg, var(--color-dark) 0%, #12122a 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 97, 255, 0.2);
    border: 1px solid rgba(0, 97, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-cyan);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-gray);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Game Card */
.game-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: box-shadow 0.4s var(--transition-smooth), border-color 0.4s var(--transition-smooth);
    will-change: transform;
}

.game-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* Card glows on hover */
.game-card:nth-child(1):hover {
    border-color: rgba(153, 69, 255, 0.5);
    box-shadow: 0 30px 60px rgba(153, 69, 255, 0.2), 0 0 40px rgba(153, 69, 255, 0.15);
}

.game-card:nth-child(2):hover {
    border-color: rgba(255, 0, 110, 0.5);
    box-shadow: 0 30px 60px rgba(255, 0, 110, 0.2), 0 0 40px rgba(255, 0, 110, 0.15);
}

.game-card:nth-child(3):hover {
    border-color: rgba(6, 214, 160, 0.5);
    box-shadow: 0 30px 60px rgba(6, 214, 160, 0.2), 0 0 40px rgba(6, 214, 160, 0.15);
}

.game-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.game-icon {
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s var(--transition-smooth);
}

.game-icon.no-bg {
    background: none;
    padding: 0;
}

.game-card:hover .game-icon {
    transform: scale(1.1) rotate(-5deg);
}

.game-icon svg {
    width: 100%;
    height: 100%;
}

.game-info {
    padding: 1.75rem;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.game-description {
    font-size: 0.95rem;
    color: var(--color-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.game-category {
    padding: 0.35rem 0.85rem;
    background: rgba(0, 97, 255, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-cyan);
}

.game-rating {
    font-size: 0.9rem;
    color: #ffd700;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.3s var(--transition-smooth), opacity 0.3s var(--transition-smooth);
}

.app-store-badge img {
    height: 44px;
    width: auto;
}

.app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* ===== Solana Clicker Card ===== */
.solana-gradient {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 50%, #9945FF 100%) !important;
}

/* ===== LoFi Cam Card ===== */
.lofi-gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #c4b5fd 100%) !important;
}

.game-icon-img {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: transform 0.4s var(--transition-smooth);
}

.game-card:hover .game-icon-img {
    transform: scale(1.1) rotate(-5deg);
}

.solana-category {
    background: rgba(153, 69, 255, 0.2) !important;
    color: #a78bfa !important;
}


/* ===== Footer ===== */
.footer {
    position: relative;
    z-index: 1;
    padding: 4rem 5%;
    background: #080816;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer .logo-text {
    font-size: 2.5rem;
}

.footer-tagline {
    color: var(--color-gray);
    margin: 1rem 0 2rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.footer-contact span {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.email-link {
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s var(--transition-smooth);
}

.email-link:hover {
    opacity: 0.8;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Scroll Reveal ===== */
.game-card {
    opacity: 0;
    transform: perspective(1000px) translateY(40px);
}

.game-card.visible {
    opacity: 1;
    transform: perspective(1000px) translateY(0);
    transition: opacity 0.6s var(--transition-smooth);
}

.game-card:nth-child(1).visible { transition-delay: 0.1s; }
.game-card:nth-child(2).visible { transition-delay: 0.2s; }
.game-card:nth-child(3).visible { transition-delay: 0.3s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        padding: 0 6%;
    }

    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

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

    .games-section {
        padding: 5rem 6%;
    }

    .games-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1.5rem 0;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

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