/* Import Modern Premium Font */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --primary-glow: rgba(40, 167, 69, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --text-dark: #1a1a1a;
    --text-muted: #4a4a4a; /* Softer gray for paragraphs */
}

body {
    background-color: #ffffff;
    background-image: radial-gradient(at 0% 0%, hsla(134, 45%, 94%, 1) 0, transparent 50%), 
                      radial-gradient(at 50% 0%, hsla(0, 0%, 100%, 1) 0, transparent 50%);
    /* FONT UPDATE: Switched to Plus Jakarta Sans and increased base size */
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px; 
    line-height: 1.75;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Fix for small paragraphs */
p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

/* Premium Glow Card */
.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    background: #ffffff;
    box-shadow: 0 20px 40px var(--primary-glow);
    border-color: #28a745;
}

/* Glowing Button */
.btn-premium {
    background: linear-gradient(45deg, #28a745, #34ce57);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px; /* More rounded/modern */
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.btn-premium:hover {
    box-shadow: 0 12px 25px rgba(40, 167, 69, 0.5);
    transform: scale(1.05);
    color: white;
}

/* Unique Floating Navbar */
.navbar-custom {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    margin-top: 20px;
    padding: 10px 25px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    transition: all 0.4s ease;
}

/* Shrink navbar on scroll - UPDATED */
.navbar-scrolled {
    margin-top: 0 !important;
    border-radius: 0 0 20px 20px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    padding: 5px 25px !important;
}

.nav-link {
    font-weight: 600;
    font-size: 15px;
    color: #333 !important;
    position: relative;
    padding: 10px 15px !important;
    transition: 0.3s;
}

/* Active State for current page */
.nav-link.active {
    color: #28a745 !important;
}

.nav-link.active::after {
    width: calc(100% - 30px) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 15px;
    background-color: #28a745;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: calc(100% - 30px);
}

.nav-link:hover {
    color: #28a745 !important;
}

/* Whatsapp and Pulse Effects - Keep existing */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Feature Icon Box */
.icon-box {
    width: 60px;
    height: 60px;
    background: #f0fdf4;
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    margin-bottom: 20px;
    font-size: 24px;
}

.more-text {
    display: none; /* Hidden by default */
}

/* Optional: Add a subtle fade-in when text appears */
.show-text {
    display: inline;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero Image Layering */
.hero-section {
    background-color: #f8fafc;
    position: relative;
    margin-top: -100px; /* Pulls hero under the floating navbar */
    padding-top: 100px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1; /* Keeps the background subtle for text readability */
    z-index: 1;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 120px;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 3;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.floating-animation {
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(40, 167, 69, 0.2));
}

.z-index-2 { z-index: 2; }

/* --- Corrected Section --- */
/* Fix for Dropdown Transparency and Layering */
/* Fix for Dropdown Menu Visibility and Positioning */
.dropdown-menu {
    background-color: #ffffff !important; /* Force solid white background */
    border-radius: 12px !important;
    padding: 10px 0 !important;
    margin-top: 15px !important; /* Move it below the green line */
    border: none !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    z-index: 3000 !important; /* Keep it above hero images */
}

/* Ensure the arrow is visible and colored correctly */
/* --- COMPLETE DROPDOWN STYLES --- */

/* 1. The Down Arrow (Caret) */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    color: #28a745; /* Matches your brand green */
}

/* 2. The Menu Container */
.dropdown-menu {
    background-color: #ffffff !important; /* Force solid white to fix transparency */
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 0 !important;
    margin-top: 10px !important; /* Spacing below the navbar */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    z-index: 3000 !important;
}

/* 3. Individual Menu Items */
.dropdown-item {
    color: #333 !important;
    padding: 10px 20px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f0fdf4 !important; /* Soft green hover */
    color: #28a745 !important;
    padding-left: 25px !important;
}

/* 4. Desktop Hover Logic & Flickering Fix */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    /* Bridge the gap: This invisible area prevents the menu 
       from closing when moving the mouse from link to menu */
    .nav-item.dropdown {
        position: relative;
    }
    
    .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -20px;
        left: 0;
        width: 100%;
        height: 20px;
        background: transparent;
    }
}

/* Smooth Fade Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- PREMIUM FOOTER STYLES --- */
.footer-section {
    background-color: #f8fafc; /* Subtle off-white to distinguish from main content */
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-heading {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #1a1a1a;
}

.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #28a745;
    padding-left: 8px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    color: #28a745;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #28a745;
    color: #ffffff;
    transform: translateY(-3px);
}

.contact-icon {
    width: 34px;
    height: 34px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #28a745;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.footer-social a i {
    font-size: 1.1rem; /* Adjusts icon size specifically */
    line-height: 1;
}

/* Glassmorphism Card Effect */
.glow-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), 
                0 1px 3px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

/* Premium Button Styling */
.btn-premium {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #146c43 0%, #0f5132 100%);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

/* Background z-index fix */
.z-index-2 {
    z-index: 2;
}

/* Transition Hover Effect for Module Cards */
.transition-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.transition-up:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Module Card Styles */
.module-card {
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-8px);
    border-color: #28a745 !important;
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.12);
}

.module-card img {
    transition: transform 0.4s ease;
}

.module-card:hover img {
    transform: scale(1.08);
}

.module-card .badge {
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.module-card:hover .badge {
    opacity: 1;
}

/* Hover shadow for link cards */
.hover-shadow:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-color: #28a745 !important;
}

/* ERP Dropdown scrollbar styling */
.dropdown-menu::-webkit-scrollbar {
    width: 5px;
}
.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background: #28a745;
    border-radius: 10px;
}