/* Hand-drawn style CSS */
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap');

/* Hand-drawn font override */
body {
    font-family: 'Kalam', cursive;
}

/* Hand-drawn borders and shapes */
.handdrawn-border {
    position: relative;
    border: none;
}

.handdrawn-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: none;
    border: 2px solid #2C5530;
    border-radius: 15px;
    transform: rotate(-0.5deg);
}

/* Hand-drawn button styles */
.btn {
    position: relative;
    border: 2px solid #2C5530;
    border-radius: 25px;
    background: none;
    overflow: hidden;
    transform: rotate(-0.3deg);
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: #2C5530;
    color: white;
    box-shadow: 
        3px 3px 0px rgba(44, 85, 48, 0.3),
        -1px -1px 0px rgba(44, 85, 48, 0.2);
}

.btn-primary:hover {
    transform: rotate(-0.3deg) translateY(-2px);
    box-shadow: 
        4px 4px 0px rgba(44, 85, 48, 0.4),
        -2px -2px 0px rgba(44, 85, 48, 0.3);
}

.btn-secondary {
    background: white;
    color: #2C5530;
    box-shadow: 
        3px 3px 0px rgba(44, 85, 48, 0.2),
        -1px -1px 0px rgba(44, 85, 48, 0.1);
}

.btn-secondary:hover {
    background: #2C5530;
    color: white;
    transform: rotate(-0.3deg) translateY(-2px);
}

/* Hand-drawn card styles */
.service-card,
.blog-card,
.testimonial-card,
.value-card,
.stat-card {
    border: 2px solid #2C5530;
    border-radius: 20px;
    background: white;
    position: relative;
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
}

.service-card::before,
.blog-card::before,
.testimonial-card::before,
.value-card::before,
.stat-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #2C5530;
    border-radius: 20px;
    transform: rotate(-1deg);
    z-index: -1;
    background: rgba(44, 85, 48, 0.05);
}

.service-card:hover,
.blog-card:hover,
.testimonial-card:hover,
.value-card:hover,
.stat-card:hover {
    transform: rotate(0.5deg) translateY(-5px);
}

/* Hand-drawn form elements */
.form-group input,
.form-group select,
.form-group textarea {
    border: 2px solid #2C5530;
    border-radius: 10px;
    background: white;
    position: relative;
    font-family: 'Kalam', cursive;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2C5530;
    box-shadow: 
        2px 2px 0px rgba(44, 85, 48, 0.2),
        -1px -1px 0px rgba(44, 85, 48, 0.1);
    transform: rotate(-0.2deg);
}

/* Hand-drawn dividers */
.section-divider {
    height: 3px;
    background: #2C5530;
    border-radius: 50px;
    margin: 2rem 0;
    position: relative;
    transform: rotate(-0.2deg);
}

.section-divider::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #2C5530;
    border-radius: 50px;
    transform: rotate(0.4deg);
}

/* Hand-drawn navigation */
.nav-link {
    position: relative;
    font-family: 'Kalam', cursive;
    font-weight: 400;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2C5530;
    border-radius: 50px;
    transition: width 0.3s ease;
    transform: rotate(-1deg);
}

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

/* Hand-drawn text effects */
.hero-title,
.section-header h2,
.page-header h1 {
    font-family: 'Kalam', cursive;
    font-weight: 700;
    position: relative;
    text-shadow: 
        2px 2px 0px rgba(44, 85, 48, 0.1),
        -1px -1px 0px rgba(44, 85, 48, 0.05);
}

.hero-title::after,
.section-header h2::after,
.page-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-1deg);
    width: 60px;
    height: 3px;
    background: #2C5530;
    border-radius: 50px;
}

/* Hand-drawn icons and images */
.service-icon,
.testimonial-image,
.blog-image,
.hero-image {
    position: relative;
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.service-icon:hover,
.testimonial-image:hover,
.blog-image:hover,
.hero-image:hover {
    transform: rotate(1deg) scale(1.05);
}

/* Hand-drawn shadows */
.handdrawn-shadow {
    box-shadow: 
        5px 5px 0px rgba(44, 85, 48, 0.2),
        -2px -2px 0px rgba(44, 85, 48, 0.1);
}

/* Hand-drawn animations */
@keyframes handdrawn-wiggle {
    0% { transform: rotate(-0.5deg); }
    25% { transform: rotate(0.5deg); }
    50% { transform: rotate(-0.3deg); }
    75% { transform: rotate(0.3deg); }
    100% { transform: rotate(-0.5deg); }
}

.handdrawn-animate {
    animation: handdrawn-wiggle 4s infinite ease-in-out;
}

/* Hand-drawn hover effects */
.handdrawn-hover:hover {
    transform: rotate(0.3deg) scale(1.02);
    transition: all 0.3s ease;
}

/* Hand-drawn list styles */
.service-features li,
.article-content ul li {
    position: relative;
    padding-left: 25px;
}

.service-features li::before,
.article-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2C5530;
    font-weight: bold;
    font-size: 1.2em;
    transform: rotate(-10deg);
}

/* Hand-drawn quote styles */
.testimonial-card p {
    position: relative;
    font-style: italic;
    padding: 1rem;
}

.testimonial-card p::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 3rem;
    color: #2C5530;
    opacity: 0.3;
    transform: rotate(-15deg);
}

.testimonial-card p::after {
    content: '"';
    position: absolute;
    bottom: -20px;
    right: 5px;
    font-size: 3rem;
    color: #2C5530;
    opacity: 0.3;
    transform: rotate(15deg);
}

/* Hand-drawn star ratings */
.testimonial-rating .star {
    display: inline-block;
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.testimonial-rating .star:nth-child(even) {
    transform: rotate(5deg);
}

.testimonial-rating:hover .star {
    transform: rotate(0deg) scale(1.2);
}

/* Hand-drawn cookie banner */
.cookie-banner {
    border-top: 3px solid #2C5530;
    background: #2C5530;
    position: relative;
}

.cookie-banner::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: #2C5530;
    transform: rotate(-0.1deg);
}

/* Hand-drawn modal */
.cookie-modal-content {
    border: 3px solid #2C5530;
    border-radius: 20px;
    position: relative;
    transform: rotate(-0.2deg);
}

.cookie-modal-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px solid #2C5530;
    border-radius: 20px;
    transform: rotate(0.4deg);
    z-index: -1;
    background: rgba(44, 85, 48, 0.05);
}

/* Hand-drawn table styles */
.detail-grid .detail-item {
    border-bottom: 2px solid #2C5530;
    position: relative;
}

.detail-grid .detail-item::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #2C5530;
    transform: rotate(-0.2deg);
}

/* Hand-drawn footer */
.footer {
    position: relative;
    background: #2C5530;
}

.footer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: #2C5530;
    transform: rotate(-0.1deg);
}

/* Hand-drawn social links */
.social-link {
    border: 2px solid #2C5530;
    border-radius: 15px;
    position: relative;
    transform: rotate(-1deg);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: rotate(1deg) translateY(-2px);
}

/* Hand-drawn breadcrumb */
.breadcrumb {
    font-family: 'Kalam', cursive;
    position: relative;
}

.breadcrumb::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2C5530;
    transform: rotate(-0.2deg);
    opacity: 0.3;
}

/* Hand-drawn responsive adjustments */
@media (max-width: 768px) {
    .handdrawn-border::before {
        transform: rotate(-0.3deg);
    }
    
    .btn {
        transform: rotate(-0.2deg);
    }
    
    .service-card,
    .blog-card,
    .testimonial-card {
        transform: rotate(0.3deg);
    }
}

/* Hand-drawn scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #2C5530;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

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

/* Hand-drawn loading animation */
.handdrawn-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #2C5530;
    border-radius: 50%;
    border-top: 2px solid transparent;
    animation: handdrawn-spin 1s linear infinite;
    transform: rotate(-5deg);
}

@keyframes handdrawn-spin {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(355deg); }
}

/* Hand-drawn focus styles */
*:focus {
    outline: 2px dashed #2C5530;
    outline-offset: 2px;
    border-radius: 5px;
}

/* Hand-drawn selection styles */
::selection {
    background: rgba(44, 85, 48, 0.3);
    color: #2C5530;
}

::-moz-selection {
    background: rgba(44, 85, 48, 0.3);
    color: #2C5530;
}

/* Additional hand-drawn elements */
.handdrawn-underline {
    position: relative;
}

.handdrawn-underline::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 2px;
    background: #2C5530;
    transform: rotate(-0.3deg);
}

.handdrawn-circle {
    border: 2px solid #2C5530;
    border-radius: 50%;
    position: relative;
    transform: rotate(-2deg);
}

.handdrawn-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #2C5530;
    border-radius: 50%;
    transform: rotate(4deg);
    z-index: -1;
}
