/* 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 style utilities */
.hand-drawn {
    position: relative;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 3px solid #333;
    border-image: repeating-linear-gradient(
        45deg,
        #333,
        #333 10px,
        transparent 10px,
        transparent 20px
    ) 3;
}

.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: #333;
}

.logo img {
    height: 40px;
}

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

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

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

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

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

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

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    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="50" cy="50" r="1" fill="%23333" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
}

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

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    transform: rotate(-1deg);
}

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80%;
    height: 4px;
    background: #e74c3c;
    transform: skew(-15deg);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
    line-height: 1.7;
}

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

.cta-button:hover {
    transform: rotate(1deg) scale(1.05);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-image img {
    width: 100%;
    height: auto;
    transform: rotate(2deg);
    filter: drop-shadow(10px 10px 20px rgba(0, 0, 0, 0.1));
}

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

section:nth-child(even) {
    background: #f8f9fa;
}

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

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) skew(-15deg);
    width: 100px;
    height: 4px;
    background: #e74c3c;
}

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

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

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

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

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

.feature:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

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

.service-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

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

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

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

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

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

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

.testimonial-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.quote-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 20px;
    opacity: 0.3;
}

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

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

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

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

.blog-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #333;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

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

.blog-card:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.blog-icon img {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
}

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

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

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

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

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

/* Subscription Section */
.subscription {
    background: #e74c3c;
    color: white;
    text-align: center;
}

.subscription h2 {
    color: white;
}

.subscription h2::after {
    background: white;
}

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

.subscription-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

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

.form-group input:focus {
    outline: none;
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn {
    grid-column: 1 / -1;
    padding: 15px 30px;
    background: #333;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: rotate(1deg) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

.legal-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e74c3c;
    transition: width 0.3s ease;
    transform: skew(-15deg);
}

.legal-link:hover::after {
    width: 100%;
}

/* 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 {
    margin-bottom: 20px;
    color: #e74c3c;
}

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

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

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

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

.social-links img {
    width: 20px;
    height: 20px;
}

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

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 20px;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

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

.cookie-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #e74c3c;
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-tertiary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-buttons button:hover {
    transform: scale(1.05);
}

/* Modals */
.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: 40px;
    border: 3px solid #333;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    position: relative;
    transform: rotate(-1deg);
    max-height: 90vh;
    overflow-y: auto;
}

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

.close:hover {
    color: #000;
}

.modal-text {
    line-height: 1.6;
    color: #333;
}

.modal-text h3 {
    color: #e74c3c;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.modal-text h4 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: bold;
}

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

.modal-text li {
    margin-bottom: 5px;
    color: #666;
}

.modal-text p {
    margin-bottom: 15px;
    color: #666;
}

.modal-text strong {
    color: #e74c3c;
}

.modal-text em {
    color: #999;
    font-style: italic;
}

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-bottom: 3px solid #333;
        z-index: 999;
    }
    
    .nav.mobile-open {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav a {
        font-size: 1.2rem;
        padding: 10px 0;
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .features,
    .subscription-form {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 20px;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .modal-text h3 {
        font-size: 1.1rem;
    }
    
    .modal-text h4 {
        font-size: 0.95rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wobble {
    0%, 100% { transform: rotate(-1deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

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

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

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