/* Base Reset & Typography */
:root {
    --color-bg: #ffffff;
    --color-text-main: #333333;
    --color-text-light: #666666;
    --color-primary: #000000;
    --color-secondary: #f5f5f5;
    --color-accent: #e0e0e0;
    --color-border: #dddddd;
    --font-main: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: #fff;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color var(--transition-speed) ease, transform 0.2s ease;
    border: 1px solid var(--color-primary);
}

.cta-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

/* Advertisement Top */
.ad-note-top {
    background-color: #f7f7f7;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    color: #666;
    border-bottom: 1px solid var(--color-border);
}

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

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

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

.loader-brand {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background-color: var(--color-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--color-primary);
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% {
        left: -50%;
    }

    100% {
        left: 100%;
    }
}

/* Header */
.main-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.03em;
}

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

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

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

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

.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    z-index: 1002;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: auto;
    /* Changed from 100% to auto to fit content */
    min-height: auto;
    background-color: #ffffff;
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 5px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-bottom-left-radius: 12px;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
}

.mobile-brand {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    padding: 5px;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-link {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text-main);
}

.mobile-menu-cta {
    margin-top: 25px;
    text-align: center;
}

.mobile-cta {
    display: block;
    width: 100%;
    text-align: center;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background-color: var(--color-secondary);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--color-primary);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.solar-panel-graphic {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #2c3e50, #000000);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.solar-panel-graphic::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(90deg, transparent 0, transparent 40px, rgba(255, 255, 255, 0.1) 41px, rgba(255, 255, 255, 0.1) 42px), repeating-linear-gradient(0deg, transparent 0, transparent 60px, rgba(255, 255, 255, 0.1) 61px, rgba(255, 255, 255, 0.1) 62px);
}

.solar-panel-graphic::after {
    content: 'NEXTSONNE';
    color: rgba(255, 255, 255, 0.1);
    font-size: 3rem;
    font-weight: 900;
    transform: rotate(-45deg);
}

/* About Section */
.about-section {
    background-color: #ffffff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.stat-card {
    background-color: var(--color-secondary);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

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

.feature-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.feature-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: #ffffff;
}

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

.testimonial-card {
    background-color: var(--color-secondary);
    padding: 40px;
    border-radius: 12px;
    position: relative;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

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

.author-role {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

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

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

.faq-item {
    background-color: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

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

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

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
}

.faq-item.active .faq-question::after {
    content: '-';
}

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

.faq-item.active .faq-answer {
    padding-bottom: 20px;
}

/* Footer */
.main-footer {
    background-color: #111111;
    color: #ffffff;
    padding: 80px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-heading {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 25px;
}

.footer-text,
.footer-links li {
    margin-bottom: 12px;
    color: #a0a0a0;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-legal-note {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
}

.legal-disclaimer {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.copyright {
    font-size: 0.9rem;
    color: #666;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    padding: 40px;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    color: var(--color-text-main);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: #666;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

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

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    border: none;
}

.cookie-btn.accept {
    background-color: var(--color-primary);
    color: #ffffff;
}

.cookie-btn.reject {
    background-color: #e0e0e0;
    color: var(--color-text-main);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    .desktop-nav,
    .header-actions .cta-button {
        display: none;
    }

    .hamburger-menu {
        display: flex;
        margin-left: auto;
    }

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content {
        order: 1;
    }

    .hero-image-wrapper {
        order: 2;
        margin-top: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 60px 0;
    }
}