/* Basic Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: #1a1a2e; /* Darker blue for headings */
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.8em;
    font-weight: 700;
}

h2 {
    font-size: 2.2em;
    font-weight: 600;
}

h3 {
    font-size: 1.5em;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    text-align: center;
}

.highlight {
    color: #6a0572; /* Purple highlight */
}

/* --- Navbar --- */
.navbar {
    background: linear-gradient(to right, #1a1a2e, #0f3460); /* Dark blue gradient */
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
}

.logo span {
    font-weight: 700;
    font-size: 1.5em;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e94560; /* Reddish-pink hover/active color */
}

.hamburger {
    display: none; /* Hidden on desktop */
    font-size: 2em;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(45deg, #1a1a2e, #0f3460); /* Dark blue gradient */
    color: #fff;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Game Background Images */
.hero-bg-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.15; /* Reduced opacity to make text legible */
    pointer-events: none;
}

.bg-img {
    position: absolute;
    height: 100%;
    width: auto;
    object-fit: cover;
    opacity: 0.8; 
}

.bg-img-left {
    left: 0;
    top: 0;
    transform: translateX(-50%);
}

.bg-img-right {
    right: 0;
    top: 0;
    transform: translateX(50%);
}

.hero-section .container {
    position: relative; /* Ensure content is above the background images */
    z-index: 10;
}

.hero-football-icon {
    position: absolute;
    top: 20px;
    right: 50px;
    width: 80px;
    height: auto;
    opacity: 0.8;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #fff;
}

.hero-section p {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #eee;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn .icon {
    margin-right: 10px;
    font-size: 1.2em;
}

.btn-primary {
    background-color: #e94560; /* Reddish-pink */
    color: #fff;
    border: 2px solid #e94560;
}

.btn-primary:hover {
    background-color: #d8304c;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* --- Features Section --- */
.features-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.icon-wrapper {
    background-color: #f0f0f0;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
}

.feature-icon {
    font-size: 2.5em;
    color: #0f3460;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
    color: #1a1a2e;
}

.feature-card p {
    font-size: 0.95em;
    color: #555;
}

/* --- How It Works Section FIXES --- */
.how-it-works-section {
    padding: 80px 0;
    background-color: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 50px;
}

.step-card {
    text-align: center;
    padding: 20px 10px;
    position: relative;
}

.step-number-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #0f3460;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: 700;
    z-index: 1; /* Keep number on top of line */
}

/* Connecting Line (Horizontal Dashed) */
.step-line {
    height: 2px;
    width: 100%; 
    border-top: 2px dashed #ccc; /* Create the dashed line */
    margin: 0 -10px; /* Pull line slightly under circle edge */
}

/* Hide the line on the last step */
.step-card:last-child .step-line {
    display: none;
}


.step-card h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #1a1a2e;
}

.step-card p {
    font-size: 0.9em;
    color: #555;
}


/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(90deg, #e94560, #6a0572); /* Red to purple gradient */
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    margin-bottom: 40px;
}

.btn-cta {
    background-color: #fff;
    color: #e94560;
    border: 2px solid #fff;
    font-size: 1.1em;
}

.btn-cta:hover {
    background-color: #f0f0f0;
    color: #d8304c;
}

/* --- Footer --- */
footer {
    background-color: #1a1a2e;
    color: #aaa;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
    position: relative;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-to-top {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: block;
}

.scroll-to-top img {
    width: 30px; /* Adjust Storypix logo size */
    height: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-to-top img:hover {
    opacity: 1;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }

    .navbar nav {
        width: 100%;
        order: 3; 
        display: none; 
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        background-color: #2c2c4a; 
        padding: 20px 0;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: block; 
        margin-left: auto; 
    }

    .hero-section {
        padding: 80px 20px;
    }

    .hero-bg-images {
        display: none; /* Hide complex background images on small screens */
    }

    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.3em;
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .step-number-wrapper {
        justify-content: center; 
    }

    .step-line {
        display: none; /* Hide lines between steps on mobile for cleaner vertical flow */
    }
}