:root {
    --primary: 142 76% 36%;
    --primary-highlight: 158 64% 52%;
    --primary-rgb: 22, 162, 73;
    --primary-contrast: 0 0% 100%;
    --bs-primary: hsl(var(--primary));
    --bs-primary-rgb: var(--primary-rgb);
    --bs-link-color: hsl(var(--primary));
    --bs-link-hover-color: hsl(var(--primary-highlight));
}

body {
    color: #000;
}

/* Navbar Styles */
#main-navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#main-navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, hsl(var(--primary)) 0%, hsl(var(--primary-highlight)) 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link.active {
    color: hsl(var(--primary)) !important;
    font-weight: 600;
}

.home-text {
    color: #000;
}

/* Mobile Menu Styles */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        border-radius: 10px;
        margin-top: 10px;
        padding: 20px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: #f8f9fa;
        color: hsl(var(--primary)) !important;
    }
}

/* Footer Styles */
.home-footer a {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

.home-footer a:hover {
    color: hsl(var(--primary)) !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero section adjustment for fixed navbar */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px !important;
    }
}

/* Hero Section Text Animations */
.hero-content {
    animation: fadeInUp 1s ease-out 0.3s both;
    max-width: 720px;
}

.hero-title {
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-subtitle {
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.78rem;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.25);
}

.hero-kicker i {
    font-size: 1rem;
    color: #ffffff;
}

.hero-stats {
    animation: fadeInUp 1s ease-out 1.1s both;
}

/* Text Animation */
.hero-title span {
    display: inline-block;
    animation: slideInFromLeft 0.8s ease-out forwards;
    opacity: 0;
}

.hero-title span:nth-child(1) { animation-delay: 0.1s; }
.hero-title span:nth-child(2) { animation-delay: 0.2s; }
.hero-title span:nth-child(3) { animation-delay: 0.3s; }
.hero-title span:nth-child(4) { animation-delay: 0.4s; }
.hero-title span:nth-child(5) { animation-delay: 0.5s; }

/* Button Hover Effects */
.hero-buttons .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.hero-buttons .btn:hover::before {
    left: 100%;
    color: hsl(var(--primary)) !important;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: hsl(var(--primary)) !important;
}

/* Stats Counter Animation */
.stat-number {
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: countUp 2s ease-out forwards;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Badges */
.hero-badges .badge {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-badges .badge:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.3) !important;
}

/* Pain Cards */
.pain-card {
    transition: all 0.3s ease;
    border-left: 3px solid transparent !important;
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border-left-color: var(--bs-primary) !important;
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15) !important;
}

.service-card .avatar {
    transition: all 0.3s ease;
}

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

/* Pillar Cards */
.pillar-card {
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Letter Spacing Utility */
.letter-spacing {
    letter-spacing: 0.12em;
}

/* Section Kicker Styles */
.text-uppercase.small {
    font-size: 0.75rem;
    font-weight: 800;
}

/* Smooth Scroll Offset */
section[id] {
    scroll-margin-top: 100px;
}

/* Enhanced Card Shadows */
.card {
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Image Placeholder Styles */
img[alt*="placeholder"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Responsive Image Sizing */
@media (max-width: 768px) {
    .hero-badges {
        justify-content: center;
    }
    
    .pain-card,
    .service-card,
    .pillar-card {
        margin-bottom: 1rem;
    }
}
