/* 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;
    overflow-x: hidden;
}

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

/* Hand-drawn style utilities */
.hand-drawn-border {
    border: 3px solid #333;
    border-radius: 15px;
    position: relative;
}

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

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c5aa0;
    color: white;
    padding: 1rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

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

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-tertiary {
    padding: 0.5rem 1rem;
    border: 2px solid white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

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

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

.btn-primary:hover, .btn-secondary:hover, .btn-tertiary:hover {
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-bottom: 3px dashed #2c5aa0;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5aa0;
}

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-menu a:hover::before {
    border-color: #2c5aa0;
    transform: rotate(-2deg);
}

.nav-menu a:hover {
    color: #2c5aa0;
    transform: rotate(2deg);
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 100px;
    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="zigzag" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M0,10 L10,0 L20,10 L10,20 Z" stroke="rgba(255,255,255,0.1)" stroke-width="1" fill="none"/></pattern></defs><rect width="100" height="100" fill="url(%23zigzag)"/></svg>');
    opacity: 0.3;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform: rotate(-1deg);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.cta-button::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    background: rgba(0,0,0,0.2);
    border-radius: 30px;
    z-index: -1;
}

.cta-button:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

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

/* Section styles */
section {
    padding: 5rem 0;
    position: relative;
}

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

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

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #f39c12;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #2c5aa0;
    margin-bottom: 1rem;
    transform: rotate(1deg);
}

.about-text h4 {
    font-size: 1.3rem;
    color: #2c5aa0;
    margin: 1.5rem 0 1rem;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #f39c12;
    font-weight: bold;
    font-size: 1.2rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    border: 3px dashed #2c5aa0;
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.stat:nth-child(even) {
    transform: rotate(-2deg);
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c5aa0;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

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

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

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

.service-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: #2c5aa0;
    border-radius: 20px;
    z-index: -1;
    transform: rotate(2deg);
}

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

.service-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 3px dashed #f39c12;
    position: relative;
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

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

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

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: #666;
}

.testimonial-author strong {
    color: #2c5aa0;
    display: block;
    margin-bottom: 0.5rem;
}

.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: 2rem;
}

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

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

.blog-card::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    background: #f39c12;
    border-radius: 15px;
    z-index: -1;
}

.blog-card:hover {
    transform: translateY(-5px) rotate(0deg);
}

.blog-card h3 a {
    color: #2c5aa0;
    text-decoration: none;
    font-size: 1.2rem;
}

.blog-card h3 a:hover {
    text-decoration: underline;
}

.blog-card p {
    color: #666;
    margin: 1rem 0;
}

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

/* Blog Articles */
.blog-article {
    padding: 5rem 0;
    background: white;
    min-height: 60vh;
}

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

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #666;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #2c5aa0;
    text-decoration: none;
    font-weight: bold;
}

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

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

.subscription h2, .subscription p {
    color: white;
}

.subscription-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input:focus {
    outline: none;
    background: white;
    transform: rotate(0deg) scale(1.02);
}

.submit-button {
    background: #f39c12;
    color: white;
    border: 3px solid #f39c12;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: rotate(1deg);
}

.submit-button:hover {
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Legal Section */
.legal {
    text-align: center;
    padding: 3rem 0;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-link {
    color: #2c5aa0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px dashed #2c5aa0;
    border-radius: 15px;
    transition: all 0.3s ease;
    transform: rotate(-1deg);
}

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

.legal-link:hover {
    background: #2c5aa0;
    color: white;
    transform: rotate(0deg);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: #f39c12;
    margin-bottom: 1rem;
    transform: rotate(-1deg);
}

.footer-info address {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-social h4 {
    color: #f39c12;
    margin-bottom: 1rem;
    transform: rotate(1deg);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 2px solid #f39c12;
    border-radius: 20px;
    transition: all 0.3s ease;
    transform: rotate(-2deg);
}

.social-links a:nth-child(even) {
    transform: rotate(2deg);
}

.social-links a:hover {
    background: #f39c12;
    transform: rotate(0deg);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px dashed #f39c12;
    color: #ccc;
}

/* Modals */
.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: white;
    margin: 5% auto;
    padding: 2rem;
    border: 3px solid #2c5aa0;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: rotate(-1deg);
}

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

.modal-text h3 {
    color: #2c5aa0;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
    transform: rotate(1deg);
}

.modal-text h4 {
    color: #667eea;
    margin: 1rem 0 0.5rem 0;
    font-size: 1rem;
    transform: rotate(-0.5deg);
}

.modal-text p {
    margin-bottom: 1rem;
    text-align: justify;
}

.modal-text ul {
    margin: 0.5rem 0 1rem 1.5rem;
    padding-left: 0;
}

.modal-text li {
    margin-bottom: 0.3rem;
    list-style-type: none;
    position: relative;
}

.modal-text li:before {
    content: "•";
    color: #f39c12;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #2c5aa0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        border-top: 3px dashed #2c5aa0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .service-card, .testimonial-card, .blog-card {
        transform: rotate(0deg);
    }
    
    .service-card:hover, .testimonial-card:hover, .blog-card:hover {
        transform: translateY(-5px);
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Hide scrollbar but keep functionality */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2c5aa0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3d6f;
}
