/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* === CSS Variables === */
:root {
    --header-height: 4.5rem;
    --primary-color: #4A90E2; /* Bright Blue */
    --secondary-color: #50E3C2; /* Teal */
    --accent-color: #F5A623; /* Orange */
    --dark-color: #2c3e50;
    --body-color: #f9f9f9;
    --text-color: #555;
    --container-color: #fff;
    --body-font: 'Poppins', sans-serif;
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 0.5rem;
}

/* === Base Styles === */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--dark-color);
    font-weight: 600;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0 2rem;
}

.section__title {
    font-size: var(--h1-font-size);
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 3rem;
}

/* === Reusable CSS Classes === */
.button {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.button:hover {
    background: #3a7ac8;
    transform: translateY(-2px);
}

.button--accent {
    background: var(--accent-color);
}

.button--accent:hover {
    background: #e19416;
}

/* === Header & Nav === */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--container-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
}

.nav__logo img {
    height: 40px;
    width: auto;
}

.nav__menu {
    display: flex;
}

.nav__list {
    display: flex;
    gap: 2.5rem;
}

.nav__link {
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

.nav__link:hover, .nav__link.active-link {
    color: var(--primary-color);
}

.nav__toggle {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    color: var(--dark-color);
}

/* === Home Page === */
.home {
    background: linear-gradient(to right, rgba(74, 144, 226, 0.05), rgba(80, 227, 194, 0.05));
    padding-top: var(--header-height);
}

.home__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
    min-height: calc(100vh - var(--header-height));
}

.home__data {
    max-width: 500px;
}

.home__title {
    font-size: var(--biggest-font-size);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.home__description {
    margin-bottom: 2rem;
}

.home__img img {
    border-radius: var(--border-radius);
    width: 100%;
}

/* Services Grid */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service__card {
    background: var(--container-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
}

/* === About, Contact, Privacy, Terms (Generic Page) === */
.page__header {
    background: var(--primary-color);
    color: #fff;
    padding: 4rem 0 2rem;
    text-align: center;
}

.page__title {
    font-size: var(--h1-font-size);
    color: #fff;
}

.page__content {
    background: var(--container-color);
    padding: 2rem;
    margin-top: -2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.page__content h2 {
    font-size: var(--h2-font-size);
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.page__content h3 {
    font-size: var(--h3-font-size);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.page__content ul {
    list-style: disc;
    padding-left: 1.5rem;
}
.page__content li {
    margin-bottom: 0.5rem;
}
.contact-info {
    font-size: var(--h3-font-size);
    margin-top: 1rem;
}

/* === Affiliate Page === */
.affiliate-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 2rem;
}

.affiliate-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.affiliate-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.affiliate-hero__title {
    font-size: var(--biggest-font-size);
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.affiliate-hero__description {
    font-size: var(--h3-font-size);
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.affiliate-hero .button {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    transform: scale(1);
}

.affiliate-hero .button:hover {
    transform: scale(1.05);
}

/* Reviews Section */
.reviews {
    padding-top: 4rem;
}

.reviews__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review__card {
    background: var(--container-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--secondary-color);
}

.review__header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.review__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.review__author h4 {
    margin: 0;
    color: var(--dark-color);
}

.review__rating {
    color: var(--accent-color);
}

.review__text {
    font-style: italic;
}

/* === Footer === */
.footer {
    background-color: var(--dark-color);
    color: #bdc3c7;
    padding: 4rem 0 2rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer__title {
    font-size: var(--h3-font-size);
    color: #fff;
    margin-bottom: 1rem;
}

.footer__links li {
    margin-bottom: 0.5rem;
}

.footer__links a {
    color: #bdc3c7;
    transition: color 0.3s;
}

.footer__links a:hover {
    color: var(--secondary-color);
}

.footer__address p {
    margin: 0;
    line-height: 1.8;
}

.footer__disclaimer {
    grid-column: 1 / -1; /* Span full width */
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #3e5165;
    font-size: var(--small-font-size);
    text-align: center;
}

.footer__copy {
    margin-top: 3rem;
    text-align: center;
    font-size: var(--small-font-size);
}

/* === Responsive Media Queries === */
@media screen and (max-width: 992px) {
    .container {
        padding: 0 1rem;
    }
    .home__container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 4rem;
    }
    .home__data {
        order: 2;
    }
    .home__img {
        order: 1;
        max-width: 400px;
        margin: 0 auto 2rem;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --biggest-font-size: 2rem;
        --h1-font-size: 1.75rem;
        --h2-font-size: 1.25rem;
    }

    .section {
        padding: 4rem 0 2rem;
    }

    .nav__menu {
        position: fixed;
        background-color: var(--container-color);
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        padding: 6rem 2rem 3rem;
        transition: right 0.4s;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .nav__link {
        font-size: var(--h2-font-size);
    }

    .nav__toggle {
        display: block;
        z-index: 101;
    }

    /* Show menu */
    .show-menu {
        right: 0;
    }
    
    .affiliate-hero {
        height: 70vh;
    }

    .affiliate-hero__title {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 375px) {
    :root {
        --biggest-font-size: 1.8rem;
        --h1-font-size: 1.5rem;
    }
    
    .footer__container {
        text-align: center;
    }

    .footer__links {
        padding: 0;
    }
}