
/* Enhanced Back-to-Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0) scale(1);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-2xl);
    color: white;
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.back-to-top.gradient-btn {
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Modern Spinner */
#spinner {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#spinner:not(.show) {
    opacity: 0;
    visibility: hidden;
}

#spinner .spinner-border {
    width: 3.5rem;
    height: 3.5rem;
    border: 4px solid rgba(124, 193, 66, 0.2);
    border-top-color: var(--primary-green);
    animation: spin 1s linear infinite, pulseSize 2s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseSize {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Modern CSS Features & Advanced Animations */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary-hover);
}

/* Selection Styling */
::selection {
    background: rgba(124, 193, 66, 0.2);
    color: var(--neutral-900);
}

::-moz-selection {
    background: rgba(124, 193, 66, 0.2);
    color: var(--neutral-900);
}

/* Modern Keyframe Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(300%) rotate(45deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(124, 193, 66, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(124, 193, 66, 0.8);
        transform: scale(1.05);
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotateGradient {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Advanced Backdrop Filter Effects */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.backdrop-blur-xl {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* Modern Gradient Animations */
.animated-gradient {
    background: linear-gradient(-45deg, var(--primary-green), var(--primary-green-dark), var(--primary-green-light), var(--primary-green));
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Morphing Shapes */
.morphing-blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

/* Advanced Hover States */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(124, 193, 66, 0.5);
    transform: scale(1.02);
}

/* Magnetic Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Scroll-triggered Animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered Animations */
.stagger-animation > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-animation.animate > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation.animate > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation.animate > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation.animate > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-animation.animate > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-animation.animate > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-animation.animate > * {
    opacity: 1;
    transform: translateY(0);
}

/* Performance Optimizations */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Modern Focus States */
.focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
    border-radius: var(--radius-md);
}

/* Container Queries Support */
@container (min-width: 400px) {
    .container-responsive {
        padding: var(--spacing-xl);
    }
}

@container (min-width: 600px) {
    .container-responsive {
        padding: var(--spacing-2xl);
    }
}

/* Modern Typography System */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--neutral-700);
    font-size: var(--font-size-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Heading Typography */
h1, .h1, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--neutral-900);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

h2, .h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--neutral-800);
    letter-spacing: -0.02em;
    margin-bottom: 0.875rem;
}

h3, .h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.4;
    color: var(--neutral-800);
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
}

h4, .h4, h5, .h5, h6, .h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    line-height: 1.4;
    color: var(--neutral-700);
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

/* Display Text Enhancements */
.display-1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.display-2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.display-3 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.display-5 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Body Text Enhancements */
p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--neutral-600);
    margin-bottom: 1.25rem;
}

.lead {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--neutral-600);
}

/* Special Text Classes */
.text-primary {
    color: var(--primary-green) !important;
    font-weight: 600;
}

.text-secondary {
    color: #7cc444 !important;
}

.text-white {
    color: #ffffff !important;
}

.text-muted {
    color: #7cc444 !important;
}

/* Navigation Typography */
.navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: var(--font-size-sm);
    letter-spacing: 0.025em;
    text-transform: uppercase;
    color: var(--neutral-700);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
}

/* Enhanced Mobile Navigation Optimization */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        padding: 0.25rem 0;
    }
    
    .navbar-brand img {
        max-height: 40px;
        width: auto;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
        font-size: 1.2rem;
        border: none;
        background: none;
        min-width: 44px;
        min-height: 44px;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(124, 193, 66, 0.25);
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }
    
    .navbar-nav {
        align-items: stretch;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        text-transform: none;
        border-bottom: 1px solid #f8f9fa;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        background-color: #f8f9fa;
        border: none;
        border-radius: 0;
        box-shadow: none;
        display: none;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-item {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .dropdown-item:hover {
        background-color: rgba(124, 193, 66, 0.1);
        color: var(--primary-green);
    }
    
    /* Mobile navigation buttons */
    .navbar .btn {
        margin: 0.25rem 0;
        width: 100%;
        max-width: 200px;
    }
    
    .nav-bar .btn-md-square {
        width: 44px;
        height: 44px;
        margin: 0.25rem;
    }
}

/* Extra small mobile navigation */
@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem;
    }
    
    .navbar-brand h1 {
        font-size: 1.5rem;
        margin: 0;
    }
    
    .navbar-brand img {
        max-height: 35px;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.875rem 0.75rem;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

/* Multi-Step Form Styling */

/* Case Studies Section */
.case-study-card {
    border: 1px solid rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
    border-color: var(--primary-green);
}

/* Trust Signals Styling */
.cert-item {
    transition: all 0.3s ease;
    position: relative;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.cert-logo {
    transition: transform 0.3s ease;
}

.cert-item:hover .cert-logo {
    transform: scale(1.1);
}

.trust-badge {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.trust-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
    border-color: var(--bs-primary);
}

.team-item {
    transition: all 0.3s ease;
    overflow: hidden;
}

.team-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-item:hover .team-overlay {
    opacity: 1;
}

.professional-photo {
    position: relative;
    overflow: hidden;
}

.membership-item {
    transition: all 0.3s ease;
}

.membership-item:hover {
    transform: translateY(-3px);
}

.membership-icon {
    transition: transform 0.3s ease;
}

.membership-item:hover .membership-icon {
    transform: scale(1.2);
}

.verification-note {
    position: relative;
    overflow: hidden;
}

.verification-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.verification-note:hover::before {
    left: 100%;
}

.client-verification {
    margin-top: 0.5rem;
}

.client-verification .badge {
    font-size: 0.7rem;
}

/* Partner carousel enhancements */
.partner-logo-item {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.partner-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    border-color: var(--bs-primary);
}

/* Credential stats styling */
.credential-stat {
    padding: 1rem;
}

.stat-icon {
    transition: all 0.3s ease;
}

.credential-stat:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Enhanced testimonial styling */
.testimonial-item {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 0.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Trust indicator animations */
@keyframes trustPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.badge.bg-success {
    animation: trustPulse 2s infinite;
}

/* Professional photo placeholder styling */
.professional-photo {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
}

.professional-photo:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--bs-primary);
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.case-study-card:hover::before {
    transform: scaleX(1);
}

.case-study-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
}

@media (max-width: 768px) {
    .case-study-card {
        margin-bottom: 1.5rem;
    }
}

/* Progress Indicator */
.progress-indicator {
    margin-bottom: 2rem;
}

.progress-indicator .d-flex {
    position: relative;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    position: relative;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.step-indicator.active .step-circle {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(124, 193, 66, 0.2);
}

.step-indicator.completed .step-circle {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
}

.step-indicator.completed .step-circle::after {
    content: '✓';
    font-size: 16px;
}

.step-label {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    white-space: nowrap;
}

.step-indicator.active .step-label {
    color: var(--primary-green);
    font-weight: 600;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 1rem;
    position: relative;
    top: 20px;
    transition: all 0.3s ease;
}

.step-line.completed {
    background: var(--primary-green);
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Step Transitions */
.form-step.slide-out-left {
    animation: slideOutLeft 0.3s ease-in forwards;
}

.form-step.slide-in-right {
    animation: slideInRight 0.3s ease-out forwards;
}

.form-step.slide-out-right {
    animation: slideOutRight 0.3s ease-in forwards;
}

.form-step.slide-in-left {
    animation: slideInLeft 0.3s ease-out forwards;
}

@keyframes slideOutLeft {
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Form Styling */
.form-step .text-center h5 {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-step .text-center p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Button Styling for Multi-Step Forms */
.next-step,
.prev-step {
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.next-step {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.next-step:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 193, 66, 0.3);
}

.prev-step {
    background: transparent;
    border: 2px solid #6c757d;
    color: #6c757d;
}

.prev-step:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

/* Form Validation States */
.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(124, 193, 66, 0.25);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.valid-feedback {
    color: var(--primary-green);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Mobile Optimization for Multi-Step Forms */
@media (max-width: 768px) {
    .progress-indicator {
        margin-bottom: 1.5rem;
    }
    
    .step-indicator {
        margin: 0 0.5rem;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .step-label {
        font-size: 10px;
        margin-top: 6px;
    }
    
    .step-line {
        margin: 0 0.5rem;
        top: 17px;
    }
    
    .next-step,
    .prev-step {
        min-width: 100px;
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .form-step .text-center h5 {
        font-size: 1.1rem;
    }
    
    .form-step .text-center p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .step-indicator {
        margin: 0 0.25rem;
    }
    
    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .step-label {
        font-size: 9px;
        margin-top: 4px;
    }
    
    .step-line {
        margin: 0 0.25rem;
        top: 15px;
        height: 1px;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .next-step,
    .prev-step {
        width: 100%;
        order: 1;
    }
    
    .prev-step {
        order: 2;
    }
}
@media (max-width: 768px) {
    /* Text utilities */
    .text-center-mobile {
        text-align: center !important;
    }
    
    .text-left-mobile {
        text-align: left !important;
    }
    
    /* Display utilities */
    .d-none-mobile {
        display: none !important;
    }
    
    .d-block-mobile {
        display: block !important;
    }
    
    .d-flex-mobile {
        display: flex !important;
    }
    
    /* Width utilities */
    .w-100-mobile {
        width: 100% !important;
    }
    
    .w-auto-mobile {
        width: auto !important;
    }
    
    /* Margin utilities */
    .m-0-mobile {
        margin: 0 !important;
    }
    
    .mb-3-mobile {
        margin-bottom: 1rem !important;
    }
    
    .mt-3-mobile {
        margin-top: 1rem !important;
    }
    
    /* Padding utilities */
    .p-2-mobile {
        padding: 0.5rem !important;
    }
    
    .p-3-mobile {
        padding: 1rem !important;
    }
    
    /* Flex utilities */
    .flex-column-mobile {
        flex-direction: column !important;
    }
    
    .justify-content-center-mobile {
        justify-content: center !important;
    }
    
    /* Border utilities */
    .border-0-mobile {
        border: 0 !important;
    }
    
    .rounded-mobile {
        border-radius: 8px !important;
    }
    
    /* Overflow utilities */
    .overflow-hidden-mobile {
        overflow: hidden !important;
    }
    
    .overflow-auto-mobile {
        overflow: auto !important;
    }
}

/* Touch-specific optimizations */
@media (pointer: coarse) {
    /* Larger tap targets for touch devices */
    .btn,
    .nav-link,
    .dropdown-item,
    .form-control,
    .form-select {
        min-height: 44px;
    }
    
    /* Better hover states for touch */
    .btn:hover,
    .nav-link:hover,
    .dropdown-item:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid #000;
    }
    
    .form-control {
        border: 2px solid #000;
    }
    
    .nav-link {
        border-bottom: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-bottom-color: currentColor;
    }
}
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Section spacing optimization */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2.5rem !important;
    }
    
    /* Card spacing */
    .g-4 > * {
        margin-bottom: 1.5rem;
    }
    
    .g-3 > * {
        margin-bottom: 1rem;
    }
    
    /* Text center on mobile */
    .text-center-mobile {
        text-align: center !important;
    }
    
    /* Hide elements on mobile if needed */
    .d-none-mobile {
        display: none !important;
    }
    
    /* Full width on mobile */
    .w-100-mobile {
        width: 100% !important;
    }
}

/* Button Typography */
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: var(--font-size-sm);
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* Form Typography */
label, .form-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: var(--font-size-sm);
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.form-control {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: var(--font-size-base);
    color: var(--neutral-700);
}

/* Enhanced Mobile Form Controls */
@media (max-width: 768px) {
    .form-control {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 8px;
        border: 2px solid #e9ecef;
        transition: all 0.3s ease;
    }
    
    .form-control:focus {
        padding: 0.875rem 1rem;
        border-color: var(--primary-green);
        box-shadow: 0 0 0 0.2rem rgba(124, 193, 66, 0.25);
        transform: none;
    }
    
    .form-select {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        min-height: 48px;
        border-radius: 8px;
        border: 2px solid #e9ecef;
    }
    
    .form-select:focus {
        border-color: var(--primary-green);
        box-shadow: 0 0 0 0.2rem rgba(124, 193, 66, 0.25);
    }
    
    textarea.form-control {
        min-height: 120px;
        resize: vertical;
    }
    
    .form-label {
        font-size: 0.9rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--neutral-700);
    }
    
    /* Input groups optimization */
    .input-group {
        border-radius: 8px;
        overflow: hidden;
    }
    
    .input-group .form-control {
        border-radius: 0;
    }
    
    .input-group-text {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        min-height: 48px;
        border: 2px solid #e9ecef;
        background-color: #f8f9fa;
    }
}

/* Extra small mobile form optimization */
@media (max-width: 480px) {
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
        min-height: 52px;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Full width form rows on mobile */
    .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .g-3 > * {
        margin-bottom: 1rem;
    }
}

/* Card Typography */
.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--neutral-800);
}

.card-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--neutral-600);
    line-height: 1.6;
}

/* Modal Typography */
.modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--neutral-800);
}

/* Enhanced Mobile Modal Optimization */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        height: calc(100vh - 1rem);
    }
    
    .modal-content {
        height: 100%;
        border-radius: 16px;
        border: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    .modal-header {
        padding: 1rem 1.5rem 0.5rem;
        border-bottom: 1px solid #e9ecef;
        position: sticky;
        top: 0;
        z-index: 1050;
        background: inherit;
        border-radius: 16px 16px 0 0;
    }
    
    .modal-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .modal-body {
        padding: 1rem 1.5rem;
        overflow-y: auto;
        max-height: calc(100vh - 160px);
    }
    
    .modal-footer {
        padding: 0.5rem 1.5rem 1rem;
        border-top: 1px solid #e9ecef;
        position: sticky;
        bottom: 0;
        background: inherit;
        border-radius: 0 0 16px 16px;
    }
    
    /* Button positioning in modals */
    .modal-footer .btn {
        margin: 0.25rem;
        min-width: 120px;
    }
    
    .btn-close {
        padding: 0.75rem;
        margin: -0.5rem -0.75rem -0.5rem auto;
        font-size: 1.2rem;
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .modal-dialog {
        margin: 0.25rem;
        max-width: calc(100% - 0.5rem);
        height: calc(100vh - 0.5rem);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .modal-body {
        max-height: calc(100vh - 140px);
    }
    
    /* Full-width modal buttons on very small screens */
    .modal-footer .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .modal-footer .d-flex {
        flex-direction: column;
    }
    
    .modal-footer .me-3 {
        margin-right: 0 !important;
    }
}

/* Full-screen modal optimization */
.modal-fullscreen {
    padding: 0;
}

.modal-fullscreen .modal-content {
    height: 100vh;
    border: none;
    border-radius: 0;
}

@media (max-width: 768px) {
    .modal-fullscreen .modal-header {
        padding: 1rem;
    }
    
    .modal-fullscreen .modal-body {
        padding: 1rem;
    }
    
    .modal-fullscreen .modal-content {
        border-radius: 0;
    }
}

/* Search modal optimization */
@media (max-width: 768px) {
    .modal-fullscreen .input-group {
        flex-direction: column;
    }
    
    .modal-fullscreen .form-control {
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .modal-fullscreen .input-group-text {
        border-radius: 8px;
        justify-content: center;
        min-height: 48px;
    }
}

/* Enhanced Mobile Responsive Typography */
@media (max-width: 768px) {
    .display-1 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .display-2 {
        font-size: clamp(1.9rem, 8vw, 2.6rem);
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }
    
    .display-3 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .display-5 {
        font-size: clamp(1.4rem, 6vw, 1.9rem);
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    body {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    p {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }
    
    .lead {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    /* Better heading spacing on mobile */
    h1, .h1 {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        margin-bottom: 1rem;
    }
    
    h2, .h2 {
        font-size: clamp(1.5rem, 5vw, 1.9rem);
        margin-bottom: 0.875rem;
    }
    
    h3, .h3 {
        font-size: clamp(1.3rem, 4vw, 1.6rem);
        margin-bottom: 0.75rem;
    }
    
    h4, .h4 {
        font-size: clamp(1.1rem, 3.5vw, 1.4rem);
        margin-bottom: 0.5rem;
    }
    
    h5, .h5 {
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-bottom: 0.5rem;
    }
    
    /* Optimize card titles for mobile */
    .card-title {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .card-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

/* Extra small devices optimization */
@media (max-width: 480px) {
    .display-1 {
        font-size: clamp(1.9rem, 8vw, 2.8rem);
        margin-bottom: 1rem;
    }
    
    .display-5 {
        font-size: clamp(1.2rem, 5vw, 1.7rem);
    }
    
    body {
        font-size: 0.85rem;
    }
    
    p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    /* Tighter spacing for very small screens */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50%;
}

.btn.btn-primary {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 2rem;
    font-size: var(--font-size-base);
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transform: translateZ(0);
    /* Ensure minimum tap target size */
    min-height: 44px;
    min-width: 120px;
}

/* Enhanced Mobile Button Optimization */
@media (max-width: 768px) {
    .btn.btn-primary {
        padding: 0.875rem 2.5rem;
        font-size: 0.9rem;
        min-height: 48px;
        min-width: 140px;
        border-radius: 25px;
    }
    
    .btn.btn-secondary {
        padding: 0.875rem 2.5rem;
        font-size: 0.9rem;
        min-height: 48px;
        min-width: 140px;
        border-radius: 25px;
    }
    
    /* Larger tap targets for CTA buttons */
    .btn-lg,
    .py-3.px-5 {
        padding: 1rem 3rem !important;
        min-height: 52px;
        font-size: 1rem;
    }
    
    /* Square button optimization for mobile */
    .btn-square {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    
    .btn-sm-square {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
    }
    
    .btn-md-square {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }
    
    .btn-lg-square {
        width: 56px;
        height: 56px;
        min-width: 56px;
        min-height: 56px;
    }
}

/* Extra small mobile optimization */
@media (max-width: 480px) {
    .btn.btn-primary,
    .btn.btn-secondary {
        padding: 1rem 2rem;
        font-size: 0.85rem;
        min-height: 50px;
        width: 100%;
        max-width: 280px;
        margin: 0.25rem auto;
        display: block;
    }
    
    /* Full-width buttons for small screens */
    .btn-responsive-full {
        width: 100% !important;
        margin-bottom: 0.5rem;
    }
    
    /* Social button optimization */
    .btn.social-btn {
        width: 48px;
        height: 48px;
        margin: 0 6px;
        font-size: 20px;
    }
}

.btn.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.6s ease;
}

.btn.btn-primary:hover::before {
    left: 100%;
}

.btn.btn-primary:hover {
    background: var(--gradient-primary-hover) !important;
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-xl);
    color: #ffffff !important;
}

.btn.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: var(--shadow-md);
}

.btn.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    border-radius: var(--radius-full);
    padding: 0.75rem 2rem;
    font-size: var(--font-size-base);
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.btn.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn.btn-secondary:hover::before {
    left: 0;
}

.btn.btn-secondary:hover {
    color: #ffffff !important;
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Modern Image Enhancements & Performance Optimization */
.img-fluid {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg);
    /* Enable lazy loading for better performance */
    loading: lazy;
    /* Optimize image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Lazy Loading Styles */
.lazy-image {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    background-color: var(--neutral-100);
    background-image: linear-gradient(
        90deg,
        var(--neutral-100) 0%,
        var(--neutral-200) 50%,
        var(--neutral-100) 100%
    );
    background-size: 200% 100%;
    animation: shimmerPlaceholder 1.5s infinite linear;
}

.lazy-image.loaded {
    opacity: 1;
    background: none;
    animation: none;
}

@keyframes shimmerPlaceholder {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* WebP Support Detection */
.webp-support .webp-image {
    display: block;
}

.webp-support .fallback-image {
    display: none;
}

.no-webp .webp-image {
    display: none;
}

.no-webp .fallback-image {
    display: block;
}

/* Service and Feature Images */
.service-item img,
.feature-item img,
.country-item img {
    filter: contrast(1.1) saturate(1.1) brightness(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.service-item:hover img,
.feature-item:hover img,
.country-item:hover img {
    filter: contrast(1.2) saturate(1.3) brightness(1.05);
    transform: scale(1.05);
}

/* Country Images with Modern Overlay */
.country-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.country-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(124, 193, 66, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.country-item:hover::before {
    opacity: 1;
}

.country-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

/* About Section Images */
.about img {
    filter: contrast(1.05) saturate(1.1) brightness(0.98);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
}

.about img:hover {
    filter: contrast(1.1) saturate(1.2) brightness(1.02);
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl);
}

/* Brand Logo Enhancement */
.navbar-brand img {
    filter: contrast(1.1) saturate(1.1) brightness(1.05);
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
}

/* Instagram-Style Social Media Button Enhancements */
.btn.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* Glass morphism background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.btn.social-btn:hover::before {
    opacity: 1;
    animation: shimmer 0.6s ease-out;
}

.btn.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Facebook Instagram-style Button with Glass Effect */
.btn.social-btn.facebook {
    background: linear-gradient(135deg, 
        rgba(24, 119, 242, 0.9) 0%, 
        rgba(59, 89, 152, 0.9) 100%);
    color: white;
}

.btn.social-btn.facebook:hover {
    background: linear-gradient(135deg, 
        rgba(22, 111, 229, 0.95) 0%, 
        rgba(45, 67, 115, 0.95) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

/* Twitter Instagram-style Button with Glass Effect */
.btn.social-btn.twitter {
    background: linear-gradient(135deg, 
        rgba(29, 161, 242, 0.9) 0%, 
        rgba(13, 139, 217, 0.9) 100%);
    color: white;
}

.btn.social-btn.twitter:hover {
    background: linear-gradient(135deg, 
        rgba(13, 139, 217, 0.95) 0%, 
        rgba(10, 106, 168, 0.95) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

/* Instagram Button with Glass Effect (Reference Style) */
.btn.social-btn.instagram {
    background: linear-gradient(135deg, 
        rgba(131, 58, 180, 0.9) 0%, 
        rgba(253, 29, 29, 0.9) 50%, 
        rgba(252, 176, 69, 0.9) 100%);
    color: white;
}

.btn.social-btn.instagram:hover {
    background: linear-gradient(135deg, 
        rgba(114, 9, 183, 0.95) 0%, 
        rgba(233, 30, 99, 0.95) 50%, 
        rgba(245, 124, 0, 0.95) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(131, 58, 180, 0.4);
}

/* LinkedIn Instagram-style Button with Glass Effect */
.btn.social-btn.linkedin {
    background: linear-gradient(135deg, 
        rgba(0, 119, 181, 0.9) 0%, 
        rgba(0, 88, 133, 0.9) 100%);
    color: white;
}

.btn.social-btn.linkedin:hover {
    background: linear-gradient(135deg, 
        rgba(0, 88, 133, 0.95) 0%, 
        rgba(0, 64, 102, 0.95) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

/* YouTube Instagram-style Button with Glass Effect */
.btn.social-btn.youtube {
    background: linear-gradient(135deg, 
        rgba(255, 0, 0, 0.9) 0%, 
        rgba(204, 0, 0, 0.9) 100%);
    color: white;
}

.btn.social-btn.youtube:hover {
    background: linear-gradient(135deg, 
        rgba(204, 0, 0, 0.95) 0%, 
        rgba(153, 0, 0, 0.95) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

/* Enhanced Shimmer Animation for Social Buttons */
@keyframes socialShimmer {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(200%); }
}

.btn.social-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    transform: rotate(45deg) translateX(-200%);
    transition: transform 0.6s ease;
}

.btn.social-btn:hover::after {
    transform: rotate(45deg) translateX(200%);
}

.navbar-brand:hover img {
    filter: contrast(1.2) saturate(1.2) brightness(1.1);
    transform: scale(1.05);
}

/* Background Image Enhancements & Performance */
.bg-breadcrumb {
    /* Use scroll instead of fixed for mobile performance */
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../img/breadcrumb.png');
    position: relative;
    overflow: hidden;
    /* Enable hardware acceleration */
    transform: translateZ(0);
    will-change: transform;
    /* Optimize for mobile devices */
    min-height: 300px;
}

/* Enhanced background for desktop only */
@media (min-width: 1024px) {
    .bg-breadcrumb {
        background-attachment: fixed;
        min-height: 400px;
    }
}

/* Mobile-optimized background */
@media (max-width: 768px) {
    .bg-breadcrumb {
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
        /* Reduce height on mobile for better performance */
        min-height: 250px;
        /* Use smaller image for mobile if available */
        background-image: url('../img/breadcrumb.png');
    }
}

/* Ultra-mobile optimization */
@media (max-width: 480px) {
    .bg-breadcrumb {
        min-height: 200px;
        /* Further optimize for very small screens */
        background-size: cover;
        background-position: center;
    }
}

.bg-breadcrumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 58, 102, 0.85) 0%,
        rgba(124, 193, 66, 0.15) 50%,
        rgba(0, 58, 102, 0.9) 100%
    );
    z-index: 1;
}

.bg-breadcrumb > * {
    position: relative;
    z-index: 2;
}

/* Image Hover Effects */
.hover-zoom {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.hover-zoom img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-zoom:hover img {
    transform: scale(1.1);
}

/* Performance-Optimized Image Filters */
.img-warm {
    filter: sepia(0.1) saturate(1.2) contrast(1.1) brightness(1.05);
    /* Enable GPU acceleration for better performance */
    transform: translateZ(0);
    will-change: filter;
}

.img-cool {
    filter: hue-rotate(10deg) saturate(1.1) contrast(1.05) brightness(0.98);
    transform: translateZ(0);
    will-change: filter;
}

.img-vibrant {
    filter: saturate(1.3) contrast(1.2) brightness(1.02);
    transform: translateZ(0);
    will-change: filter;
}

/* Responsive Image Containers */
.responsive-image-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.responsive-image-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Aspect Ratio Containers for consistent layouts */
.aspect-ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1 / 1;
}

/* Optimized Carousel Images */
.carousel-item img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
    /* Preload critical carousel images */
    loading: eager;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 60vh;
        object-position: center top;
    }
    
    .carousel-caption {
        padding: 1rem;
        bottom: 1rem;
    }
    
    .carousel-caption .p-4 {
        padding: 1rem !important;
        max-width: 100% !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 44px;
        height: 44px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .carousel-control-prev {
        left: 1rem;
    }
    
    .carousel-control-next {
        right: 1rem;
    }
    
    .carousel-indicators {
        bottom: 1rem;
        margin-bottom: 0;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        margin: 0 4px;
    }
}

@media (max-width: 480px) {
    .carousel-item img {
        height: 50vh;
        min-height: 300px;
    }
    
    .carousel-caption {
        padding: 0.5rem;
        bottom: 0.5rem;
    }
    
    .carousel-caption h1 {
        font-size: 1.5rem !important;
        line-height: 1.2;
        margin-bottom: 0.5rem !important;
    }
    
    .carousel-caption h4,
    .carousel-caption h5 {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .carousel-caption p {
        font-size: 0.8rem !important;
        line-height: 1.4;
        margin-bottom: 1rem !important;
    }
}

/* Optimized Testimonial Images */
.testimonial img {
    border-radius: 50%;
    border: 4px solid rgba(124, 193, 66, 0.2);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Lazy load testimonial images */
    loading: lazy;
}

/* Performance Monitoring and Optimization */
@media (prefers-reduced-motion: reduce) {
    .img-fluid,
    .service-item img,
    .feature-item img,
    .country-item img,
    .about img {
        transition: none;
        animation: none;
    }
}

/* High DPI Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .high-dpi-image {
        /* Optimize for retina displays */
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Critical Performance Optimizations */

/* Hardware Acceleration for Smooth Animations */
.gpu-accelerated,
.btn,
.card,
.service-item,
.country-item,
.carousel-item,
.back-to-top {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize Paint and Compositing */
.contain-layout {
    contain: layout;
}

.contain-paint {
    contain: paint;
}

.contain-strict {
    contain: strict;
}

/* Reduce Reflows with Fixed Dimensions */
.fixed-dimensions {
    width: 100%;
    height: auto;
    aspect-ratio: attr(width) / attr(height);
}

/* Optimize Background Attachments for Mobile */
@media (max-width: 768px) {
    .bg-breadcrumb,
    .hero-section,
    .parallax-bg {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center !important;
        transform: none !important;
    }

    /* Reduce motion for mobile performance */
    .wow,
    .animated {
        animation-duration: 0.3s !important;
        animation-delay: 0s !important;
    }
}

/* Optimize Heavy Visual Effects for Low-End Devices */
@media (max-width: 480px) {
    .backdrop-blur-sm,
    .backdrop-blur-md,
    .backdrop-blur-lg,
    .backdrop-blur-xl {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }

    /* Simplify shadows for better performance */
    .shadow-lg,
    .shadow-xl,
    .shadow-2xl {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }

    /* Reduce complex gradients */
    .gradient-primary,
    .animated-gradient {
        background: var(--primary-green) !important;
        animation: none !important;
    }
}

/* Connection-Aware Loading */
@media (max-width: 768px) and (prefers-reduced-data: reduce) {
    /* Disable non-essential animations on slow connections */
    .carousel-item img {
        animation: none !important;
        transition: none !important;
    }

    .country-item img,
    .service-item img {
        filter: none !important;
        transition: none !important;
    }
}

/* Optimize Image Containers for Better Performance */
.image-container {
    position: relative;
    overflow: hidden;
    /* Contain repaints to this container */
    contain: layout style paint;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
    /* Optimize image decoding */
    decoding: async;
}

/* Critical Image Loading Hints */
.above-fold img {
    loading: eager;
    fetchpriority: high;
    decoding: sync;
}

.below-fold img {
    loading: lazy;
    fetchpriority: low;
    decoding: async;
}

/* Resource Hints for Better Performance */
.preload-hint {
    /* Use with link rel="preload" */
    font-display: swap;
}

/* Optimize Text Rendering */
body {
    text-rendering: optimizeSpeed;
    font-feature-settings: "kern" 1;
    font-kerning: auto;
}

h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
}

/* Memory Optimization */
.memory-efficient {
    /* Limit memory usage for large elements */
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
}

/* Network Optimization Classes */
.priority-high {
    /* For critical resources */
    importance: high;
}

.priority-low {
    /* For non-critical resources */
    importance: low;
}

/* Progressive Enhancement */
.js .enhanced-only {
    display: block;
}

.no-js .enhanced-only {
    display: none;
}

/* Efficient Animations */
@keyframes efficientFadeIn {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.efficient-animation {
    animation: efficientFadeIn 0.3s ease-out;
    will-change: opacity, transform;
}

.efficient-animation.complete {
    will-change: auto;
}

/* Critical Image Loading Strategy */
.critical-image {
    /* Above-the-fold images should load immediately */
    loading: eager;
}

.lazy-load-image {
    /* Below-the-fold images should lazy load */
    loading: lazy;
    /* Add fade-in effect when loaded */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-load-image.loaded {
    opacity: 1;
}

/* Preload Critical Images */
.preload-image {
    /* For hero/carousel images that need immediate loading */
    loading: eager;
    fetchpriority: high;
}

/* Image Optimization Classes */
.optimize-image {
    /* Enable modern image optimizations */
    image-rendering: auto;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    /* Hardware acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.testimonial:hover img {
    border-color: var(--primary-green);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* Modern Gradient Overlays for Cards */
.gradient-overlay-primary {
    position: relative;
    overflow: hidden;
}

.gradient-overlay-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gradient-overlay-primary:hover::before {
    opacity: 0.9;
}

.gradient-overlay-primary > * {
    position: relative;
    z-index: 2;
}


/* Modern Layout System */
.container-fluid {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

@media (min-width: 768px) {
    .container-fluid {
        padding-left: var(--spacing-xl);
        padding-right: var(--spacing-xl);
    }
}

@media (min-width: 1200px) {
    .container-fluid {
        padding-left: var(--spacing-2xl);
        padding-right: var(--spacing-2xl);
    }
}

/* Enhanced Section Spacing */
.py-5 {
    padding-top: var(--spacing-3xl) !important;
    padding-bottom: var(--spacing-3xl) !important;
}

@media (max-width: 768px) {
    .py-5 {
        padding-top: var(--spacing-2xl) !important;
        padding-bottom: var(--spacing-2xl) !important;
    }
}

/* Modern Card System */
.service-card,
.feature-card,
.country-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: var(--spacing-xl);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before,
.feature-card::before,
.country-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover,
.feature-card:hover,
.country-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(124, 193, 66, 0.3);
}

.service-card:hover::before,
.feature-card:hover::before,
.country-card:hover::before {
    transform: scaleX(1);
}

/* Service Item Enhancements */
.service-item {
    background: #ffffff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-item:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(124, 193, 66, 0.4);
}

.service-item .service-inner {
    padding: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

.service-item .service-inner .bg-primary {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    background: var(--gradient-primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-item:hover .service-inner .bg-primary {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-xl);
}

/* Feature Item Enhancements */
.feature-item {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-item::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    z-index: -1;
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    color: #ffffff;
}

.feature-item:hover::after {
    opacity: 1;
}

/* Country Item Layout */
.country-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.country-item .country-content {
    padding: var(--spacing-xl);
    background: #ffffff;
    position: relative;
    z-index: 2;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
}

.modal-header {
    background: var(--gradient-primary);
    border-bottom: none;
    padding: var(--spacing-xl);
}

.modal-body {
    padding: var(--spacing-xl);
}

.modal-footer {
    border-top: 1px solid var(--neutral-200);
    padding: var(--spacing-lg) var(--spacing-xl);
}

/* Form Enhancements */
.form-control {
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-size-base);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(124, 193, 66, 0.1);
    outline: none;
}

.form-select {
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(124, 193, 66, 0.1);
    outline: none;
}

/* Navigation Enhancements */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: var(--shadow-md);
}

/* Responsive Grid Enhancements */
@media (min-width: 768px) {
    .row > * {
        margin-bottom: var(--spacing-xl);
    }
}

@media (max-width: 767px) {
    .row > * {
        margin-bottom: var(--spacing-lg);
    }
    
    .service-item,
    .feature-item,
    .country-item {
        margin-bottom: var(--spacing-lg);
    }
}

/* Utility Classes */
.glass-morphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
}

.glass-morphism-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
}

/* Responsive Image Gallery & Modern Carousel Enhancements */

/* Modern Image Gallery Grid */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 16/10;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: contrast(1.1) saturate(1.1) brightness(0.95);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: contrast(1.2) saturate(1.3) brightness(1.05);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(124, 193, 66, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h5 {
    color: white;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

/* Masonry Layout for Gallery */
.masonry-gallery {
    column-count: 3;
    column-gap: var(--spacing-lg);
    column-fill: balance;
}

.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    break-inside: avoid;
}

.masonry-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 992px) {
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .masonry-gallery {
        column-count: 1;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Enhanced Country Cards Gallery */
.countries-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    padding: var(--spacing-2xl) 0;
}

.country-card-modern {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    aspect-ratio: 4/5;
}

.country-card-modern:hover {
    transform: translateY(-12px) rotateY(5deg);
    box-shadow: var(--shadow-2xl);
}

.country-card-modern .card-image {
    position: relative;
    height: 70%;
    overflow: hidden;
}

.country-card-modern .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: contrast(1.1) saturate(1.1) brightness(0.9);
}

.country-card-modern:hover .card-image img {
    transform: scale(1.15);
    filter: contrast(1.2) saturate(1.3) brightness(1.1);
}

.country-card-modern .card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(124, 193, 66, 0.3) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.country-card-modern:hover .card-image::before {
    opacity: 1;
}

.country-card-modern .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-xl);
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.country-card-modern:hover .card-content {
    transform: translateY(0);
}

.country-card-modern .card-content h4 {
    color: var(--neutral-900);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

.country-card-modern .card-content p {
    color: var(--neutral-600);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.country-card-modern .card-content .btn {
    font-size: var(--font-size-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
}

/* Lightbox Enhancement */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    transform: scale(0.8) translateY(50px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1) translateY(0);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Service Cards with Image Hover Effects */
.service-image-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.service-image-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.service-image-card .service-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-image-card .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-image-card:hover .service-image img {
    transform: scale(1.1);
}

.service-image-card .service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-image-card:hover .service-image::after {
    opacity: 0.8;
}

.service-image-card .service-content {
    padding: var(--spacing-xl);
    position: relative;
    z-index: 2;
}

/* Testimonial Image Enhancements */
.testimonial-image-enhanced {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
}

.testimonial-image-enhanced img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(124, 193, 66, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.testimonial-image-enhanced::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.testimonial-image-enhanced:hover::before {
    opacity: 1;
}

.testimonial-image-enhanced:hover img {
    transform: scale(1.05);
    border-color: transparent;
    box-shadow: var(--shadow-xl);
}

/* About Section Image Grid */
.about-image-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--spacing-lg);
    height: 500px;
}

.about-image-grid .grid-item {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.about-image-grid .grid-item:first-child {
    grid-row: 1 / 3;
}

.about-image-grid .grid-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.about-image-grid .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-grid .grid-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .about-image-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 200px);
        height: auto;
    }
    
    .about-image-grid .grid-item:first-child {
        grid-row: auto;
    }
}

/* Image Loading Animation */
.image-loading {
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
    border-radius: var(--radius-lg);
}

.image-loaded {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
/* Section Title Enhancement */
.section-title {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.section-title .sub-style {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--primary-green);
}

.section-title .sub-style::before {
    content: "";
    width: 100px;
    position: absolute;
    bottom: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-bottom: -6px;
    margin-left: -100px;
    border: 1px solid var(--neutral-400) !important;
}

.section-title .sub-style::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    margin-top: -8px;
    margin-left: -50px;
    border: 1px solid var(--primary-green) !important;
}

.sub-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    color: var(--primary-green);
}

.sub-title::before {
    content: "";
    width: 100px;
    position: absolute;
    bottom: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-bottom: -8px;
    margin-right: -100px;
    border: 1px solid var(--neutral-400) !important;
}

.sub-title::after {
    content: "";
    width: 50px;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    margin-top: -6px;
    margin-right: -50px;
    border: 1px solid var(--primary-green) !important;
}


/*** Topbar Start ***/
.fixed-top .container {
    transition: 0.5s;
}

.topbar {
    padding: 2px 10px 2px 20px;
    background: var(--bs-primary) !important;
}

.topbar a,
.topbar a i {
    color: #fff !important;
    transition: 0.5s;
}

.topbar-link {
    color: #fff !important;
}

.topbar a i.text-secondary {
    color: #fff !important;
}

/* Ensure topbar text is white */
.topbar a.topbar-link {
    color: #fff !important;
}

.topbar a.topbar-link i {
    color: #fff !important;
}

.topbar a:hover,
.topbar a i:hover {
    color: var(--bs-secondary) !important;
}


/* Removed media query that was hiding topbar on mobile devices */
/*** Topbar End ***/


/*** Navbar ***/
.navbar-light .navbar-nav .nav-link {
    font-family: 'Poppins', sans-serif;
    position: relative;
    margin-right: 25px;
    padding: 35px 0;
    color: var(--bs-primary) !important;
    font-size: 17px;
    font-weight: 400;
    outline: none;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--bs-primary) !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-secondary) !important;
}

.navbar-light .navbar-brand img {
    max-height: 60px;
    transition: .5s;
}

.sticky-top .navbar-light .navbar-brand img {
    max-height: 45px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
}

@media (min-width: 1200px) {
    .navbar .nav-item .dropdown-menu {
        display: none;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        border: 0;
        border-radius: 10px;
        transition: .5s;
        opacity: 0;
    }
    
    .navbar .nav-item .dropdown-menu.show {
        display: block;
        visibility: visible;
        transform: rotateX(0deg);
        opacity: 1;
    }
}

.dropdown .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-secondary);
}

/* Removed hover-based dropdown behavior to work with Bootstrap's click behavior */

@media (max-width: 991.98px) {
    .sticky-top {
        position: relative;
        background: var(--bs-white);
    }

    .navbar.navbar-expand-lg .navbar-toggler {
        padding: 10px 20px;
        border: 1px solid var(--bs-primary) !important;
        color: var(--bs-primary);
    }

    .navbar-light .navbar-collapse {
        margin-top: 15px;
        border-top: 1px solid #DDDDDD;
    }

    .navbar-light .navbar-nav .nav-link,
    .sticky-top .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        margin-left: 0;
        color: var(--bs-dark) !important;
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }
}

@media (min-width: 991.98px) {
    .sticky-top .navbar-light {
        background: var(--bs-light) !important;
    }

    /*** Top and Bottom borders go out ***/
    .navbar-light .navbar-nav .nav-link:after,
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        top: 30px;
        bottom: 30px;
        left: 0px;
        width: 100%;
        height: 2px;
        background: var(--bs-primary);
        opacity: 0;
        transition: all 0.5s;
    }

    .navbar-light .navbar-nav .nav-link:before {
        bottom: auto;
    }

    .navbar-light .navbar-nav .nav-link:after {
        top: auto;
    }

    .navbar-light .navbar-nav .nav-link:hover:before,
    .navbar-light .navbar-nav .nav-link.active:before {
        top: 20px;
        opacity: 1;
    }

    .navbar-light .navbar-nav .nav-link:hover::after,
    .navbar-light .navbar-nav .nav-link.active::after {
        bottom: 20px;
        opacity: 1;
    }
}

#searchModal .modal-content {
    background: rgba(240, 245, 251, 0.5);
}
/*** Navbar End ***/


/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    background: linear-gradient(rgba(0, 58, 102, 0.9), rgba(0, 58, 102, 0.8)), url(../img/breadcrumb.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: initial;
    background-size: cover;
    padding: 100px 0 60px 0;
}
/*** Single Page Hero Header End ***/


/*** Modern Carousel Enhancements ***/
.carousel-header {
    position: relative;
    overflow: hidden;
}

.carousel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(124, 193, 66, 0.1) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.carousel-header .carousel-control-prev .carousel-control-prev-icon,
.carousel-header .carousel-control-next .carousel-control-next-icon {
    width: 4rem;
    height: 4rem;
    margin-left: -60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    background-size: 50% 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.carousel-header .carousel-control-next .carousel-control-next-icon {
    margin-left: 0;
    margin-right: -60px;
}

.carousel-header .carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-header .carousel-control-next:hover .carousel-control-next-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
    background: var(--gradient-primary-hover);
}

.carousel-header .carousel .carousel-indicators {
    padding-bottom: 2rem;
    transition: all 0.3s ease;
}

.carousel-header .carousel .carousel-indicators li {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    margin-right: 15px;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: var(--shadow-md);
}

.carousel-header .carousel .carousel-indicators li.active {
    width: 40px;
    border-radius: 20px;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.1);
}

.carousel-header .carousel-inner .carousel-item {
    position: relative;
    min-height: 100vh;
}

.carousel-header .carousel-inner .carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) saturate(1.2) brightness(0.9);
    transition: all 0.5s ease;
}

.carousel-header .carousel-inner .carousel-item.active img {
    filter: contrast(1.1) saturate(1.2) brightness(1);
}

.carousel-header .carousel-inner .carousel-item .carousel-caption {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: none;
    background-size: cover;
    z-index: 2;
}

.carousel-header .carousel-inner .carousel-item .carousel-caption > div {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-2xl);
}

.carousel-header .carousel-inner .carousel-item h1,
.carousel-header .carousel-inner .carousel-item h4,
.carousel-header .carousel-inner .carousel-item h5 {
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.carousel-header .carousel-inner .carousel-item p {
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 400;
    line-height: 1.7;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .carousel-header {
        height: 700px !important;
    }

    .carousel-header .carousel-control-prev .carousel-control-prev-icon,
    .carousel-header .carousel-control-next .carousel-control-next-icon {
        margin-top: 500px;
        width: 3rem;
        height: 3rem;
    }

    .carousel-header .carousel-control-prev .carousel-control-prev-icon {
        margin-left: 0px;
    }

    .carousel-header .carousel-control-next .carousel-control-next-icon {
        margin-right: 0px;
    }

    .carousel-header .carousel .carousel-indicators {
        padding: 0;
    }
    
    .carousel-header .carousel-inner .carousel-item .carousel-caption > div {
        padding: 1.5rem 1rem;
        margin: 0 1rem;
    }
}
/*** Modern Carousel Enhancements End ***/


/*** Counter Facts Start ***/
.counter-facts {
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0.8)), url(../img/breadcrumb.png);
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
}

.counter-facts .counter {
    position: relative;
    text-align: center;
    width: 200px;
    min-height: 215px;
    padding: 10px 15px;
    margin: 0 auto;
    border-radius: 100px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.2);
    background: var(--bs-white);
}

.counter-facts .counter:before {
    content: "";
    position: absolute;
    height: 105px;
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 10px 10px 0 0;
    background-color: var(--bs-primary);
    
}
.counter-facts .counter .counter-icon {
    position: relative;
    width: 120px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 10px 10px 0 0;
    transform: translateY(-20px);
    font-size: 50px;
    line-height: 90px;
    color: var(--bs-secondary);
    background: rgba(1, 143, 252, 0.5);
    clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.counter-facts .counter .counter-icon:before {
    content: "";
    position: absolute;
    width: 120px;
    height: 90px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px 10px 0 0;
    background: rgba(0, 58, 102, 0.5);
    z-index: -1;
    clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.counter-facts .counter:hover .counter-icon i {
    transform: rotate(360deg);
    transition: all 0.3s ease;
}
.counter-facts .counter h3 {
    color: var(--bs-primary);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}
.counter-facts .counter .counter-value {
    font-size: 30px;
    font-weight: 700;
    display: block;
    color: var(--bs-secondary);
}

@media screen and (max-width: 1200px) {
    .counter-facts .counter { margin-bottom: 40px; 
    }
}
/*** Counter Facts End ***/


/*** service Start ***/
.service .service-item {
    position: relative;
    overflow: hidden;
}

.service .service-item .service-inner .service-title {
    position: relative;
    margin-top: -30px;
    text-align: center;
    transition: 0.5s;
}

.service .service-item .service-inner .service-title .service-content {
    position: absolute;
    bottom: -100%; 
    left: 0;
    margin-left: 30px;
    margin-right: 30px;
    text-align: center;
    border-radius: 10px;
    background: var(--bs-primary);
    opacity: 0;
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-title .service-content {
    bottom: 0;
    opacity: 1;
}

.service .service-item .service-inner .service-title .service-content a h4 {
    border-bottom: 1px solid rgba(256, 256, 256, .1);
}

.service .service-item .service-inner .service-title .service-title-name {
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-title .service-title-name {
    opacity: 1;
    color: var(--bs-white) !important;
}

.service .service-item .service-inner .service-img {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.service .service-item .service-inner .service-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, .5);
    transition: 0.5s;
    opacity: 0;
}

.service .service-item:hover .service-inner .service-img::after {
    height: 100%;
    opacity: 1;
}

.service .service-item .service-inner .service-img img {
    transition: 0.5s;
}

.service .service-item:hover .service-inner .service-img img {
    transform: scale(1.3);
}
/*** Service End ***/


/*** Enhanced Gradient Designs with Icons & Animation Start ***/
/* Service Cards Gradient Enhancement */
.service .service-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.service .service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(124, 193, 66, 0.1) 0%, 
        rgba(124, 193, 66, 0.05) 50%, 
        rgba(0, 58, 102, 0.1) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.service .service-item:hover::before {
    opacity: 1;
}

.service .service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(124, 193, 66, 0.2);
}

/* Service Icon Animation */
.service .service-item .service-inner .bg-primary {
    background: linear-gradient(135deg, #7cc142 0%, #6ba835 100%) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.service .service-item .service-inner .bg-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.service .service-item:hover .service-inner .bg-primary::before {
    animation: shimmer 0.8s ease-in-out;
    opacity: 1;
}

.service .service-item:hover .service-inner .bg-primary i {
    animation: iconBounce 0.6s ease-in-out;
    transform: scale(1.1);
}

/* Counter Section Gradient Enhancement */
.counter-facts {
    background: linear-gradient(135deg, 
        rgba(124, 193, 66, 0.1) 0%, 
        rgba(255, 255, 255, 0.9) 25%,
        rgba(255, 255, 255, 0.8) 75%,
        rgba(0, 58, 102, 0.1) 100%), 
        url(../img/breadcrumb.png);
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
}

.counter-facts .counter {
    position: relative;
    text-align: center;
    width: 200px;
    min-height: 215px;
    padding: 10px 15px;
    margin: 0 auto;
    border-radius: 100px;
    box-shadow: 0 15px 35px rgba(124, 193, 66, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.4s ease;
    overflow: hidden;
}

.counter-facts .counter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(124, 193, 66, 0.1) 0%, 
        rgba(124, 193, 66, 0.05) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 100px;
}

.counter-facts .counter:hover::after {
    opacity: 1;
}

.counter-facts .counter:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 50px rgba(124, 193, 66, 0.3);
}

.counter-facts .counter:before {
    content: "";
    position: absolute;
    height: 105px;
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(135deg, #7cc142 0%, #6ba835 100%);
    transition: all 0.4s ease;
}

.counter-facts .counter:hover:before {
    background: linear-gradient(135deg, #8cd152 0%, #7cc142 100%);
}

.counter-facts .counter .counter-icon {
    position: relative;
    width: 120px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 10px 10px 0 0;
    transform: translateY(-20px);
    font-size: 50px;
    line-height: 90px;
    color: var(--bs-secondary);
    z-index: 2;
    transition: all 0.4s ease;
}

.counter-facts .counter:hover .counter-icon i {
    animation: iconPulse 0.8s ease-in-out;
    color: #ffffff;
}

/* Feature Cards Gradient Enhancement */
.features .feature-item {
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.features .feature-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, 
        rgba(124, 193, 66, 0.1) 0%, 
        rgba(0, 58, 102, 0.1) 100%);
    z-index: 1;
    transition: all 0.5s ease;
}

.features .feature-item:hover::after {
    height: 100%;
}

.features .feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(124, 193, 66, 0.2);
}

.features .feature-item .feature-icon {
    width: 120px; 
    height: 120px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #7cc142 0%, #6ba835 100%);
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.features .feature-item .feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.features .feature-item:hover .feature-icon::before {
    animation: shimmer 1s ease-in-out;
    opacity: 1;
}

.features .feature-item:hover .feature-icon {
    border-radius: 50%;
    background: linear-gradient(135deg, #8cd152 0%, #7cc142 100%);
    transform: scale(1.1);
}

.features .feature-item:hover .feature-icon i {
    animation: iconRotate 0.6s ease-in-out;
    color: #ffffff;
}

/* Enhanced Button Gradients */
.btn.btn-primary {
    background: linear-gradient(135deg, #7cc142 0%, #6ba835 100%) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s ease;
}

.btn.btn-primary:hover::before {
    left: 100%;
}

.btn.btn-primary:hover {
    background: linear-gradient(135deg, #8cd152 0%, #7cc142 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 193, 66, 0.4);
}

.btn.btn-secondary {
    background: linear-gradient(135deg, transparent 0%, rgba(124, 193, 66, 0.1) 100%);
    border: 2px solid #7cc142;
    color: #7cc142;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.btn.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7cc142 0%, #6ba835 100%);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn.btn-secondary:hover::before {
    left: 0;
}

.btn.btn-secondary:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 193, 66, 0.4);
}

/* Modern Color Palette & CSS Variables */
:root {
    /* Primary Brand Colors */
    --primary-green: #7cc142;
    --primary-green-dark: #6ba835;
    --primary-green-light: #8cd152;
    --primary-green-ultra-light: #a8e06a;
    
    /* Modern Neutral Palette */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* Modern Shadow System */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Brand Gradient System */
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-dark) 100%);
    --gradient-primary-hover: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-green) 100%);
    --gradient-primary-light: linear-gradient(135deg, var(--primary-green-ultra-light) 0%, var(--primary-green-light) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(124, 193, 66, 0.1) 0%, rgba(124, 193, 66, 0.05) 100%);
    
    /* Modern Spacing System */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius System */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Modern Typography Scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
}

/* Enhanced Glass Morphism Effects */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.glass-effect-dark {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-2xl);
}

/* Modern Card Enhancements */
.modern-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-green);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-card:hover::before {
    opacity: 1;
}

/* Hero Section Gradient Overlay */
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
}

.bg-breadcrumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(124, 193, 66, 0.8) 0%, 
        rgba(0, 58, 102, 0.6) 50%,
        rgba(124, 193, 66, 0.8) 100%);
    z-index: 1;
}

.bg-breadcrumb .container {
    position: relative;
    z-index: 2;
}

/* Country Cards Gradient Enhancement */
.country .country-item {
    position: relative;
    transition: all 0.4s ease;
    border-radius: 15px;
    overflow: hidden;
}

.country .country-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(124, 193, 66, 0.1) 0%, 
        rgba(0, 58, 102, 0.1) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.country .country-item:hover::before {
    opacity: 1;
}

.country .country-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(124, 193, 66, 0.2);
}

.country .country-item .country-flag {
    transition: all 0.4s ease;
}

.country .country-item:hover .country-flag {
    transform: scale(1.1);
}

/* Animation Keyframes */
@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@keyframes iconRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Loading Animation for Counters - Enhanced with NaN Prevention */
.counter-value {
    background: linear-gradient(45deg, #7cc142, #6ba835, #7cc142);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 2s ease-in-out infinite;
    font-weight: bold;
    min-width: 2rem;
    display: inline-block;
    position: relative;
}

/* Ensure counter never shows NaN or empty values */
.counter-value:empty::before {
    content: "0";
    -webkit-text-fill-color: #7cc142;
}

/* Hide any potential NaN text */
.counter-value:contains("NaN") {
    visibility: hidden;
}

/* Animation when counter completes */
.counter-complete {
    animation: counterGlow 0.5s ease-in-out;
}

@keyframes counterGlow {
    0% { 
        transform: scale(1);
        text-shadow: none;
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 0 0 10px rgba(124, 193, 66, 0.6);
    }
    100% { 
        transform: scale(1);
        text-shadow: none;
    }
}

/* Enhanced Section Titles */
.section-title .sub-title {
    background: linear-gradient(135deg, #7cc142 0%, #6ba835 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service .service-item:hover {
        transform: translateY(-5px);
    }
    
    .features .feature-item:hover {
        transform: translateY(-5px);
    }
    
    .counter-facts .counter:hover {
        transform: translateY(-3px) scale(1.02);
    }
    
    .country .country-item:hover {
        transform: translateY(-5px);
    }
}
/*** Enhanced Gradient Designs with Icons & Animation End ***/


/*** Features Start ***/
.features .feature-item {
    position: relative;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.features .feature-item::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(0, 58, 102, 0.1);
    z-index: -1;
    transition: 0.5s;
}

.features .feature-item:hover::after {
    height: 100%;
}

.features .feature-item .feature-icon {
    width: 120px; 
    height: 120px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bs-light);
    transition: 0.5s;
}

.features .feature-item:hover .feature-icon {
    border-radius: 50%;
    background: var(--bs-white) !important;
}

.features .feature-item .feature-icon i {
    transition: 0.5s;
}

.features .feature-item:hover .feature-icon i {
    color: var(--bs-secondary) !important;
    transform: rotate(360deg);
    transition: all 0.5s ease;
}
/*** Features End ***/


/*** Country Start ***/
.country .country-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.country .country-item .rounded {
    overflow: visible !important;
}

.country .country-item img {
    object-fit: cover;
    height: 250px;
    width: 100%;
}

.country .country-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 58, 102, 0.7);
    border-radius: 10px;
    transition: 0.5s;
    z-index: 1;
}

.country .country-item:hover::after {
    height: 100%;
}

.country .country-item .country-flag {
    position: absolute;
    width: 90px; 
    height: 90px; 
    border-radius: 50%;
    top: -45px; 
    left: 50%; 
    transform: translateX(-50%);
    transition: 0.5s;
    z-index: 2;
}

.country .country-item .country-flag img {
    border: 5px solid var(--bs-white);
    transition: 0.5s;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country .country-item:hover .country-flag img {
    border: 5px solid var(--bs-white);
    transform: rotate(360deg);
    transition: all 0.5s ease;
}

.country .country-item .country-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    opacity: 0;
    z-index: 3;
}

.country .country-item:hover .country-name {
    opacity: 1;
}

.country .country-item:hover img {
    transform: scale(1.1);
}

.country .country-item .country-name a.fs-4 {
    transition: 0.5s;
}

.country .country-item .country-name a.fs-4:hover {
    color: var(--bs-secondary) !important;
}
/*** Country End ***/


/*** testimonial Start ***/
.testimonial .owl-carousel.testimonial-carousel {
    position: relative;
}

.testimonial .owl-carousel.testimonial-carousel .testimonial-item .testimonial-content {
    position: relative;
    border-radius: 10px;
    background: var(--bs-light);
}

.testimonial .owl-carousel.testimonial-carousel .testimonial-item .testimonial-content::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 45px;
    bottom: -20px;
    left: 30px;
    transform: rotate(45deg);
    background: var(--bs-light);
    z-index: -1;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    font-size: 40px;
    color: var(--bs-primary);
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev {
    margin-right: 40px;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next {
    transition: 0.5s;
}

.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial .owl-carousel.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-secondary);
}
/*** testimonial end ***/


/*** training Start ***/
.training .training-item .training-inner {
    position: relative;
}

.training .training-item .training-inner .training-title-name {
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    padding: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
    display: flex; 
    flex-direction: column;
    justify-content: end;
    text-align: center;
    transition: 0.5s;
}

.training .training-item {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.training .training-item:hover .training-inner .training-title-name {
    background: rgba(0, 58, 102, 0.5);
}

.training .training-item:hover .training-inner .training-title-name a {
    opacity: 1;
    color: var(--bs-white) !important;
}

.training .training-item .training-inner img {
    transition: 0.5s;
}

.training .training-item:hover .training-inner img {
    transform: scale(1.3);
}

.training .training-item .training-content {
    position: relative;
    width: 100%;
    bottom: 0;
    left: 0;
    transition: 0.5s;
    opacity: 1;
    visibility: visible;
}

.training .training-item:hover .training-content {
    bottom: 0;
}  
/*** training End ***/


/*** Contact Start ***/
.contact .office .office-item {
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.2);
    background: var(--bs-light);
    transition: 0.5s;
}

.contact .office .office-item:hover {
    box-shadow: 20px 20px 20px rgba(0, 58, 102, 0.3);
}

.contact .office .office-item .office-img {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.contact .office .office-item .office-img img {
    transition: 0.5s;
}

.contact .office .office-item:hover .office-img img {
    transform: scale(1.3);
}

.contact .office .office-item .office-content a.text-secondary,
.contact .office .office-item .office-content a.text-muted {
    transition: 0.5s;
}

.contact .office .office-item .office-content a.text-muted:hover {
    color: var(--bs-secondary) !important;
}

.contact .office .office-item .office-content a.text-secondary:hover {
    color: var(--bs-primary) !important;
}
/*** Contact End ***/


/*** Footer Start ***/
.footer {
    background: var(--bs-primary);
}
.footer .footer-item a {
    line-height: 30px;
    color: var(--bs-white);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 30px;
}

.footer .footer-item a:hover {
    letter-spacing: 2px;
    color: var(--bs-secondary);
}

/*** Footer End ***/


/*** copyright Start ***/
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--bs-secondary) !important;
}
/*** copyright end ***/