/* Variables & Base Setup */
:root {
    --bg-dark: #0f0c1b;
    --primary: #8338ec;
    --accent: #ff0066;
    --text-main: #ffffff;
    --text-muted: #a09eb5;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

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

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

/* Animated Background Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(150px, -100px) scale(1.2);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
    background: rgba(15, 12, 27, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

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

.nav-logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links a {
    margin-left: 30px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 20px;
    background-image: linear-gradient(45deg, var(--primary), #a261f2);
}

.nav-cta:hover {
    filter: brightness(1.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 150px 40px 50px;
    text-align: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 12px 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, background 0.3s;
}

.store-btn:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.store-btn i {
    font-size: 28px;
    margin-right: 15px;
}

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

.store-text span {
    font-size: 11px;
    color: var(--text-muted);
}

.store-text strong {
    font-size: 18px;
    font-weight: 600;
}

/* Device Mockup */
.hero-mockup {
    margin-top: 80px;
    perspective: 1000px;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: #111;
    border-radius: 40px;
    border: 8px solid #333;
    padding: 5px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(131, 56, 236, 0.4);
    position: relative;
    overflow: hidden;
    transform: rotateX(15deg) translateY(0px);
    transition: transform 0.5s ease;
}

.phone-frame:hover {
    transform: rotateX(0deg) translateY(-10px);
}

/* Notch */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #333;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.mockup-text {
    color: var(--text-muted);
    font-size: 14px;
    position: absolute;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.fade-float {
    animation: float 2s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Features Section */
.features-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: transform 0.4s, background 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(131, 56, 236, 0.2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Showcase Gallery Section */
.showcase-section {
    padding: 100px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    gap: 30px;
    justify-content: center;
}

/* 3 Columns for Vertical, 1-3 Columns for Horizontal depending on screen width */
.vertical-gallery {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.horizontal-gallery {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.screenshot-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(131, 56, 236, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.vertical-card {
    aspect-ratio: 9 / 19.5;
    /* Typical smartphone ratio */
    min-height: 500px;
}

.horizontal-card {
    aspect-ratio: 16 / 9;
    /* Horizontal screenshot */
    min-height: 200px;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

/* When integrating real images, they automatically fill the container */
.img-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    /* match inner curve */
}

/* --- HTML UI MOCKUPS --- */
.mockup-ui {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4c00b0 0%, #990099 100%);
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', sans-serif;
    color: white;
    text-transform: none;
    letter-spacing: normal;
    overflow: hidden;
    box-sizing: border-box;
}

/* Top bar icons */
.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mockup-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

/* LOBBY MOCKUP */
.lobby-title {
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.lobby-subtitle {
    font-size: 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    margin-top: 5px;
    text-transform: uppercase;
}

.lobby-code {
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin: 5px 0 20px;
    font-family: 'Arial', sans-serif;
}

.lobby-players-title {
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
}

.lobby-player {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.lobby-player span:last-child {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    text-transform: uppercase;
}

.btn-primary {
    background: #8338ec;
    padding: 15px;
    border-radius: 20px;
    text-align: center;
    font-weight: bold;
    margin-top: auto;
    font-size: 14px;
    text-transform: uppercase;
}

/* DECK BROWSER MOCKUP */
.browser-search {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.browser-filter {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 5px;
}

.browser-slider {
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin-bottom: 20px;
    position: relative;
}

.browser-slider::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #8338ec;
    border-radius: 2px;
}

.browser-slider::before {
    content: '';
    position: absolute;
    left: 100%;
    top: -4px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 6px;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.browser-deck {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    text-align: center;
    position: relative;
}

.browser-deck h4 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.browser-deck-stats {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

/* MAIN MENU MOCKUP */
.menu-title {
    font-size: 48px;
    font-weight: 800;
    text-align: center;
    margin-top: 50px;
    letter-spacing: 2px;
}

.menu-subtitle {
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 18px;
    border-radius: 25px;
    text-align: center;
    font-weight: 800;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
}

/* HORIZONTAL IN-GAME MOCKUP */
.ingame-ui {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    color: white;
    text-transform: none;
    letter-spacing: normal;
    overflow: hidden;
    box-sizing: border-box;
}

.ingame-1 {
    background: #2b2b3c;
}

.ingame-2 {
    background: #3c2b36;
}

.ingame-3 {
    background: #2b3c3c;
}

.ingame-category {
    font-size: 18px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ingame-text {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    line-height: 1.4;
    max-width: 90%;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ingame-flag {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.ingame-watermark {
    position: absolute;
    bottom: -30px;
    right: -20px;
    font-size: 150px;
    color: rgba(0, 0, 0, 0.05);
    transform: rotate(-25deg);
}

/* Extra responsive tweaks */
@media (max-width: 768px) {
    .ingame-text {
        font-size: 18px;
    }
}

/* CTA Section */
.cta-section {
    padding: 100px 40px;
}

.cta-card {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.3) 0%, rgba(255, 0, 102, 0.3) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    backdrop-filter: blur(20px);
}

.cta-card h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-card p {
    font-size: 1.2rem;
    color: #ddd;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 40px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 5px;
}

.footer-links h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ------------------- */
/* ANIMATION CLASSES  */
/* ------------------- */
.hidden-element {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up {
    transform: translateY(50px);
}

.slide-in {
    transform: scale(0.95);
}

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

/* Staggered Delays for Initial Load */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 120px;
    }

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

    .cta-card h2 {
        font-size: 2rem;
    }

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

    .cta-card {
        padding: 40px 20px;
    }
}