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

body {
    font-family: 'Arial', 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 Variables */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #dc2626;
    --accent-color: #f59e0b;
    --text-color: #374151;
    --background-color: #fefefe;
    --border-color: #d1d5db;
    --sketch-border: 2px;
}

/* Hand-drawn Elements */
.hand-drawn-border {
    position: relative;
    border: none;
}

.hand-drawn-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    border: var(--sketch-border) solid var(--border-color);
    border-radius: 8px;
    transform: rotate(-0.5deg);
}

.hand-drawn-border::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: transparent;
    border: var(--sketch-border) solid var(--border-color);
    border-radius: 6px;
    transform: rotate(0.3deg);
}

/* Wavy underlines */
.wavy-underline {
    position: relative;
    text-decoration: none;
}

.wavy-underline::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0,5 Q25,0 50,5 T100,5' stroke='%23dc2626' stroke-width='2' fill='none'/%3E%3C/svg%3E") repeat-x;
    background-size: 20px 10px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-size: 16px;
    transform: rotate(-0.2deg);
}

.btn:hover {
    transform: rotate(0deg) scale(1.05);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 3px 3px 0px var(--secondary-color);
}

.btn-primary:hover {
    background: #1e40af;
    box-shadow: 5px 5px 0px var(--secondary-color);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 3px 3px 0px var(--primary-color);
}

.btn-secondary:hover {
    background: #ef4444;
    box-shadow: 5px 5px 0px var(--primary-color);
}

.btn-tertiary {
    background: var(--accent-color);
    color: white;
    box-shadow: 3px 3px 0px var(--text-color);
}

.btn-tertiary:hover {
    background: #f59e0b;
    box-shadow: 5px 5px 0px var(--text-color);
}

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--primary-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

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

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

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 120px 0 80px;
    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='M0,0 Q50,20 100,0 L100,100 Q50,80 0,100 Z' fill='%23f0f9ff' opacity='0.3'/%3E%3C/svg%3E") repeat;
    background-size: 200px 100px;
    z-index: 1;
}

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

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

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 30px;
    transform: rotate(0.2deg);
}

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

.hero-graphic img {
    width: 100%;
    max-width: 500px;
    height: auto;
    transform: rotate(1deg);
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.2));
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    transform: rotate(-0.3deg);
}

.section-header img {
    height: 60px;
    width: auto;
    margin-top: 20px;
}

/* About Section */
.about {
    background: #f8fafc;
    position: relative;
}

.about::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%3Ccircle cx='50' cy='50' r='2' fill='%23e2e8f0' opacity='0.3'/%3E%3C/svg%3E") repeat;
    background-size: 50px 50px;
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transform: rotate(0.2deg);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

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

.feature {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    transform: rotate(-0.3deg);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: rotate(0deg) scale(1.02);
}

.feature::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 14px;
    z-index: -1;
}

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

.feature p {
    color: #f59e0b;
}

/* Services Section */
.services {
    background: white;
}

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

.service-card {
    background: #f8fafc;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transform: rotate(0.3deg);
    transition: all 0.3s ease;
    border: 3px solid var(--border-color);
}

.service-card:hover {
    transform: rotate(0deg) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-color);
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    position: relative;
}

.testimonials::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 Q80,10 80,80 Q20,90 20,20' fill='none' stroke='%23f59e0b' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E") repeat;
    background-size: 100px 100px;
}

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

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    position: relative;
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
}

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

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    font-weight: 700;
    line-height: 1;
}

.testimonial-text {
    margin-bottom: 25px;
    padding-left: 20px;
}

.testimonial-text p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.testimonial-author h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

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

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

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

.blog-card {
    background: #f8fafc;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    position: relative;
    transform: rotate(0.2deg);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: rotate(0deg) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

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

.blog-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
}

.blog-card h3 a:hover {
    color: var(--secondary-color);
}

.blog-card p {
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 0.9rem;
}

/* Blog Articles */
.blog-article {
    background: white;
    padding: 80px 0;
    display: none;
}

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

.blog-article h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    transform: rotate(-0.3deg);
}

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

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transform: rotate(-0.2deg);
    transition: all 0.3s ease;
}

.back-link:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(0deg) scale(1.05);
}

/* Subscribe Section */
.subscribe {
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.subscribe::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='M0,50 Q50,0 100,50 Q50,100 0,50' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E") repeat;
    background-size: 150px 150px;
}

.subscribe-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.subscribe-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    transform: rotate(-0.3deg);
}

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

.subscription-form {
    display: grid;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    text-align: left;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: var(--text-color);
    transform: rotate(-0.2deg);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    transform: rotate(0deg) scale(1.02);
}

.subscription-form .btn {
    margin-top: 20px;
    background: var(--secondary-color);
    color: white;
    border: none;
    font-size: 18px;
    padding: 15px 30px;
}

/* Legal Section */
.legal {
    background: #f8fafc;
    text-align: center;
    padding: 60px 0;
}

.legal h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    transform: rotate(-0.2deg);
}

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

.legal-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    transform: rotate(0.2deg);
    transition: all 0.3s ease;
}

.legal-link:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(0deg) scale(1.05);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
    position: relative;
}

.footer::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='M0,0 L100,0 L100,80 Q50,100 0,80 Z' fill='%23ffffff' opacity='0.05'/%3E%3C/svg%3E") repeat-x;
    background-size: 200px 100px;
}

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

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    transform: rotate(-0.2deg);
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
}

.contact-info p {
    margin-bottom: 10px;
    opacity: 0.9;
}

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

.social-links a {
    display: block;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    transform: rotate(-2deg);
}

.social-links a:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(0deg) scale(1.1);
}

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

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.cookie-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

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

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

.cookie-buttons .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Modal Styles */
.cookie-modal, .legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    align-items: center;
    justify-content: center;
}

.cookie-modal.show, .legal-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: rotate(-0.3deg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-content h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

.cookie-category input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.cookie-category p {
    margin-top: 10px;
    color: var(--text-color);
    font-size: 0.9rem;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.legal-content {
    line-height: 1.6;
    color: var(--text-color);
}

.legal-content p {
    margin-bottom: 15px;
}

.close-modal {
    margin-top: 20px;
}

/* Thank You Page */
.thank-you {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

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

.thank-you-content h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    transform: rotate(-0.3deg);
}

.thank-you-message {
    margin-bottom: 40px;
}

.thank-you-message p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.thank-you-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .legal-links {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        padding: 30px 20px;
    }
    
    .thank-you-content h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .thank-you-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        padding: 20px 15px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80% {
        transform: translateY(0) rotate(-0.5deg);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateY(-10px) rotate(0.5deg);
    }
}

.bounce-in {
    animation: bounceIn 1s ease-out;
}

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

/* Focus styles for accessibility */
button:focus, input:focus, a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
