/* ============================================
   PWA & MOBILE APP STYLES - Lock viewport and prevent zooming
   ============================================ */

/* Lock viewport for mobile app-like experience */
html, body {
    height: 100%;
    width: 100%;
    /* Prevent zoom and selection on mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    /* Prevent text size adjust */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Allow normal scrolling but prevent overscroll */
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* Re-enable text selection for content areas */
.content-area, .card-body, .form-group, .text-content, p, h1, h2, h3, h4, h5, h6 {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Enable form interactions */
input, textarea, select, button, a {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
    -webkit-touch-callout: default;
}

/* PWA standalone mode styles */
@media all and (display-mode: standalone) {
    body {
        padding-top: 0; /* Remove navbar padding in standalone mode */
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    .navbar {
        position: relative; /* Change from fixed in standalone */
    }
    
    /* Add safe area padding for notched devices */
    .container-fluid, .container {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
    
    .navbar {
        padding-top: max(0.5rem, env(safe-area-inset-top));
    }
    
    /* Modern app typography */
    h1, h2, h3, h4, h5, h6 {
        font-family: 'Inter', sans-serif;
        font-weight: 600;
    }
    
    .btn {
        font-family: 'Inter', sans-serif;
        font-weight: 500;
    }
}

/* iOS PWA specific styles */
@supports (-webkit-touch-callout: none) {
    .ios-pwa-fix {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* Prevent zoom on input focus (iOS) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    font-size: 16px !important; /* Prevents zoom on iOS */
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0; /* Remove iOS styling */
}

/* Touch-friendly button sizes */
.btn {
    min-height: 44px; /* iOS touch target size */
    min-width: 44px;
    touch-action: manipulation; /* Disable double-tap zoom */
}

/* Improve touch scrolling */
.card, .modal-content, .offcanvas {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* ============================================
   REFACTORED CSS - All styles from index.php
   ============================================ */

/* Base Styles */
html { 
    scroll-behavior: smooth; 
}

body { 
    padding-top: 80px; 
}

/* Sections */
section { 
    scroll-margin-top: 120px; 
    padding-top: 1rem; 
}

/* Navigation */
.navbar-nav .nav-link.active { 
    color: #0d6efd !important; 
    font-weight: 600; 
}

/* Fade-in animations */
.fade-in-section { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; 
}

.fade-in-section.is-visible { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Performance optimizations */
.carousel-item img {
    will-change: transform;
}

.btn {
    will-change: transform;
}

/* Carousel Container Spacing */
#industryCarousel,
#heroImageCarousel {
    overflow: visible;
}

#industryCarousel .carousel-inner,
#heroImageCarousel .carousel-inner {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

#heroImageCarousel {
    margin-bottom: 20px;
}

/* Industry Carousel Specific */
.industry-carousel-container {
    margin-bottom: 80px;
    padding: 0 20px;
}

/* Modern Carousel Controls */
/* Minimal Carousel Controls */
.minimal-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.minimal-control:hover {
    opacity: 1;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.minimal-control.carousel-control-prev {
    left: -20px;
}

.minimal-control.carousel-control-next {
    right: -20px;
}

.minimal-control .carousel-control-prev-icon,
.minimal-control .carousel-control-next-icon {
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
    filter: invert(0.3);
}

/* Minimal Carousel Indicators */
.minimal-indicators {
    position: static;
    bottom: auto;
    margin: 3rem auto 0 auto;
    justify-content: center;
    display: flex;
    gap: 12px;
    padding: 0;
}

.minimal-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background-color: transparent;
    opacity: 0.7;
    margin: 0;
    text-indent: -9999px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.minimal-indicators button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #28a745;
    opacity: 0;
    transition: all 0.4s ease;
}

.minimal-indicators button:hover {
    opacity: 1;
    transform: scale(1.2);
    border-color: #28a745;
}

.minimal-indicators button:hover::after {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
}

.minimal-indicators button.active {
    background-color: #28a745;
    border-color: #28a745;
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.minimal-indicators button.active::after {
    opacity: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .minimal-control {
        width: 35px;
        height: 35px;
    }
    
    .minimal-control.carousel-control-prev {
        left: -15px;
    }
    
    .minimal-control.carousel-control-next {
        right: -15px;
    }
    
    .minimal-indicators {
        gap: 10px;
        margin: 2rem auto 0 auto;
    }
    
    .minimal-indicators button {
        width: 10px;
        height: 10px;
        border-width: 1.5px;
    }
    
    .minimal-indicators button::after {
        width: 4px;
        height: 4px;
    }
}

.custom-carousel-control.carousel-control-prev {
    left: 15px;
}

.custom-carousel-control.carousel-control-next {
    right: 15px;
}

.custom-carousel-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #0d6efd;
}

.custom-carousel-btn:hover {
    background: rgba(13, 110, 253, 0.9);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.3);
}

.carousel:hover .custom-carousel-control {
    opacity: 1;
}

/* Modern Dot Indicators */
.custom-carousel-indicators {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(13, 110, 253, 0.3);
    background: transparent;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.custom-carousel-indicators button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0d6efd;
    opacity: 0;
    transition: all 0.3s ease;
}

.custom-carousel-indicators button:hover {
    border-color: #0d6efd;
    transform: scale(1.2);
}

.custom-carousel-indicators button:hover::before {
    opacity: 0.5;
}

.custom-carousel-indicators button.active {
    border-color: #0d6efd;
    background: #0d6efd;
    transform: scale(1.3);
}

.custom-carousel-indicators button.active::before {
    opacity: 0;
}

/* Progress Bar Indicator */
.carousel-progress {
    position: absolute;
    bottom: -55px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.carousel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
    border-radius: 2px;
    width: 0%;
    transition: width 4s linear;
}

.carousel-item.active ~ .carousel-progress .carousel-progress-bar {
    animation: progressFill 4s linear infinite;
}

/* Accessibility improvements */
.custom-carousel-control:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.custom-carousel-indicators button:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    animation: slideUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    animation: slideUp 1s ease-out 0.2s both;
}

.badge-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

.badge-icon {
    color: #3b82f6;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin: 0 0 1.5rem 0;
    animation: slideUp 1s ease-out 0.4s both;
}

.title-line {
    display: block;
}

.title-highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 2.5rem 0;
    animation: slideUp 1s ease-out 0.6s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: slideUp 1s ease-out 0.8s both;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    position: relative;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 180px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover, .btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6);
    color: white;
    text-decoration: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: 180px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.btn-primary:hover .btn-shine {
    left: 100%;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    animation: slideUp 1s ease-out 1s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-stars {
    display: flex;
    gap: 0.125rem;
    color: #fbbf24;
}

.star {
    font-size: 1rem;
    animation: twinkle 2s infinite;
}

.star:nth-child(2) { animation-delay: 0.2s; }
.star:nth-child(3) { animation-delay: 0.4s; }
.star:nth-child(4) { animation-delay: 0.6s; }
.star:nth-child(5) { animation-delay: 0.8s; }

.trust-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
}

.floating-stats {
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 3;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    color: white;
    min-width: 150px;
    animation: float 3s ease-in-out infinite;
}

.stat-card-1 { animation-delay: 0s; }
.stat-card-2 { animation-delay: 1s; }
.stat-card-3 { animation-delay: 2s; }

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.stat-trend {
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 600;
    margin-top: 0.25rem;
}

.stat-chart {
    display: flex;
    align-items: end;
    gap: 0.25rem;
    height: 30px;
    margin-bottom: 0.5rem;
}

.chart-bar {
    width: 8px;
    background: linear-gradient(to top, #3b82f6, #8b5cf6);
    border-radius: 4px;
    animation: barGrow 2s ease-out;
}

.chart-bar-40 { height: 40%; }
.chart-bar-70 { height: 70%; }
.chart-bar-100 { height: 100%; }
.chart-bar-85 { height: 85%; }

.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.3);
}

.scroll-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Image Styles */
.carousel-image {
    height: 400px;
    width: 100%;
    object-fit: cover;
}

.hero-image {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

/* Hover Effects */
.hover-text-white:hover {
    color: white !important;
    transition: color 0.2s ease;
}

/* Animations and Keyframes */
@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

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

@keyframes barGrow {
    from { height: 0; }
    to { height: var(--height, 100%); }
}

/* Mobile Responsive */
@media (max-width: 991.98px) { 
    body { 
        padding-top: 70px; 
    }
    section { 
        scroll-margin-top: 90px; 
    } 
}

@media (max-width: 768px) {
    .custom-carousel-control {
        width: 50px;
        height: 50px;
    }
    
    .custom-carousel-control.carousel-control-prev {
        left: 10px;
    }
    
    .custom-carousel-control.carousel-control-next {
        right: 10px;
    }
    
    .custom-carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .custom-carousel-indicators {
        bottom: -35px;
        gap: 8px;
    }
    
    .custom-carousel-indicators button {
        width: 10px;
        height: 10px;
    }
    
    .carousel-progress {
        bottom: -50px;
    }
    
    .industry-carousel-container {
        margin-bottom: 70px !important;
        padding: 0 15px !important;
    }
    
    /* Hero Section Mobile Fixes */
    .hero-section {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-container {
        padding: 0 1rem;
        width: 100%;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: clamp(3rem, 6vw, 3rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
        padding: 0 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem !important;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .trust-item {
        justify-content: center;
    }
    
    .trust-text {
        font-size: 0.85rem;
    }
    
    .floating-stats {
        position: static;
        transform: none;
        display: flex;
        gap: 1rem;
        margin-top: 2rem;
        overflow-x: auto;
        padding: 1rem 0;
    }
    
    .stat-card {
        min-width: 120px;
        padding: 1rem;
        margin-bottom: 0;
    }
    
    .hero-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .trust-divider {
        display: none;
    }
}

/* ============================================
   MOBILE AUDIT ENHANCEMENTS
   Production-level responsive fixes
   ============================================ */

/* Ensure minimum tap target sizes (44px) */
.btn, .nav-link, .form-control, input[type="range"] {
    min-height: 44px;
    min-width: 44px;
}

/* Responsive font sizes for better mobile readability */
@media (max-width: 768px) {
    body { 
        font-size: 16px; /* Prevent zoom on iOS */
        line-height: 1.6;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .lead { font-size: 1.125rem; }
    
    /* Full-width mobile CTAs */
    .hero-actions .btn,
    .mobile-cta {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 16px;
        border-radius: 8px;
    }
    
    /* Improved mobile spacing */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Card improvements for mobile */
    .card {
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Form improvements for mobile */
    .form-control {
        font-size: 16px; /* Prevent zoom */
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .form-label {
        font-size: 16px;
        margin-bottom: 0.5rem;
    }
}

/* Large mobile screens (landscape) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-actions {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero-actions .btn {
        width: auto;
        flex: 1;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 2px solid #000;
    }
}

/* Focus improvements for keyboard navigation */
.btn:focus-visible,
.nav-link:focus-visible,
.form-control:focus-visible {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #0066cc;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    font-size: 14px;
}

.skip-link:focus {
    top: 6px;
}

/* Homepage Style Guidelines - Consistency Rules */
.content-space-1 {
    padding: 3rem 0 !important;
}

.content-space-2 {
    padding: 4.5rem 0 !important;
}

.content-space-lg-2 {
    padding: 6rem 0 !important;
}

.content-space-lg-3 {
    padding: 5rem 0 !important;
}

@media (min-width: 992px) {
    .content-space-lg-3 {
        padding: 7.5rem 0 !important;
    }
}

/* Original Content Spacing Rules */
.hero-section,
section:first-of-type,
main > section:first-child {
    padding-top: 1rem;
}

/* Fix for containers that are first elements */
main > .container.py-5:first-of-type,
main > .container-fluid.py-5:first-of-type,
.container.py-5:first-child,
.container-fluid.py-5:first-child {
    padding-top: 6rem !important;
}

@media (max-width: 991.98px) {
    main > .container.py-5:first-of-type,
    main > .container-fluid.py-5:first-of-type,
    .container.py-5:first-child,
    .container-fluid.py-5:first-child {
        padding-top: 5rem !important;
    }
}

/* Override any conflicting Bootstrap utility classes */
.pt-5.hero-fix {
    padding-top: 6rem !important;
}

@media (max-width: 991.98px) {
    .pt-5.hero-fix {
        padding-top: 5rem !important;
    }
}

/* 3. Card Styling Consistency */
.card-shadow {
    box-shadow: 0 0.125rem 0.75rem rgba(0, 0, 0, 0.08);
}

.bg-light.card, .bg-light.border-dark.card {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
}

/* 4. Display Text Consistency with improved line-height */
.display-4 {
    font-size: 3rem !important;
    font-weight: bold !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
}

.display-5 {
    font-size: 2.5rem !important;
    font-weight: bold !important;
    line-height: 1.2 !important;
    letter-spacing: -0.01em;
}

.text-primary {
    color: var(--bs-primary) !important;
}

/* 5. Button Consistency with better spacing */
.btn-pointer {
    cursor: pointer;
}

.btn-primary, .btn-secondary {
    padding: 0.875rem 2rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* 6. CTA Section Styling with improved padding */
.bg-secondary.py-4.rounded-4 {
    background-color: var(--bs-secondary) !important;
    padding: 3.5rem 2rem !important;
}

/* 7. Stats Section */
.stats-section .display-4 {
    color: var(--bs-primary) !important;
}

/* 8. Typography with improved spacing */
.fs-3 {
    font-size: 1.5rem !important;
    line-height: 1.4;
    letter-spacing: -0.005em;
}

.fs-5 {
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

h1 { margin-bottom: 1.5rem; }
h2 { margin-bottom: 1.25rem; }
h3 { margin-bottom: 1rem; }

p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.fw-semibold {
    font-weight: 600 !important;
}

/* 9. Improved Spacing Scale */
.mb-6 {
    margin-bottom: 3rem !important;
}

.mb-7 {
    margin-bottom: 3.5rem !important;
}

.mb-8 {
    margin-bottom: 4rem !important;
}

.mb-10 {
    margin-bottom: 5rem !important;
}

.mt-6 {
    margin-top: 3rem !important;
}

.mt-8 {
    margin-top: 4rem !important;
}

/* 10. Row Dividers with better spacing */
.col-sm-divider .col-sm-auto:not(:last-child) {
    border-right: 1px solid #dee2e6;
    padding-right: 2.5rem;
}

.col-sm-divider .col-sm-auto:not(:first-child) {
    padding-left: 2.5rem;
}

/* 11. Card padding improvements */
.card-body {
    padding: 2rem;
}

.card.p-4 {
    padding: 2rem !important;
}

.card.p-5 {
    padding: 2.5rem !important;
}

.card.px-2.px-md-3.py-3.py-md-4 {
    padding: 1.5rem 1.25rem !important;
}

@media (min-width: 768px) {
    .card.px-2.px-md-3.py-3.py-md-4 {
        padding: 2rem 1.75rem !important;
    }
}

/* 12. Gap utilities for better component spacing */
.gap-2 { gap: 0.75rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 2rem !important; }

/* 13. Responsive adjustments */
@media (max-width: 768px) {
    .content-space-lg-2 {
        padding: 3rem 0 !important;
    }
    
    .content-space-lg-3 {
        padding: 3.5rem 0 !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }
    
    .fs-3 {
        font-size: 1.25rem !important;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.75rem 1.5rem;
    }
    
    .btn-lg {
        padding: 0.875rem 2rem;
    }
    
    .bg-secondary.py-4.rounded-4 {
        padding: 2.5rem 1.5rem !important;
    }
    
    .col-sm-divider .col-sm-auto {
        border-right: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 1rem;
    }
    
    p {
        margin-bottom: 1rem;
    }
}

/* Hero sections spacing fixes for fixed navigation */
.hero-section,
section:first-of-type,
main > section:first-child {
    padding-top: 1rem;
}

@media (max-width: 991.98px) {
    .hero-section,
    section:first-of-type,
    main > section:first-child {
        padding-top: 1rem;
    }
}

/* Fix for containers that are first elements */
main > .container.py-5:first-of-type,
main > .container-fluid.py-5:first-of-type,
.container.py-5:first-child,
.container-fluid.py-5:first-child {
    padding-top: 6rem !important;
}

@media (max-width: 991.98px) {
    main > .container.py-5:first-of-type,
    main > .container-fluid.py-5:first-of-type,
    .container.py-5:first-child,
    .container-fluid.py-5:first-child {
        padding-top: 5rem !important;
    }
}

/* Ensure body has proper top margin for fixed nav */
body {
    position: relative;
}

/* Additional utility classes for inline style replacements */
.img-cover {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.img-carousel-cover {
    height: 400px;
    width: 100%;
    object-fit: cover;
}

.carousel-wrapper {
    margin-bottom: 80px;
    padding: 0 20px;
}

.bullet-dot {
    width: 6px;
    height: 6px;
}

.icon-circle {
    width: 80px;
    height: 80px;
}

.icon-small {
    width: 20px;
    height: 20px;
}

.icon-tiny {
    width: 14px;
    height: 14px;
}

.footer-border {
    border-color: rgba(255,255,255,0.1) !important;
}

/* Override any conflicting Bootstrap utility classes */
.pt-5.hero-fix {
    padding-top: 6rem !important;
}

@media (max-width: 991.98px) {
    .pt-5.hero-fix {
        padding-top: 5rem !important;
    }
}
.hover-text-white:hover {
    color: white !important;
    transition: color 0.2s ease;
}
.transition-all {
    transition: all 0.2s ease;
}
.letter-spacing-1 {
    letter-spacing: 0.05rem;
}
/* Footer image optimization */
footer img {
    will-change: auto;
}
@media (max-width: 768px) {
    footer .py-6 {
        padding: 3rem 0 !important;
    }
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
}
.skip-link:focus {
    top: 6px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    * {
        outline: 2px solid;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* Focus management */
*:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .no-print, nav, .navbar, .btn, .d-print-none {
        display: none !important;
    }
}
    .legal-content {
        line-height: 1.8;
    }
    .legal-content h2 {
        margin-top: 2rem;
        margin-bottom: 1rem;
        color: #0d6efd;
    }
    .legal-content h3 {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
    }
    .toc {
        background: #f8f9fa;
        border-radius: 0.5rem;
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    .toc ul {
        margin-bottom: 0;
    }
    .last-updated {
        background: #e7f3ff;
        border-left: 4px solid #0d6efd;
        padding: 1rem;
        margin-bottom: 2rem;
    }
        /* Form-specific optimizations */
    .form-container {
        min-height: calc(100vh - 160px);
    }
    
    .card-login {
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        border: none;
        border-radius: 1rem;
    }
    
    .progress {
        height: 8px;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .progress-bar {
        transition: width 0.6s ease;
    }
    
    /* Accessibility improvements */
    .form-check-input:focus {
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }
    
    .btn:focus {
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }
    
    /* Loading states */
    .btn.loading {
        position: relative;
        color: transparent;
    }
    
    .btn.loading::after {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        top: 50%;
        left: 50%;
        margin-left: -8px;
        margin-top: -8px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    /* Form validation styles */
    .was-validated .form-control:valid {
        border-color: #198754;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 1.77 1.77 2.83-2.83.94.94-3.77 3.77z'/%3e%3c/svg%3e");
    }
    
    .was-validated .form-control:invalid {
        border-color: #dc3545;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 5.8 2.4 2.4m0-2.4-2.4 2.4'/%3e%3c/svg%3e");
    }
        .legal-content {
        line-height: 1.7;
    }
    .legal-content h2 {
        color: #2c3e50;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    .last-updated {
        background: #f8f9fa;
        padding: 1rem;
        border-left: 4px solid #007bff;
        margin-bottom: 2rem;
    }

/* Additional Hero Section Responsive Improvements */
/* Additional responsive fixes for smaller devices */
@media (max-width: 576px) {
    .hero-section {
        min-height: 550px;
        height: 100vh;
    }
    
    .hero-container {
        padding: 0 0.75rem;
    }
    
    .hero-content {
        padding: 0;
    }
    
    .hero-title {
        font-size: clamp(3rem, 8vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .hero-actions .btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.5rem;
    }
}

/* Tablet responsive improvements */
@media (min-width: 769px) and (max-width: 991.98px) {
    .hero-title {
        font-size: clamp(3rem, 6vw, 3.5rem);
    }
    
    .hero-description {
        font-size: 1.1rem;
        max-width: 85% !important;
    }
    
    .hero-actions .btn {
        min-width: 200px;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .hero-container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        padding: 0;
    }
    
    .hero-actions .btn {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }
}

/* Landscape mobile orientation fix */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 450px;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        margin-bottom: 1rem !important;
    }
    
    .hero-actions {
        margin-bottom: 1rem !important;
    }
}
    
/* Add this to your deploy/css/style.css to fix the blue background */

/* Ensure body and html have white background */
html, body {
    background-color: #ffffff !important;
    min-height: 100vh;
}

/* Ensure main content fills the viewport */
#main-content {
    background-color: #ffffff;
    min-height: 100vh;
}

/* Fix any blue backgrounds that shouldn't be there */
.container, .container-fluid {
    background-color: transparent;
}

/* Ensure footer doesn't have unwanted blue background */
footer {
    background-color: #1a365d; /* Your intended footer color */
}
body { 
    background: #ffffff!important;
}
