/* CSS Reset & Variables */
:root {
    --primary-color: #0f172a;
    --secondary-color: #334155;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition-base: all 0.3s ease;
    --container-padding: 2rem;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Global Reset (Class-based replacement of *) */
html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-light);
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.cta-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background-color: var(--accent-color);
    color: var(--text-white);
    font-weight: 600;
    border-radius: 50px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.cta-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.section-text {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

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

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

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

.loader-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Advertisement Notice Top */
.ad-notice-top {
    background-color: #f1f5f9;
    padding: 0.5rem 0;
    font-size: 0.75rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.ad-container {
    display: flex;
    justify-content: center;
}

/* Header */
.main-header {
    background-color: var(--background-white);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

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

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

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

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

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

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

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 2001;
    /* Above mobile menu */
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background-color: var(--background-white);
    z-index: 2000;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease-in-out;
    padding: 2rem;
}

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

.close-menu-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.mobile-nav-list {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary-color);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: slideUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    max-width: 90%;
    animation: slideUp 0.8s ease-out 0.2s backwards;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

.hero-feature-item {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.hero-cta {
    animation: slideUp 0.8s ease-out 0.6s backwards;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 1s ease-out;
}

.hero-image {
    width: 100%;
    transition: transform 0.5s ease;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--background-white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Why Us Section */
.why-us-section {
    padding: 6rem 0;
    background-color: #f1f5f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--background-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
}

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

.feature-icon,
.feature-icon-placeholder {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    object-fit: contain;
}

.feature-icon-placeholder {
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(245, 158, 11, 0.1);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-section {
    padding: 6rem 0;
    background-color: var(--background-white);
}

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

.testimonial-card {
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background-color: #fafbfc;
}

.testimonial-stars {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

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

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background-color: #f8fafc;
}

.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--background-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: #f1f5f9;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--accent-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question:after {
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
}

/* Footer */
.main-footer {
    background-color: var(--primary-color);
    color: var(--text-white);
    padding: 5rem 0 2rem;
}

.footer-content-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--background-white);
}

.footer-text {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: #cbd5e1;
    transition: color 0.2s;
}

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

.footer-legal-notice {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
}

.ad-disclaimer {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    max-width: 500px;
    background-color: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9000;
    transform: translateY(150%);
    transition: transform 0.5s ease-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cookie-text {
    font-size: 0.875rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition-base);
}

.cookie-btn.accept {
    background-color: var(--accent-color);
    color: white;
}

.cookie-btn.accept:hover {
    background-color: var(--accent-hover);
}

.cookie-btn.reject {
    background-color: #e2e8f0;
    color: var(--secondary-color);
}

.cookie-btn.reject:hover {
    background-color: #cbd5e1;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--background-white);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    padding: 2rem;
    border-radius: 16px;
    position: relative;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary-color);
    line-height: 1;
}

.modal-title {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Responsive Specifics - IMPROVED */
@media (max-width: 900px) {

    .nav-list,
    .desktop-only {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Make hero image centered and not too huge */
    .hero-image-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    /* Typography Adjustments */
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .section-text {
        font-size: 1rem;
    }

    /* Spacing Adjustments */
    .hero-section {
        padding: 2rem 0 3rem;
    }

    .about-section,
    .why-us-section,
    .testimonials-section,
    .faq-section {
        padding: 3rem 0;
    }

    /* Hero Specifics */
    .hero-container {
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.25rem;
        /* Slightly larger for impact, but wrapped */
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .hero-features {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero-feature-item {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        background-color: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: 50px;
        /* Pill shape */
        width: auto;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .hero-cta {
        width: 100%;
        max-width: 350px;
        /* Comfortable touch width */
        padding: 1rem 2rem;
        /* Easier to tap */
        font-size: 1.125rem;
    }

    /* Grid Adjustments */
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .feature-card,
    .testimonial-card {
        padding: 1.5rem;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
        /* Slight shadow for depth */
    }

    /* Footer Adjustments */
    .footer-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        margin-bottom: 3rem;
    }

    .footer-links {
        align-items: center;
    }

    .main-footer {
        padding: 3rem 0 6rem;
        /* Extra space at bottom for mobile interactions */
    }

    /* Cookie Banner Mobile */
    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 1.25rem;
        width: auto;
        max-width: none;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem;
    }

    /* Mobile Menu Width - 75% as requested */
    .mobile-menu {
        width: 75%;
        max-width: none;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-feature-item {
        width: 100%;
        text-align: center;
        border-radius: 8px;
    }
}

/* Small Device Optimizations */
@media (max-width: 350px) {
    :root {
        --container-padding: 0.75rem;
    }

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

    .hero-cta {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}