/* Responsive Design */

/* Large screens */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Medium screens */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        font-size: 1.2rem;
        margin: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Newsletter */
    .newsletter-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Cookie Banner */
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 12px;
    }
    
    /* Cookie Modal */
    .cookie-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    /* Thank You Page */
    .thank-you {
        padding: 100px 0 60px;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Blog */
    .blog-hero {
        padding: 100px 0 40px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Article Page */
    .article-page {
        padding: 100px 0 40px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .article-page .article-title {
        font-size: 2rem;
    }
    
    .article-text {
        font-size: 1rem;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .article-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Legal Pages */
    .legal-page {
        padding: 100px 0 40px;
    }
    
    .legal-content {
        padding: 0 10px;
    }
    
    /* Cookies Table */
    .cookies-table {
        font-size: 0.9rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 8px;
    }
}

/* Small screens */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Header */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-logo {
        font-size: 1.3rem;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    /* Hero */
    .hero {
        padding: 90px 0 40px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-banner {
        width: 80%;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Cards */
    .service-card,
    .testimonial-card,
    .article-card {
        padding: 1.25rem;
    }
    
    .service-icon img,
    .testimonial-icon img {
        width: 60px;
        height: 60px;
    }
    
    /* Newsletter */
    .newsletter {
        padding: 40px 0;
    }
    
    .newsletter-content {
        gap: 1.5rem;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Cookie Banner */
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-content {
        gap: 1rem;
    }
    
    .cookie-text h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Cookie Modal */
    .cookie-modal-content {
        width: 98%;
        margin: 5px;
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Thank You */
    .thank-you {
        padding: 90px 0 40px;
    }
    
    .thank-you-title {
        font-size: 1.8rem;
    }
    
    .thank-you-text {
        font-size: 1rem;
    }
    
    .thank-you-image {
        width: 150px;
    }
    
    /* Blog */
    .blog-hero {
        padding: 90px 0 30px;
    }
    
    .blog-title {
        font-size: 1.8rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .blog-articles {
        padding: 40px 0;
    }
    
    .article-image img {
        width: 60px;
        height: 60px;
    }
    
    .article-content {
        padding: 1.25rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-date,
    .article-category {
        font-size: 0.8rem;
    }
    
    /* Article Page */
    .article-page {
        padding: 90px 0 30px;
    }
    
    .article-page .article-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .article-page .article-image img {
        width: 80px;
        height: 80px;
    }
    
    .article-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .article-text h2 {
        font-size: 1.3rem;
    }
    
    .article-text h3 {
        font-size: 1.1rem;
    }
    
    .article-text ul {
        padding-left: 1.5rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn,
    .nav-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Legal Pages */
    .legal-page {
        padding: 90px 0 30px;
    }
    
    .legal-content h2 {
        font-size: 1.3rem;
    }
    
    .legal-content h3 {
        font-size: 1.1rem;
    }
    
    .legal-content ul {
        padding-left: 1.5rem;
    }
    
    .legal-content li {
        font-size: 0.95rem;
    }
    
    /* Cookies Table */
    .cookies-table {
        font-size: 0.8rem;
    }
    
    .cookies-table th,
    .cookies-table td {
        padding: 6px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .service-card,
    .testimonial-card,
    .article-card {
        padding: 1rem;
    }
    
    .cookie-banner {
        padding: 0.75rem;
    }
    
    .cookie-text h3 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .article-page .article-title {
        font-size: 1.4rem;
    }
    
    .article-text {
        font-size: 0.9rem;
    }
    
    .legal-content {
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .header,
    .cookie-banner,
    .cookie-modal,
    .footer,
    .article-share,
    .article-navigation,
    .hero-buttons,
    .newsletter,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    h1, h2, h3 {
        color: #000;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .article-page,
    .legal-page {
        padding: 0;
    }
    
    .article-content,
    .legal-content {
        max-width: none;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    section {
        padding: 20px 0;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-banner {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .btn.primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn.secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .service-card,
    .testimonial-card,
    .article-card {
        border: 2px solid #000;
    }
    
    .header {
        border-bottom: 2px solid #000;
    }
    
    .footer {
        border-top: 2px solid #000;
    }
}

/* Dark mode preferences */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .hero {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }
    
    .about {
        background: #2a2a2a;
    }
    
    .portfolio {
        background: #2a2a2a;
    }
    
    .service-card,
    .testimonial-card,
    .article-card {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .cookie-modal-content {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .form-group input {
        background: #333;
        color: #e0e0e0;
        border-color: #555;
    }
    
    .cookies-table th {
        background: #333;
        color: #e0e0e0;
    }
    
    .legal-content,
    .article-content {
        color: #e0e0e0;
    }
}
