/* =============================================
   Hunter's Lawn Care and Tree Service
   Main Stylesheet
   ============================================= */

/* CSS Variables - Psychology-Optimized Color Scheme */
:root {
    /* Primary: Forest greens - Trust, Growth, Nature, Renewal */
    --primary-green: #2E7D32;      /* Deep forest - stability & maturity */
    --primary-dark: #1B5E20;       /* Dark evergreen - professionalism */
    --primary-light: #66BB6A;      /* Fresh leaf - growth & vitality */
    --primary-pale: #E8F5E9;       /* Morning dew - freshness */

    /* Secondary: Earth tones - Reliability, Warmth, Groundedness */
    --earth-brown: #5D4037;        /* Rich soil - dependability */
    --earth-tan: #8D6E63;          /* Bark - natural warmth */
    --earth-sand: #D7CCC8;         /* Dried grass - calm */

    /* Accent: Sky blues - Trust, Calm, Open space */
    --accent-blue: #0288D1;        /* Clear sky - optimism */
    --accent-light: #4FC3F7;       /* Morning sky - freshness */

    /* Sunset/Energy accents - for CTAs */
    --energy-gold: #F9A825;        /* Golden hour - warmth & action */
    --energy-orange: #EF6C00;      /* Autumn leaf - urgency & energy */

    /* Neutrals refined */
    --neutral-light: #ECEFF1;      /* Soft cloud */
    --neutral-warm: #78909C;       /* Weathered stone */
    --neutral-dark: #37474F;       /* Evening shadow */

    /* Base colors */
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --cream: #FFF8E1;              /* Warm cream - inviting */
    --text-dark: #263238;          /* Softer than pure black */
    --text-light: #607D8B;         /* Blue-grey - professional */

    /* Shadows - softer, more organic */
    --shadow-sm: 0 2px 8px rgba(46, 125, 50, 0.08);
    --shadow-md: 0 4px 16px rgba(46, 125, 50, 0.12);
    --shadow-lg: 0 8px 32px rgba(46, 125, 50, 0.16);
    --shadow-glow: 0 0 20px rgba(102, 187, 106, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--off-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

/* =============================================
   Header & Navigation
   ============================================= */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

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

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

.logo-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-text span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width var(--transition-normal);
}

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

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* Header CTA Button */
.header-cta {
    background-color: var(--primary-green);
    color: var(--white) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.header-cta:hover {
    background-color: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 8rem 0 5rem;
    margin-top: 80px;
    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"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--off-white);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

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

.btn-green:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* =============================================
   Sections - General
   ============================================= */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

.section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-light {
    background-color: var(--white);
}

.section-gray {
    background-color: var(--off-white);
}

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

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-dark);
}

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

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-card .btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* =============================================
   Featured Work / Gallery
   ============================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    aspect-ratio: 4/3;
    background-color: var(--neutral-light);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    font-size: 0.875rem;
    margin: 0;
    opacity: 0.9;
}

/* Before/After Slider */
.before-after {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.before-after-label {
    position: absolute;
    top: 10px;
    padding: 0.25rem 0.75rem;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    z-index: 10;
}

.before-after-label.before {
    left: 10px;
}

.before-after-label.after {
    right: 10px;
}

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

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-author-info h4 {
    margin-bottom: 0;
    font-size: 1rem;
}

.testimonial-author-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: normal;
}

.testimonial-stars {
    color: #FFC107;
    margin-bottom: 1rem;
}

/* =============================================
   About Section
   ============================================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    background-color: var(--neutral-light);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 {
    color: var(--primary-dark);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.about-feature-icon {
    color: var(--primary-green);
    font-size: 1.25rem;
}

/* =============================================
   Contact Section
   ============================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item-text h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item-text p {
    margin: 0;
    color: var(--text-light);
}

.contact-item-text a {
    color: var(--primary-green);
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--neutral-light);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

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

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* =============================================
   FAQ Section
   ============================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--off-white);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* =============================================
   Footer
   ============================================= */
footer {
    background-color: var(--neutral-dark);
    color: var(--white);
    padding: 4rem 0 0;
}

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

.footer-about h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-about p {
    color: var(--neutral-light);
    margin-bottom: 1.5rem;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: background-color var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--primary-green);
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--neutral-light);
}

.footer-column a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--neutral-light);
    font-size: 0.875rem;
}

.crew-login-link {
    opacity: 0.7;
    font-size: 0.8rem !important;
    transition: opacity 0.3s ease;
    margin-top: 0.5rem;
}

.crew-login-link:hover {
    opacity: 1;
}

.crew-login-link a {
    color: var(--primary-light);
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.crew-login-link a:hover {
    text-decoration: underline;
    background: rgba(255, 255, 255, 0.1);
}

/* =============================================
   Service Page Specific
   ============================================= */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 8rem 0 4rem;
    margin-top: 80px;
    text-align: center;
}

.page-hero h1 {
    color: var(--white);
}

.page-hero p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--neutral-light);
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) > * {
    direction: ltr;
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    background-color: var(--neutral-light);
}

.service-detail-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-detail-content ul {
    list-style: none;
    padding: 0;
}

.service-detail-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

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

/* =============================================
   Lightbox
   ============================================= */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--primary-green);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    padding: 1rem;
    transition: color var(--transition-fast);
}

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

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* =============================================
   CTA Banner
   ============================================= */
.cta-banner {
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-banner h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-banner p {
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* =============================================
   Chatbot Widget Placeholder
   ============================================= */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1500;
}

.chatbot-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.chatbot-button:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

/* =============================================
   Responsive Design
   ============================================= */

/* Tablet */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-wrapper,
    .service-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail:nth-child(even) {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 1rem 20px;
        border-bottom: 1px solid var(--neutral-light);
    }

    .nav-menu a::after {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding: 6rem 0 4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    section {
        padding: 3rem 0;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .testimonials-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* =============================================
   Accessibility
   ============================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--secondary-blue);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-green);
    color: var(--white);
    padding: 1rem 2rem;
    z-index: 9999;
    border-radius: 0 0 5px 5px;
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* =============================================
   Placeholder Images
   ============================================= */
.placeholder-image {
    background: linear-gradient(135deg, var(--neutral-light) 0%, #c0c0c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
}

/* =============================================
   CUSTOM LAWN-CARE THEMED ANIMATIONS
   ============================================= */

/* Gentle grass swaying animation */
@keyframes grassSway {
    0%, 100% { transform: rotate(-2deg) translateX(0); }
    25% { transform: rotate(1deg) translateX(2px); }
    50% { transform: rotate(2deg) translateX(0); }
    75% { transform: rotate(-1deg) translateX(-2px); }
}

/* Leaf floating down animation */
@keyframes leafFloat {
    0% {
        transform: translateY(-20px) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(50px);
        opacity: 0;
    }
}

/* Organic growth pulse */
@keyframes growthPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: var(--shadow-sm);
    }
    50% {
        transform: scale(1.02);
        box-shadow: var(--shadow-glow);
    }
}

/* Sun ray shimmer */
@keyframes sunShimmer {
    0%, 100% {
        background-position: -200% center;
    }
    50% {
        background-position: 200% center;
    }
}

/* Dewdrop sparkle */
@keyframes dewSparkle {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
}

/* Organic fade in with growth effect */
@keyframes organicGrow {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Wind ripple for text */
@keyframes windRipple {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(2px); }
    75% { transform: translateX(-2px); }
}

/* Season transition gradient */
@keyframes seasonShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Floating particles (like pollen/seeds) */
.floating-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: leafFloat 15s ease-in-out infinite;
}

.floating-particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.floating-particle:nth-child(2) { left: 25%; animation-delay: 3s; animation-duration: 18s; }
.floating-particle:nth-child(3) { left: 45%; animation-delay: 6s; animation-duration: 14s; }
.floating-particle:nth-child(4) { left: 65%; animation-delay: 2s; animation-duration: 16s; }
.floating-particle:nth-child(5) { left: 85%; animation-delay: 5s; animation-duration: 13s; }

/* =============================================
   ENHANCED HERO WITH ORGANIC EFFECTS
   ============================================= */

/* Hero grass border decoration */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0 20 L5 8 L10 20 L15 5 L20 20 L25 10 L30 20 L35 3 L40 20 L45 7 L50 20 L55 4 L60 20 L65 9 L70 20 L75 6 L80 20 L85 8 L90 20 L95 5 L100 20 Z' fill='%23fff'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 100px 60px;
    background-position: bottom;
    animation: grassSway 4s ease-in-out infinite;
    transform-origin: bottom;
}

/* Enhanced service cards with organic hover */
.service-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-green), var(--primary-dark));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-pale);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Enhanced service icons with growth animation */
.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--primary-pale) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--primary-dark);
    transition: all var(--transition-slow);
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed var(--primary-light);
    opacity: 0;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.service-card:hover .service-icon::after {
    opacity: 1;
    animation: spin 8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =============================================
   ENHANCED BUTTONS WITH ORGANIC FEEL
   ============================================= */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-green {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-green:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-green) 100%);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.4);
}

/* CTA Button with energy colors */
.btn-cta {
    background: linear-gradient(135deg, var(--energy-gold) 0%, var(--energy-orange) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(249, 168, 37, 0.4);
    /* Subtle glow instead of constant pulse */
    animation: subtleGlow 4s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(249, 168, 37, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(249, 168, 37, 0.5); }
}

.btn-cta:hover {
    animation: none;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 30px rgba(249, 168, 37, 0.5);
}

/* =============================================
   TESTIMONIAL CARDS WITH ORGANIC STYLING
   ============================================= */

.testimonial-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-pale) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all var(--transition-slow);
    border: 1px solid var(--primary-pale);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: 25px;
    font-size: 6rem;
    color: var(--primary-light);
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.5;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.testimonial-stars {
    color: var(--energy-gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

/* =============================================
   ENHANCED CTA BANNER
   ============================================= */

.cta-banner {
    background: linear-gradient(135deg,
        var(--primary-dark) 0%,
        var(--primary-green) 50%,
        var(--accent-blue) 100%);
    background-size: 200% 200%;
    animation: seasonShift 10s ease infinite;
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::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='20' cy='20' r='2' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='80' cy='40' r='3' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='40' cy='70' r='2' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='90' cy='80' r='2' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    animation: leafFloat 20s linear infinite;
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered children animation */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   LOADING SPINNER (nature themed)
   ============================================= */

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary-pale);
    border-top-color: var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* =============================================
   CUSTOMER PORTAL STYLES
   ============================================= */

.portal-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--earth-brown) 100%);
    color: var(--white);
    padding: 8rem 0 4rem;
    margin-top: 80px;
    text-align: center;
}

.portal-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.portal-sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.portal-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-nav li {
    margin-bottom: 0.5rem;
}

.portal-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem;
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.portal-nav a:hover,
.portal-nav a.active {
    background: var(--primary-pale);
    color: var(--primary-dark);
}

.portal-nav a.active {
    border-left: 4px solid var(--primary-green);
}

.portal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.portal-card {
    background: var(--off-white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--neutral-light);
    transition: all var(--transition-fast);
}

.portal-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

/* Invoice table styling */
.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.invoice-table th,
.invoice-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--neutral-light);
}

.invoice-table th {
    background: var(--primary-pale);
    color: var(--primary-dark);
    font-weight: 600;
}

.invoice-table tr:hover {
    background: var(--off-white);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-paid {
    background: var(--primary-pale);
    color: var(--primary-dark);
}

.status-pending {
    background: #FFF3E0;
    color: var(--energy-orange);
}

.status-overdue {
    background: #FFEBEE;
    color: #C62828;
}

/* Login form styling */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.login-form h2 {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 2rem;
}

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

.login-form input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--neutral-light);
    border-radius: 10px;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.login-form input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px var(--primary-pale);
}

/* Payment section */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--off-white);
    border: 2px solid var(--neutral-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method:hover {
    border-color: var(--primary-green);
    background: var(--primary-pale);
}

.payment-method.selected {
    border-color: var(--primary-green);
    background: var(--primary-pale);
}

.payment-method-icon {
    font-size: 2rem;
}

/* Vehicle tracking placeholder */
.tracking-map-placeholder {
    background: linear-gradient(135deg, var(--neutral-light) 0%, var(--earth-sand) 100%);
    border-radius: 12px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed var(--neutral-warm);
}

.tracking-map-placeholder .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: growthPulse 2s ease-in-out infinite;
}

.vehicle-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.vehicle-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: dewSparkle 2s ease-in-out infinite;
}

.vehicle-status.active {
    background: var(--primary-green);
}

.vehicle-status.idle {
    background: var(--energy-gold);
}

.vehicle-status.offline {
    background: var(--neutral-warm);
}

/* Customer Job Tracker Timeline */
.job-timeline {
    position: relative;
    padding-left: 2rem;
}

.job-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--neutral-light);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--neutral-light);
    color: var(--white);
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    z-index: 1;
}

.timeline-item.completed .timeline-marker {
    background: var(--primary-green);
}

.timeline-item.active .timeline-marker {
    background: var(--energy-gold);
    box-shadow: 0 0 0 4px rgba(249, 168, 37, 0.3);
}

.timeline-item.pending .timeline-marker {
    background: var(--neutral-light);
    color: var(--text-light);
}

.timeline-content {
    flex: 1;
    padding-top: 0;
}

.service-status-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* =============================================
   ENHANCED MOBILE STYLES
   ============================================= */

@media (max-width: 992px) {
    .portal-container {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        position: relative;
        top: 0;
    }

    .portal-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .portal-nav li {
        margin: 0;
    }

    .portal-nav a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .hero::after {
        height: 40px;
        background-size: 60px 40px;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .invoice-table {
        font-size: 0.85rem;
    }

    .invoice-table th,
    .invoice-table td {
        padding: 0.75rem 0.5rem;
    }

    .login-form {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .tracking-map-placeholder {
        height: 300px;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    .nav-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .portal-nav a {
        min-height: 48px;
    }

    .service-card:hover {
        transform: none;
    }

    .service-card:active {
        transform: scale(0.98);
    }
}

/* =============================================
   ENHANCED ANIMATIONS PACK
   ============================================= */

/* 1. PARALLAX SCROLLING */
.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: -1;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(102, 187, 106, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(46, 125, 50, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(27, 94, 32, 0.1) 0%, transparent 70%);
    will-change: transform;
    pointer-events: none;
}

/* 2. ANIMATED COUNTERS */
.counter-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    padding: 4rem 0;
    color: var(--white);
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.counter-item {
    padding: 2rem;
}

.counter-number {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-label {
    font-size: 1.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.counter-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* 3. TESTIMONIAL CAROUSEL */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neutral-light);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

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

.carousel-dot:hover {
    background: var(--primary-light);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: all var(--transition-fast);
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* 4. SEASONAL THEMES (Auto-detected based on current date) */

/* Spring Theme */
[data-season="spring"] {
    --primary-green: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --primary-pale: #E8F5E9;
}

/* Summer Theme */
[data-season="summer"] {
    --primary-green: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #66BB6A;
    --primary-pale: #E8F5E9;
}

/* Fall Theme */
[data-season="fall"] {
    --primary-green: #E65100;
    --primary-dark: #BF360C;
    --primary-light: #FF9800;
    --primary-pale: #FFF3E0;
    --earth-brown: #5D4037;
}

/* Winter Theme */
[data-season="winter"] {
    --primary-green: #0288D1;
    --primary-dark: #01579B;
    --primary-light: #4FC3F7;
    --primary-pale: #E1F5FE;
}

/* Seasonal Priority Cards - highlighted services for current season */
.service-card.seasonal-priority {
    border: 2px solid var(--primary-green);
    box-shadow: var(--shadow-glow);
    position: relative;
}

.service-card.seasonal-priority::before {
    content: '★ In Season';
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--primary-green);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 10px;
}

/* Seasonal Hero Background Images */
[data-season="spring"] .hero {
    background: linear-gradient(rgba(56, 142, 60, 0.7), rgba(76, 175, 80, 0.8)),
                url('../images/hero/hero-spring.jpg');
    background-size: cover;
    background-position: center;
}

[data-season="summer"] .hero {
    background: linear-gradient(rgba(27, 94, 32, 0.7), rgba(46, 125, 50, 0.8)),
                url('../images/hero/hero-summer.jpg');
    background-size: cover;
    background-position: center;
}

[data-season="fall"] .hero {
    background: linear-gradient(rgba(191, 54, 12, 0.7), rgba(230, 81, 0, 0.8)),
                url('../images/hero/hero-fall.jpg');
    background-size: cover;
    background-position: center;
}

[data-season="winter"] .hero {
    background: linear-gradient(rgba(1, 87, 155, 0.7), rgba(2, 136, 209, 0.8)),
                url('../images/hero/hero-winter.jpg');
    background-size: cover;
    background-position: center;
}

/* =============================================
   DARK MODE SUPPORT
   ============================================= */

/* Smooth theme transitions */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease !important;
}

/* Dark mode color tokens */
[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-secondary: #1E1E1E;
    --bg-tertiary: #2D2D2D;
    --text-primary: #E0E0E0;
    --text-secondary: #9E9E9E;
    --text-dark: #E0E0E0;
    --text-light: #9E9E9E;
    --white: #1E1E1E;
    --off-white: #121212;
    --neutral-light: #2D2D2D;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Dark mode body */
[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Dark mode header */
[data-theme="dark"] header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--bg-tertiary);
}

[data-theme="dark"] .nav-menu a {
    color: var(--text-primary);
}

[data-theme="dark"] .nav-menu a:hover {
    color: var(--primary-light);
}

/* Dark mode cards */
[data-theme="dark"] .service-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .faq-item {
    background: var(--bg-secondary);
    border-color: var(--bg-tertiary);
}

[data-theme="dark"] .service-card h3,
[data-theme="dark"] .testimonial-card h4 {
    color: var(--text-primary);
}

/* Dark mode sections */
[data-theme="dark"] .section-light {
    background: var(--bg-primary);
}

[data-theme="dark"] .section-gray {
    background: var(--bg-secondary);
}

/* Dark mode footer */
[data-theme="dark"] footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--bg-tertiary);
}

[data-theme="dark"] footer a {
    color: var(--text-secondary);
}

[data-theme="dark"] footer a:hover {
    color: var(--primary-light);
}

/* Dark mode forms */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--bg-tertiary);
    border-color: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: var(--primary-light);
}

/* Dark mode FAQ */
[data-theme="dark"] .faq-question {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .faq-answer {
    background: var(--bg-tertiary);
}

/* Dark mode theme toggle */
[data-theme="dark"] .theme-toggle {
    background: var(--bg-secondary);
}

[data-theme="dark"] .theme-btn.active {
    background: var(--bg-tertiary);
}

/* Dark mode page hero */
[data-theme="dark"] .page-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--primary-dark) 100%);
}

/* Dark mode placeholder images */
[data-theme="dark"] .placeholder-image {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* Dark mode gallery */
[data-theme="dark"] .gallery-filter {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--bg-tertiary);
}

[data-theme="dark"] .gallery-filter.active {
    background: var(--primary-green);
    color: white;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-green);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .dark-mode-toggle {
    background: var(--energy-gold);
    color: var(--bg-primary);
}

/* Respect user's system preference - apply dark mode when system prefers dark and no manual light override */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #121212;
        --bg-secondary: #1E1E1E;
        --bg-tertiary: #2D2D2D;
        --text-primary: #E0E0E0;
        --text-secondary: #9E9E9E;
        --text-dark: #E0E0E0;
        --text-light: #9E9E9E;
        --white: #1E1E1E;
        --off-white: #121212;
        --neutral-light: #2D2D2D;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    }

    /* Body styling for system dark preference */
    :root:not([data-theme="light"]) body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }

    /* Header styling for system dark preference */
    :root:not([data-theme="light"]) header {
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--bg-tertiary);
    }

    :root:not([data-theme="light"]) .nav-menu a {
        color: var(--text-primary);
    }

    :root:not([data-theme="light"]) .nav-menu a:hover {
        color: var(--primary-light);
    }

    /* Cards styling for system dark preference */
    :root:not([data-theme="light"]) .service-card,
    :root:not([data-theme="light"]) .testimonial-card,
    :root:not([data-theme="light"]) .faq-item {
        background: var(--bg-secondary);
        border-color: var(--bg-tertiary);
    }

    :root:not([data-theme="light"]) .service-card h3,
    :root:not([data-theme="light"]) .testimonial-card h4 {
        color: var(--text-primary);
    }

    /* Sections styling for system dark preference */
    :root:not([data-theme="light"]) .section-light {
        background: var(--bg-primary);
    }

    :root:not([data-theme="light"]) .section-gray {
        background: var(--bg-secondary);
    }

    /* Footer styling for system dark preference */
    :root:not([data-theme="light"]) footer {
        background: var(--bg-secondary);
        border-top: 1px solid var(--bg-tertiary);
    }

    :root:not([data-theme="light"]) footer a {
        color: var(--text-secondary);
    }

    :root:not([data-theme="light"]) footer a:hover {
        color: var(--primary-light);
    }

    /* Forms styling for system dark preference */
    :root:not([data-theme="light"]) input,
    :root:not([data-theme="light"]) textarea,
    :root:not([data-theme="light"]) select {
        background: var(--bg-tertiary);
        border-color: var(--bg-tertiary);
        color: var(--text-primary);
    }

    :root:not([data-theme="light"]) input:focus,
    :root:not([data-theme="light"]) textarea:focus,
    :root:not([data-theme="light"]) select:focus {
        border-color: var(--primary-light);
    }

    /* FAQ styling for system dark preference */
    :root:not([data-theme="light"]) .faq-question {
        background: var(--bg-secondary);
        color: var(--text-primary);
    }

    :root:not([data-theme="light"]) .faq-answer {
        background: var(--bg-tertiary);
    }

    /* Theme toggle styling for system dark preference */
    :root:not([data-theme="light"]) .theme-toggle {
        background: var(--bg-secondary);
    }

    :root:not([data-theme="light"]) .theme-btn.active {
        background: var(--bg-tertiary);
    }

    /* Page hero styling for system dark preference */
    :root:not([data-theme="light"]) .page-hero {
        background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--primary-dark) 100%);
    }

    /* Placeholder images styling for system dark preference */
    :root:not([data-theme="light"]) .placeholder-image {
        background: var(--bg-tertiary);
        color: var(--text-secondary);
    }

    /* Gallery styling for system dark preference */
    :root:not([data-theme="light"]) .gallery-filter {
        background: var(--bg-secondary);
        color: var(--text-primary);
        border-color: var(--bg-tertiary);
    }

    :root:not([data-theme="light"]) .gallery-filter.active {
        background: var(--primary-green);
        color: white;
    }

    /* Dark mode toggle button styling for system dark preference */
    :root:not([data-theme="light"]) .dark-mode-toggle {
        background: var(--energy-gold);
        color: var(--bg-primary);
    }

    /* Weather widget styling for system dark preference */
    :root:not([data-theme="light"]) .weather-widget {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    :root:not([data-theme="light"]) .weather-temp,
    :root:not([data-theme="light"]) .weather-loading .weather-text {
        color: #E0E0E0;
    }

    :root:not([data-theme="light"]) .weather-desc,
    :root:not([data-theme="light"]) .weather-wind {
        color: rgba(255, 255, 255, 0.7);
    }

    :root:not([data-theme="light"]) .weather-location {
        color: rgba(255, 255, 255, 0.5);
    }

    :root:not([data-theme="light"]) .weather-wind {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
}

/* 5. LOADING SCREEN */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-tree {
    font-size: 5rem;
    animation: treeGrow 1.5s ease-in-out infinite;
}

@keyframes treeGrow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

.loader-text {
    color: var(--white);
    font-size: 1.2rem;
    margin-top: 1.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.loader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: var(--white);
    border-radius: 2px;
    animation: loadProgress 2s ease-in-out;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Leaf particles in loader */
.loader-leaves {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.loader-leaf {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: loaderLeafFall 4s linear infinite;
}

@keyframes loaderLeafFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 6. TEXT REVEAL ANIMATION */
.text-reveal {
    overflow: hidden;
}

.text-reveal-inner {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
    animation: textRevealUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes textRevealUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.text-reveal-word {
    display: inline-block;
    overflow: hidden;
}

.text-reveal-word span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-reveal-word.visible span {
    transform: translateY(0);
}

/* Typewriter effect */
.typewriter {
    overflow: hidden;
    border-right: 3px solid var(--primary-green);
    white-space: nowrap;
    animation:
        typing 3s steps(40, end),
        blinkCursor 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-green); }
}

/* Staggered word animation */
.words-animate span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotateX(-90deg);
    animation: wordFadeIn 0.6s forwards;
}

.words-animate span:nth-child(1) { animation-delay: 0.1s; }
.words-animate span:nth-child(2) { animation-delay: 0.2s; }
.words-animate span:nth-child(3) { animation-delay: 0.3s; }
.words-animate span:nth-child(4) { animation-delay: 0.4s; }
.words-animate span:nth-child(5) { animation-delay: 0.5s; }
.words-animate span:nth-child(6) { animation-delay: 0.6s; }
.words-animate span:nth-child(7) { animation-delay: 0.7s; }
.words-animate span:nth-child(8) { animation-delay: 0.8s; }
.words-animate span:nth-child(9) { animation-delay: 0.9s; }
.words-animate span:nth-child(10) { animation-delay: 1.0s; }

@keyframes wordFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* 7. ENHANCED IMAGE HOVER ZOOM */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    aspect-ratio: 4/3;
    background-color: var(--neutral-light);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 50%,
        rgba(0,0,0,0.7) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img,
.gallery-item .placeholder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img,
.gallery-item:hover .placeholder-image {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Shine effect on hover */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    transition: none;
    z-index: 2;
}

.gallery-item:hover::after {
    animation: imageShine 0.6s ease-out;
}

@keyframes imageShine {
    to {
        left: 150%;
    }
}

/* 8. ANIMATED SVG ICONS */
.service-icon {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-green));
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.service-card:hover .service-icon::before {
    opacity: 0.2;
    transform: scale(1.3);
    animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1.3);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.1;
    }
}

/* Icon bounce on hover */
.service-card:hover .service-icon {
    animation: iconBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes iconBounce {
    0% { transform: scale(1) rotate(0deg); }
    30% { transform: scale(1.2) rotate(-10deg); }
    50% { transform: scale(1.1) rotate(10deg); }
    70% { transform: scale(1.15) rotate(-5deg); }
    100% { transform: scale(1.1) rotate(0deg); }
}

/* Rotating ring around icon */
.service-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed var(--primary-light);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover .service-icon::after {
    opacity: 0.6;
    animation: iconRingSpin 8s linear infinite;
}

@keyframes iconRingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 9. CURSOR TRAIL / LEAF PARTICLES */
.cursor-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.cursor-trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.trail-particle {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
    animation: trailFade 1s ease-out forwards;
}

@keyframes trailFade {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    100% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* 10. BACKGROUND GRADIENT SHIFT (TIME OF DAY) */
.gradient-shift-bg {
    background: linear-gradient(
        135deg,
        var(--gradient-color-1, #1B5E20) 0%,
        var(--gradient-color-2, #2E7D32) 50%,
        var(--gradient-color-3, #66BB6A) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
        --gradient-color-1: #1B5E20;
        --gradient-color-2: #2E7D32;
        --gradient-color-3: #66BB6A;
    }
    25% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 100% 50%;
        --gradient-color-1: #2E7D32;
        --gradient-color-2: #388E3C;
        --gradient-color-3: #81C784;
    }
    75% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 0% 50%;
        --gradient-color-1: #1B5E20;
        --gradient-color-2: #2E7D32;
        --gradient-color-3: #66BB6A;
    }
}

/* Morning gradient */
.hero.time-morning {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 30%, #81C784 70%, #2E7D32 100%);
}

/* Noon gradient */
.hero.time-noon {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #66BB6A 100%);
}

/* Evening gradient */
.hero.time-evening {
    background: linear-gradient(135deg, #E65100 0%, #F57C00 30%, #388E3C 70%, #1B5E20 100%);
}

/* Night gradient */
.hero.time-night {
    background: linear-gradient(135deg, #263238 0%, #37474F 50%, #1B5E20 100%);
}

/* =============================================
   MICRO-INTERACTIONS
   ============================================= */

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Link hover underline animation */
.animated-underline {
    position: relative;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-green);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.animated-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Card tilt effect on hover */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Magnetic button effect class */
.magnetic-btn {
    transition: transform 0.2s ease-out;
}

/* Floating animation for elements */
.float-animation {
    animation: gentleFloat 3s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Heartbeat animation for CTAs */
.heartbeat {
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.05); }
    20% { transform: scale(1); }
    30% { transform: scale(1.05); }
    40%, 100% { transform: scale(1); }
}

/* Shake animation for attention */
.shake-attention {
    animation: shakeIt 0.5s ease-in-out;
}

@keyframes shakeIt {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

/* Glow effect */
.glow-effect {
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from {
        box-shadow: 0 0 5px var(--primary-light),
                    0 0 10px var(--primary-light),
                    0 0 15px var(--primary-green);
    }
    to {
        box-shadow: 0 0 10px var(--primary-light),
                    0 0 20px var(--primary-light),
                    0 0 30px var(--primary-green);
    }
}

/* =============================================
   WEATHER WIDGET
   ============================================= */
.weather-widget {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    min-width: 160px;
    max-width: 200px;
    opacity: 0.85;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.weather-widget:hover {
    opacity: 1;
    transform: scale(1.02);
}

.weather-widget.loaded {
    opacity: 0.9;
}

.weather-widget.loaded:hover {
    opacity: 1;
}

.weather-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-loading .weather-icon {
    font-size: 1.5rem;
    animation: pulse 1.5s infinite;
}

/* Ensure loading text is readable - dark text on light background */
.weather-loading .weather-text {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.weather-content .weather-icon {
    font-size: 2rem;
    line-height: 1;
}

.weather-details {
    display: flex;
    flex-direction: column;
}

.weather-temp {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    transition: color 0.3s ease;
}

.weather-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.weather-location {
    font-size: 0.7rem;
    color: var(--neutral-warm);
    font-weight: 500;
    transition: color 0.3s ease;
}

.weather-wind {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--neutral-light);
    font-size: 0.75rem;
    color: var(--text-light);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.weather-alert {
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}

.weather-alert.snow {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
}

.weather-alert.cold {
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    color: #3949ab;
}

.weather-alert.storm {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
}

.weather-alert.perfect {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: var(--primary-dark);
}

/* Dark mode weather widget */
[data-theme="dark"] .weather-widget {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .weather-temp,
[data-theme="dark"] .weather-loading .weather-text {
    color: #E0E0E0;
}

[data-theme="dark"] .weather-desc,
[data-theme="dark"] .weather-wind {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .weather-location {
    color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .weather-wind {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Responsive weather widget */
@media (max-width: 768px) {
    .weather-widget {
        top: auto;
        bottom: 80px;
        right: 15px;
        left: auto;
        min-width: 140px;
        max-width: 160px;
        padding: 8px 10px;
        opacity: 0.9;
    }

    .weather-content .weather-icon {
        font-size: 1.5rem;
    }

    .weather-temp {
        font-size: 1.1rem;
    }

    .weather-desc {
        font-size: 0.7rem;
    }

    .weather-alert {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .weather-wind {
        display: none; /* Hide wind on mobile to save space */
    }
}

@media (max-width: 480px) {
    .weather-widget {
        right: 10px;
        bottom: 85px; /* Above chatbot button */
        min-width: 120px;
        max-width: 140px;
        padding: 6px 8px;
    }

    .weather-content .weather-icon {
        font-size: 1.25rem;
    }

    .weather-temp {
        font-size: 1rem;
    }

    .weather-location {
        display: none; /* Hide location on small screens */
    }
}
