/* Global Styles */
:root {
    --bg-color: #000000;
    --card-bg: #121212;
    --primary: #007AFF;
    /* FitnessAI Blue-ish style, or keep the original Orange if user wants to keep brand? Plan said "High contrast white/black or orange/black". Let's stick to the Double Jump Orange but make it vibrant */
    --primary: #FF4500;
    /* Deep vibrant orange */
    --primary-glow: rgba(255, 69, 0, 0.5);
    --text-main: #FFFFFF;
    --text-muted: #888888;
    --font-main: 'Outfit', sans-serif;
    --spacer-section: 8rem;
    --radius-large: 40px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.4;
    overflow-x: hidden;
    font-size: 18px;
    /* Larger base size */
}

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

.container {
    max-width: 1600px;
    /* Wider layout */
    margin: 0 auto;
    padding: 0 1rem;
    /* Reduced padding */
}

/* Utilities */
.text-gradient {
    background: linear-gradient(135deg, #FF8A65, #FF5722);
    /* Standard background-clip must come after vendor prefix if needed, but here we just need to ensure it works */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: rgba(11, 18, 33, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .logo img {
    height: 40px;
    /* Adjusted size for the new logo */
    width: auto;
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
}

#nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
}

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

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
/* Hero Section */
/* Hero Section */
/* Hero Section */
.hero {
    /* Full screen immersive feel */
    min-height: 100vh;
    /* Make it take full height */
    /* Make it take full height */
    padding-top: 10rem;
    /* Move content up (clearing header) */
    padding-bottom: 4rem;
    display: flex;
    align-items: flex-start;
    /* Align to top to control vertical pos */
    position: relative;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

/* Background Image with Overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 1) 100%),
        url('assets/hero_bg_wide.png');
    background-size: 100% auto;
    /* Fill width, keep height ratio */
    background-position: top center;
    /* Start from top */
    background-repeat: no-repeat;
    z-index: -1;
    opacity: 0.8;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Give images slightly more space */
    align-items: center;
    gap: 8rem;
    /* Increase gap to prevent overlap and sticking */
    width: 100%;
    width: 100%;
    max-width: 1400px;
    /* Allow wider layout */
    margin: 0 auto;
}


.hero-logo {
    max-width: 200px;
    margin-bottom: 2rem;
    display: block;
    opacity: 0.9;
}

.hero-text {
    text-align: left;
    padding-left: 2rem;
    z-index: 20;
}

.hero-text h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-text p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: 0;
}

.play-badge img {
    height: 72px;
    transition: transform 0.2s;
}

.play-badge:hover img {
    transform: scale(1.05);
}

/* Hero Images (Triple Screenshots) */
.hero-image {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    position: relative;
    z-index: 10;
    width: 120%;
    margin-left: -10%;
}

.hero-screenshot {
    width: 32%;
    max-width: 320px;
    border-radius: 20px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
    border: none;
    transition: transform 0.5s ease;
}

.hero-screenshot:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 20;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9);
}

.phone-mockup {
    display: none;
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Nav Active State */
.nav-link.active {
    color: var(--primary);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* Features */
.features {
    padding: var(--spacer-section) 0;
    /* background: #0F172A; Remove bg color to keep it seamless black/dark */
    scroll-margin-top: 80px;
}

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

.section-header h2 {
    font-size: 3.5rem;
    /* Larger header */
    margin-bottom: 1.5rem;
    font-weight: 800;
}

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

.feature-rows {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    /* Align top as requested */
    justify-content: center;
    gap: 5rem;
}



.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    max-width: 500px;
}

.feature-text p {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-media {
    flex: 0 0 40%;
    /* Reduce width significantly (was flex: 1) */
    max-width: 350px;
    /* Limit max size to roughly half */
    position: relative;
    border-radius: var(--radius-large);
    overflow: hidden;
    /* Frameless as requested */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.1);
    background: transparent;
}

.feature-media video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.feature-media:hover video {
    transform: scale(1.03);
}

/* Feature Header (Icon inline with Title) */
.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-icon {
    font-size: 3rem;
    line-height: 1;
}

.feature-header h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0;
    /* Remove bottom margin because flex gap handles it */
}

/* Add subtle glow behind media */
.feature-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 69, 0, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.feature-media:hover::before {
    opacity: 1;
}

/* Gallery */
.gallery {
    padding: var(--spacer-section) 0;
    scroll-margin-top: 80px;
}

.gallery-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.gallery-img {
    height: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid #1a2639;
    transition: transform 0.3s;
}

.gallery-img:hover {
    transform: scale(1.02);
    z-index: 10;
}

/* Team Section */
.team {
    padding: var(--spacer-section) 0;
    scroll-margin-top: 80px;
    background: #000;
    /* seamless */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.03);
    /* Subtle glass feel */
    border-radius: var(--radius-large);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 69, 0, 0.3);
}

.member-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid var(--primary);
}

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

.member-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.member-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Tech Stack */
.tech-stack {
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #050505;
}

.tech-stack h2 {
    margin-bottom: 3rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 4px;
    /* More modern tracking */
}

.tech-logos {
    display: flex;
    justify-content: center;
    gap: 6rem;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-name {
    font-weight: 800;
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.tech-item p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: linear-gradient(180deg, #050505 0%, #0a0a0a 100%);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Footer */
footer {
    padding: 4rem 0;
    background: #000;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 1.2rem;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* align with keyframe start */
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 900px) {
    .navbar .container {
        position: relative;
    }

    .mobile-menu {
        display: block;
    }

    #nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #151E32;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
    }

    #nav-menu.active {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        /* Stack vertically for mobile */
        text-align: center;
        /* Center align for mobile */
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
        /* Override left align */
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    /* Horizontal scrollable hero images */
    .hero-image {
        width: 100%;
        margin-left: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        padding: 1rem 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .hero-image::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .hero-screenshot {
        flex-shrink: 0;
        width: 280px;
        min-width: 280px;
        max-width: 280px;
    }

    /* Stack features on mobile */
    .feature-row {
        flex-direction: column;
        gap: 5rem;
        text-align: center;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

    .feature-text {
        max-width: 100%;
        padding: 0 1rem;
    }

    .feature-media {
        margin: 0 auto;
        max-width: 300px;
        flex: 0 0 auto;
    }

    .phone-mockup {
        width: 280px;
    }

    /* Horizontal scrollable team section */
    .team-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 2rem;
        padding: 1rem 0;
    }

    .team-grid::-webkit-scrollbar {
        display: none;
    }

    .team-member {
        flex-shrink: 0;
        width: 280px;
        min-width: 280px;
    }
}