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

:root {
    /* Hand-drawn Color Palette */
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #45B7D1;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --background-light: #FFEAA7;
    --background-white: #FFFFFF;
    --border-color: #DDD;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    
    /* Hand-drawn Typography */
    --font-primary: 'Comic Sans MS', cursive, sans-serif;
    --font-secondary: 'Marker Felt', fantasy, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Hand-drawn Animation Keyframes */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-15px); }
    70% { transform: translateY(-7px); }
    90% { transform: translateY(-3px); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes draw-line {
    0% { stroke-dasharray: 0 1000; }
    100% { stroke-dasharray: 1000 1000; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-tertiary {
    display: inline-block;
    padding: 12px 30px;
    border: 3px solid;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    transform: rotate(-1deg);
    box-shadow: 4px 4px 0px var(--text-dark);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 6px 6px 0px var(--text-dark);
    animation: wiggle 0.5s ease-in-out;
}

.btn-secondary {
    background-color: #45b7d1;
    color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    transform: rotate(1deg) translateY(-2px);
    box-shadow: 6px 6px 0px var(--text-dark);
}

.btn-tertiary {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Header */
.header {
    background-color: var(--background-white);
    padding: var(--spacing-sm) 0;
    box-shadow: 0 4px 15px var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.logo img {
    height: 50px;
    animation: float 3s ease-in-out infinite;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: bold;
    font-family: var(--font-secondary);
    position: relative;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: var(--background-light);
    transform: rotate(-1deg);
    animation: wiggle 0.3s ease-in-out;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
    padding: 120px 0 var(--spacing-xl);
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FF6B6B' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.hero-title {
    font-size: 3.5rem;
    font-family: var(--font-secondary);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    transform: rotate(-1deg);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.hero-image img {
    width: 100%;
    height: auto;
    animation: bounce 2s infinite;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: var(--spacing-xl) auto 0;
    padding: 0 var(--spacing-sm);
}

.stat {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--background-white);
    border-radius: var(--radius-lg);
    border: 3px solid var(--secondary-color);
    transform: rotate(1deg);
    box-shadow: 5px 5px 0px var(--text-dark);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: rotate(0deg) translateY(-5px);
    animation: wiggle 0.5s ease-in-out;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    margin-bottom: var(--spacing-xs);
}

.stat p {
    color: var(--text-light);
    font-weight: bold;
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-white);
}

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

.about-text h2 {
    font-size: 2.5rem;
    font-family: var(--font-secondary);
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    transform: rotate(-1deg);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.about-image img {
    width: 100%;
    height: auto;
    animation: float 4s ease-in-out infinite;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-family: var(--font-secondary);
    text-align: center;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xl);
    transform: rotate(-1deg);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* Services Section */
.services {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--background-light) 0%, var(--background-white) 100%);
}

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

.service-card {
    background-color: var(--background-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 3px solid var(--accent-color);
    transform: rotate(1deg);
    box-shadow: 6px 6px 0px var(--text-dark);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 8px 8px 0px var(--text-dark);
    animation: wiggle 0.5s ease-in-out;
}

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-sm);
    animation: bounce 2s infinite;
}

.service-card h3 {
    font-size: 1.5rem;
    font-family: var(--font-secondary);
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    text-align: left;
}

.service-card li {
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-white);
}

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

.testimonial-card {
    background-color: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 3px solid var(--secondary-color);
    transform: rotate(-1deg);
    box-shadow: 5px 5px 0px var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: rotate(0deg) translateY(-3px);
    animation: wiggle 0.5s ease-in-out;
}

.testimonial-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-bottom: var(--spacing-sm);
    animation: float 3s ease-in-out infinite;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
    font-size: 1.1rem;
}

.testimonial-author h4 {
    color: var(--text-dark);
    font-family: var(--font-secondary);
    margin-bottom: var(--spacing-xs);
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Blog Section */
.blog {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--background-white) 0%, var(--background-light) 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.blog-card {
    background-color: var(--background-white);
    border-radius: var(--radius-lg);
    border: 3px solid var(--accent-color);
    overflow: hidden;
    transform: rotate(1deg);
    box-shadow: 5px 5px 0px var(--text-dark);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 7px 7px 0px var(--text-dark);
    animation: wiggle 0.5s ease-in-out;
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-color);
}

.blog-content {
    padding: var(--spacing-md);
}

.blog-content h3 {
    font-family: var(--font-secondary);
    margin-bottom: var(--spacing-sm);
}

.blog-content h3 a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

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

.blog-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
}

.blog-cta {
    text-align: center;
}

/* Newsletter Section */
.newsletter {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-color);
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='white' fill-opacity='0.1'%3E%3Cpath d='M20 20c0 11.046-8.954 20-20 20v20h40V20H20z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 15s linear infinite;
    z-index: 0;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.newsletter-text {
    text-align: center;
}

.newsletter-text img {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-sm);
    animation: bounce 2s infinite;
}

.newsletter-text h2 {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    margin-bottom: var(--spacing-sm);
    transform: rotate(-1deg);
}

.newsletter-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid var(--text-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    background-color: var(--background-white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--shadow-medium);
}

/* Contact Section */
.contact {
    padding: var(--spacing-xl) 0;
    background-color: var(--background-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-info img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: var(--spacing-md);
    animation: float 4s ease-in-out infinite;
}

.contact-item {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background-color: var(--background-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--secondary-color);
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: rotate(0deg);
}

.contact-item h4 {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form {
    background-color: var(--background-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 3px solid var(--accent-color);
    transform: rotate(1deg);
    box-shadow: 5px 5px 0px var(--text-dark);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

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

.footer-logo {
    height: 40px;
    margin-bottom: var(--spacing-sm);
    filter: brightness(0) invert(1);
}

.footer-section h4 {
    font-family: var(--font-secondary);
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    transform: rotate(-5deg);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: rotate(0deg) scale(1.1);
    animation: wiggle 0.5s ease-in-out;
}

.footer-bottom {
    border-top: 2px solid #444;
    padding-top: var(--spacing-sm);
    text-align: center;
    color: #ccc;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--text-dark);
    color: white;
    padding: var(--spacing-sm);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

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

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

.cookie-buttons {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 8px 16px;
    border: 2px solid;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cookie-modal-content {
    background-color: var(--background-white);
    margin: 10% auto;
    padding: var(--spacing-lg);
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    transform: rotate(-1deg);
    box-shadow: 10px 10px 0px var(--text-dark);
}

.cookie-modal-content h3 {
    font-family: var(--font-secondary);
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.cookie-option {
    margin-bottom: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: var(--background-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--secondary-color);
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.cookie-option span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cookie-modal-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    margin-top: var(--spacing-md);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--background-white);
        flex-direction: column;
        padding: var(--spacing-sm);
        box-shadow: 0 4px 15px var(--shadow-light);
        border-top: 3px solid var(--primary-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .newsletter-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

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

    .section-title {
        font-size: 2rem;
    }

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

    .btn-primary,
    .btn-secondary,
    .btn-tertiary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

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

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .hero,
    .about,
    .services,
    .testimonials,
    .contact {
        page-break-inside: avoid;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #000;
        --accent-color: #000;
        --text-dark: #000;
        --text-light: #333;
        --background-light: #fff;
        --background-white: #fff;
        --border-color: #000;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--text-dark);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1003;
}

.skip-link:focus {
    top: 6px;
}
