/* assets/css/style.css */
:root {
    --primary-green: #2ecc71;    /* Vibrant Construction Green */
    --hover-green: #27ae60;      /* Darker Green for hover states */
    --dark-bg: #111111;          /* Page Background */
    --darker-bg: #0a0a0a;        /* Section backgrounds */
    --card-bg: #1a1a1a;          /* Card backgrounds */
    --text-muted: #bbbbbb;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--dark-bg);
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* Typography & Colors */
.text-green { color: var(--primary-green) !important; }
.ls-2 { letter-spacing: 2px; }
.text-green-muted {
    color: rgba(46, 204, 113, 0.6) !important; /* Green at 60% opacity */
}

/* Navigation */
.navbar-dark .navbar-nav .nav-link {
    transition: color 0.3s ease;
}
.navbar-dark .navbar-nav .nav-link:hover, 
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
}

/* Buttons */
.btn-green {
    background-color: var(--primary-green);
    border: 2px solid var(--primary-green);
    color: white !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-green:hover {
    background-color: transparent;
    color: var(--primary-green) !important;
}

.btn-outline-light:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

/* Service Cards */
.bg-darker { background-color: var(--darker-bg); }
.bg-secondary-dark { background-color: var(--card-bg); }

.service-card {
    transition: all 0.4s ease;
    border: 1px solid #222;
}

.service-card:hover {
    background-color: var(--primary-green);
    transform: translateY(-10px);
}

.service-card:hover h4, 
.service-card:hover p, 
.service-card:hover i,
.service-card:hover a {
    color: #fff !important;
}

/* Statistics & About */
.display-4.text-green {
    font-weight: 800;
}

/* Footer */
footer {
    background-color: #050505;
}

footer .text-green {
    font-size: 1.1rem;
}

/* Logo Sizing */
.site-logo {
    max-height: 80px; /* Increased from 50px */
    width: auto;      /* Maintains aspect ratio */
    display: block;
    transition: transform 0.3s ease;
}

/* Subtle hover effect for the logo */
.site-logo:hover {
    transform: scale(1.05);
}

/* Adjust for Mobile Devices */
@media (max-width: 991px) {
    .site-logo {
        max-height: 60px; /* Slightly smaller on mobile to save space */
    }
}

.navbar .container {
    align-items: center; /* Aligns logo and menu items vertically */
}

.nav-link {
    line-height: 80px; /* Match this to your logo's max-height for perfect centering */
}

/* Dark Glass Header */
.glass-header {
    background-color: rgba(10, 169, 0, 0.5) !important; /* Dark tint with 70% opacity */
    backdrop-filter: blur(15px); /* This creates the frosted glass look */
    -webkit-backdrop-filter: blur(15px); /* Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Thin light border for depth */
    transition: all 0.4s ease;
}

/* Optional: Make it even darker when scrolling */
.navbar-scrolled {
    background-color: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(20px);
    padding: 10px 0 !important; /* Shrinks the bar slightly on scroll */
}

/* 1. Sliding Underline Effect */
.nav-link-custom {
    position: relative;
    margin: 0 12px;
    padding: 10px 0 !important;
    transition: color 0.3s ease;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link-custom:hover::after,
.nav-link-custom.active::after {
    width: 100%;
}

.nav-link-custom:hover {
    color: var(--primary-green) !important;
    transform: translateY(-2px);
}

/* 2. Staggered Entrance Animation */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item {
    opacity: 0;
    animation: navLinkFade 0.5s ease forwards;
}

/* Delays for each item to create the staggered effect */
.nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-item:nth-child(5) { animation-delay: 0.5s; }
.nav-item:nth-child(6) { animation-delay: 0.6s; }

/* 3. Search Icon Pulse */
.search-icon {
    transition: all 0.3s ease;
}

.search-btn:hover .search-icon {
    color: var(--primary-green);
    transform: scale(1.2) rotate(15deg);
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-link-custom {
        margin: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}