/* =================================== */
/* GLOBAL STYLES & VARIABLES */
/* =================================== */
:root {
    /* Color Palette */
    --color-dark: #0A0A0A;
    --color-light: #F0F0F0;
    --color-accent: #B0B0B0;
    --color-warning: #FF9900; /* Aggressive Warning/Danger (Orange) */
    --color-cta-glow: #00FFFF; /* Neon/Excavator Blue */
    --color-excavator-yellow: #FFFF00; /* Bright Yellow/Excavator Highlight */

    /* Fonts */
    --font-primary: 'Arial Black', sans-serif;
    --font-secondary: 'Arial', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-secondary);
    background-color: var(--color-dark);
    color: var(--color-light);
    line-height: 1.6;
}

a {
    color: var(--color-cta-glow);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-warning);
}

h1, h2, h3 {
    font-family: var(--font-primary);
    text-transform: uppercase;
    color: var(--color-light);
    margin-bottom: 15px;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }

section {
    padding: 40px 20px;
    text-align: center;
}

/* NEW: Max Width Container */
.container {
    max-width: 1200px; /* Set your desired maximum width */
    margin: 0 auto;    /* Center the container on the page */
    padding: 0 20px;   /* Add some padding on the sides for smaller screens */
}


/* =================================== */
/* HEADER & NAVIGATION */
/* =================================== */

.header {
    background-color: #1A1A1A;
    border-bottom: 2px solid var(--color-cta-glow);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000; /* Ensure header is always on top */
}

.logo {
    font-family: var(--font-primary);
    font-size: 1.8em;
    color: var(--color-excavator-yellow);
    text-shadow: 0 0 5px var(--color-excavator-yellow);
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-right: 20px;
}

.cta-nav-button {
    background-color: var(--color-warning);
    color: var(--color-dark);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 10px;
    box-shadow: 0 0 5px var(--color-warning);
}

.cta-nav-button:hover {
    background-color: #FFB333;
    color: var(--color-dark); /* Ensure text stays visible on hover */
}

.menu-toggle {
    display: none; /* Hidden on desktop, shown by media query/JS */
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--color-light);
    cursor: pointer;
}


/* =================================== */
/* HERO SECTION & CTA BUTTONS */
/* =================================== */

.hero-section {
    background: url('fingagym-hero-bg.jpg') no-repeat center top/cover; 
    /* FIX: Reduce height slightly and add top padding to clear the fixed header */
    height: 90vh; 
    padding-top: 70px; /* Added spacing to push content below the header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    position: relative; 
}

.hero-content {
    max-width: 800px;
    position: relative; 
    z-index: 2; 
}

.headline {
    color: var(--color-light); 
    text-shadow: 0 0 15px var(--color-cta-glow), 0 0 25px rgba(0, 255, 255, 0.5); 
    margin-bottom: 20px;
}

.subheadline {
    font-size: 1.2em;
    /* FIX: Ensure subheadline is white for visibility */
    color: var(--color-light); 
    margin-bottom: 30px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column; 
    align-items: center;
    gap: 15px; 
}

.cta-main-button {
    display: inline-block;
    background-color: var(--color-cta-glow);
    color: var(--color-dark); /* Default text color */
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 0 20px var(--color-cta-glow), 0 0 30px rgba(0, 255, 255, 0.7); 
    transition: background-color 0.3s, box-shadow 0.3s, color 0.3s; 
}

.cta-main-button:hover {
    background-color: var(--color-warning);
    box-shadow: 0 0 25px var(--color-warning), 0 0 35px rgba(255, 153, 0, 0.8);
    color: var(--color-dark); /* FIX: Ensure text remains dark/visible on hover */
}

.cta-bench-button {
    display: inline-block;
    background-color: var(--color-excavator-yellow);
    color: var(--color-dark); /* Default text color */
    padding: 10px 25px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 0 8px var(--color-excavator-yellow);
    transition: background-color 0.3s, box-shadow 0.3s, color 0.3s; 
}

.cta-bench-button:hover {
    background-color: var(--color-warning);
    box-shadow: 0 0 15px var(--color-warning);
    color: var(--color-dark); /* FIX: Ensure text remains dark/visible on hover */
}

.secondary-cta-hero {
    margin-top: 5px; 
    font-size: 1.1em;
}

/* NEW: Hero Gift Box Styling */
.hero-gift-box-wrapper {
    margin-top: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-gift-text {
    font-size: 1.3em;
    /* FIX: Changed to white for max contrast */
    color: var(--color-light); 
    /* Applied white text-shadow for a bright white glow */
    text-shadow: 
        0 0 5px var(--color-light),
        0 0 15px var(--color-light),
        0 0 25px rgba(255, 255, 255, 0.8); 
    animation: pulseText 1.5s infinite alternate; 
}

.hero-gift-box-link {
    display: block;
    border: none;
    background: transparent;
    cursor: pointer;
    animation: bounce 2s infinite; 
}

.hero-gift-box-icon {
    /* FIX: Set a max width here to prevent incorrect mobile scaling */
    max-width: 100%; 
    width: 150px; 
    height: auto;
    transition: filter 0.3s; 
    
    /* FIX: Using filter: drop-shadow to contour the image shape (the bubble) */
    filter: drop-shadow(0 0 10px var(--color-cta-glow)) 
            drop-shadow(0 0 20px rgba(0, 255, 255, 0.7)) 
            drop-shadow(0 0 30px rgba(0, 255, 255, 0.3)); 
}

.hero-gift-box-link:hover .hero-gift-box-icon {
    /* Hover effect changes the glow color intensity */
    filter: drop-shadow(0 0 10px var(--color-warning))
            drop-shadow(0 0 20px rgba(255, 153, 0, 0.8))
            drop-shadow(0 0 30px rgba(255, 153, 0, 0.5));
}

/* Keyframe Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-15px);}
    60% {transform: translateY(-8px);}
}

@keyframes pulseText {
    0% {transform: scale(1); opacity: 1;}
    100% {transform: scale(1.05); opacity: 0.8;}
}


/* =================================== */
/* INDEX PAGE STYLES (Features & Testimonials) */
/* =================================== */

.features-section {
    display: flex;
    flex-direction: column; 
    gap: 20px;
    margin: 0 auto;
}

.features-section h2 {
    width: 100%; 
}

.feature-grid {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    justify-content: center;
}

.feature-block {
    background-color: #151515;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--color-cta-glow);
    flex: 1; 
    min-width: 280px;
}

.feature-block h3 {
    color: var(--color-excavator-yellow);
}

.bench-test-cta {
    background-color: #222222;
    border-top: 3px solid var(--color-warning);
    border-bottom: 3px solid var(--color-warning);
    padding: 30px 20px;
}

.testimonials-section {
    background-color: var(--color-dark);
}

.testimonial-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.testimonial {
    background-color: #1A1A1A;
    padding: 20px;
    border-left: 5px solid var(--color-warning);
    font-style: italic;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}


/* =================================== */
/* SIGN UP PAGE SPECIFIC STYLES */
/* =================================== */

.signup-hero-section {
    background: url('fingagym-hero-bg.jpg') no-repeat center top/cover; 
    height: 40vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.warning-text {
    color: var(--color-warning); 
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.signup-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 20px;
    background-color: #222222;
    border: 2px solid var(--color-excavator-yellow); 
    border-radius: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 0.9em;
}

.form-group input {
    width: 100%;
    padding: 10px;
    background-color: #1A1A1A;
    border: 1px solid #555;
    color: var(--color-light);
    border-radius: 4px;
    font-size: 1em;
}

.shady-field label {
    color: var(--color-warning); 
}

.transfer-checkbox {
    display: flex;
    align-items: center;
    margin-top: 25px;
    padding: 15px;
    background: #333;
    border-radius: 4px;
    font-size: 0.9em;
}

.transfer-checkbox label {
    color: var(--color-light);
    text-transform: none;
    font-weight: normal;
}

.transfer-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.pricing-disclosure-section {
    padding: 40px 20px;
    background-color: #101010;
    text-align: center;
    border-top: 3px solid var(--color-warning);
}

.price-details {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--color-light);
    padding: 15px;
    border: 1px dashed var(--color-cta-glow);
    margin-top: 20px;
}

.price-details strong {
    color: var(--color-warning);
}


/* =================================== */
/* ABOUT US PAGE STYLES */
/* =================================== */

.about-section {
    padding-top: 20px;
}

.mission-statement {
    font-size: 1.1em;
    padding: 10px 0;
    margin-bottom: 10px;
    font-style: italic;
}

.mission-statement-detail {
    font-size: 0.9em;
    color: #AAA;
}

.about-story-section {
    padding: 30px 20px;
}

.story-paragraph {
    margin-bottom: 15px;
    line-height: 1.7;
    padding: 5px;
}

.leadership-section {
    padding: 40px 20px;
    background-color: #222222;
}

.leadership-section .sub-heading {
    color: var(--color-excavator-yellow);
    margin-bottom: 25px;
}

.leadership-bios-container {
    display: flex;
    flex-direction: column; 
    gap: 30px;
    margin-bottom: 40px;
}

.bio-card {
    background: #1A1A1A;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--color-accent);
    text-align: center;
}

.bio-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-warning);
    margin-bottom: 15px;
}

.bio-card h3 {
    margin-bottom: 5px;
    color: var(--color-cta-glow);
}

.bio-card .title {
    font-style: italic;
    color: #AAA;
    margin-bottom: 10px;
}


/* =================================== */
/* FINGA-BENCH TEST STYLES */
/* =================================== */

.benchtest-instructions ol {
    list-style: decimal inside;
    text-align: left;
    max-width: 400px;
    margin: 10px auto 20px;
}

.benchtest-instructions li {
    padding-left: 10px;
    margin-bottom: 5px;
}

.game-area {
    text-align: center;
    padding: 30px 20px;
}

#game-status {
    color: var(--color-excavator-yellow);
    font-size: 1.5em;
    min-height: 40px;
}

.countdown {
    font-size: 4em;
    color: var(--color-warning);
    font-family: var(--font-primary);
    margin: 10px 0;
}

.click-target-container {
    padding: 20px;
}

.click-target {
    margin: 20px auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.click-target.active img {
    opacity: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 0 20px var(--color-cta-glow);
    transition: box-shadow 0.1s;
}

#current-results {
    font-size: 1.1em;
    color: #AAA;
    margin-top: 15px;
}

/* Results Table Styling */
.results-comparison-table {
    display: flex;
    flex-direction: column; 
    gap: 30px;
    margin-top: 30px;
}

.result-block {
    padding: 20px;
    border-radius: 8px;
}

/* FIX: Change border of the "Your Trial Score" box to red */
.actual-results {
    background: #333333;
    border: 2px solid red; /* Changed from green to red */
}

/* FIX: Inject red warning icon next to the "YOUR TRIAL SCORE" heading */
.actual-results h2::before {
    content: "⚠️ "; /* Unicode warning symbol and a space */
    color: red; /* Explicitly red color for the icon */
    margin-right: 5px;
    font-size: 0.8em; /* Make the icon slightly smaller if needed */
    vertical-align: middle; /* Align with text */
}

/* Remove the previous table header icon rule if it's no longer needed for "Your Trial Score" specifically */
/* .result-table th:first-child:before {
    content: "⚠️ "; 
    color: red; 
    margin-right: 5px;
} */


.potential-results {
    background: #101010;
    border: 2px solid var(--color-warning);
    box-shadow: 0 0 15px var(--color-warning);
}

.result-block h3 {
    margin-bottom: 15px;
}

.result-table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.result-table th, .result-table td {
    padding: 10px;
    border: 1px solid #444;
}

.result-table th {
    background: #444;
    color: var(--color-light);
    text-align: left;
}

.result-table td {
    background: #2A2A2A;
    text-align: right;
    color: var(--color-excavator-yellow);
}


/* =================================== */
/* FINGAGEAR PRODUCT PAGE STYLES */
/* =================================== */

.product-grid-section {
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 10px;
}

.product-card {
    background: #222222;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--color-excavator-yellow);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 10px var(--color-cta-glow);
}

.product-card img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.product-card h3 {
    color: var(--color-cta-glow);
    font-size: 1.3em;
    margin-bottom: 5px;
}

.product-card .price {
    font-weight: bold;
    color: var(--color-warning);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.product-card .description {
    font-size: 0.9em;
    color: #AAA;
    margin-bottom: 20px;
    line-height: 1.5;
}

.affiliate-btn {
    width: 100%;
    margin-top: auto;
}

.affiliate-warning {
    margin-top: 50px;
    border-top: 3px solid var(--color-cta-glow);
}


/* =================================== */
/* FOOTER */
/* =================================== */

.footer {
    background-color: #1A1A1A;
    border-top: 2px solid var(--color-warning);
    padding: 20px;
    text-align: center;
    font-size: 0.85em;
    color: #888;
}

.disclaimer {
    margin-bottom: 10px;
}

.social-icons a {
    color: #888;
    margin: 0 10px;
}

/* =================================== */
/* RESPONSIVENESS & MEDIA QUERIES (Mobile-First Adjustments) */
/* =================================== */

/* Desktop/Tablet Adjustments (Screens wider than 768px) */
@media (min-width: 768px) {
    /* Header & Nav */
    .header {
        padding: 15px 40px;
    }

    .nav-menu {
        display: flex;
        align-items: center;
    }

    /* Index Feature Grid */
    .feature-grid {
        flex-wrap: nowrap; /* Keep features in one row on desktop */
    }

    /* About Us Leadership Bios */
    .leadership-bios-container {
        flex-direction: row; 
        max-width: 800px;
        margin: 0 auto 40px;
    }

    /* Bench Test Results */
    .results-comparison-table {
        flex-direction: row; 
        max-width: 1000px;
        margin: 30px auto;
    }

    .result-block {
        flex: 1;
    }
}

/* Mobile Adjustments (Screens up to 767px wide) */
@media (max-width: 767px) {
    /* Header & Nav */
    .nav-menu {
        display: none; /* Controlled by JS active class */
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #1A1A1A;
        border-top: 1px solid #333;
        z-index: 10;
        padding: 10px 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
    }

    .nav-menu li {
        margin: 10px 0;
        text-align: center;
    }

    .cta-nav-button {
        display: block;
        text-align: center;
        margin: 10px 20px;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero Section */
    .headline {
        font-size: 2em;
    }
    
    .cta-main-button, .cta-bench-button {
        display: block;
        width: 90%;
        margin: 10px auto;
    }
    
    /* Index Testimonials */
    .testimonial-container {
        gap: 20px;
    }

    /* Adjust gift box on small screens */
    .hero-gift-box-icon {
        /* Re-setting the size explicitly for mobile */
        width: 120px;
        max-width: 100%; 
    }
    .hero-gift-text {
        font-size: 1.1em;
    }
}