/* =============================================
   Waste One - Custom Styles
   ============================================= */

/* CSS Variables */
:root {
    --primary-color: #FDCD13;
    --primary-dark: #d4a800;
    --primary-light: #ffe44d;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

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

/* Navigation */
#mainNav {
    background: linear-gradient(135deg, #FDCD13 0%, #d4a800 50%, #b89200 100%);
    padding: 0.75rem 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

#mainNav.scrolled {
    padding: 0.5rem 0;
    background: linear-gradient(135deg, #d4a800 0%, #b89200 50%, #9c7c00 100%);
}

#mainNav .navbar-brand img {
    transition: var(--transition);
}

#mainNav.scrolled .navbar-brand img {
    height: 40px;
}

#mainNav .nav-link {
    color: rgba(0, 0, 0, 0.8);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: var(--transition);
}

#mainNav .nav-link:hover {
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.2);
}

#mainNav .nav-link.active {
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.3);
}

#mainNav .btn-light {
    font-weight: 600;
    border-radius: 25px;
    background-color: #000;
    border-color: #000;
    color: var(--white);
}

#mainNav .btn-light:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: #000 !important;
}

.navbar-toggler {
    border-color: rgba(0, 0, 0, 0.5);
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
    height: 100%;
    width: 100%;
}

.hero-slide {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 2;
    padding-top: 40px;
}

.hero-section h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    z-index: 3;
    width: 5%;
    opacity: 0.7;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 1;
}

#heroCarousel .carousel-indicators {
    z-index: 3;
    margin-bottom: 2rem;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline-light {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    border-width: 2px;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Section Styles */
section {
    overflow: hidden;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

/* Services Section */
.service-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

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

.service-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Pricing Section */
.pricing-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

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

.pricing-card.featured {
    border: 3px solid var(--primary-color);
}

.pricing-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 40px;
    font-size: 0.85rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.pricing-header h4 {
    margin-bottom: 0;
}

.pricing-body {
    padding: 2rem;
    text-align: center;
}

.price {
    margin-bottom: 0.5rem;
}

.price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.price .period {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.info-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
}

.info-box h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

/* Schedule Section */
.schedule-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 4px solid var(--primary-color);
}

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

.schedule-day {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.schedule-area {
    color: var(--text-dark);
    font-weight: 600;
}

/* About Section */
.about-features {
    display: grid;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateX(5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.25rem;
    color: var(--white);
}

.feature-content h5 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.contact-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.contact-card h5 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.contact-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.contact-link:hover {
    color: var(--primary-dark);
}

.hours-box {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.hours-box h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

/* Testimonials Section */
#testimonials {
    background-color: #e9ecef;
}

#testimonialCarousel {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 50px;
}

.testimonial-card {
    padding: 2rem 1rem;
}

.testimonial-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

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

.testimonial-stars {
    margin-bottom: 1.5rem;
}

.testimonial-stars i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin: 0 2px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author h5 {
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

#testimonialCarousel .carousel-control-prev {
    left: 0;
}

#testimonialCarousel .carousel-control-next {
    right: 0;
}

#testimonialCarousel .carousel-control-prev:hover,
#testimonialCarousel .carousel-control-next:hover {
    background: var(--primary-dark);
}

#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
}

#testimonialCarousel .carousel-indicators {
    position: relative;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

#testimonialCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    opacity: 0.4;
    margin: 0 5px;
}

#testimonialCarousel .carousel-indicators button.active {
    opacity: 1;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: rgba(255, 255, 255, 0.7);
}

.footer .navbar-brand img,
.footer img[alt="Waste One Logo"] {
    filter: brightness(0) invert(1);
}

.footer p {
    margin-bottom: 0;
}

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

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.social-link i {
    font-size: 1.25rem;
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    transform: translateY(-5px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 10%;
    }

    #mainNav .navbar-nav {
        padding: 1rem 0;
    }

    #mainNav .nav-link {
        padding: 0.75rem 0;
    }

    #mainNav .btn-light {
        margin-top: 0.5rem;
        display: inline-block;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .pricing-card {
        margin-bottom: 1rem;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
