/* CSS Custom Properties */
:root {
    /* Colors */
    --primary: 210 100% 50%; /* #0080FF */
    --primary-dark: 210 100% 40%; /* #0066CC */
    --secondary: 280 100% 60%; /* #9933FF */
    --accent: 45 100% 50%; /* #FFB300 */
    --background: 210 11% 98%; /* #F5F7FA */
    --surface: 0 0% 100%; /* #FFFFFF */
    --text-primary: 210 11% 15%; /* #1F2937 */
    --text-secondary: 210 9% 31%; /* #4B5563 */
    --text-muted: 210 9% 45%; /* #6B7280 */
    --border: 210 14% 89%; /* #E5E7EB */
    --shadow: 210 40% 8%; /* #0F172A */
    --success: 142 76% 36%; /* #059669 */
    --warning: 38 92% 50%; /* #F59E0B */
    --error: 0 84% 60%; /* #EF4444 */

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 hsla(var(--shadow) / 0.05);
    --shadow: 0 1px 3px 0 hsla(var(--shadow) / 0.1), 0 1px 2px -1px hsla(var(--shadow) / 0.1);
    --shadow-md: 0 4px 6px -1px hsla(var(--shadow) / 0.1), 0 2px 4px -2px hsla(var(--shadow) / 0.1);
    --shadow-lg: 0 10px 15px -3px hsla(var(--shadow) / 0.1), 0 4px 6px -4px hsla(var(--shadow) / 0.1);
    --shadow-xl: 0 20px 25px -5px hsla(var(--shadow) / 0.1), 0 8px 10px -6px hsla(var(--shadow) / 0.1);

    /* Transitions */
    --transition: all 0.2s ease-in-out;
    --transition-fast: all 0.15s ease-in-out;
    --transition-slow: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    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: var(--space-4);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

p {
    margin-bottom: var(--space-4);
    color: hsl(var(--text-secondary));
}

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

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    background-color: hsl(var(--primary));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background-color: hsl(var(--primary-dark));
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    background-color: hsl(var(--text-secondary));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    background-color: transparent;
    color: hsl(var(--primary));
    border: 2px solid hsl(var(--primary));
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--font-size-lg);
    color: hsl(var(--text-muted));
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
.header {
    background-color: hsl(var(--surface));
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.navbar {
    padding: var(--space-4) 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo {
    width: 40px;
    height: 40px;
}

.brand-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: hsl(var(--text-primary));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    color: hsl(var(--text-secondary));
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.nav-toggle img {
    width: 24px;
    height: 24px;
}

.close-icon {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--secondary) / 0.1));
}

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

.hero-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: var(--space-20) 0;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    color: hsl(var(--text-primary));
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: hsl(var(--text-secondary));
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* About Section */
.about {
    padding: var(--space-20) 0;
    background-color: hsl(var(--surface));
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.about-text h3 {
    color: hsl(var(--text-primary));
    margin-bottom: var(--space-4);
}

.about-text p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: hsl(var(--text-muted));
    font-weight: 500;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-image {
    max-width: 100%;
    height: auto;
}

/* Services Section */
.services {
    padding: var(--space-20) 0;
    background-color: hsl(var(--background));
}

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

.service-card {
    background-color: hsl(var(--surface));
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--primary) / 0.1);
    border-radius: var(--radius-xl);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

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

.service-card p {
    color: hsl(var(--text-secondary));
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    padding: var(--space-20) 0;
    background-color: hsl(var(--surface));
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.testimonial-card {
    background-color: hsl(var(--background));
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.stars {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-4);
}

.stars img {
    width: 20px;
    height: 20px;
    color: hsl(var(--accent));
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: var(--space-6);
    font-size: var(--font-size-lg);
}

.testimonial-author strong {
    display: block;
    color: hsl(var(--text-primary));
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.testimonial-author span {
    color: hsl(var(--text-muted));
    font-size: var(--font-size-sm);
}

/* Newsletter Section */
.newsletter {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    color: white;
}

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

.newsletter h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
}

.newsletter-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.form-group input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: none;
    border-radius: var(--radius);
    font-size: var(--font-size-base);
}

.form-note {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: hsl(var(--text-primary));
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer-brand h3 {
    color: white;
    margin-bottom: 0;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-6);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--space-4);
    font-size: var(--font-size-lg);
}

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

.footer-section ul li {
    margin-bottom: var(--space-2);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: var(--space-4);
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: white;
    transition: var(--transition);
}

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

.social-links svg {
    width: 20px;
    height: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.contact-item img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.contact-item span {
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-8);
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.legal-links {
    display: flex;
    gap: var(--space-6);
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
}

.legal-links a:hover {
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: hsl(var(--surface));
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    padding: var(--space-6);
    border-top: 1px solid hsl(var(--border));
    transform: translateY(100%);
    transition: var(--transition-slow);
}

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

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

.cookie-text h3 {
    margin-bottom: var(--space-2);
    font-size: var(--font-size-lg);
}

.cookie-text p {
    margin-bottom: 0;
    color: hsl(var(--text-secondary));
}

.cookie-buttons {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

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

.cookie-modal.show {
    display: flex;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--space-6) 0;
}

.modal-header h3 {
    margin-bottom: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: var(--font-size-2xl);
    cursor: pointer;
    color: hsl(var(--text-muted));
    padding: var(--space-2);
}

.close-btn:hover {
    color: hsl(var(--text-primary));
}

.modal-body {
    padding: var(--space-6);
}

.cookie-category {
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid hsl(var(--border));
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    margin-bottom: var(--space-2);
}

.cookie-toggle input {
    position: relative;
    width: 48px;
    height: 24px;
    appearance: none;
    background-color: hsl(var(--border));
    border-radius: 12px;
    transition: var(--transition);
}

.cookie-toggle input:checked {
    background-color: hsl(var(--primary));
}

.cookie-toggle input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle input::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.cookie-toggle input:checked::before {
    transform: translateX(24px);
}

.cookie-category p {
    margin-bottom: 0;
    font-size: var(--font-size-sm);
    color: hsl(var(--text-muted));
}

.modal-footer {
    padding: 0 var(--space-6) var(--space-6);
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--space-8);
    background-color: hsl(var(--surface));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--space-6);
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    font-size: var(--font-size-base);
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
}

.blog-card {
    background-color: hsl(var(--surface));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--secondary) / 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-content {
    padding: var(--space-6);
}

.blog-card h3 {
    margin-bottom: var(--space-3);
}

.author-avatar{
    max-width: 200px;
}

.related-grid{
    display: flex;
    gap: 20px;
}

.blog-card h3 a {
    color: hsl(var(--text-primary));
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: hsl(var(--primary));
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    font-size: var(--font-size-sm);
    color: hsl(var(--text-muted));
}

.blog-excerpt {
    color: hsl(var(--text-secondary));
    margin-bottom: var(--space-4);
}

.read-more {
    color: hsl(var(--primary));
    font-weight: 500;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* Article Styles */
.article-header {
    text-align: center;
    margin-bottom: var(--space-12);
    padding: var(--space-20) 0 var(--space-8);
    background: linear-gradient(135deg, hsl(var(--primary) / 0.1), hsl(var(--secondary) / 0.1));
}

.article-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-4);
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    color: hsl(var(--text-muted));
    margin-bottom: var(--space-6);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-4) var(--space-16);
}

.article-content h2,
.article-content h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.article-content p {
    margin-bottom: var(--space-6);
    font-size: var(--font-size-lg);
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin-bottom: var(--space-6);
    padding-left: var(--space-6);
}

.article-content li {
    margin-bottom: var(--space-2);
    font-size: var(--font-size-lg);
    line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: hsl(var(--surface));
        flex-direction: column;
        padding: var(--space-6);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

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

    .nav-toggle {
        display: block;
    }

    .nav-toggle.active .menu-icon {
        display: none;
    }

    .nav-toggle.active .close-icon {
        display: block;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-legal {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }

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

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

    .form-group {
        flex-direction: column;
    }

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

    .article-title {
        font-size: var(--font-size-3xl);
    }

    .article-meta {
        flex-direction: column;
        gap: var(--space-2);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .section-header h2 {
        font-size: var(--font-size-2xl);
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .service-card {
        padding: var(--space-6);
    }

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

/* Print Styles */
@media print {
    .header,
    .cookie-banner,
    .cookie-modal,
    .hero-buttons,
    .newsletter,
    .footer {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }

    body {
        background-color: white;
        color: black;
    }
}
