/* General Reset */
body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #e8f4ff, #b8dcff);
    color: #333;
}

/* Header Navigation */
header {
    background-color: #ffcc00;
    padding: 15px 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center; /* Center-aligns both the logo and nav links */
}

.logo {
    font-size: 48px;
    font-weight: bold;
    color: #ff0000;
    text-shadow: 2px 2px 0 #ffffff, 4px 4px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 16px; /* Adds spacing between the logo and the nav links */
}

.nav-links {
    list-style: none;
    display: inline-flex; /* Aligns the links in a row */
    gap: 20px; /* Spacing between the links */
    justify-content: center;
    padding: 0;
    font-size: 18px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff0000;
}

/* Disclaimer Banner */
.disclaimer-banner {
    background-color: #f5f5f5;
    color: #666;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.disclaimer-banner a {
    color: #0073e6;
    text-decoration: none;
    font-weight: bold;
}

.disclaimer-banner a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background: url('./images/logo.png') center/contain no-repeat;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    height: 50vh;
    position: relative; /* Required for overlay */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Semi-transparent overlay */
    z-index: 1; /* Layer behind the content */
}

.hero-content {
    position: relative; /* Keeps content above overlay */
    z-index: 2; /* Layer above the overlay */
    background: rgba(0, 0, 0, 0.6); /* Adds a background to the text */
    padding: 20px;
    border-radius: 8px; /* Smooth corners */
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 20px;
}

.cta-button {
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    background-color: #0073e6;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
}

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 40px 20px;
    background-color: #ffffff;
    text-align: center;
    gap: 20px; /* Add spacing between items */
}

.feature {
    display: block;
    max-width: 300px;
    padding: 20px;
    background-color: #f8f8f8;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.feature h2 {
    font-size: 24px;
    color: #ff0000;
    margin-bottom: 10px;
}

.feature p {
    font-size: 16px;
}

.affiliate-banner {
    background-color: #ffeeba;
    color: #333;
    text-align: center;
    padding: 10px 20px;
    font-size: 16px;
    margin-bottom: 20px;
    border-top: 2px solid #ffc107;
    border-bottom: 2px solid #ffc107;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.affiliate-banner a {
    color: #d35400;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.affiliate-banner a:hover {
    color: #c0392b;
}


/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #ffcc00;
    color: #333;
    font-size: 14px;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    /* Body and General Text Scaling */
    body {
        font-size: 14px; /* Adjust base font size for readability on smaller screens */
    }

    .logo {
        font-size: 32px; /* Scale down the logo text */
        margin-bottom: 8px; /* Reduce spacing below the logo */
    }

    .nav-links {
        flex-direction: column; /* Stack navigation links vertically */
        gap: 10px; /* Reduce spacing between links */
        font-size: 16px; /* Slightly smaller font for nav links */
    }

    .nav-links a {
        padding: 10px 0; /* Add padding for easier tapping on mobile */
    }

    /* Hero Section */
    .hero {
        padding: 40px 10px; /* Reduce padding for smaller screens */
        height: 60vh; /* Adjust hero height for mobile */
    }

    .hero-content h1 {
        font-size: 32px; /* Smaller headline size */
    }

    .hero-content p {
        font-size: 16px; /* Smaller text size */
    }

    .cta-button {
        font-size: 16px; /* Scale down button text size */
        padding: 8px 16px; /* Adjust padding for smaller button size */
    }

    /* Features Section */
    .features {
        flex-direction: column; /* Stack features vertically */
        padding: 20px 10px; /* Reduce padding */
    }

    .feature {
        max-width: 100%; /* Full width for each feature */
    }

    .feature h2 {
        font-size: 20px; /* Reduce feature title size */
    }

    .feature p {
        font-size: 14px; /* Reduce feature text size */
    }

    /* Disclaimer Banner */
    .disclaimer-banner {
        font-size: 12px; /* Smaller font for banner text */
        padding: 8px; /* Adjust padding */
    }

    /* Affiliate Banner */
    .affiliate-banner {
        font-size: 14px; /* Smaller font for affiliate banner */
        padding: 8px; /* Adjust padding */
    }

    /* Footer */
    footer {
        font-size: 12px; /* Reduce footer font size */
        padding: 10px; /* Adjust padding */
    }
}
