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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fef9f3;
    scroll-behavior: smooth;
}

/* Hand-drawn style variables */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #f39c12;
    --accent-color: #3498db;
    --warm-beige: #fef9f3;
    --warm-brown: #8b4513;
    --soft-green: #27ae60;
    --sketch-border: 3px solid #2c3e50;
}

/* Hand-drawn border effect */
.sketch-border {
    border: var(--sketch-border);
    border-radius: 15px 5px 20px 8px;
    position: relative;
}

.sketch-border::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #2c3e50;
    border-radius: 20px 8px 15px 12px;
    z-index: -1;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #fef9f3 0%, #f4e6d3 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 3px solid #e74c3c;
}

.navbar {
    position: relative;
}

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

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

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

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    transform: skew(-15deg);
}

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

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

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

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

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

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

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

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fef9f3 0%, #f4e6d3 100%);
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    transform: rotate(-1deg);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--secondary-color);
    transform: skew(-15deg);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 25px 5px 20px 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    transform: rotate(-1deg);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: -3px;
    bottom: -3px;
    background: var(--secondary-color);
    border-radius: 20px 8px 25px 12px;
    z-index: -1;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: rotate(0deg) scale(1.05);
}

.cta-button:hover::before {
    top: 5px;
    left: 5px;
}

.hero-illustration {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    transform: rotate(-1deg);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) skew(-15deg);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
}

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

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    transform: skew(-1deg);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

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

.feature {
    background: var(--warm-beige);
    padding: 1.5rem;
    border-radius: 15px 5px 20px 8px;
    border: 2px solid var(--primary-color);
    position: relative;
    transform: rotate(1deg);
}

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

.feature h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Services Section */
.services {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px 8px 15px 12px;
    border: 3px solid var(--primary-color);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    transform: rotate(1deg);
}

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

.service-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    background: var(--secondary-color);
    border-radius: 15px 12px 20px 8px;
    z-index: -1;
    opacity: 0.3;
}

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

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

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--soft-green);
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    background: var(--warm-beige);
    position: relative;
}

.testimonials-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 3px solid var(--primary-color);
}

.testimonial {
    display: none;
    text-align: center;
    padding: 2rem;
}

.testimonial.active {
    display: block;
}

.testimonial-content {
    max-width: 600px;
    margin: 0 auto;
}

.testimonial p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #555;
}

.testimonial-author {
    color: var(--primary-color);
}

.testimonial-author strong {
    display: block;
    margin-bottom: 0.5rem;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

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

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

.blog-card {
    background: var(--warm-beige);
    padding: 1.5rem;
    border-radius: 15px 5px 20px 8px;
    border: 2px solid var(--accent-color);
    transition: transform 0.3s ease;
    position: relative;
    transform: rotate(1deg);
}

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

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

.blog-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.blog-icon {
    width: 40px;
    height: 40px;
}

.blog-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.blog-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
    align-self: flex-start;
}

.blog-title {
    margin-bottom: 0.5rem;
}

.blog-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
}

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

.blog-excerpt {
    color: #666;
    line-height: 1.6;
}

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

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

.back-to-blog {
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 2rem;
    display: inline-block;
}

.back-to-blog:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid var(--accent-color);
    transform: rotate(1deg);
}

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

/* Form Styles */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 20px 8px 15px 12px;
    border: 3px solid var(--primary-color);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    background: var(--secondary-color);
    border-radius: 15px 12px 20px 8px;
    z-index: -1;
    opacity: 0.3;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 20px 5px 15px 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    transform: rotate(-1deg);
}

.submit-btn:hover {
    transform: rotate(0deg) scale(1.05);
    background: #c0392b;
}

/* 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.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    border: 3px solid var(--primary-color);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-color);
}

.close:hover {
    color: #c0392b;
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.modal h3 {
    color: var(--secondary-color);
    margin: 1.5rem 0 0.5rem;
}

.modal p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 3px solid var(--primary-color);
    padding: 1rem;
    z-index: 1500;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

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

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

.btn-cookie {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-accept {
    background: var(--primary-color);
    color: white;
}

.btn-necessary {
    background: var(--secondary-color);
    color: white;
}

.btn-customize {
    background: transparent;
    color: var(--primary-color);
}

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

.cookie-category {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--warm-beige);
    border-radius: 10px;
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.cookie-category p {
    margin: 0.5rem 0 0 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

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

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: var(--secondary-color);
}

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

.social-links a {
    color: white;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

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

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

.thanks-content {
    text-align: center;
    max-width: 500px;
    background: white;
    padding: 3rem;
    border-radius: 20px 8px 15px 12px;
    border: 3px solid var(--primary-color);
    position: relative;
}

.thanks-content::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: -5px;
    bottom: -5px;
    background: var(--secondary-color);
    border-radius: 15px 12px 20px 8px;
    z-index: -1;
    opacity: 0.3;
}

.thanks-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.thanks-content h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.thanks-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.back-home {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 20px 5px 15px 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 1rem;
}

.back-home:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        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;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cookie-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
}

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

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

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

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

/* Print styles */
@media print {
    .header,
    .cookie-banner,
    .modal {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        background: white;
        padding: 2rem 0;
    }
}
