:root {
    --bg-color: #2FBF71;
    /* Green background */
    --text-color: #000000;
    /* Black text */
    --primary-color: #2FBF71;
    /* Green */
    --accent-color: #FFD53A;
    /* Yellow */

    --font-main: 'Poppins', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Typography - all lowercase, semi-bold */
h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
    text-transform: lowercase;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation - ultra minimal */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: transparent;
    z-index: 1000;
}

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

.logo-img {
    height: 40px;
    width: auto;
}

/* Vertical Community Button */
.vertical-button {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-color);
    text-transform: lowercase;
    cursor: pointer;
    padding: 1rem 0.5rem;
    z-index: 1000;
}

.vertical-button:hover {
    opacity: 0.6;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    width: 100%;
    z-index: 2;
    position: relative;
}

.hero h1 {
    margin-bottom: 0;
    transform: translateY(-40px);
    /* Visual center adjustment */
}

#pickleball-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
    background: transparent;
    display: block;
}

/* Bottom Tabs */
.bottom-tabs {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    border-top: 1px solid var(--text-color);
    background: var(--bg-color);
    z-index: 1000;
}

.tab-button {
    flex: 1;
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: lowercase;
    color: var(--text-color);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.tab-button:not(:last-child) {
    border-right: 1px solid var(--text-color);
}

.tab-button:hover {
    opacity: 0.6;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   MOBILE RESPONSIVE STYLES
   ===================================================== */

@media (max-width: 768px) {

    /* Typography scaling */
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
    }

    /* Navigation */
    nav {
        padding: 1rem 0;
    }

    .logo-img {
        height: 32px;
    }

    /* Vertical button */
    .vertical-button {
        right: 1rem;
        font-size: 0.75rem;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px;
        min-height: 100vh;
        height: auto;
    }

    /* Bottom tabs */
    .tab-button {
        padding: 1rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .vertical-button {
        right: 0.5rem;
        font-size: 0.65rem;
        padding: 0.75rem 0.25rem;
    }

    .tab-button {
        padding: 0.875rem 0.25rem;
        font-size: 0.65rem;
    }
}