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

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Hand-drawn border utility */
.hand-drawn {
    position: relative;
    border: 3px solid #333;
    border-radius: 15px;
    background: #fff;
    box-shadow: 
        0 0 0 1px #333,
        3px 3px 0 #333,
        6px 6px 0 rgba(0,0,0,0.1);
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.hand-drawn:hover {
    transform: rotate(1deg) translateY(-3px);
    box-shadow: 
        0 0 0 1px #333,
        5px 5px 0 #333,
        10px 10px 0 rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px 5px;
    border: 3px solid #333;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    transform: rotate(-1deg);
    background: #fff;
    color: #333;
    box-shadow: 3px 3px 0 #333;
}

.btn:hover {
    transform: rotate(1deg) translateY(-2px);
    box-shadow: 5px 5px 0 #333;
    animation: wiggle 0.5s ease-in-out;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
    border-color: #d63031;
}

.btn-primary:hover {
    background: #e55656;
}

.btn-secondary {
    background: #74b9ff;
    color: white;
    border-color: #0984e3;
}

.btn-secondary:hover {
    background: #6c9fef;
}

.btn-outline {
    background: transparent;
    color: #333;
}

.btn-outline:hover {
    background: #333;
    color: white;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid #333;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.cookie-content h3 {
    margin-bottom: 10px;
    color: #333;
}

.cookie-buttons {
    margin-top: 15px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 3px solid #333;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    transform: rotate(-0.5deg);
    box-shadow: 
        0 0 0 1px #333,
        5px 5px 0 #333,
        10px 10px 0 rgba(0,0,0,0.1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close:hover {
    color: #333;
}

/* Cookie Options */
.cookie-option {
    margin: 20px 0;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #f8f9fa;
}

.cookie-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 5px;
}

.cookie-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

/* Header */
.header {
    background: #fff;
    border-bottom: 3px solid #333;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #ff6b6b;
    transform: translateY(-2px);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b6b;
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.1"/></svg>');
    animation: float 6s ease-in-out infinite;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: bounce 2s ease-in-out infinite;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-graphic {
    text-align: center;
    animation: wiggle 3s ease-in-out infinite;
}

.hero-graphic img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(3px 3px 0 rgba(0,0,0,0.2));
}

/* About Section */
.about {
    padding: 80px 0;
    background: #fff;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    position: relative;
    transform: rotate(-1deg);
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #ff6b6b;
    border-radius: 2px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.feature-item {
    text-align: center;
    padding: 30px 20px;
    border: 3px solid #333;
    border-radius: 15px;
    background: #f8f9fa;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: rotate(1deg) translateY(-5px);
    box-shadow: 5px 5px 0 #333;
}

.feature-item:nth-child(even) {
    transform: rotate(1deg);
}

.feature-item:nth-child(even):hover {
    transform: rotate(-1deg) translateY(-5px);
}

.feature-item h4 {
    color: #ff6b6b;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    transform: rotate(1deg);
}

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

.service-card {
    background: #fff;
    padding: 40px 30px;
    border: 3px solid #333;
    border-radius: 20px;
    text-align: center;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 5px 5px 0 #333;
}

.service-card:hover {
    transform: rotate(1deg) translateY(-10px);
    box-shadow: 8px 8px 0 #333;
}

.service-card:nth-child(even) {
    transform: rotate(1deg);
}

.service-card:nth-child(even):hover {
    transform: rotate(-1deg) translateY(-10px);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.service-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

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

.service-card li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: #fff;
}

.testimonials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    transform: rotate(-1deg);
}

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

.testimonial-card {
    background: #f8f9fa;
    padding: 30px;
    border: 3px solid #333;
    border-radius: 20px;
    transform: rotate(1deg);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 3px 3px 0 #333;
}

.testimonial-card:hover {
    transform: rotate(-1deg) translateY(-5px);
    box-shadow: 6px 6px 0 #333;
}

.testimonial-card:nth-child(even) {
    transform: rotate(-1deg);
}

.testimonial-card:nth-child(even):hover {
    transform: rotate(1deg) translateY(-5px);
}

.testimonial-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid #333;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author h4 {
    color: #333;
    margin-bottom: 5px;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Blog Section */
.blog {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
    transform: rotate(1deg);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.blog-card {
    background: #fff;
    border: 3px solid #333;
    border-radius: 15px;
    padding: 25px;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    box-shadow: 3px 3px 0 #333;
}

.blog-card:hover {
    transform: rotate(1deg) translateY(-5px);
    box-shadow: 6px 6px 0 #333;
}

.blog-card:nth-child(even) {
    transform: rotate(1deg);
}

.blog-card:nth-child(even):hover {
    transform: rotate(-1deg) translateY(-5px);
}

.blog-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.blog-content h3 {
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: #ff6b6b;
}

.blog-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #999;
}

/* Blog Articles */
.blog-article {
    padding: 100px 0 80px;
    background: #fff;
    min-height: 60vh;
    display: none;
}

.blog-article.active {
    display: block;
}

.blog-article h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
    transform: rotate(-1deg);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content h3 {
    color: #ff6b6b;
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

/* Subscription Section */
.subscription {
    padding: 80px 0;
    background: linear-gradient(135deg, #ff6b6b, #d63031);
    color: white;
    text-align: center;
}

.subscription h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    transform: rotate(-1deg);
}

.subscription p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.subscription-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #333;
    transform: rotate(1deg);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #333;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Legal Section */
.legal {
    padding: 60px 0;
    background: #f8f9fa;
    text-align: center;
}

.legal h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legal-link {
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #333;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.legal-link:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
}

.legal-content {
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
}

.legal-content h3 {
    color: #ff6b6b;
    margin: 20px 0 10px;
}

.legal-content ul {
    margin: 15px 0;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.footer-section li {
    margin-bottom: 10px;
}

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

.footer-section a:hover {
    color: #ff6b6b;
}

.contact-info p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Thanks Page */
.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.thanks-content {
    max-width: 600px;
    text-align: center;
    padding: 60px;
    background: white;
    color: #333;
    border-radius: 20px;
    border: 3px solid #333;
    transform: rotate(-1deg);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.2);
}

.thanks-content h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ff6b6b;
}

.thanks-message {
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.next-steps {
    text-align: left;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.next-steps h3 {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.next-steps ol {
    padding-left: 20px;
}

.next-steps li {
    margin-bottom: 8px;
}

.thanks-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
    position: relative;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    padding: 80px 30px 30px;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-nav.active .mobile-nav-content {
    left: 0;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin: 0 0 20px 0;
}

.mobile-nav-links a {
    display: block;
    padding: 15px 0;
    font-size: 20px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: #ff6b6b;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
    padding: 10px;
    z-index: 10002;
}



/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        display: none;
    }
    
    .mobile-nav {
        display: block;
    }
    

    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-links {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .thanks-content {
        margin: 20px;
        padding: 40px 20px;
    }
    
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cookie-banner {
        padding: 15px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
    
    .subscription-form {
        padding: 30px 20px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional hand-drawn effects */
.hand-drawn-underline {
    position: relative;
}

.hand-drawn-underline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff6b6b;
    transform: rotate(-1deg);
    border-radius: 2px;
}

/* Loading animation */
.loading {
    animation: shake 0.5s ease-in-out infinite;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus {
    outline: 3px solid #ff6b6b;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .cookie-banner,
    .modal,
    .header,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero,
    .subscription {
        background: white !important;
        color: black !important;
    }
}
