/* CSS Variables */
:root {
    --primary-color: #8EB63B;
    --secondary-color: #EF802D;
    --dark-bg: #111111;
    --darker-bg: #000000;
    --light-bg: #f9f9f9;
    --card-bg: #ffffff;
    --text-color: #333333;
    --light-text: #ffffff;
    --gray-text: #666666;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --font-main: 'Outfit', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-bg);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-text);
    text-align: center;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: #7da034;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-content {
    text-align: center;
}

.loader-text {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

/* Advertisement Banner (Top) */
.ad-banner-top {
    background-color: #f8f8f8;
    color: #666;
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #ddd;
}

.ad-text-top {
    font-weight: 500;
}

/* Header */
.header {
    background-color: var(--light-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-bg);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -1px;
}

.logo-accent {
    color: var(--primary-color);
}

.logo-icon {
    font-size: 1.4rem;
    color: var(--secondary-color);
    animation: spin 10s linear infinite;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-bg);
    margin: 3px 0;
    transition: 0.4s;
}

.mobile-close-container {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    padding: 25px;
    z-index: 10;
}

.close-icon {
    font-size: 1.5rem;
    color: var(--dark-bg);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #eefbf0 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 40px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--dark-bg);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--hover-shadow);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* About Section */
.section {
    padding: 80px 0;
}

.about-section {
    background-color: var(--light-text);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.about-image-wrapper {
    flex: 1;
    min-width: 300px;
}

.about-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.section-text {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.feature-list {
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.icon-check {
    color: var(--primary-color);
    margin-right: 15px;
}

/* Why Us Section */
.why-us-section {
    background-color: #f4f8f4;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: rgba(142, 182, 59, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-bg);
}

.feature-desc {
    color: var(--gray-text);
}

/* Testimonials */
.testimonials-section {
    background-color: var(--light-text);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: var(--border-radius);
    position: relative;
}

.stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-text);
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark-bg);
}

/* FAQ */
.faq-section {
    background-color: #f4f8f4;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-bg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-icon.rotate {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--gray-text);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-ad-disclaimer {
    background-color: transparent;
    padding: 20px 0 10px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-top: 1px solid #333;
    border-bottom: none;
}

.footer-ad-text {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-heading {
    color: var(--light-text);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-text {
    color: #ccc;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-link-text {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link-text:hover {
    color: var(--primary-color);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-link {
    color: #ccc;
    transition: color 0.3s;
    display: inline-block;
}

.footer-link:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    color: #777;
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 10000;
    display: none;
    /* Controlled by JS */
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.cookie-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-bg);
}

.cookie-text {
    font-size: 0.95rem;
    color: var(--gray-text);
    margin-bottom: 20px;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--dark-bg);
    text-decoration: none;
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal p {
    margin-bottom: 15px;
    color: var(--text-color);
}

/* Responsive */
@media screen and (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        width: 75%;
        /* 75% width as requested */
        height: 100vh;
        background-color: var(--light-text);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .mobile-close-container {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
        margin-top: 80px;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-container {
        flex-direction: column;
    }

    .cta-btn {
        display: none;
        /* Hide top CTA on mobile if space is tight, usually standard practice, or keep it small. User just said header CTA. */
    }

    /* Re-enable CTA in mobile menu if desired? Or keep header clean?
       I'll keep header clean. User didn't specify.
       Wait - "mobile responsive view. This involves ensuring they are displayed horizontally next to each other" - previous request. 
       This current request: "Add header with CTA". "make it device responsive, add humburger".
       I will keep specific CTA visible in header next to hamburger if possible, or hide it.
       Let's keep it visible but small.
    */
    .cta-btn {
        display: inline-block;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}