:root {
    --primary-color: #007bff;
    --primary-hover-color: #0056b3;
    --background-dark: #121212;
    --surface-dark: #1e1e1e;
    --text-dark: #e0e0e0;
    --text-muted-dark: #a0a0a0;
    --background-light: #f8f9fa;
    --surface-light: #ffffff;
    --text-light: #212529;
    --text-muted-light: #6c757d;
    --border-color-dark: #333;
    --border-color-light: #dee2e6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: var(--background-dark);
    color: var(--text-dark);
}

body.light-mode {
    background-color: var(--background-light);
    color: var(--text-light);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color-dark);
    transition: background-color 0.3s, border-color 0.3s;
}

body.light-mode header {
    background-color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid var(--border-color-light);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: inherit;
}

.nav-links a {
    margin: 0 15px;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.25rem;
    color: var(--text-muted-dark);
    margin-bottom: 40px;
}

body.light-mode #hero p {
    color: var(--text-muted-light);
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: var(--primary-hover-color);
}

/* Services Section */
#services {
    padding: 80px 0;
}

#services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

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

.service-card {
    background-color: var(--surface-dark);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color-dark);
    transition: transform 0.3s, box-shadow 0.3s;
}

body.light-mode .service-card {
    background-color: var(--surface-light);
    border: 1px solid var(--border-color-light);
}

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

/* FAQ Section */
#faq {
    padding: 80px 0;
}

#faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.accordion-item {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-color-dark);
    border-radius: 5px;
    margin-bottom: 10px;
}

body.light-mode .accordion-item {
    background-color: var(--surface-light);
    border: 1px solid var(--border-color-light);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
}

.accordion-header.active::after {
    content: '-';
}

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

.accordion-content p {
    padding-bottom: 20px;
    color: var(--text-muted-dark);
}

body.light-mode .accordion-content p {
    color: var(--text-muted-light);
}

/* Contact Section */
#contact {
    padding: 80px 0;
}

#contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

#contact label {
    margin-bottom: 10px;
    font-weight: bold;
}

#contact input,
#contact textarea {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid var(--border-color-dark);
    background-color: var(--surface-dark);
    color: inherit;
    font-size: 1rem;
}

body.light-mode #contact input,
body.light-mode #contact textarea {
    border: 1px solid var(--border-color-light);
    background-color: var(--surface-light);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color-dark);
}

body.light-mode footer {
    border-top: 1px solid var(--border-color-light);
}

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    background-color: #555;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #333;
    bottom: 4px;
    content: "🌙";
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:not(:checked) + .slider {
    background-color: #ccc;
}

input:not(:checked) + .slider:before {
    transform: translateX(0px);
    content: "☀️";
    background-color: #fff;
    color: #333;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
