:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f5f5f5;
    --accent-color: #999;
    --background-color: #ffffff;
    --primary-color-rgb: 26, 26, 26;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --neon-accent: rgba(100, 210, 255, 0.3);
}

.dark-mode {
    --primary-color: #fff;
    --secondary-color: #1a1a1a;
    --accent-color: #666;
    --background-color: #000;
    --primary-color-rgb: 255, 255, 255;
    --glass-bg: rgba(0, 0, 0, 0.1);
    --neon-accent: rgba(0, 122, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    padding: clamp(1rem, 5vw, 2rem);
    text-align: center;
    border-bottom: 1px solid var(--accent-color);
    position: relative;
}

nav {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    opacity: .7;
    transition: opacity .3s;
    font-size: clamp(.8rem, 2vw, 1rem);
    padding: .5rem;
    cursor: pointer;
}

nav a:hover,
nav a.active {
    opacity: 1;
}

nav a.active {
    text-decoration: underline;
}

.container {
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 0;
    flex: 1;
}

.page-content {
    display: none;
    animation: fadeIn .5s ease;
}

.page-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section {
    text-align: center;
}

#clock {
    position: fixed;
    top: 1rem;
    right: 1rem;
    color: var(--primary-color);
    opacity: .7;
    font-size: .9rem;
}

.form-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-tab {
    padding: .8rem 2rem;
    background: var(--secondary-color);
    border: 1px solid var(--accent-color);
    cursor: pointer;
    opacity: .7;
    transition: all .3s;
}

.form-tab.active {
    opacity: 1;
    border-color: var(--primary-color);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.contact-form.active {
    display: flex;
}

input,
textarea,
button,
select {
    padding: .8rem;
    border: 1px solid var(--accent-color);
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 1rem;
}

.hero {
    text-align: center;
    padding: 2rem 0;
    margin: 0 auto;
    width: min(1200px, 90%);
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    border-top: 1px solid var(--accent-color);
}

#themeToggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.5rem;
    opacity: .7;
    transition: opacity .3s;
    z-index: 100;
}

#themeToggle:hover {
    opacity: 1;
}

.office-address {
    margin-top: 2rem;
    text-align: center;
    opacity: .8;
    font-size: .9rem;
    cursor: pointer;
}

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

.service-card {
    background: var(--secondary-color);
    border: 1px solid var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform .3s ease;
    text-align: left;
}

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

.service-card ul {
    list-style: none;
    padding-left: 1rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    animation: modalAppear .3s ease;
    align-items: center;
    justify-content: center;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.modal-content {
    background: rgba(var(--primary-color-rgb), .1);
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(45deg, var(--neon-accent), rgba(255, 255, 255, .1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.map-buttons {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.map-choice {
    padding: 1.2rem;
    text-decoration: none;
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: all .3s;
    color: var(--primary-color);
    font-weight: 500;
    text-align: center;
}

.map-choice:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateY(-2px);
}

#cookie-consent {
    position: fixed;
    bottom: 0;
    background: #333;
    padding: 1rem;
    width: 100%;
    display: none;
    z-index: 9999;
    text-align: center;
    color: white;
}

#cookie-consent button {
    margin-left: 10px;
    padding: 5px 15px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Add to styles.css */
.form-message {
    display: none;
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
    color: white;
    text-align: center;
}

.form-message.success { background: #4CAF50; } /* Green */
.form-message.error { background: #f44336; } /* Red */
.form-message.loading { background: #2196F3; } /* Blue */

/* Form tab styling */
.form-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.form-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    background: #000;
}

.form-tab.active {
    background: #ddd;
    font-weight: bold;
}

.contact-form {
    display: none;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form.active {
    display: flex;
}

.h-captcha {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}

.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 10;
}

.consent-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 0.9em;
}

.consent-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.about-section ul {
    text-align: left;
    max-width: 600px;
    margin: 1.5rem auto;
    line-height: 1.8;
    list-style: none;
}

.about-section li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.about-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.team-list {
    text-align: center;
    margin: 3rem 0;
    font-size: 1.2rem;
    line-height: 2.2;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .team-list {
        font-size: 1.1rem;
        line-height: 2;
    }
    
    #clock {
        position: static;
        margin-top: 1rem;
    }

.service-items p {
    margin: 0.5rem 0;
    text-align: center;
}
}
