/* Import Google Fonts for hand-drawn style */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&family=Caveat:wght@400;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Kalam', cursive;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fefefe;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 183, 77, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(46, 204, 113, 0.1) 0%, transparent 50%);
}

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

/* Hand-drawn style elements */
.hand-drawn-border {
    border: 3px solid #3498db;
    border-radius: 25px 5px 25px 5px;
    position: relative;
}

.hand-drawn-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #e74c3c;
    border-radius: 5px 25px 5px 25px;
    z-index: -1;
}

/* Typography */
.hand-drawn-title {
    font-family: 'Caveat', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 2px 2px 0px #ffb347, 4px 4px 0px rgba(0,0,0,0.1);
    transform: rotate(-1deg);
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Caveat', cursive;
    font-size: 2.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
    transform: rotate(0.5deg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #e74c3c, #f39c12);
    border-radius: 2px;
    animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-48%) rotate(1deg); }
    75% { transform: translateX(-52%) rotate(-1deg); }
}

/* Header Styles */
.header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    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;
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    transform: rotate(-1deg);
}

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

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

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 400;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    background: #3498db;
    color: white;
    transform: rotate(1deg) scale(1.05);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: 0.3s;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.1) 0%, transparent 20%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 20%),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.1) 0%, transparent 20%);
    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: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    color: white;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    animation: bounce 3s ease-in-out infinite;
}

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

/* Button Styles */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
    transform: rotate(-1deg);
}

.btn-primary:hover {
    background: #c0392b;
    transform: rotate(1deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
    transform: rotate(1deg);
}

.btn-secondary:hover {
    background: white;
    color: #2c3e50;
    transform: rotate(-1deg) scale(1.05);
}

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

.about {
    background: #ffffff;
}

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

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-top: 30px;
}

.feature-list li {
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-left: 10px;
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    animation: wiggleRotate 4s ease-in-out infinite;
}

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

/* Services Section */
.services {
    background: #f8f9fa;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(52, 152, 219, 0.05) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(231, 76, 60, 0.05) 50%, transparent 60%);
}

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

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

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

.service-card:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.service-card h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-card p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.6;
}

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

.service-card ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-card ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
}

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

.testimonial-card {
    background: rgba(255,255,255,0.95);
    color: #2c3e50;
    padding: 30px;
    border-radius: 20px;
    transform: rotate(-1deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

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

.testimonial-card:hover {
    transform: rotate(0deg) scale(1.02);
}

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

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

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

.rating {
    color: #f39c12;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* Blog Section */
.blog {
    background: #ffffff;
}

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

.blog-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #3498db;
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
    position: relative;
}

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

.blog-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.blog-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

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

.blog-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 10px 0;
}

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

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.read-more:hover {
    border-bottom-color: #3498db;
}

/* Blog Post Styles */
.blog-post {
    padding: 120px 0 80px;
    background: #ffffff;
}

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

.blog-post article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post h2 {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.back-to-blog {
    display: inline-block;
    margin-top: 30px;
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid #3498db;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-to-blog:hover {
    background: #3498db;
    color: white;
    transform: rotate(1deg);
}

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

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

.subscription-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: white;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Kalam', cursive;
    background: rgba(255,255,255,0.9);
    color: #2c3e50;
}

.form-group input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

/* Contact Section */
.contact {
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3, .contact-form h3 {
    font-family: 'Caveat', cursive;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

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

.business-hours h4 {
    margin: 20px 0 10px;
    color: #3498db;
    font-weight: 600;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 20px;
    border: 3px solid #3498db;
    transform: rotate(-0.5deg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-family: 'Kalam', cursive;
    font-size: 1rem;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.contact-form .form-group label {
    color: #2c3e50;
    font-weight: 600;
}

/* Legal Section */
.legal {
    background: #2c3e50;
    color: white;
    text-align: center;
}

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

.legal-link {
    background: transparent;
    color: white;
    border: 2px solid #3498db;
    padding: 15px 25px;
    border-radius: 25px;
    font-family: 'Kalam', cursive;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
}

.legal-link:hover {
    background: #3498db;
    transform: rotate(1deg) scale(1.05);
}

/* 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.8);
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    border: 3px solid #3498db;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: rotate(-0.5deg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: rotate(-0.5deg) translateY(-50px); opacity: 0; }
    to { transform: rotate(-0.5deg) translateY(0); opacity: 1; }
}

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

.close:hover {
    color: #e74c3c;
}

/* Footer Styles */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
}

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

.footer-section h3, .footer-section h4 {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #3498db;
}

.footer-section p, .footer-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

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

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

.footer-section ul a:hover {
    color: #3498db;
}

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

.social-links a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border: 2px solid #3498db;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-links a:hover {
    background: #3498db;
    transform: rotate(2deg) scale(1.05);
}

.footer-bottom {
    border-top: 2px solid #34495e;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal button {
    background: transparent;
    color: #ecf0f1;
    border: 1px solid #34495e;
    padding: 8px 15px;
    border-radius: 15px;
    font-family: 'Kalam', cursive;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-legal button:hover {
    border-color: #3498db;
    color: #3498db;
}

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

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

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

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

.cookie-buttons button {
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid;
    font-family: 'Kalam', cursive;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.btn-accept:hover {
    background: #2ecc71;
    transform: scale(1.05);
}

.btn-necessary {
    background: #f39c12;
    color: white;
    border-color: #f39c12;
}

.btn-necessary:hover {
    background: #e67e22;
    transform: scale(1.05);
}

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

.btn-customize:hover {
    background: white;
    color: #2c3e50;
    transform: scale(1.05);
}

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

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

.thanks-icon {
    width: 120px;
    height: 120px;
    margin: 20px 0;
    animation: bounce 2s ease-in-out infinite;
}

.thanks-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

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

.thanks-info {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 20px;
    margin-top: 30px;
    backdrop-filter: blur(10px);
}

.thanks-info h3 {
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.thanks-info ul {
    list-style: none;
    text-align: left;
}

.thanks-info li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        gap: 15px;
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .hand-drawn-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .thanks-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .thanks-info ul {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hand-drawn-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .service-card, .testimonial-card, .blog-card {
        transform: none;
    }
    
    .modal-content {
        margin: 2% auto;
        padding: 20px;
        width: 95%;
    }
}

/* Hidden class utility */
.hidden {
    display: none !important;
}
