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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
    position: relative;
}

/* Hand-drawn effects */
.hand-drawn-border {
    border: 2px solid #333;
    border-radius: 20px;
    position: relative;
}

.hand-drawn-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #333;
    border-radius: 25px;
    transform: rotate(-0.5deg);
    z-index: -1;
}

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

/* Typography */
h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: bold;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    transform: rotate(-1deg);
}

h2 {
    font-size: 2rem;
    transform: rotate(0.5deg);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    transform: rotate(-0.3deg);
}

/* Hand-drawn underlines */
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 5'%3E%3Cpath d='M5,3 Q10,1 20,3 T40,3 T60,3 T80,3 T95,3' fill='none' stroke='%23ff6b6b' stroke-width='2'/%3E%3C/svg%3E") repeat-x;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    transform: rotate(-1deg);
    box-shadow: 3px 3px 0px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 5px 5px 0px rgba(0,0,0,0.3);
}

.btn-primary {
    background-color: #ff6b6b;
    color: white;
    border: 2px solid #ff5252;
}

.btn-secondary {
    background-color: #4ecdc4;
    color: white;
    border: 2px solid #26a69a;
}

.btn-outline {
    background-color: transparent;
    color: #333;
    border: 2px solid #333;
}

/* Header */
.header {
    background-color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid #ff6b6b;
    transform: rotate(0.1deg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
    transform: rotate(-1deg);
}

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

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav a:hover {
    color: #ff6b6b;
}

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

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

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    transform: rotate(1deg);
    transform-origin: center;
}

/* Active mobile menu toggle animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 0;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20,20 Q30,10 40,20 T60,20 T80,20' fill='none' stroke='%23ff6b6b' stroke-width='0.5' opacity='0.3'/%3E%3Cpath d='M10,40 Q20,30 30,40 T50,40 T70,40' fill='none' stroke='%234ecdc4' stroke-width='0.5' opacity='0.3'/%3E%3Cpath d='M30,60 Q40,50 50,60 T70,60 T90,60' fill='none' stroke='%23ff6b6b' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E") repeat;
    z-index: -1;
}

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

.hero-text h1 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
    transform: rotate(0.3deg);
}

.cta-button {
    font-size: 1.2rem;
    padding: 15px 30px;
}

.hero-image img {
    width: 100%;
    height: auto;
    transform: rotate(2deg);
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: #f8f9fa;
    position: relative;
}

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

.about-text {
    transform: rotate(-0.2deg);
}

.about-text ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.about-text li {
    margin-bottom: 0.5rem;
    position: relative;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: -1.5rem;
    color: #4ecdc4;
    font-weight: bold;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    transform: rotate(1deg);
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
    border: 2px solid #ff6b6b;
}

.stat h4 {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 0.5rem;
}

/* Services Section */
.services {
    padding: 4rem 0;
    background-color: #fff;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 3px 3px 15px rgba(0,0,0,0.1);
    border: 2px solid #4ecdc4;
    transition: transform 0.3s ease;
    transform: rotate(-1deg);
}

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

.service-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.service-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid #ff6b6b;
    position: relative;
    transform: rotate(0.5deg);
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #ff6b6b;
    font-family: serif;
}

.quote {
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.author strong {
    color: #ff6b6b;
    display: block;
}

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

/* Blog Section */
.blog {
    padding: 4rem 0;
    background-color: #fff;
}

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

.blog-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid #4ecdc4;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    transform: rotate(-0.3deg);
}

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

.blog-card:hover {
    transform: rotate(0deg) translateY(-3px);
}

.blog-card h3 a {
    text-decoration: none;
    color: #333;
}

.blog-card h3 a:hover {
    color: #4ecdc4;
}

.date {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Blog Articles */
.blog-article {
    padding: 4rem 0;
    margin-top: 80px;
}

.blog-article.hidden {
    display: none;
}

/* Subscription Section */
.subscription {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    color: white;
    text-align: center;
}

.subscription h2 {
    color: white;
}

.subscription-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    transform: rotate(-0.5deg);
    border: 3px solid #fff;
    box-shadow: 5px 5px 20px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    transform: rotate(0.2deg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    transform: rotate(0deg);
}

/* Legal Section */
.legal {
    padding: 2rem 0;
    background-color: #f8f9fa;
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transform: rotate(-0.2deg);
}

.legal-links a:hover {
    color: #ff6b6b;
    transform: rotate(0deg);
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 3rem 0 1rem;
    transform: rotate(-0.1deg);
}

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

.footer-section h4 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    transform: rotate(0.3deg);
}

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

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

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

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

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

.social-links a {
    padding: 0.5rem 1rem;
    background-color: #444;
    border-radius: 15px;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #ff6b6b;
    transform: rotate(0deg);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    padding: 1rem;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid #ff6b6b;
}

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

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

.cookie-content h3 {
    margin-bottom: 0.5rem;
    color: #ff6b6b;
}

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

.cookie-buttons .btn {
    transform: rotate(0deg);
    font-size: 0.9rem;
    padding: 8px 16px;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border: 3px solid #ff6b6b;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    transform: rotate(-0.2deg);
}

.modal-content h3 {
    color: #ff6b6b;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.modal-content h4 {
    color: #4ecdc4;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.modal-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content li {
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.modal-content p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    text-align: justify;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transform: rotate(45deg);
}

.close:hover {
    color: #ff6b6b;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 15px;
    transform: rotate(0.2deg);
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    cursor: pointer;
}

.cookie-category input[type="checkbox"] {
    transform: scale(1.2);
}

/* Thanks Page */
.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #4ecdc4 100%);
    color: white;
    text-align: center;
}

.thanks-content {
    background: white;
    color: #333;
    padding: 3rem;
    border-radius: 20px;
    border: 3px solid #fff;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.3);
    transform: rotate(-1deg);
    max-width: 600px;
}

.thanks-content h1 {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
}

.thanks-content a {
    color: #4ecdc4;
    text-decoration: none;
}

.thanks-content a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        transform: translateY(-100%);
        transition: all 0.3s ease;
    }
    
    .nav.active {
        display: block;
        transform: translateY(0);
    }
    
    .nav ul {
        flex-direction: column;
        padding: 1rem 0;
        gap: 0;
    }
    
    .nav ul li {
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .nav ul li:last-child {
        border-bottom: none;
    }
    
    .nav a {
        font-size: 1.1rem;
        padding: 1rem;
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .subscription-form {
        padding: 1.5rem;
    }
}

/* Hidden class for blog articles */
.hidden {
    display: none !important;
}
