/* CSS Variables for Themes */
:root {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --header-bg: transparent;
    --header-border: #ddd;
    --nav-link-color: #333;
    --hero-p-color: #666;
    --footer-bg: #fff;
    --footer-text: #666;
    --card-bg: #fff;
    --btn-bg: #1a73e8;
    --btn-text: white;
}

[data-theme='dark'] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --header-bg: #1e1e1e;
    --header-border: #333;
    --nav-link-color: #e0e0e0;
    --hero-p-color: #b0b0b0;
    --footer-bg: #1e1e1e;
    --footer-text: #b0b0b0;
    --card-bg: #1e1e1e;
    --btn-bg: #3085fe;
    --btn-text: #ffffff;
}

/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.05"/%3E%3C/svg%3E');
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

nav li {
    margin-left: 20px;
}

nav a {
    text-decoration: none;
    color: var(--nav-link-color);
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav a.active {
    color: red;
}

/* Theme Toggle Button */
#theme-toggle {
    background: none;
    border: 1px solid var(--header-border);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 20px;
    transition: all 0.3s;
}

#theme-toggle:hover {
    background-color: var(--header-border);
}

/* Main Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: var(--hero-p-color);
    margin-bottom: 40px;
}

.cta-buttons .btn,
.cta-buttons button {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: inline-block;
}

.cta-buttons .btn:hover,
.cta-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    padding: 40px 50px;
    border-top: 1px solid var(--header-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.company-info,
.legal-notice {
    width: 48%;
}

.company-info h2,
.legal-notice h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.company-info p,
.legal-notice p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--footer-text);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 20px;
    }

    nav ul {
        flex-direction: column;
        margin-top: 20px;
    }

    nav li {
        margin: 10px 0;
        margin-left: 0;
    }

    #theme-toggle {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .footer-content {
        flex-direction: column;
    }

    .company-info,
    .legal-notice {
        width: 100%;
        margin-bottom: 30px;
    }
}
