/*<!-- Free IT Audit Modal - Auto Pops Up After 30 Seconds -->*/

    /* Modal Styles */
    #freeAuditModal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.9);
        z-index: 9999;
        align-items: flex-start;
        justify-content: center;
        backdrop-filter: blur(5px);
        overflow-y: auto;
        padding: 50px 20px;
    }
    
    @keyframes modalSlideUp {
        from { transform: translateY(30px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    @keyframes modalSlideDown {
        from { transform: translateY(-30px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    
    @keyframes modalSlideInLeft {
        from { transform: translateX(-30px); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    
    @keyframes modalSlideInRight {
        from { transform: translateX(30px); opacity: 0; }
        to { transform: translateX(0); opacity: 1; }
    }
    
    @keyframes modalFadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    @keyframes modalPulse {
        0% { box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5), 0 0 0 0 rgba(220,38,38,0.2); }
        50% { box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5), 0 0 0 10px rgba(220,38,38,0); }
        100% { box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5), 0 0 0 0 rgba(220,38,38,0); }
    }
    
    @keyframes modalFloat {
        0%, 100% { transform: translateY(0) translateX(0); }
        25% { transform: translateY(-10px) translateX(5px); }
        50% { transform: translateY(-5px) translateX(-5px); }
        75% { transform: translateY(-15px) translateX(3px); }
    }
    
    @keyframes modalShimmer {
        0% { left: -100%; }
        20% { left: 100%; }
        100% { left: 100%; }
    }
    
    .modal-particle {
        animation: modalFloat 6s infinite;
    }
    
    .modal-shimmer {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
        animation: modalShimmer 2s infinite;
    }
    
    /* Form Styles inside Modal */
    .assessment-form-container {
        background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
        max-width: 650px;
        width: 100%;
        max-height: none;
        overflow-y: visible;
        border-radius: 28px;
        position: relative;
        box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
        border: 1px solid rgba(220,38,38,0.3);
        animation: modalPulse 3s infinite;
        margin: 0 auto;
    }
    
    .form-header {
        text-align: center;
        padding: 35px 30px 25px 30px;
        background: #000000;
        border-radius: 28px 28px 0 0;
        color: white;
    }
    
    .form-header h3 {
        font-size: 28px;
        font-weight: 800;
        margin-bottom: 15px;
        line-height: 1.3;
        color: white;
    }
    
    .form-price-tag {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .old-price {
        font-size: 24px;
        font-weight: 600;
        text-decoration: line-through;
        color: rgba(255,255,255,0.6);
    }
    
    .free {
        font-size: 38px;
        font-weight: 900;
        color: #dc2626;
    }
    
    .certified-auditor-badge {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        background: rgba(255,255,255,0.1);
        backdrop-filter: blur(10px);
        padding: 12px 20px;
        border-radius: 50px;
        margin-top: 10px;
        border: 1px solid rgba(220,38,38,0.3);
    }
    
    .certified-auditor-badge i {
        font-size: 28px;
        color: #dc2626;
    }
    
    .certified-auditor-badge span {
        font-size: 12px;
        opacity: 0.8;
        display: block;
        color: white;
    }
    
    .certified-auditor-badge strong {
        font-size: 14px;
        display: block;
        color: white;
    }
    
    .form-body {
        padding: 30px;
        background: white;
        border-radius: 0 0 28px 28px;
    }
    
    .form-group {
        margin-bottom: 20px;
        position: relative;
    }
    
    .form-label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #111827;
        font-size: 13px;
    }
    
    .form-label i {
        color: #dc2626;
        margin-right: 6px;
        width: 16px;
    }
    
    .form-control, .form-select {
        width: 100%;
        padding: 12px 15px 12px 40px;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 14px;
        transition: all 0.3s;
        background: white;
        color: #111827;
    }
    
    /* FIX: Force dropdown to open downward */
    .form-select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 16px;
        cursor: pointer;
    }
    
    /* Critical fix for dropdown direction */
    select.form-select {
        transform: none !important;
        position: relative;
        z-index: 1;
    }
    
    /* Ensure dropdown list opens downward */
    select:focus {
        outline: none;
        border-color: #dc2626;
    }
    
    select option {
        padding: 10px;
        background: white;
        color: #111827;
    }
    
    /* Two columns layout */
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .btn-submit {
        width: 100%;
        background: #dc2626;
        color: white;
        border: none;
        padding: 14px 20px;
        border-radius: 14px;
        font-weight: 700;
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: relative;
        overflow: hidden;
        margin-top: 10px;
    }
    
    .btn-submit:hover {
        background: #991b1b;
        transform: translateY(-2px);
        box-shadow: 0 20px 25px -8px rgba(220,38,38,0.4);
    }
    
    .form-footer {
        text-align: center;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #e5e7eb;
    }
    
    .no-spam {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        color: #6b7280;
        font-size: 12px;
    }
    
    .no-spam i {
        color: #dc2626;
    }
    
    /* Close Button */
    .close-modal-btn {
        position: absolute;
        top: 15px;
        right: 15px;
        background: #dc2626;
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        font-size: 28px;
        cursor: pointer;
        color: white;
        transition: all 0.3s;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        box-shadow: 0 4px 10px rgba(220,38,38,0.3);
    }
    
    .close-modal-btn:hover {
        background-color: #991b1b;
        transform: rotate(90deg) scale(1.1);
    }
    
    /* Success Toast */
    #successToast {
        position: fixed;
        top: 20px;
        right: 20px;
        background: #111827;
        color: white;
        padding: 16px 24px;
        border-radius: 12px;
        box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
        z-index: 10001;
        transform: translateX(400px);
        transition: transform 0.3s ease-out;
        display: flex;
        align-items: center;
        gap: 12px;
        border-left: 4px solid #dc2626;
    }
    
    #successToast i {
        color: #dc2626;
    }
    
    /* Responsive */
    @media (max-width: 700px) {
        #freeAuditModal {
            padding: 20px 15px;
            align-items: center;
        }
        
        .assessment-form-container {
            max-width: 100%;
            margin: 0;
        }
        
        .close-modal-btn {
            top: 10px !important;
            right: 10px !important;
            width: 40px !important;
            height: 40px !important;
            font-size: 24px !important;
        }
        
        .form-header h3 {
            font-size: 22px !important;
        }
        
        .free {
            font-size: 28px !important;
        }
        
        .form-row {
            grid-template-columns: 1fr;
            gap: 0;
        }
        
        .form-control, .form-select {
            font-size: 16px !important;
        }
    }
/**/
/*************************************************/
/**/
    @keyframes fadeSlideUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeSlideDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @keyframes bounceSoft {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(8px); }
    }
    .logo-carousel i:hover {
        color: #dc2626 !important;
        transform: scale(1.05);
        transition: all 0.2s;
    }
    
    /* Desktop/Laptop: ensure proper spacing */
    @media screen and (min-width: 1200px) {
        .trust-bar-desktop {
            margin-bottom: 1rem !important;
        }
        
        .hero-messaging h1 {
            margin-bottom: 0.8rem !important;
        }
        
        .hero-messaging p {
            margin-bottom: 1.2rem !important;
        }
        
        .scroll-indicator {
            padding: 1rem 0 1.5rem 0 !important;
        }
    }
    
    /* Mobile styles */
    @media screen and (max-width: 768px) {
        .trust-bar-desktop {
            display: none !important;
        }
        
        .trusted-companies-desktop {
            display: none !important;
        }
        
        [style*="grid-template-columns: 1fr 1fr"] {
            grid-template-columns: 1fr !important;
            gap: 2rem !important;
        }
        
        .hero-messaging {
            order: 1;
        }
        
        .hero-product {
            order: 2;
        }
        
        .scroll-indicator {
            padding: 1rem 0 1.5rem 0 !important;
        }
    }
    
    dotlottie-wc {
        max-width: 100%;
        height: auto;
    }

    @keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220,38,38,0.4); } 70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(220,38,38,0); } 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220,38,38,0); } }
    @keyframes modalPulse { 0% { box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5), 0 0 0 0 rgba(220,38,38,0.2); } 50% { box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5), 0 0 0 10px rgba(220,38,38,0); } 100% { box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5), 0 0 0 0 rgba(220,38,38,0); } }
    .particle { animation: float 6s infinite; }
    @keyframes float { 0%, 100% { transform: translateY(0) translateX(0); } 25% { transform: translateY(-10px) translateX(5px); } 50% { transform: translateY(-5px) translateX(-5px); } 75% { transform: translateY(-15px) translateX(3px); } }
    @media screen and (max-width: 700px) {
        #pricingModal > div { max-width: 95% !important; width: 95% !important; padding: 45px 15px 20px 15px !important; max-height: 85vh !important; margin: 10px !important; }
        #pricingModal > div > form > div[style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; gap: 0 !important; }
        #closeModal { top: 10px !important; right: 10px !important; width: 44px !important; height: 44px !important; font-size: 28px !important; background: #dc2626 !important; color: white !important; position: fixed !important; }
        #pricingModal h3 { font-size: 22px !important; }
        #pricingModal input { font-size: 16px !important; min-height: 44px !important; }
        #pricingModal button[type="submit"] { min-height: 48px !important; }
    }
    @media screen and (max-width: 480px) {
        #pricingModal > div { padding: 40px 12px 15px 12px !important; }
        #pricingModal h3 { font-size: 20px !important; }
    }

      
                @media (min-width: 768px) {
                    .quick-stats-grid {
                        grid-template-columns: repeat(2, 1fr) !important;
                    }
                }
                @media (min-width: 1024px) {
                    .quick-stats-grid {
                        grid-template-columns: repeat(4, 1fr) !important;
                    }
                }
            
    /* Animations */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Hover effect for progress bars */
    .stat-card:hover .stat-progress-bar {
        width: 0% !important;
    }
    
    /* Smooth transitions */
    .stat-card > div > div {
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
        .quick-stats-grid {
            gap: 1rem;
        }
        
        .stat-card > div {
            padding: 1.5rem;
        }
        
        .stat-card h3 {
            font-size: 1.125rem;
        }
        
        .stat-card p {
            font-size: 0.7rem;
        }
    }
    
    @media (max-width: 640px) {
        .stat-card > div {
            padding: 1.25rem;
        }
        
        .stat-card .fa-bolt,
        .stat-card .fa-dollar-sign,
        .stat-card .fa-star,
        .stat-card .fa-headset {
            font-size: 1rem;
        }
        
        .stat-card .stat-icon {
            width: 3rem;
            height: 3rem;
        }
        
        .stat-card h3 {
            font-size: 1rem;
        }
        
        .stat-card .stat-number {
            font-size: 1.75rem;
        }
    }

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-288px * 9 - 1.5rem * 9));
    }
}

/* Alternative - More Forgiving Mega Menu */
.mega-menu-wrapper {
    position: static !important;
}

/* Larger hover bridge */
.mega-menu-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px; /* Increased from 20px to 30px */
    background: transparent;
    z-index: 9998;
    pointer-events: none;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    transition-delay: 0s;
    z-index: 9999;
    /* Create a larger hover target */
    padding-top: 20px;
    margin-top: -20px;
}

/* Keep menu open when hovering any related element */
.mega-menu-wrapper:hover .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition-delay: 0s;
}

/* Add delay when leaving - gives time to reach the menu */
.mega-menu-wrapper:not(:hover) .mega-menu {
    transition-delay: 0.3s; /* 300ms delay before starting to close */
    opacity: 0;
    visibility: hidden;
}

/* But if you're already in the menu, don't close immediately when leaving the parent */
.mega-menu:not(:hover) {
    transition-delay: 10s; /* 200ms delay before closing when leaving menu */
}


@keyframes float-slow {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}
.animate-float-slow {
    animation: float-slow 8s ease-in-out infinite;
}


.animate-slide {
    animation: slide 45s linear infinite;
    width: fit-content;
}

.animate-slide:hover {
    animation-play-state: paused;
}

/* Smooth transitions */
.group {
    transition: all 0.3s ease;
}

/* Custom scrollbar hiding */
.overflow-hidden {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.overflow-hidden::-webkit-scrollbar {
    display: none;
}

/* Partners Slider Styles */
.partners-slider-track {
    animation: slide 60s linear infinite;
}

.partners-slider-track:hover {
    animation-play-state: paused;
}

.partner-slide {
    width: 200px;
}

.partner-card {
    position: relative;
    height: 140px;
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.partner-card:hover {
    transform: translateY(-8px);
    border-color: #dc2626;
    box-shadow: 0 20px 40px -12px rgba(220, 38, 38, 0.15);
}

/* Fix for achievement cards - ensures white background with black text */
.achievements-section .partner-card,
.partners-slider-track .partner-card {
    background: white !important;
    border: 1px solid #e5e7eb;
}

.partner-card .partner-image-wrapper span {
    color: #111827 !important; /* Dark gray for text */
}

.partner-card .partner-image-wrapper span.text-xs {
    color: #6b7280 !important; /* Medium gray for subtitles */
}

/* Hover overlay text should be white */
.partner-card:hover .partner-overlay .partner-name,
.partner-card:hover .partner-overlay .partner-desc {
    color: white !important;
}

/* Ensure icons are visible */
.partner-card .partner-image-wrapper i {
    color: white;
}

.partner-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-image {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-card:hover .partner-image {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1);
}

.partner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 0, 0, 0.9) 0%, transparent 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.partner-card:hover .partner-overlay {
    opacity: 1;
}

.partner-info {
    transform: translateY(10px);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-card:hover .partner-info {
    transform: translateY(1);
}

.partner-name {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.partner-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
}

.partner-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-card:hover .partner-badge {
    opacity: 1;
    transform: scale(1);
}

.slider-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.slider-nav-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -8px rgba(220, 38, 38, 0.2);
}

.slider-progress {
    width: 0%;
    animation: progress 60s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 10 - 8rem));
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Clients Slider - Right to Left Direction */
.clients-slider-track {
    animation: slide-right 60s linear infinite;
}

.clients-slider-track:hover {
    animation-play-state: paused;
}

@keyframes slide-right {
    0% {
        transform: translateX(calc(-200px * 10 - 8rem));
    }
    100% {
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .partner-slide {
        width: 160px;
    }
    
    .partner-card {
        height: 120px;
        padding: 16px;
    }
    
    .partner-image {
        max-width: 100px;
        max-height: 50px;
    }
    
    @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-160px * 10 - 6.4rem));
        }
    }
    
    .clients-slider-track {
        animation: slide-right-mobile 60s linear infinite;
    }
    
    @keyframes slide-right-mobile {
        0% {
            transform: translateX(calc(-160px * 10 - 6.4rem));
        }
        100% {
            transform: translateX(0);
        }
    }
}

@media (max-width: 640px) {
    .partner-slide {
        width: 140px;
    }
    
    .partner-card {
        height: 100px;
        padding: 12px;
    }
    
    .partner-image {
        max-width: 90px;
        max-height: 40px;
    }
    
    @keyframes slide {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-140px * 10 - 5.6rem));
        }
    }
    
    .clients-slider-track {
        animation: slide-right-small 60s linear infinite;
    }
    
    @keyframes slide-right-small {
        0% {
            transform: translateX(calc(-140px * 10 - 5.6rem));
        }
        100% {
            transform: translateX(0);
        }
    }
}

</style>

<style>
/* Animation Keyframes */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes pulseSlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* Animation Classes */
.animate-slide-up {
    animation: slideUp 1s ease-out forwards;
}

.animate-slide-down {
    animation: slideDown 1s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 1s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-zoom-in {
    animation: zoomIn 1s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-pulse-slow {
    animation: pulseSlow 2s infinite;
}
/* Enhanced Hero Slider Transitions */
.hero-slide {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.hero-slide .slide-content {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
    will-change: opacity, transform;
}

.hero-slide .slide-content > * {
    animation-fill-mode: both;
}

/* Active slide indicator */
.slider-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot.active {
    background-color: #dc2626 !important;
    opacity: 1 !important;
    transform: scale(1.2);
}

/* Arrow hover effects */
#prevSlide, #nextSlide {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#prevSlide:hover, #nextSlide:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

#prevSlide:hover {
    transform: translateY(-50%) scale(1.2) translateX(-4px);
}

#nextSlide:hover {
    transform: translateY(-50%) scale(1.2) translateX(4px);
}

/* Ensure slide content is properly positioned */
.slide-content-container {
    position: relative;
    z-index: 25;
}

/* Prevent FOUC (Flash of Unstyled Content) */
.hero-slide:first-child {
    opacity: 1;
    z-index: 20;
}

.hero-slide:not(:first-child) {
    opacity: 0;
    z-index: 10;
}
/* Mobile First Approach - Center content on all mobile devices */
@media (max-width: 768px) {
    #home .slide-content-container {
        max-width: 90% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }
    
    #home .slide-content {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    #home .slide-content h2,
    #home .slide-content p,
    #home .slide-content span,
    #home .slide-content .slide-buttons,
    #home .slide-content .star-rating {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Fix for heading spans - inherit font size from parent */
    #home .slide-content h2 .heading-span {
        font-size: inherit !important;
        line-height: inherit !important;
        font-weight: inherit !important;
        display: inline !important;
    }
    
    #home .slide-content h2 br {
        display: none; /* Removes line breaks on mobile for better centering */
    }
    
    #home .slide-content h2 {
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    }
    
    #home .slide-content p {
        max-width: 100% !important;
        font-size: clamp(1rem, 4vw, 1.2rem) !important;
    }
    
    #home .slide-content span:not(.heading-span) {
        font-size: clamp(0.8rem, 3.5vw, 1rem) !important;
    }
    
    #home .slide-content .slide-buttons {
        justify-content: center !important;
        width: 100% !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    #home .slide-content .slide-buttons a {
        white-space: normal !important;
        text-align: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
    
    #home .slide-content .star-rating {
        justify-content: center !important;
    }
    
    /* Adjust padding for mobile */
    #home > div > div[style*="padding: 0 clamp(1rem, 5vw, 6rem)"] {
        padding: 0 1.5rem !important;
    }
}

/* Small Mobile Devices (320px and up) */
@media (min-width: 320px) and (max-width: 767px) {
    #home .hero-slider-controls {
        bottom: 1rem;
    }
}

/* Mobile Devices (375px and up) */
@media (min-width: 375px) and (max-width: 767px) {
    #home .container {
        padding: 0 1.5rem;
    }
}

/* Mobile Large (425px and up) */
@media (min-width: 425px) and (max-width: 767px) {
    #home .container {
        padding: 0 2rem;
    }
}

/* Tablet (768px and up) */
@media (min-width: 768px) {
    #home .container {
        padding: 0 3rem;
    }
    
    #home h1, #home h2 {
        line-height: 1.3;
    }
    
    #home p {
        line-height: 1.7;
    }
    
    #home .hero-slider-controls {
        bottom: 1.5rem;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    #home .lg-stat-card {
        display: block !important;
    }
    
    #home .container {
        padding: 0 4rem;
    }
    
    #home .hero-slider-controls {
        bottom: 2rem;
    }
    
    #home .slider-arrow {
        opacity: 0.7;
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    #home .container {
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 4rem;
    }
}

/* Extra Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    #home .container {
        max-width: 1400px;
        padding: 0 5rem;
    }
    
    #home h1, #home h2 {
        font-size: clamp(3rem, 4vw, 4.5rem);
    }
    
    #home p {
        font-size: clamp(1.25rem, 1.8vw, 1.75rem);
    }
    
    #home a {
        font-size: clamp(1rem, 1.5vw, 1.5rem);
        padding: clamp(1rem, 1.5vw, 1.5rem) clamp(2rem, 3vw, 3rem);
    }
}

/* 4K Ultra HD (2560px and up) */
@media (min-width: 2000px) {
    #home > div {
        max-height: 1400px;
    }
    
    #home .container {
        max-width: 1800px;
        padding: 0 8rem;
    }
    
    #home h1, #home h2 {
        font-size: clamp(4rem, 3.5vw, 6rem);
        margin-bottom: 2rem;
    }
    
    #home p {
        font-size: clamp(1.5rem, 1.5vw, 2.25rem);
        margin-bottom: 3rem;
        max-width: 900px;
    }
    
    #home .slide-content > span {
        font-size: clamp(1.25rem, 1.2vw, 1.75rem);
        padding: 1rem 2.5rem;
        margin-bottom: 2rem;
    }
    
    #home a {
        font-size: clamp(1.25rem, 1.2vw, 1.75rem);
        padding: 1.25rem 3rem;
        border-radius: 1.5rem;
    }
    
    #home .lg-stat-card > div {
        padding: 2.5rem;
        max-width: 500px;
    }
    
    #home .lg-stat-card span {
        font-size: 1.5rem;
    }
    
    #home .lg-stat-card p {
        font-size: 1.25rem;
    }
    
    #home .lg-stat-card .fa-lock {
        font-size: 2rem;
    }
    
    #home .hero-slider-controls {
        bottom: 3rem;
    }
    
    #home .slider-dot {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    #home .slider-arrow {
        font-size: 5rem;
    }
}

/* 8K Ultra HD (3840px and up) */
@media (min-width: 3840px) {
    #home > div {
        max-height: 1600px;
    }
    
    #home .container {
        max-width: 2400px;
        padding: 0 12rem;
    }
    
    #home h1, #home h2 {
        font-size: clamp(6rem, 3vw, 8rem);
    }
    
    #home p {
        font-size: clamp(2rem, 1.2vw, 3rem);
        max-width: 1200px;
    }
    
    #home .slide-content > span {
        font-size: clamp(1.5rem, 1vw, 2.25rem);
        padding: 1.25rem 3rem;
    }
    
    #home a {
        font-size: clamp(1.5rem, 1vw, 2.25rem);
        padding: 1.5rem 4rem;
    }
    
    #home .lg-stat-card > div {
        padding: 3rem;
        max-width: 600px;
    }
}

/* Landscape Mode Handling */
@media (orientation: landscape) and (max-height: 600px) {
    #home > div {
        min-height: 500px;
    }
    
    #home h1, #home h2 {
        font-size: clamp(1.25rem, 4vh, 2.5rem);
    }
    
    #home p {
        font-size: clamp(0.875rem, 2vh, 1.25rem);
        margin-bottom: 1rem;
    }
    
    #home a {
        padding: 0.5rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* High-DPI Screens (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #home img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    #home {
        display: none;
    }
}
