/*
Theme Name: 4Three Athletics
Theme URI: https://4threeathletics.com
Author: Coach Wyatt Mcbee
Author URI: https://4threeathletics.com
Description: Elite Personal Basketball Trainer & Fitness Coach landing page theme with premium WebGL scrollytelling.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 4three-athletics
*/

/* -------------------------------------------------------------
   4THREE ATHLETICS - DESIGN SYSTEM & STYLESHEET (V2)
   ------------------------------------------------------------- */

/* Variables & Base System */
:root {
    --bg-dark: #08080a;
    --bg-card: rgba(12, 12, 16, 0.75);
    --orange-primary: #ff5e00;
    --orange-glow: rgba(255, 94, 0, 0.5);
    --orange-glow-light: rgba(255, 94, 0, 0.15);
    --text-primary: #ffffff;
    --text-muted: #9494a3;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-focus: rgba(255, 94, 0, 0.5);
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

html, body {
    background: radial-gradient(circle at 55% 45%, #38250a 0%, #131215 50%, #08080a 100%) no-repeat fixed;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: auto;
    width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1c1c24;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--orange-primary);
}

/* Hide Default Cursor (Custom cursor implemented) */
@media (pointer: fine) {
    html, body, a, button, select, textarea, input, .package-card {
        cursor: none !important;
    }
}

/* Custom Cursor styling */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor-dot {
    width: 4px;
    height: 4px;
    background-color: var(--orange-primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
}

/* Cursor Hover States */
.cursor-hover .custom-cursor {
    width: 50px;
    height: 50px;
    border-color: var(--orange-primary);
    background-color: var(--orange-glow-light);
    mix-blend-mode: normal;
}

.cursor-drag .custom-cursor {
    width: 60px;
    height: 60px;
    border-color: var(--orange-primary);
    border-style: dashed;
    animation: rotateCursor 10s linear infinite;
    mix-blend-mode: normal;
}

@keyframes rotateCursor {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* WebGL Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

/* Noise overlay removed for clean styling */
.noise-overlay {
    display: none !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.loading-content {
    text-align: center;
    max-width: 400px;
    width: 80%;
}

.loading-logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.loading-logo span {
    color: var(--orange-primary);
}

.loading-bar-container {
    height: 2px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 15px;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background-color: var(--orange-primary);
    box-shadow: 0 0 10px var(--orange-primary);
    transition: width 0.1s linear;
}

.loading-status {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(8, 8, 10, 0.9) 0%, rgba(8, 8, 10, 0) 100%);
    pointer-events: auto;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo span:first-child {
    color: var(--orange-primary);
}

.logo-accent {
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 4px;
    margin-left: 5px;
    color: var(--text-muted);
}

.desktop-nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    transition: var(--transition-fast);
}

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

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

.nav-link.highlight:hover {
    text-shadow: 0 0 10px var(--orange-glow);
}

/* Buttons */
.btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 16px 32px;
    border-radius: 4px;
    border: none;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.7rem;
}

.btn-primary {
    background-color: var(--orange-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 20px var(--orange-glow-light);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px var(--orange-glow);
    transform: translateY(-2px);
    background-color: #ff731d;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--orange-primary);
    background-color: var(--orange-glow-light);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Scroll Container */
#scroll-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

/* Scroll Sections absolutely stacked to eliminate scroll length fatigue */
.scroll-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s ease;
}

/* Toggled by ScrollTrigger mapping */
.scroll-section.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.section-content {
    max-width: 600px;
    width: 100%;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-section.active .section-content {
    transform: translateY(0);
}

.left-align {
    margin-right: auto;
}

.right-align {
    margin-left: auto;
}

.center-align {
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
}

.max-w-lg {
    max-width: 680px;
}

/* Typography & Layout */
.section-index {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--orange-primary);
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.hero-title span {
    display: block;
}

.gradient-text {
    background: linear-gradient(45deg, #ff4c00, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
}

.section-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 35px;
}

/* Feature checklist styling */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 600;
}

.feature-item .bullet {
    color: var(--orange-primary);
    font-size: 1.2rem;
}

/* Stats */
.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--orange-primary);
    font-weight: 800;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Packages Grid (Section 3) */
.packages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}

.package-card {
    padding: 30px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.package-card:hover {
    border-color: var(--orange-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--orange-glow-light);
}

.pack-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.pack-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.pack-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--orange-primary);
    background: rgba(255, 94, 0, 0.1);
    padding: 4px 8px;
    border-radius: 2px;
    border: 1px solid rgba(255, 94, 0, 0.2);
}

/* Split Layout (Section 4 Climax) */
.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.form-wrapper {
    padding: 45px;
    border-radius: 12px;
    text-align: left;
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
}

.form-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-subheading {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.4;
}

/* Hoop CTA Zone */
.hoop-cta-zone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.hoop-zone-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.hoop-zone-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: center;
    max-width: 340px;
}

/* Hero scroll prompt */
.hero-scroll-prompt {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.hero-scroll-prompt span {
    font-size: 0.75rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--text-muted);
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--orange-primary);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(6px); opacity: 0.3; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Glass panel */
.glass-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
}

/* Game Interface */
.game-hud {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: opacity 0.5s, transform 0.5s;
}

.interactive-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 5px 0;
}

.flick-indicator {
    width: 40px;
    height: 60px;
    border: 2px dashed rgba(255, 94, 0, 0.4);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 10px;
}

.arrow-up {
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--orange-primary);
    border-top: 2px solid var(--orange-primary);
    transform: rotate(45deg);
    animation: arrowSlide 1.5s ease infinite;
}

@keyframes arrowSlide {
    0% { transform: translateY(20px) rotate(45deg); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-5px) rotate(45deg); opacity: 0; }
}

.game-card {
    max-width: 360px;
    margin: 0 auto;
    padding: 30px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.result-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.result-subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Modal Backing & Forms */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 4, 6, 0.85);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    transition: opacity 0.4s ease;
    padding: 20px;
}

.modal {
    max-width: 500px;
    width: 100%;
    padding: 50px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--orange-primary);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(255, 94, 0, 0.10);
}

.form-group select option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-success-message {
    text-align: center;
    padding: 20px 0;
}

.checkmark-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--orange-glow-light);
    border: 2px solid var(--orange-primary);
    color: var(--orange-primary);
    font-size: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.form-success-message h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.form-success-message p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Helpers */
.hidden {
    display: none !important;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .split-layout {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .hero-title { font-size: 4rem; }
    .section-title { font-size: 2.8rem; }
    .main-header { padding: 25px 30px; }
    .desktop-nav { gap: 25px; }
}

@media (max-width: 868px) {
    #scroll-container {
        height: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }
    .scroll-section {
        position: relative !important;
        opacity: 0.15 !important;
        visibility: visible !important;
        height: auto !important;
        min-height: 100vh !important;
        padding: 120px 6% 80px 6% !important;
        pointer-events: auto !important;
        display: flex !important;
        align-items: center !important;
        transition: opacity 0.5s ease, transform 0.5s ease !important;
    }
    .scroll-section.active {
        opacity: 1.0 !important;
    }
    .split-layout {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    .form-wrapper {
        order: 2;
    }
    .hoop-cta-zone {
        order: 1;
        padding: 10px 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .desktop-nav { display: none !important; }
    .hero-title { font-size: 2.8rem !important; }
    .section-title { font-size: 2.0rem !important; }
    .stat-grid { gap: 15px; }
    .stat-card { padding: 15px; }
    .stat-num { font-size: 1.8rem; }
    .packages-grid { grid-template-columns: 1fr; }
    .modal { padding: 30px 20px; }
    .form-wrapper { padding: 25px; }
    .main-header { padding: 20px 25px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem !important; }
    .section-title { font-size: 1.7rem !important; }
    .stat-grid { grid-template-columns: 1fr !important; }
    .form-wrapper { padding: 20px 15px !important; }
    .modal { padding: 25px 15px !important; }
    .logo { font-size: 1.2rem !important; }
    .header-cta .btn { padding: 8px 14px; font-size: 0.65rem; }
}

/* Touch Device Adjustments - Hide Custom Cursor */
@media (pointer: coarse) {
    .custom-cursor, .custom-cursor-dot {
        display: none !important;
    }
    html, body, a, button, select, textarea, input, .package-card {
        cursor: auto !important;
    }
}
