/* ----------------------------------------------------
   Echofy Sustainability Website Style Sheet
   Designed for premium aesthetics, speed, and responsive grid layouts
---------------------------------------------------- */

:root {
    /* Color Palette */
    --primary: #39b54a;          /* Eco Grass Green */
    --primary-hover: #2e963c;
    --dark-green: #0b251a;       /* Deep Forest Green */
    --dark-green-opacity: rgba(11, 37, 26, 0.95);
    --secondary-accent: #70e000; /* Lime Sprout Accent */
    --light-accent: #e8f5e9;     /* Soft green background */
    --cream-bg: #fdfdfb;         /* Gentle warm off-white background */
    --white: #ffffff;
    
    /* Typography Font stacks */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: all 0.25s ease-in-out;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 30px rgba(11, 37, 26, 0.08);
    --shadow-lg: 0 20px 40px rgba(11, 37, 26, 0.12);
    --shadow-premium: 0 30px 60px rgba(0, 0, 0, 0.08);
    --border-radius-lg: 16px;
    --border-radius-pill: 50px;
    --border-radius-custom: 30px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: #4a5568;
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: var(--font-heading);
    color: var(--dark-green);
    font-weight: 700;
}

.text-height-base {
    line-height: 1.25;
}

.text-success {
    color: var(--primary) !important;
}

.bg-success {
    background-color: var(--primary) !important;
}

.bg-dark-green {
    background-color: var(--dark-green) !important;
}

.bg-light-green {
    background-color: var(--light-accent) !important;
}

.bg-light-cream {
    background-color: var(--cream-bg) !important;
}

.py-100 {
    padding-top: 40px;
    padding-bottom: 40px;
}

.z-index-2 {
    position: relative;
    z-index: 2;
}

.border-secondary-20 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-success-20 {
    border-color: rgba(57, 181, 74, 0.2) !important;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Custom Buttons */
.btn-success {
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-success:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-success {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-outline-success:hover {
    background-color: var(--primary);
    color: var(--white) !important;
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--dark-green);
    border-color: var(--white);
}

.btn-hover-grow {
    transform: scale(1);
    transition: var(--transition-smooth);
}

.btn-hover-grow:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(57, 181, 74, 0.3);
}

/* 1. Preloader Screen Styling */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--dark-green);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* 2. Sticky Navbar */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--dark-green) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 12px 0 !important;
    transition: var(--transition-smooth);
}

.navbar-brand .logo-icon i {
    animation: rotateLeaf 4s ease-in-out infinite;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 10px;
    position: relative;
    transition: var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10px;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 20px);
}

.btn-quote {
    background: linear-gradient(135deg, var(--primary), var(--secondary-accent));
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    padding: 10px 24px;
    box-shadow: 0 4px 15px rgba(57, 181, 74, 0.3);
    transition: var(--transition-smooth);
    border: none;
}

.btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(57, 181, 74, 0.5);
    color: var(--white) !important;
}

/* 3. Hero Section */
.hero-section {
    background: radial-gradient(circle at 10% 20%, rgb(4, 16, 11) 0%, var(--dark-green) 90.1%);
    min-height: 100vh;
    padding-top: 120px;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(57, 181, 74, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
}

.text-success-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-main-img {
    border-radius: var(--border-radius-custom);
    border: 5px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    height: auto;
    max-height: 530px;
    object-fit: cover;
    transition: var(--transition-smooth);
}
@media (min-width: 992px) {
    .hero-main-img {
        height: 530px;
    }
}

.hero-img-wrapper:hover .hero-main-img {
    transform: scale(1.03);
    box-shadow: 0 30px 60px rgba(57, 181, 74, 0.2) !important;
}

/* Glassmorphic Sprout Badge */
.eco-badge-glass {
    bottom: 30px;
    left: -40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius-lg);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    animation: badgeFloat 4s ease-in-out infinite;
}

/* Vertical Left Social Bar */
.vertical-socials {
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.follow-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

.social-line {
    width: 2px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
}

.vertical-socials .social-link {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
    font-size: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

/* Scroll indicator */
.scroll-down-indicator {
    bottom: 30px;
    z-index: 10;
}

.scroll-down-indicator a {
    text-decoration: none;
}

/* 4. Marquee Section */
.marquee-section {
    overflow: hidden;
    position: relative;
}

.marquee-wrapper {
    width: max-content;
}

.marquee-content {
    animation: marquee 25s linear infinite;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.marquee-content span {
    padding: 0 20px;
    display: flex;
    align-items: center;
}

/* 5. About Section */
.main-about-img {
    width: 100%;
    height: auto;
    max-height: 530px;
    object-fit: cover;
}
@media (min-width: 992px) {
    .main-about-img {
        height: 530px;
    }
}

.about-img-wrapper {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

/* Play modal ripple button styling */
.play-btn {
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--primary), var(--secondary-accent));
    border-radius: 50%;
    font-size: 24px;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 30px rgba(57, 181, 74, 0.4);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 15px 35px rgba(57, 181, 74, 0.6);
}

.ripple-wave {
    width: 75px;
    height: 75px;
    background-color: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.4;
    animation: pulseWave 2s infinite;
}

/* Awards badge overlay */
.award-badge {
    bottom: -20px;
    left: -20px;
    background-color: var(--dark-green);
    border: 2px solid var(--primary);
}

.about-icon {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 6. Services Section styling */
.service-card {
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium) !important;
    border-color: rgba(57, 181, 74, 0.15);
}

.service-icon-wrap {
    width: 70px;
    height: 70px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-wrap {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    transform: rotateY(180deg);
}

.service-img-wrap {
    height: 180px;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

/* Background Curve shapes */
.curve-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.03;
}

.curve-1 {
    top: -50px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.curve-2 {
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--secondary-accent) 0%, transparent 70%);
}

/* 7. Statistics Section */
.main-stats-img {
    width: 100%;
    height: auto;
    max-height: 530px;
    object-fit: cover;
}
@media (min-width: 992px) {
    .main-stats-img {
        height: 530px;
    }
}

.stats-img-wrapper {
    position: relative;
    display: inline-block;
}

.save-planet-badge {
    top: 10px;
    left: -20px;
    background: linear-gradient(135deg, var(--primary), var(--dark-green));
    border-radius: 50%;
    width: 130px;
    height: 130px;
    padding: 15px;
    border: 3px solid var(--white);
    animation: badgeFloat 5s ease-in-out infinite;
}

/* Progress bar fill animations */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e3e3e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.1, 1);
}

/* 8. Why Choose Us Section */
.feature-card {
    transition: var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03);
}

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

.feature-icon {
    width: 65px;
    height: 65px;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background-color: var(--primary) !important;
    color: var(--white) !important;
}

/* 9. Projects Section styling */
.btn-filter {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--dark-green);
    padding: 8px 24px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-filter:hover,
.btn-filter.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(57, 181, 74, 0.25);
}

.project-card {
    height: 380px;
}

.project-img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-overlay {
    background: linear-gradient(to top, rgba(11, 37, 26, 0.9) 0%, rgba(11, 37, 26, 0.3) 60%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h4,
.project-overlay p,
.project-overlay .badge {
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.project-card:hover .project-overlay h4,
.project-card:hover .project-overlay p,
.project-card:hover .project-overlay .badge {
    transform: translateY(0);
}

.project-link {
    width: 44px;
    height: 44px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.project-link:hover {
    background-color: var(--secondary-accent);
    transform: rotate(-45deg);
}

/* 10. Testimonials */
.testimonial-slider .slick-dots {
    bottom: -40px;
}

.testimonial-slider .slick-dots li button:before {
    font-size: 12px;
    color: var(--primary);
}

.testimonial-slider .slick-active button:before {
    color: var(--primary) !important;
}

.quote-badge-small {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    bottom: 0;
    right: 0;
    font-size: 12px;
    border: 2px solid var(--white);
}

/* 11. Blog Section */
.blog-card {
    transition: var(--transition-smooth);
}

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

.blog-img-wrap {
    height: 240px;
}

.blog-img {
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-img {
    transform: scale(1.08);
}

.blog-date {
    bottom: 15px;
    left: 0;
    z-index: 5;
    font-size: 13px;
    font-weight: 600;
}

.hover-text-success {
    transition: var(--transition-fast);
}

.hover-text-success:hover {
    color: var(--primary) !important;
}

/* 12. Contact Section */
.form-control {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(57, 181, 74, 0.15);
}

.contact-icon-box {
    width: 44px;
    height: 44px;
    min-width: 44px;
}

.map-container iframe {
    width: 100%;
    min-height: 280px;
}

/* 13. Footer Section styling */
.border-left-success {
    border-left: 3px solid var(--primary);
    padding-left: 12px;
}

.footer-links li a {
    transition: var(--transition-fast);
}

.footer-links li a:hover {
    padding-left: 5px;
    color: var(--primary) !important;
}

.footer-socials .social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-socials .social-icon:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white) !important;
}

/* Back to Top Button */
#backToTop {
    bottom: 95px !important;
    right: 30px;
    width: 50px;
    height: 50px;
    z-index: 999;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(57, 181, 74, 0.3);
    transition: var(--transition-smooth);
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(57, 181, 74, 0.5);
}


/* ----------------------------------------------------
   Animations & Custom Keyframes
---------------------------------------------------- */
@keyframes rotateLeaf {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(15deg);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

@keyframes floating-anim {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.floating-anim {
    animation: floating-anim 6s ease-in-out infinite;
}

@keyframes bounce-anim {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

.bounce-anim {
    animation: bounce-anim 2s infinite;
}

@keyframes pulseWave {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

/* 10. Subpage Headers */
.page-header h1 {
    color: var(--white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-header p {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.whatsapp-float-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float-btn i {
    transition: transform 0.4s ease;
}

.whatsapp-float-btn:hover i {
    transform: rotate(15deg);
}

/* Pulse animation effect */
.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: whatsappGlow 2s infinite;
    z-index: -1;
}

@keyframes whatsappGlow {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Tooltip style - Premium Glassmorphism */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: rgba(11, 37, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-family: var(--font-heading);
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateX(15px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(11, 37, 26, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}
