/* General Styles */
:root {
    /* Custom Theme Variables */
    --primary-color: #0f5132; /* Very Dark Forest Green */
    --primary-dark: #052c16;  /* Extremely Dark Green */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8f9fa;
    --bg-light-alt: #f0fdf4;
    
    /* Bootstrap Overrides */
    --bs-success: #0f5132;
    --bs-success-rgb: 15, 81, 50;
}

/* Hard Overrides for Bootstrap Utilities if needed */
.text-success { color: var(--bs-success) !important; }
.bg-success { background-color: var(--bs-success) !important; }
.border-success { border-color: var(--bs-success) !important; }
.btn-success { background-color: var(--bs-success); border-color: var(--bs-success); }
.btn-success:hover { background-color: var(--primary-dark); border-color: var(--primary-dark); color: white; }
.btn-outline-success { color: var(--bs-success); border-color: var(--bs-success); }
.btn-outline-success:hover { background-color: var(--bs-success); color: white; }

html, body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

.bg-light-alt {
    background-color: var(--bg-light-alt);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(22, 163, 74, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Utilities */
.text-success { color: var(--primary-color) !important; }
.bg-success { background-color: var(--primary-color) !important; }
.bg-success-subtle { background-color: #dcfce7 !important; }
.border-success { border-color: var(--primary-color) !important; }
.border-success-subtle { border-color: #dcfce7 !important; }

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-success:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.3) !important;
}
.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-success:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.2) !important;
}

.btn {
    transition: all 0.3s ease;
}

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

.hover-success {
    transition: color 0.3s ease;
}
.hover-success:hover {
    color: var(--primary-color) !important;
}

/* Navbar */
.navbar {
    transition: all 0.4s ease;
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(15px);
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.nav-link {
    color: var(--text-dark);
    position: relative;
    transition: color 0.3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
.hero-bg-shapes {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #dcfce7;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 0;
    filter: blur(120px);
}
.hero-img {
    animation: float 6s ease-in-out infinite;
}
.image-backdrop {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    z-index: 0;
    opacity: 0.1;
    filter: blur(30px);
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Custom Shape Dividers */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}
.custom-shape-divider-bottom .shape-fill-light {
    fill: #f8f9fa; /* Matches bg-light */
}
.custom-shape-divider-bottom .shape-fill-light-alt {
    fill: var(--bg-light-alt);
}

/* About Section */
.about-img {
    position: relative;
    z-index: 2;
}
.about-backdrop {
    width: 100%;
    height: 100%;
    top: 20px;
    left: 20px;
    z-index: 0;
}
.experience-badge {
    bottom: -30px;
    right: -10px;
    width: 160px;
    height: 160px;
}
.feature-check {
    transition: transform 0.3s ease;
}
.feature-check:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(22, 163, 74, 0.1) !important;
}

/* Services */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
.service-bg-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: 0;
}
.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}
.service-card:hover .service-bg-shape {
    transform: scale(8);
    background-color: var(--primary-color) !important;
    opacity: 1 !important;
}
.service-card:hover .icon-wrapper {
    background-color: rgba(255,255,255,0.2) !important;
    color: #fff !important;
}
.service-card:hover h4, .service-card:hover p {
    color: #fff !important;
}
.service-card.active-card {
    background-color: var(--primary-color) !important;
}
.service-card.active-card .service-bg-shape {
    display: none;
}
.icon-wrapper {
    width: 90px;
    height: 90px;
    transition: all 0.4s ease;
}

/* Utilities for Modern Layout */
.hover-lift {
    transition: all 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}
.border-dashed {
    border-style: dashed !important;
}

/* Feature Cards (Why Choose Us) - Old (Keeping for safety) */
.feature-box {
    transition: all 0.4s ease;
}
.feature-icon-wrapper {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature-box:hover .feature-icon-wrapper {
    transform: scale(1.15) rotate(10deg);
}
.feature-box i.opacity-10 {
    transition: all 0.5s ease;
}
.feature-box:hover i.opacity-10 {
    transform: rotate(0deg) scale(1.2) !important;
    opacity: 0.2 !important;
}

/* Industries Marquee */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}
.marquee-content {
    display: inline-flex;
    animation: scrollMarquee 25s linear infinite;
}
.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}
.marquee-item {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
}
.marquee-item:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.3) !important;
}

/* Process Timeline (New) */
.process-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.process-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.15) !important;
    border-top-width: 8px !important;
}

/* Services */
.service-horizontal-card {
    transition: all 0.4s ease;
}
.service-horizontal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}
.service-horizontal-card .icon-box {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.service-horizontal-card:hover .icon-box {
    transform: scale(1.1) rotate(-10deg);
}
.service-horizontal-card i.opacity-10 {
    transition: all 0.6s ease;
}
.service-horizontal-card:hover i.opacity-10 {
    transform: scale(1.2) rotate(0deg) !important;
    opacity: 0.2 !important;
}
.hover-glow {
    transition: all 0.3s ease;
}
.hover-glow:hover {
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.4) !important;
    transform: translateY(-2px);
}

/* Commitment & Counters */
.bg-shapes-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 40%),
                      radial-gradient(circle at 80% 50%, rgba(0,0,0,0.2) 0%, transparent 40%);
    z-index: 0;
}
.counter-box {
    transition: transform 0.3s ease;
}
.counter-box:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Call To Action */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}
.cta-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
}

/* Contact Form */
.form-control, .form-select {
    padding: 1rem 0.75rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.25);
    background-color: #fff;
}
.contact-card-pattern i {
    transform: rotate(-15deg);
}

/* Footer */
footer {
    background: linear-gradient(to right, #1f2937, #111827);
}
.footer-links a {
    transition: all 0.3s ease;
}
.footer-links a:hover {
    color: var(--primary-color) !important;
    padding-left: 8px;
}
.social-icons a {
    width: 40px;
    height: 40px;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff !important;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(22, 163, 74, 0.3);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-slider-img {
        min-height: 250px;
        max-height: 400px;
        object-fit: cover;
        object-position: center;
    }
    
    .about-img {
        height: 350px;
        object-fit: cover;
        margin-top: 20px;
    }
}

@media (min-width: 769px) {
    .hero-slider-img {
        max-height: 650px;
        object-fit: cover;
        object-position: center;
    }
    
    .about-img {
        height: 550px;
        object-fit: cover;
    }
}

/* Floating Buttons */
.float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    border-radius: 50%;
    color: #FFF;
    font-size: 28px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.float-btn:hover {
    color: #fff;
    transform: scale(1.1) translateY(-5px);
}
.float-whatsapp {
    background-color: #25d366;
    right: 30px;
}
.float-call {
    background-color: #007bff;
    right: 110px;
}

/* WhatsApp Popup Animation */
.wa-popup {
    opacity: 0;
    transform: translateX(50px) translateY(20px) scale(0.9);
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}
.wa-popup.wa-show {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}
.float-top {
    background-color: var(--primary-dark);
    left: 30px;
    opacity: 0;
    visibility: hidden;
    font-size: 24px;
}
.float-top.show {
    opacity: 1;
    visibility: visible;
}

/* Hero Carousel */
.min-vh-75 {
    min-height: 75vh;
}
.custom-indicators {
    margin-bottom: 0;
    bottom: -30px;
}
.custom-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: var(--primary-color) !important;
    opacity: 0.3 !important;
    margin: 0 5px !important;
    transition: all 0.3s ease !important;
}
.custom-indicators button.active {
    opacity: 1 !important;
    transform: scale(1.3);
}

/* Carousel Animations */
.carousel-item.active .slide-content {
    animation: fadeInUp 1s ease forwards;
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
