/* =========== GLOBAL STYLES & VARIABLES =========== */
:root {
    --primary-green: #00FF41;
    --dark-bg: #111111;
    --text-light: #F5F5F5;
    --text-grey: #AAAAAA;
    --border-color: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 40px 0;
}

h1, h2, h3 {
    font-weight: 900;
    margin-bottom: 20px;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; text-transform: uppercase; }

p {
    margin-bottom: 20px;
    color: var(--text-grey);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center { text-align: center; }
.full-width-image { width: 100%; }

/* =========== BUTTON STYLES (EDITED) =========== */
.btn {
    display: inline-block;
    padding: 12px 24px; /* Reduced horizontal padding to make them less wide */
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase; /* Added for a more professional, designed look */
    letter-spacing: 0.5px;   /* Added for better readability */
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap; /* Prevents text from wrapping on multiple lines */
}

.btn-primary {
    background-color: var(--primary-green);
    color: #000;
    border: 2px solid var(--primary-green);
    box-shadow: 0 4px 15px rgba(0, 255, 65, 0.1); /* Adds a subtle glow */
}

.btn-primary:hover {
    background-color: #fff;
    color: #000;
    transform: scale(1.05); /* Makes the button 'pop' on hover */
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.2); /* Enhances the glow on hover */
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: #000;
    transform: scale(1.05); /* Makes the button 'pop' on hover */
}

.full-width {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
}

/* =========== HEADER =========== */
.main-header {
    background-color: var(--dark-bg);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    height: 30px;
}

/* =========== ANNOUNCEMENT BANNER (NEW) =========== */
.announcement-banner {
    background-color: var(--primary-green); /* Use the main theme color */
    color: #000;
    padding: 10px 0;
    overflow: hidden; /* This is crucial to hide the text before it scrolls into view */
    white-space: nowrap; /* Prevents the text from wrapping to a new line */
}

.announcement-text {
    display: inline-block;
    /* Apply the animation here */
    animation: scroll-text 20s linear infinite;
}

.announcement-text span {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    padding-right: 50px; /* Adds space between the repeating text */
}

/* The animation keyframes */
@keyframes scroll-text {
    0% {
        transform: translateX(0%);
    }
    100% {
        /* Move the text exactly one full copy to the left */
        transform: translateX(-50%);
    }
}
/* =========== HERO SECTION =========== */
.hero-section .hero-image {
    width: 100%;
}

/* =========== INTRO SECTION =========== */
/* STYLES FOR THE BUTTON CONTAINER (UPDATED FOR RESPONSIVENESS) */
.intro-section .cta-buttons {
    display: flex;
    /* Default mobile styles: stack the buttons vertically */
    flex-direction: column;
    align-items: center; /* Center the buttons in the column */
    gap: 15px; /* This will now be the vertical space between buttons */
    margin-bottom: 30px;
}

/* This makes each button look uniform on mobile */
.intro-section .cta-buttons .btn {
    width: 90%; /* Make buttons wide on mobile */
    max-width: 350px; /* But not TOO wide */
}

/* Desktop styles: apply only on screens wider than 768px */
@media (min-width: 768px) {
    .intro-section .cta-buttons {
        /* On desktop, go back to a side-by-side layout */
        flex-direction: row;
        justify-content: center;
    }

    .intro-section .cta-buttons .btn {
        /* On desktop, let the buttons size to their content */
        width: auto;
    }
}

.intro-section .platform-icons span {
    display: inline-block;
    margin: 0 8px;
    font-weight: 700;
    color: var(--text-grey);
}
.intro-section .platform-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; /* Adds space between icons */
}

.platform-icon {
    height: 60px; /* Adjust this value to make icons bigger or smaller */
    width: auto; /* Maintains the correct aspect ratio */
    filter: invert(1);
}

/* =========== FEATURES SECTION (EDITED) =========== */
.features-section {
    padding-bottom: 20px; /* Adjusted padding */
}

.carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    overflow-x: auto; /* This enables horizontal scrolling */
    scroll-snap-type: x mandatory; /* This makes the scroll snap to each card */
    gap: 20px; /* Adds space between your cards */
    padding-bottom: 20px; /* Adds space for the scrollbar if visible */
    
    /* Hides the scrollbar for a cleaner look */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

.carousel-slide {
    flex: 0 0 85%; /* Each card takes up 85% of the carousel width */
    min-width: 0;
    scroll-snap-align: start; /* Snaps the start of the slide to the start of the container */
    border-radius: 10px;
    overflow: hidden; /* Ensures the image respects the border-radius */
}

.carousel-slide img {
    width: 100%;
    display: block;
}

/* New styles for the text on each card */
.card-text {
    padding: 20px;
    background-color: #1a1a1a; /* A slightly lighter dark color for the text box */
    text-align: left;
}
.card-text h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-light);
}
.card-text p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: var(--text-grey);
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    margin-bottom: 25px; /* Added margin */
}
.carousel-indicator {
    border: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s ease; /* Smooth transition */
}
.carousel-indicator.current-slide {
    background-color: var(--primary-green);
}

/* =========== CLUB SECTION =========== */
.club-section .container {
    padding-top: 20px;
}
.club-section .btn {
    margin-top: 10px;
}

/* =========== SIGNUP SECTION =========== */
.signup-section {
    background-color: #000;
}

.signup-form .form-group {
    margin-bottom: 20px;
}

.signup-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.signup-form input,
.signup-form select {
    width: 100%;
    padding: 12px;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-light);
    font-size: 1rem;
}

.form-group-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}
.form-group-checkbox input {
    margin-top: 5px;
}
.form-group-checkbox label {
    font-size: 0.9rem;
    color: var(--text-grey);
}

.socials {
    margin-top: 50px;
}

.social-icons a {
    color: var(--primary-green);
    text-decoration: none;
    margin: 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
}


/* =========== FOOTER =========== */
.main-footer {
    background-color: #000;
    padding-bottom: 20px;
}

.back-to-top-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-bottom: 30px;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    margin: 0 15px;
}

.footer-logo {
    height: 40px;
    margin: 0 auto 20px auto;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-grey);
}
/* =========== TUTORIAL PAGE STYLES =========== */
.tutorial-article {
    max-width: 800px; /* Constrains width for better readability */
    margin: 0 auto; /* Centers the article content */
    padding: 20px 0;
}

.tutorial-article h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-align: center;
}

.tutorial-article .intro-paragraph {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-grey);
    margin-bottom: 50px;
}

.tutorial-step {
    margin-bottom: 40px;
}

.tutorial-step h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-green); /* Use accent color for step titles */
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tutorial-step p {
    font-size: 1rem;
    line-height: 1.7; /* Increased line-height for easier reading */
}

/* Style for the important red note */
.important-note {
    background-color: rgba(255, 77, 77, 0.05); /* Very subtle red background */
    border-left: 5px solid #ff4d4d; /* Bright red left border */
    color: #ffc2c2; /* Light red/pinkish text color */
    padding: 20px;
    margin: 40px 0;
    border-radius: 5px;
}

.important-note p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.important-note strong {
    color: #ff8585; /* Makes the "Note:" text stand out more */
    display: block;
    margin-bottom: 5px;
}

/* Style for the back button in the header */
.header-logo-link {
    display: flex;
    align-items: center;
}
/* Add this new rule for the tutorial images */
.tutorial-step-image {
    width: 100%;
    max-width: 700px; /* Prevents the image from becoming overly large */
    display: block; /* Ensures proper margin handling */
    margin: 30px auto; /* Adds space above/below and centers the image */
    border-radius: 8px; /* Gives the image slightly rounded corners */
    border: 1px solid var(--border-color); /* Adds a subtle border consistent with the theme */
}
/* =========== MODAL STYLES (NEW) =========== */
.modal-overlay {
    position: fixed; /* Sits on top of the page content */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dark, semi-transparent background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Ensures it's on top of everything */
}

.modal-overlay.modal-active {
    display: flex; /* This class will be added by JavaScript to show the modal */
}

.modal-content {
    background-color: #1a1a1a; /* Consistent dark theme */
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px; /* Prevents it from being too wide on desktops */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    position: relative; /* Needed for positioning the close button */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.modal-header h2 {
    margin-bottom: 0;
    font-size: 1.8rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-grey);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1; /* Aligns the '×' character better */
    padding: 0;
}

.close-btn:hover {
    color: var(--text-light);
}

/* Re-using the .signup-form styles for consistency */
.modal-content .signup-form .form-group {
    margin-bottom: 20px;
}
/* New styles for the composite phone number input */
.phone-input-container {
    display: flex;
    align-items: center;
    width: 100%;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

/* A professional touch: highlight the whole box when focused */
.phone-input-container:focus-within {
    border-color: var(--primary-green);
}

.phone-input-container select,
.phone-input-container input {
    /* Remove individual borders to create the unified look */
    border: none;
    background: transparent;
    padding: 12px;
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
}

.phone-input-container select {
    padding-right: 8px;
    /* This vertical line separates the code from the number */
    border-right: 1px solid var(--border-color);
    cursor: pointer;
}

.phone-input-container input {
    /* The input field will take up the remaining space */
    flex-grow: 1;
    width: 100%;
}

/* Removes the default focus outline from the children since the parent is now handling it */
.phone-input-container select:focus,
.phone-input-container input:focus {
    outline: none;
}
/* Fix for the dropdown options background */
.phone-input-container select option {
    background-color: #333333; /* A dark grey background for the options */
    color: var(--text-light);      /* Ensures the text is light and readable */
}
/* =========== FORM STATES & ANIMATIONS (NEW) =========== */

/* A simple helper class to hide elements */
.hidden {
    display: none !important;
}

/* Styles for the loading spinner */
.loader {
    border: 5px solid var(--border-color); /* Light grey */
    border-top: 5px solid var(--primary-green); /* Green */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 10px auto; /* Centering the loader */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styles for the new red 'danger' button */
.btn-danger {
    background-color: #e63946; /* A strong red color */
    color: #fff;
    border: 2px solid #e63946;
}

.btn-danger:hover {
    background-color: #d00000;
    border-color: #d00000;
    transform: scale(1.05);
}

/* Styles for the small text under the verify button */
.verification-text {
    font-size: 0.8rem;
    color: var(--text-grey);
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
}
