/* CSS Custom Properties */
:root {
    --primary-color: 210 80% 55%; /* #667eea */
    --secondary-color: 280 50% 60%; /* #764ba2 */
    --accent-color: 200 100% 60%; /* #20c997 */
    --text-primary: 220 15% 25%; /* #2c3e50 */
    --text-secondary: 220 10% 50%; /* #6c757d */
    --text-light: 220 5% 70%; /* #9ca3af */
    --background: 210 11% 98%; /* #f8f9fa */
    --background-secondary: 220 16% 96%; /* #f1f3f4 */
    --border-color: 220 13% 91%; /* #e9ecef */
    --white: 0 0% 100%; /* #ffffff */
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-strong: 0 8px 24px rgba(0,0,0,0.2);
    --gradient-primary: linear-gradient(135deg, hsl(var(--primary-color)), hsl(var(--secondary-color)));
    --gradient-light: linear-gradient(135deg, rgba(102,126,234,0.8), rgba(118,75,162,0.8));
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-primary));
    background-color: hsl(var(--background));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: hsl(var(--text-secondary));
}

a {
    color: hsl(var(--primary-color));
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: hsl(var(--secondary-color));
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    color: hsl(var(--white));
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: hsl(var(--white));
}

.btn-secondary {
    background-color: hsl(var(--background-secondary));
    color: hsl(var(--text-primary));
    border: 1px solid hsl(var(--border-color));
}

.btn-secondary:hover {
    background-color: hsl(var(--border-color));
    color: hsl(var(--text-primary));
}

.btn-outline {
    background-color: transparent;
    color: hsl(var(--primary-color));
    border: 2px solid hsl(var(--primary-color));
}

.btn-outline:hover {
    background-color: hsl(var(--primary-color));
    color: hsl(var(--white));
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: hsla(var(--white), 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid hsl(var(--border-color));
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--text-primary));
}

.nav-brand svg {
    color: hsl(var(--primary-color));
}

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

.nav-link {
    color: hsl(var(--text-primary));
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.25rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: hsl(var(--text-primary));
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    color: hsl(var(--white));
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: hsl(var(--white));
}

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

.service-card {
    background-color: hsl(var(--background));
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid hsl(var(--border-color));
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    color: hsl(var(--white));
    border-radius: 50%;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: hsl(var(--text-primary));
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--primary-color));
    font-weight: 500;
    margin-top: 1rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: hsl(var(--background));
}

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

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: hsl(var(--primary-color));
}

.stat-label {
    font-size: 0.875rem;
    color: hsl(var(--text-secondary));
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background-color: hsl(var(--white));
}

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

.testimonial-card {
    background-color: hsl(var(--background));
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid hsl(var(--primary-color));
}

.testimonial-icon {
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
}

.testimonial-author {
    margin-top: 1.5rem;
    border-top: 1px solid hsl(var(--border-color));
    padding-top: 1rem;
}

.testimonial-author strong {
    display: block;
    color: hsl(var(--text-primary));
}

.testimonial-author span {
    font-size: 0.875rem;
    color: hsl(var(--text-secondary));
}

/* Newsletter Section */
.newsletter {
    padding: 5rem 0;
    background: var(--gradient-primary);
    color: hsl(var(--white));
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: hsl(var(--white));
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background-color: hsl(var(--background));
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--primary-color) / 0.1);
    color: hsl(var(--primary-color));
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-primary));
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: hsl(var(--text-primary));
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border-color));
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--primary-color));
    box-shadow: 0 0 0 3px hsl(var(--primary-color) / 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid hsl(var(--border-color));
    border-radius: 0.25rem;
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: hsl(var(--primary-color));
    border-color: hsl(var(--primary-color));
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: hsl(var(--white));
    font-size: 0.875rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Footer */
.footer {
    background-color: hsl(var(--text-primary));
    color: hsl(var(--white));
    padding: 3rem 0 1rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand svg {
    color: hsl(var(--primary-color));
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: hsl(var(--white));
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: hsl(var(--text-light));
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: hsl(var(--white));
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--primary-color) / 0.2);
    color: hsl(var(--primary-color));
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: hsl(var(--primary-color));
    color: hsl(var(--white));
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid hsl(var(--text-secondary));
    color: hsl(var(--text-light));
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--white));
    border-top: 1px solid hsl(var(--border-color));
    box-shadow: var(--shadow-strong);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.cookie-text h3 {
    margin-bottom: 0.5rem;
    color: hsl(var(--text-primary));
}

.cookie-text p {
    margin: 0;
    font-size: 0.875rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: hsl(var(--white));
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid hsl(var(--border-color));
}

.modal-header h2 {
    margin: 0;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: hsl(var(--text-secondary));
}

.modal-body {
    padding: 1.5rem;
}

.cookie-category {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: hsl(var(--border-color));
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: hsl(var(--primary-color));
}

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

input:disabled + .slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-info h4 {
    margin-bottom: 0.5rem;
}

.cookie-info p {
    font-size: 0.875rem;
    color: hsl(var(--text-secondary));
    margin: 0;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid hsl(var(--border-color));
    text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background-color: hsl(var(--white));
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-medium);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .about-stats {
        justify-content: space-around;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    .navbar {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .modal-content {
        margin: 1rem;
    }

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

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: hsl(var(--white));
}

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

/* Form Error States */
.form-error {
    background-color: #fee;
    color: #c33;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #fcc;
    font-size: 0.875rem;
}

/* Legal Pages Styles */
.legal-content {
    padding: 8rem 0 5rem;
    background-color: hsl(var(--background));
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-icon {
    color: hsl(var(--primary-color));
    margin-bottom: 2rem;
}

.legal-subtitle {
    font-size: 1.125rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 1rem;
}

.legal-date {
    font-size: 0.875rem;
    color: hsl(var(--text-light));
}

.legal-body {
    max-width: 800px;
    margin: 0 auto;
    background-color: hsl(var(--white));
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid hsl(var(--border-color));
    box-shadow: var(--shadow-light);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    color: hsl(var(--text-primary));
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.legal-section h3 {
    color: hsl(var(--primary-color));
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.purpose-item, .service-item, .policy-item {
    background-color: hsl(var(--background));
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid hsl(var(--primary-color));
}

.cookie-category {
    background-color: hsl(var(--background));
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.cookie-note {
    background-color: hsl(var(--white));
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid hsl(var(--border-color));
    margin-top: 1rem;
    font-style: italic;
}

.third-party-service {
    background-color: hsl(var(--background));
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

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

.browser-item {
    background-color: hsl(var(--background));
    padding: 1rem;
    border-radius: 0.5rem;
}

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

.consequence-item {
    background-color: hsl(var(--background));
    padding: 1rem;
    border-radius: 0.5rem;
}

.legal-contact {
    background-color: hsl(var(--background));
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-top: 3rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--primary-color));
    text-decoration: none;
    font-weight: 500;
}

.contact-method:hover {
    color: hsl(var(--secondary-color));
}
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid hsl(var(--primary-color));
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles */
*:focus {
    outline: 2px solid hsl(var(--primary-color));
    outline-offset: 2px;
}

button:focus,
.btn:focus {
    outline-offset: 4px;
}
