/* Modern Bootstrap Banking Website Styles */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Brand Colors */
    --bs-primary: #004AAD;
    --bs-primary-rgb: 0, 74, 173;
    --bs-secondary: #0066CC;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    
    /* Font Family */
    --bs-font-sans-serif: 'Poppins', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    /* Custom Properties */
    --gradient-primary: linear-gradient(135deg, #004AAD 0%, #0066CC 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 74, 173, 0.95) 0%, rgba(0, 102, 204, 0.9) 100%);
    --shadow-soft: 0 2px 20px rgba(0, 74, 173, 0.08);
    --shadow-medium: 0 8px 30px rgba(0, 74, 173, 0.12);
    --shadow-strong: 0 20px 50px rgba(0, 74, 173, 0.15);
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--bs-font-sans-serif);
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    padding-top: 80px; /* Account for fixed navbar */
}

/* ===== TYPOGRAPHY UTILITIES ===== */
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAVIGATION ENHANCEMENTS ===== */
.navbar {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand h5 {
    color: var(--bs-primary) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #2c3e50 !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--bs-primary) !important;
    background-color: rgba(0, 74, 173, 0.05);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--bs-primary) !important;
    background-color: rgba(0, 74, 173, 0.1);
    font-weight: 600;
}

.navbar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===== BUTTON STYLES ===== */
.btn {
    font-weight: 500;
    border-radius: 50px;
    padding: 12px 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 2px solid var(--bs-primary);
    color: var(--bs-primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--gradient-hero), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="0,0 0,100 1000,100"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* ===== HERO SLIDER SECTION ===== */
.hero-slider-section {
    position: relative;
    min-height: 100vh;
}

.hero-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.carousel-indicators {
    bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
}

.carousel-indicators button.active {
    background-color: white;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-control-prev {
    left: 2rem;
}

.carousel-control-next {
    right: 2rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero .lead {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    background: #ffffff;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-strong);
}

.card-body {
    padding: 2rem;
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    position: relative;
}

.card-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
    animation: pulse 2s ease-in-out infinite;
}

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

/* ===== STATISTICS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23004AAD" stroke-width="0.5" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--bs-primary);
    display: block;
    line-height: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    color: #6c757d;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ===== SERVICES SECTION ===== */
.service-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 74, 173, 0.08);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 74, 173, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 74, 173, 0.1) 0%, rgba(0, 102, 204, 0.05) 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 74, 173, 0.08);
    position: relative;
    transition: all 0.4s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 2rem;
    font-size: 6rem;
    color: var(--bs-primary);
    opacity: 0.1;
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.testimonial-text {
    font-style: italic;
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    color: #ffffff;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-primary);
}

.footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== FLOATING ACTION BUTTON ===== */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.fab {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

.fab:active {
    transform: scale(0.95);
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 74, 173, 0.1);
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.3s ease;
}

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

.animate-on-scroll {
    animation: fadeInUp 0.8s ease forwards;
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .hero h1,
    .display-3 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .navbar-nav {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 74, 173, 0.15);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0.25rem 0;
        border-radius: 8px;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(0, 74, 173, 0.1);
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .page-header {
        padding: 3rem 0 !important;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .sticky-top {
        position: static !important;
        top: auto !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand h5 {
        font-size: 1rem;
    }
    
    .navbar-brand small {
        font-size: 0.7rem;
    }
    
    .hero h1,
    .display-3 {
        font-size: 1.8rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .hero .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .display-4 {
        font-size: 1.6rem;
    }
    
    .display-5 {
        font-size: 1.4rem;
    }
    
    .display-6 {
        font-size: 1.2rem;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 1rem;
    }
    
    .carousel-control-next {
        right: 1rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .gallery-content {
        padding: 1.5rem;
    }
    
    .page-header-icon {
        display: none;
    }
    
    .hero-slide {
        background-attachment: scroll;
        min-height: 80vh;
    }
    
    .page-header {
        padding: 2rem 0 !important;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
    
    .card-icon,
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .testimonial-card::before {
        font-size: 4rem;
        top: -10px;
        left: 1rem;
    }
    
    .fab-container {
        bottom: 1rem;
        right: 1rem;
    }
    
    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .link-item {
        padding: 1rem !important;
    }
    
    .link-icon {
        width: 35px;
        height: 35px;
    }
    
    .accordion-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    .map-container {
        height: 250px !important;
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    }
}

@media (max-width: 576px) {
    .hero h1,
    .display-3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero .lead {
        font-size: 0.95rem;
    }
    
    .display-4 {
        font-size: 1.4rem;
    }
    
    .display-5 {
        font-size: 1.2rem;
    }
    
    .display-6 {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .service-card,
    .testimonial-card {
        padding: 1.25rem;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .gallery-content {
        padding: 1rem;
    }
    
    .gallery-content h5 {
        font-size: 1rem;
    }
    
    .hero-slide {
        min-height: 70vh;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header .lead {
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .card-icon,
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .testimonial-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .gallery-filter {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin: 0.2rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .navbar-brand h5 {
        font-size: 0.9rem;
    }
    
    .navbar-brand small {
        font-size: 0.65rem;
    }
    
    .link-item h6 {
        font-size: 0.9rem;
    }
    
    .link-item small {
        font-size: 0.75rem;
    }
    
    .form-control,
    .form-select {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .map-container {
        height: 200px !important;
    }
}

/* ===== MOBILE TOUCH IMPROVEMENTS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .card:hover,
    .link-item:hover,
    .gallery-card:hover .gallery-overlay,
    .service-card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .card:active,
    .link-item:active {
        transform: translateY(-2px);
    }
    
    .gallery-card:active .gallery-overlay {
        opacity: 1;
    }
}

/* ===== MOBILE NAVIGATION IMPROVEMENTS ===== */
@media (max-width: 991px) {
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
}

/* ===== MOBILE FORM IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .form-floating > .form-control,
    .form-floating > .form-select {
        height: calc(3.5rem + 2px);
    }
    
    .form-floating > label {
        padding: 1rem 0.75rem;
    }
    
    .btn {
        min-height: 44px; /* iOS touch target size */
    }
    
    .gallery-filter,
    .btn-sm {
        min-height: 40px;
        padding: 8px 16px;
    }
}

/* ===== MOBILE ACCESSIBILITY ===== */
@media (max-width: 768px) {
    .carousel-indicators button {
        width: 16px;
        height: 16px;
        margin: 0 6px;
    }
    
    .accordion-button::after {
        margin-left: auto;
        transform: scale(1.2);
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-content {
        border-radius: 12px;
    }
}

/* ===== MOBILE TOUCH EFFECTS ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.touch-device .btn:hover,
.touch-device .card:hover,
.touch-device .service-card:hover {
    transform: none;
}

.touch-device .btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

.touch-device .card:active,
.touch-device .service-card:active {
    transform: translateY(-2px);
    transition: transform 0.1s ease;
}

.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* ===== MOBILE CAROUSEL ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .carousel-item {
        touch-action: pan-y;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        opacity: 0.8;
        background: rgba(0, 74, 173, 0.1);
        border-radius: 50%;
        margin: auto 1rem;
        backdrop-filter: blur(10px);
    }
    
    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        opacity: 1;
        background: rgba(0, 74, 173, 0.2);
    }
    
    .carousel-indicators {
        margin-bottom: 1rem;
    }
    
    .carousel-indicators [data-bs-target] {
        background-color: rgba(255, 255, 255, 0.5);
        border: 2px solid rgba(255, 255, 255, 0.8);
    }
    
    .carousel-indicators .active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }
}

/* ===== MOBILE FORM ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .form-floating {
        position: relative;
    }
    
    .form-floating > .form-control:focus,
    .form-floating > .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(0, 74, 173, 0.25);
    }
    
    .form-floating > label {
        transition: all 0.2s ease;
    }
    
    .btn-primary {
        position: relative;
        overflow: hidden;
    }
    
    .form-check-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(0, 74, 173, 0.25);
    }
    
    .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }
}

/* ===== MOBILE GALLERY TOUCH ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .gallery-card {
        position: relative;
        overflow: hidden;
    }
    
    .gallery-overlay {
        transition: opacity 0.3s ease;
        backdrop-filter: blur(2px);
    }
    
    .gallery-filter.active {
        background-color: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }
    
    .gallery-filter:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 74, 173, 0.25);
    }
}

/* ===== MOBILE NAVIGATION TOUCH IMPROVEMENTS ===== */
@media (max-width: 991px) {
    .navbar-toggler {
        position: relative;
        overflow: hidden;
    }
    
    .navbar-toggler:active {
        transform: scale(0.95);
    }
    
    .navbar-nav .nav-link {
        transition: all 0.2s ease;
        position: relative;
    }
    
    .navbar-nav .nav-link:active {
        background-color: rgba(0, 74, 173, 0.15) !important;
        transform: scale(0.98);
    }
    
    .navbar-nav .nav-link.active {
        background-color: rgba(0, 74, 173, 0.1) !important;
        color: var(--primary-color) !important;
        font-weight: 600;
    }
}

/* ===== MOBILE SCROLL OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    body {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
    
    .fab {
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 74, 173, 0.3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .fab:active {
        transform: scale(0.9);
        box-shadow: 0 2px 10px rgba(0, 74, 173, 0.4);
    }
    
    #scroll-progress {
        height: 3px;
        background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    }
}

/* ===== MOBILE ACCESSIBILITY IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .btn,
    .nav-link,
    .gallery-filter,
    .accordion-button {
        min-height: 44px;
        min-width: 44px;
    }
    
    .testimonial-card,
    .service-card,
    .link-item {
        min-height: 120px;
    }
    
    .card {
        touch-action: manipulation;
    }
    
    .accordion-button:focus,
    .btn:focus,
    .nav-link:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    .skip-link {
        position: absolute;
        top: -40px;
        left: 6px;
        background: var(--primary-color);
        color: white;
        padding: 8px;
        text-decoration: none;
        z-index: 1000;
    }
    
    .skip-link:focus {
        top: 6px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .fab-container {
        bottom: 1rem;
        right: 1rem;
    }
    
    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
}

/* ===== UTILITY CLASSES ===== */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

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

.shadow-custom {
    box-shadow: var(--shadow-soft) !important;
}

.border-radius-lg {
    border-radius: var(--border-radius-lg) !important;
}

.border-radius-xl {
    border-radius: var(--border-radius-xl) !important;
}

/* ===== FORM STYLES ===== */
.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 74, 173, 0.15);
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* ===== CONTACT SECTION ENHANCEMENTS ===== */
.contact-card {
    background: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 74, 173, 0.08);
    height: 100%;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

/* ===== GALLERY STYLES ===== */
.gallery-card {
    height: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 74, 173, 0.9) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: flex-end;
}

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

.gallery-card:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-content {
    padding: 2rem;
    width: 100%;
}

.gallery-filter {
    transition: all 0.3s ease;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
}

.gallery-filter.active {
    background: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
}

/* ===== BREADCRUMB STYLES ===== */
.breadcrumb-item a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ===== SERVICE CARD ENHANCEMENTS ===== */
.service-card {
    transition: all 0.4s ease;
    border-radius: var(--border-radius-lg);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.service-header {
    border-bottom: 1px solid rgba(0, 74, 173, 0.1);
    padding-bottom: 1rem;
}

.service-features {
    border-top: 1px solid rgba(0, 74, 173, 0.1);
    padding-top: 1rem;
}

/* ===== LINKS PAGE STYLES ===== */
.link-item {
    transition: all 0.3s ease;
    border-radius: 12px !important;
}

.link-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 74, 173, 0.15);
    border-color: var(--bs-primary) !important;
}

.link-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 74, 173, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== FOOTER ENHANCEMENTS ===== */
.hover-link {
    transition: all 0.3s ease;
}

.hover-link:hover {
    color: var(--bs-primary) !important;
    transform: translateX(5px);
}

/* ===== PAGE HEADER STYLES ===== */
.page-header {
    background: var(--gradient-primary) !important;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="10" height="10" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.page-header-icon {
    position: relative;
    z-index: 1;
}

/* ===== ENHANCED ACCORDION STYLES ===== */
.accordion-item {
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: var(--shadow-medium);
}

.accordion-button {
    border-radius: 12px 12px 0 0;
    border: none;
    background: #ffffff;
    font-weight: 600;
    padding: 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: var(--bs-primary);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 1.5rem;
    background: #f8f9fa;
}

/* ===== MAP CONTAINER STYLES ===== */
.map-container {
    border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
}

/* ===== ENHANCED BUTTON STYLES ===== */
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===== STICKY SIDEBAR ===== */
.sticky-top {
    position: sticky;
    top: 100px;
    z-index: 10;
}

/* ===== FORM ENHANCEMENTS ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 74, 173, 0.25);
}

.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* ===== MODAL ENHANCEMENTS ===== */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-strong);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 74, 173, 0.1);
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 1rem;
    }
    
    .carousel-control-next {
        right: 1rem;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .gallery-content {
        padding: 1.5rem;
    }
    
    .page-header-icon {
        display: none;
    }
    
    .hero-slide {
        background-attachment: scroll;
    }
}