:root {
    --dark-bg: #1e1e2f;
    --primary-green: #2e8b57;
    --primary-green-dark: #1f6b42;
    --primary-green-light: rgba(46, 139, 87, 0.1);
    --text-light: #f8f9fa;
    --text-dark: #2d3748;
    --card-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background container */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

/* Fade effect for transitions */
.fixed-background .media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Active (visible) media */
.fixed-background .media.active {
    opacity: 1;
    z-index: 1;
}

/* Overlay for better text readability */
.fixed-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(30, 30, 47, 0.85), rgba(30, 30, 47, 0.7));
    z-index: 2;
}

/* Content styling - CHANGED TO RELATIVE FOR SCROLLING */
.fixed-content {
    position: relative; /* Changed from fixed to relative */
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 20;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 1s ease-out, opacity 1.5s ease;
    pointer-events: auto;
}

.content-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.hidden {
    opacity: 0 !important;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

#contentContainer {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.overview-section {
    padding: 30px;
    background: var(--card-bg);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.overview-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.overview-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    color: white;
}

.hashtag {
    display: inline-block;
    background-color: var(--primary-green);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.services-section {
    padding: 30px;
    background: var(--card-bg);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.services-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-green);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* SERVICE LINK STYLES - ENSURING CLICKABILITY */
.service-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-green);
    min-height: 60px;
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.service-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.service-link i {
    margin-right: 15px;
    font-size: 1.2rem;
    color: var(--primary-green);
    width: 25px;
    text-align: center;
}

/* Scroll content styling */
.scroll-content {
    position: relative;
    z-index: 10;
    background: white;
    /* Removed margin-top since fixed content is now part of normal flow */
}

/* First scroll section with animation */
.first-scroll-section {
    padding: 100px 20px;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.first-scroll-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.first-scroll-content {
    max-width: 1000px;
    margin: 0 auto;
}

.first-scroll-content h1 {
    font-size: 2.8rem;
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.2s;
}

.first-scroll-section.visible .first-scroll-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.first-scroll-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.4s;
}

.first-scroll-section.visible .first-scroll-content p {
    opacity: 1;
    transform: translateY(0);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.6s;
}

.first-scroll-section.visible .nav-links {
    opacity: 1;
    transform: translateY(0);
}

.nav-links a {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 50px;
    cursor: pointer;
}

.nav-links a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.nav-links a:hover:before {
    left: 100%;
}

.nav-links a:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.quickview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
    flex-wrap: wrap;
}

.book-now-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--primary-green);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: none;
    font-size: 1rem;
    min-height: 44px;
    cursor: pointer;
}

.waste-pick-up {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: red;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: none;
    font-size: 1rem;
    min-height: 44px;
    cursor: pointer;
}

.book-now-btn i {
    margin-right: 10px;
    font-size: 1rem;
    color: white;
}

.waste-pick-up i {
    margin-right: 10px;
    font-size: 1rem;
    color: white;
}

.book-now-btn:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
}

.waste-pick-up:hover {
    background: var(--primary-green-dark);
    transform: translateY(-2px);
}

/* Slideshow controls - POSITION ABSOLUTE SINCE CONTENT SCROLLS */
.slideshow-controls {
    position: absolute; /* Changed from fixed to absolute */
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 30;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slideshow-controls.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.slideshow-controls button {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-controls button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slideshow-indicators {
    position: absolute; /* Changed from fixed to absolute */
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 30;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.slideshow-indicators.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
    pointer-events: none;
}

.indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-green);
    transform: scale(1.2);
}

/* Loading animation for images */
.media.loading {
    filter: blur(5px);
    transform: scale(1.05);
}

/* Scroll to top button - KEEP FIXED */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5; /* High z-index to stay above everything */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Decorative elements */
.section-divider {
    height: 2px;
    width: 80px;
    background: var(--primary-green);
    margin: 30px auto;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.8s ease-out 0.3s;
}

.first-scroll-section.visible .section-divider {
    opacity: 1;
    transform: scaleX(1);
}

/* RESPONSIVE DESIGN - SIMPLIFIED SINCE CONTENT SCROLLS NORMALLY */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .content-container {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 800px;
    }
    
    .overview-section, .services-section {
        padding: 25px;
    }
    
    .overview-section h1 {
        font-size: 2.2rem;
    }
    
    .services-section h2 {
        font-size: 1.6rem;
    }
}

/* MOBILE STYLES - SIMPLIFIED */
@media (max-width: 768px) {
    .fixed-content {
        padding: 30px 15px;
        position: relative; /* Maintain relative positioning */
        transform: translateX(-100%);
        opacity: 0;
        min-height: 100vh;
    }
    
    .fixed-content.visible {
        transform: translateX(0);
        opacity: 1;
    }

    .overview-section h1 {
        font-size: 2rem;
    }
    
    .overview-section p {
        font-size: 1rem;
    }
    
    .services-section h2 {
        font-size: 1.4rem;
    }
    
    .service-link {
        padding: 12px;
        font-size: 0.95rem;
        min-height: 55px;
    }
    
    .first-scroll-content h1 {
        font-size: 2.2rem;
    }
    
    .first-scroll-content p {
        font-size: 1.1rem;
    }
    
    .quickview-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .book-now-btn,
    .waste-pick-up {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .nav-links a {
        width: 100%;
        max-width: 300px;
    }
    
    .slideshow-controls button {
        width: 45px;
        height: 45px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .fixed-content {
        padding: 20px 10px;
        position: relative; /* Maintain relative positioning */
    }
    
    .overview-section, .services-section {
        padding: 20px;
    }
    
    .overview-section h1 {
        font-size: 1.8rem;
    }
    
    .services-section h2 {
        font-size: 1.3rem;
    }
    
    .service-link {
        padding: 10px;
        font-size: 0.9rem;
        min-height: 50px;
    }
    
    .service-link i {
        margin-right: 10px;
        font-size: 1rem;
    }
    
    .hashtag {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .first-scroll-content h1 {
        font-size: 1.8rem;
    }
    
    .slideshow-controls button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .indicator {
        width: 14px;
        height: 14px;
    }

    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
    
    .services-grid {
        gap: 10px;
    }
    
    .content-container {
        padding: 0 10px;
    }
}

/* Large screen adjustments */
@media (min-width: 1201px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .content-container {
        max-width: 1400px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) {
    .nav-links a {
        width: auto;
        max-width: none;
    }
}

/* Image preview */
.image-preview img {
    max-height: 220px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* Animation states */
.animate-ready {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Other fixed style and newsletter */
.fixed-content.visible {
    transform: translateX(0);
    opacity: 1;
}

.fixed-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease 0.3s, opacity 0.8s ease 0.3s;
}

.fixed-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease 0.5s, opacity 0.8s ease 0.5s;
}

.fixed-content .hashtag {
    color: var(--success);
    font-weight: bold;
    margin-bottom: 1.5rem;
    display: block;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease 0.7s, opacity 0.8s ease 0.7s;
}

.fixed-content .explore-link {
    color: var(--text-white);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--success);
    padding-bottom: 5px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.8s ease 0.9s, opacity 0.8s ease 0.9s;
}

.fixed-content.visible h1,
.fixed-content.visible p,
.fixed-content.visible .hashtag,
.fixed-content.visible .explore-link {
    transform: translateY(0);
    opacity: 1;
}

/* First scroll section */
.first-scroll-section {
    min-height: auto;
    height: auto;
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('/rw/image/bg1.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.first-scroll-content {
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-white);
    padding: 3rem;
    max-width: 800px;
    border-radius: 10px;
    text-align: center;
}

.first-scroll-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.first-scroll-content p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Why we stand out section */
.stand-out-section {
    padding: 100px 20px;
    background: var(--gradient-green);
    text-align: center;
    position: relative;
    z-index: 10;
}










        .stand-out-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .stand-out-header {
            margin-bottom: 60px;
              position: relative;
             z-index: 10;
        }

        .stand-out-header h2 {
            font-size: 2.8rem;
            color: var(--primary-green-dark);
            margin-bottom: 20px;
            position: relative;
            display: inline-block;
        }

        .stand-out-header h2:after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--primary-green);
            border-radius: 2px;
        }

        .stand-out-header p {
            font-size: 1.2rem;
            color: var(--text-dark);
            max-width: 800px;
            margin: 30px auto 0;
            line-height: 1.8;
        }

        .values-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 50px;
        }

        .value-card {
            background: white;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            text-align: center;
            opacity: 0;
            transform: translateY(30px);
        }

        .value-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .value-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        }

        .value-card:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: var(--primary-green);
            transform: scaleX(0);
            transition: transform 0.4s ease;
        }

        .value-card:hover:before {
            transform: scaleX(1);
        }

        .value-icon {
            width: 70px;
            height: 70px;
            background: var(--primary-green-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
            color: var(--primary-green);
            font-size: 28px;
            transition: all 0.4s ease;
        }

        .value-card:hover .value-icon {
            background: var(--primary-green);
            color: white;
            transform: scale(1.1);
        }

        .value-title {
            font-size: 1.4rem;
            color: var(--primary-green-dark);
            margin-bottom: 15px;
            font-weight: 700;
        }

        .value-description {
            font-size: 1rem;
            color: var(--text-dark);
            line-height: 1.7;
        }

        /* Stats Section */
        .stats-section {
            padding: 80px 20px;
            background: var(--primary-green);
            color: white;
            text-align: center;
              position: relative;
            z-index: 10;
        }

        .stats-container {
            max-width: 1000px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
        }

        .stat-item {
            padding: 20px;
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .stat-label {
            font-size: 1.1rem;
            opacity: 0.9;
        }

        /* CTA Section */
        .cta-section {
            padding: 80px 20px;
            background: var(--gradient-green);
            text-align: center;
        }

        .cta-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .cta-title {
            font-size: 2.2rem;
            color: var(--primary-green-dark);
            margin-bottom: 20px;
        }

        .cta-description {
            font-size: 1.1rem;
            color: var(--text-dark);
            margin-bottom: 40px;
            line-height: 1.8;
        }

        .cta-button {
            display: inline-block;
            padding: 16px 40px;
            background: var(--primary-green);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(46, 139, 87, 0.3);
        }

        .cta-button:hover {
            background: var(--primary-green-dark);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(46, 139, 87, 0.4);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .stand-out-header h2 {
                font-size: 2.2rem;
            }
            
            .stand-out-header p {
                font-size: 1.1rem;
            }
            
            .values-grid {
                grid-template-columns: 1fr;
            }
            
            .value-card {
                padding: 25px;
            }
            
            .value-title {
                font-size: 1.3rem;
            }
            
            .stat-number {
                font-size: 2rem;
            }
            
            .cta-title {
                font-size: 1.8rem;
            }
        }

        @media (max-width: 480px) {
            .stand-out-section {
                padding: 70px 15px;
            }
            
            .stand-out-header h2 {
                font-size: 1.8rem;
            }
            
            .value-icon {
                width: 60px;
                height: 60px;
                font-size: 24px;
            }
            
            .stats-container {
                grid-template-columns: 1fr;
            }
            
            .cta-button {
                padding: 14px 30px;
                font-size: 1rem;
            }
        }

