/* 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: #2c3e50;
    background: #fefefe;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    overflow-x: hidden;
}

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

/* Hand-drawn style effects */
.hand-drawn {
    position: relative;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

/* Cookie Banner & Modal */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid #3498db;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

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

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

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

.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1001;
}

.cookie-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 500px;
    margin: 20px;
    position: relative;
    border: 3px solid #2c3e50;
    transform: rotate(-0.3deg);
}

.cookie-modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #2c3e50;
    transform: rotate(0.5deg);
}

.cookie-category {
    margin: 20px 0;
    padding: 15px;
    border: 2px dashed #3498db;
    border-radius: 10px;
}

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

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c3e50;
}

.logo-svg {
    filter: drop-shadow(2px 2px 0px rgba(44,62,80,0.3));
    transform: rotate(-2deg);
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    transform: rotate(1deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    transform: rotate(-0.5deg);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #3498db;
    color: white;
    transform: rotate(0.5deg) scale(1.05);
    box-shadow: 0 2px 8px rgba(52,152,219,0.3);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
    transform: rotate(-1deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    padding: 100px 0;
    color: white;
    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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    transform: rotate(-0.5deg);
}

.highlight {
    color: #ffeaa7;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform: rotate(0.8deg);
    display: inline-block;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    transform: rotate(0.3deg);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image svg {
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.2));
    transform: rotate(-1deg);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
    font-size: 16px;
    position: relative;
    transform: rotate(-0.8deg);
}

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

.btn-primary:hover {
    background: #d63031;
    transform: rotate(0.5deg) scale(1.05);
    box-shadow: 0 5px 15px rgba(214,48,49,0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #2c3e50;
    transform: rotate(0.8deg) scale(1.05);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

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

.btn-tertiary:hover {
    background: #0984e3;
    transform: rotate(-0.3deg) scale(1.05);
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
    transform: rotate(-0.5deg);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(1deg);
    width: 100px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

/* Services Section */
.services {
    background: #f8f9fa;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(52, 152, 219, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 75% 75%, rgba(231, 76, 60, 0.1) 0%, transparent 25%);
}

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

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px solid #ecf0f1;
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
    position: relative;
}

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

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

.service-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.service-icon svg {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.1));
    transform: rotate(-2deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
    transform: rotate(0.3deg);
}

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

/* About Section */
.about-section {
    background: white;
}

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

.about-text h2 {
    text-align: left;
    margin-bottom: 30px;
}

.about-text h2::after {
    left: 0;
    transform: rotate(1deg);
}

.about-text ul {
    list-style: none;
    margin: 30px 0;
}

.about-text li {
    padding: 8px 0;
    font-size: 1.1rem;
    transform: rotate(-0.2deg);
}

.about-image svg {
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.1));
    transform: rotate(1deg);
}

/* Testimonials */
.testimonials {
    background: #f8f9fa;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(116, 185, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
}

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

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 3px solid #ecf0f1;
    transform: rotate(0.5deg);
    position: relative;
}

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

.testimonial-card:nth-child(3) {
    transform: rotate(0.8deg);
}

.testimonial-icon {
    margin-bottom: 20px;
}

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

.testimonial-author strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.testimonial-author span {
    display: block;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Blog Section */
.blog-section {
    background: white;
}

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

.blog-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 3px solid #ecf0f1;
    padding: 30px;
    transform: rotate(-0.3deg);
    transition: all 0.3s ease;
}

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

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

.blog-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.blog-icon svg {
    transform: rotate(-1deg);
}

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

.blog-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transform: rotate(0.2deg);
    display: inline-block;
}

.blog-card h3 a:hover {
    color: #3498db;
    transform: rotate(-0.2deg);
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
    transform: rotate(0.5deg) translateX(5px);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    position: relative;
}

.contact::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="grain2" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain2)"/></svg>');
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.contact h2 {
    color: white;
    text-align: left;
}

.contact h2::after {
    background: white;
    left: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    transform: rotate(-0.3deg);
    border: 2px solid rgba(255,255,255,0.2);
}

.contact-item svg {
    margin-top: 5px;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.2));
}

.social-links h3 {
    margin: 30px 0 15px;
    color: white;
}

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

.social-icons a {
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    display: block;
}

.social-icons a:hover {
    transform: rotate(2deg) scale(1.1);
}

/* Newsletter Form */
.newsletter-form {
    background: rgba(255,255,255,0.95);
    color: #2c3e50;
    padding: 40px;
    border-radius: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    transform: rotate(0.5deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.newsletter-form h2 {
    color: #2c3e50;
    text-align: left;
    margin-bottom: 15px;
}

.newsletter-form h2::after {
    background: #3498db;
    left: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    transform: rotate(-0.3deg);
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 3px solid #ecf0f1;
    border-radius: 15px;
    font-size: 16px;
    transform: rotate(0.2deg);
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    transform: rotate(0deg);
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
    border-top: 5px solid #3498db;
}

.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: #74b9ff;
    transform: rotate(-0.5deg);
}

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

.footer-section ul li {
    margin-bottom: 8px;
    transform: rotate(0.2deg);
}

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

.footer-section ul li a:hover {
    color: #74b9ff;
    transform: rotate(-0.2deg);
}

.footer-domain {
    color: #74b9ff;
    font-weight: bold;
    margin-top: 10px;
    transform: rotate(0.5deg);
}

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

/* About Page Styles */
.about-page {
    padding-top: 80px;
}

.page-hero {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 60px 0;
}

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

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    transform: rotate(-0.5deg);
}

.company-story,
.team-section,
.values-section,
.cta-section {
    padding: 80px 0;
}

.company-story {
    background: #f8f9fa;
}

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

.story-text h2,
.story-text h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    transform: rotate(-0.3deg);
}

.story-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #34495e;
}

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

.team-member {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 3px solid #ecf0f1;
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
}

.team-member:nth-child(even) {
    transform: rotate(0.5deg);
}

.team-member:hover {
    transform: rotate(0deg) translateY(-5px);
    border-color: #3498db;
}

.member-image {
    margin-bottom: 20px;
}

.member-title {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 15px;
}

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

.value-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 3px solid #ecf0f1;
    transform: rotate(0.3deg);
    transition: all 0.3s ease;
}

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

.value-card:hover {
    transform: rotate(0deg) translateY(-5px);
    border-color: #3498db;
}

.value-icon {
    margin-bottom: 20px;
}

.cta-section {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Article Page Styles */
.article-page {
    padding-top: 80px;
}

.article-header {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.article-meta {
    color: #7f8c8d;
    margin: 20px 0;
    font-style: italic;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    line-height: 1.8;
}

.article-content h2 {
    color: #2c3e50;
    margin: 40px 0 20px;
    transform: rotate(-0.3deg);
}

.article-content h3 {
    color: #34495e;
    margin: 30px 0 15px;
    transform: rotate(0.2deg);
}

.article-content p {
    margin-bottom: 20px;
    color: #2c3e50;
}

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

.article-content li {
    margin-bottom: 10px;
    color: #34495e;
}

.article-nav {
    background: #f8f9fa;
    padding: 40px 0;
    text-align: center;
}

/* Legal Page Styles */
.legal-page {
    padding-top: 80px;
}

.legal-header {
    background: #f8f9fa;
    padding: 60px 0;
    text-align: center;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    line-height: 1.8;
}

.legal-content h2 {
    color: #2c3e50;
    margin: 40px 0 20px;
    transform: rotate(-0.3deg);
}

.legal-content h3 {
    color: #34495e;
    margin: 30px 0 15px;
}

.legal-content p {
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Thanks page */
.thanks-page {
    padding-top: 80px;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks-content {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px solid #27ae60;
    transform: rotate(-0.5deg);
    max-width: 600px;
}

.thanks-icon {
    margin-bottom: 30px;
}

.thanks-content h1 {
    color: #27ae60;
    margin-bottom: 20px;
    transform: rotate(0.3deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .story-content,
    .page-hero .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .testimonials-grid,
    .blog-grid,
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons,
    .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card,
    .team-member,
    .value-card {
        padding: 25px 20px;
    }
    
    .newsletter-form {
        padding: 30px 20px;
    }
}

/* Animation for hand-drawn elements */
@keyframes draw {
    from {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;
    }
}

.draw-animation {
    animation: draw 2s ease-in-out;
}