/* Hand-drawn style 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: #fefefe;
    overflow-x: hidden;
}

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

/* Hand-drawn decorative elements */
.hand-drawn-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
    display: inline-block;
    transform: rotate(-1deg);
    margin-bottom: 20px;
}

.hand-drawn-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
    transform: rotate(1deg);
}

/* Header styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #3498db;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.logo span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #e8f4f8 0%, #f8f9fa 100%);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    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"><defs><pattern id="sketchy" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M0,0 L10,10 M10,0 L0,10" stroke="%23e0e0e0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23sketchy)"/></svg>');
    opacity: 0.1;
}

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

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #555;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid #3498db;
    position: relative;
    transform: rotate(-1deg);
}

.cta-button:hover {
    background: #2980b9;
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.hero-visual img {
    width: 100%;
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

/* Section styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    transform: rotate(-1deg);
}

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

/* About section */
.about {
    padding: 100px 0;
    background: #fff;
}

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

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
    transform: rotate(-0.5deg);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

.about-text h4 {
    font-size: 1.5rem;
    margin: 30px 0 20px;
    color: #2c3e50;
    transform: rotate(0.5deg);
}

.feature-list {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.feature-list li {
    padding: 10px 0;
    font-size: 1.1rem;
    color: #555;
    position: relative;
    padding-left: 30px;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Services section */
.services {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid #e8f4f8;
    transition: all 0.3s ease;
    position: relative;
    transform: rotate(-1deg);
}

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

.service-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #3498db;
}

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

.service-card p {
    color: #555;
    line-height: 1.6;
}

/* Testimonials section */
.testimonials {
    padding: 100px 0;
    background: #fff;
}

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

.testimonial-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e8f4f8;
    position: relative;
    transform: rotate(1deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.testimonial-card:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.testimonial-author strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

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

/* Blog section */
.blog {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.blog-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid #e8f4f8;
    transition: all 0.3s ease;
    transform: rotate(-0.5deg);
}

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

.blog-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.blog-card h3 {
    margin-bottom: 15px;
}

.blog-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.3rem;
    line-height: 1.4;
}

.blog-card h3 a:hover {
    color: #3498db;
}

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

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e8f4f8;
}

.blog-meta span {
    color: #777;
    font-size: 0.9rem;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

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

/* Blog articles */
.blog-article {
    display: none;
    padding: 120px 0 80px;
    background: #fff;
}

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

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

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

.article-content p {
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Contact section */
.contact {
    padding: 100px 0;
    background: #fff;
}

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

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #2c3e50;
    transform: rotate(-0.5deg);
}

.contact-info p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #e8f4f8;
    transform: rotate(1deg);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8f4f8;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

.submit-btn {
    width: 100%;
    background: #3498db;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    transform: rotate(-1deg);
}

.submit-btn:hover {
    background: #2980b9;
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Legal section */
.legal {
    padding: 50px 0;
    background: #f8f9fa;
    border-top: 1px solid #e8f4f8;
}

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

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

.legal-link:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-2px);
}

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

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    position: relative;
    transform: rotate(-0.5deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.modal-text {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-text::-webkit-scrollbar {
    width: 8px;
}

.modal-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-text::-webkit-scrollbar-thumb {
    background: #3498db;
    border-radius: 4px;
}

.modal-text::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

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

.close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    transform: rotate(-0.5deg);
    position: sticky;
    top: 0;
    background: #fff;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.modal-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
    transform: rotate(0.3deg);
}

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

.modal-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-content li {
    margin-bottom: 8px;
    color: #555;
    line-height: 1.6;
}

.modal-content strong {
    color: #2c3e50;
    font-weight: bold;
}

/* Mobile responsiveness for modals */
@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        padding: 25px;
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-text {
        max-height: 65vh;
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .modal-content h3 {
        font-size: 1.1rem;
    }
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #fff;
    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 {
    margin-bottom: 20px;
    color: #3498db;
    transform: rotate(-0.5deg);
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 10px;
}

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

.social-link img {
    width: 30px;
    height: 30px;
    filter: invert(1);
    transition: all 0.3s ease;
}

.social-link:hover img {
    filter: invert(0.7) sepia(1) saturate(5) hue-rotate(175deg);
    transform: scale(1.1);
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #3498db;
}

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

/* Cookie consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: #fff;
    padding: 20px;
    z-index: 1500;
    border-top: 3px solid #3498db;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary {
    background: #3498db;
    color: #fff;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: #fff;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-tertiary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-tertiary:hover {
    background: #3498db;
    color: #fff;
}

/* Thanks page */
.thanks-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #e8f4f8 0%, #f8f9fa 100%);
    padding: 40px 0;
}

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

.thanks-graphic img {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.thanks-message {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.8;
}

.thanks-actions {
    margin-top: 40px;
}

.contact-info {
    margin-top: 30px;
    color: #777;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }
    
    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hand-drawn-title {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .legal-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 25px;
    }
}
