/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hand-drawn font import */
body {
    font-family: 'Kalam', cursive;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fefefe;
    overflow-x: hidden;
}

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

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

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.brand-text {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f39c12;
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #f39c12;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 0;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10,10 Q20,5 30,10 T50,10 T70,10 T90,10' stroke='%23bdc3c7' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3C/svg%3E");
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

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

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0px #ecf0f1;
    transform: rotate(-1deg);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #34495e;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transform: rotate(1deg);
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 500px;
    filter: drop-shadow(5px 5px 10px rgba(0,0,0,0.1));
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border-radius: 27px;
    z-index: -1;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.btn-primary:hover::before {
    transform: scale(1);
}

.btn-secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #2c3e50;
    border: 2px solid #2c3e50;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #2c3e50;
    color: white;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    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, #f39c12, #e67e22);
    border-radius: 2px;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.about-icon img {
    width: 150px;
    height: auto;
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    transform: rotate(-0.3deg);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #34495e;
    line-height: 1.7;
}

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

.about-features li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: #2c3e50;
    font-weight: 500;
}

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

/* Services Section */
.services {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    position: relative;
}

.services::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 200 200'%3E%3Cpath d='M50,50 Q60,40 70,50 T90,50' stroke='%23bdc3c7' stroke-width='0.3' fill='none' opacity='0.2'/%3E%3C/svg%3E");
    animation: wiggle 15s ease-in-out infinite;
}

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

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 3px solid #ecf0f1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #3498db;
    border-radius: 18px;
    transform: rotate(-1deg);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
}

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

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background: white;
}

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

.testimonial-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid #ecf0f1;
    position: relative;
    transform: rotate(-0.5deg);
    transition: transform 0.3s ease;
}

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

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

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #3498db;
}

.testimonial-card blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    line-height: 1.6;
}

.testimonial-card cite {
    font-weight: 600;
    color: #3498db;
}

/* Blog Section */
.blog {
    padding: 4rem 0;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
}

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

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid #f8f9fa;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #f39c12;
    border-radius: 17px;
    transform: rotate(-1deg);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.blog-icon {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

.blog-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
}

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

.blog-content p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* Blog Article Sections */
.blog-article {
    padding: 4rem 0;
    background: white;
    display: none;
}

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

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

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

/* Subscribe Section */
.subscribe {
    padding: 4rem 0;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    text-align: center;
}

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

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

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
    color: #2c3e50;
    font-family: 'Kalam', cursive;
    border: 3px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #f39c12;
    transform: scale(1.02);
    background: white;
}

.form-group input::placeholder {
    color: #7f8c8d;
}

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

.legal h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

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

.legal-link {
    background: none;
    border: none;
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Kalam', cursive;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background 0.3s ease;
}

.legal-link:hover {
    background: rgba(52, 152, 219, 0.1);
    text-decoration: none;
}

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

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-brand-text {
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-contact h4,
.footer-social h4 {
    margin-bottom: 1rem;
    color: #3498db;
    font-weight: 700;
}

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

.footer-contact a {
    color: #3498db;
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

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

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

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

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 1rem;
    z-index: 2000;
    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: 2rem;
    flex-wrap: wrap;
}

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

.btn-cookie {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Kalam', cursive;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cookie.btn-primary {
    background: #3498db;
    color: white;
}

.btn-cookie.btn-secondary {
    background: #95a5a6;
    color: white;
}

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

.btn-cookie:hover {
    transform: translateY(-2px);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 2rem;
    border: none;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    font-family: 'Kalam', cursive;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-content h3 {
    color: #3498db;
    margin: 1.5rem 0 0.5rem;
    font-weight: 600;
}

.modal-content p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Thanks Page Styles */
.thanks-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    padding: 2rem;
}

.thanks-content {
    text-align: center;
    max-width: 600px;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px solid #f8f9fa;
    position: relative;
    transform: rotate(-0.5deg);
}

.thanks-content::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #3498db;
    border-radius: 23px;
    transform: rotate(1deg);
    z-index: -1;
}

.thanks-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.thanks-message {
    font-size: 1.3rem;
    color: #3498db;
    margin-bottom: 1rem;
    font-weight: 600;
}

.thanks-details {
    color: #34495e;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.thanks-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thanks-graphic {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #2c3e50;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .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;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 1rem;
    }

    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        margin: 0.5rem 0;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .thanks-content {
        padding: 2rem;
        margin: 1rem;
    }
    
    .thanks-title {
        font-size: 2rem;
    }
}

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

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

/* Print styles */
@media print {
    .header,
    .cookie-banner,
    .modal {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .hero {
        margin-top: 0;
    }
}
