/* ================================
   ROOT VARIABLES & THEME SYSTEM
   ================================ */

:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #151520;
    --bg-tertiary: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --accent-primary: #00d9ff;
    --accent-secondary: #ff006e;
    --accent-tertiary: #8338ec;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --modal-bg: #1a1a27;
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: #252535;
    --card-border: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 8px 24px rgba(0, 217, 255, 0.12);
    --social-bg: #2a2a3a;
    --social-border: rgba(255, 255, 255, 0.15);
    --shadow-color: rgba(0, 217, 255, 0.3);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

[data-theme="light"] {
    /* Light Theme Colors */
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --text-primary: #1a1a2e;
    --text-secondary: #495057;
    --accent-primary: #0066cc;
    --accent-secondary: #dc3545;
    --accent-tertiary: #6610f2;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --modal-bg: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-bg: #f5f5f5;
    --card-border: rgba(0, 0, 0, 0.1);
    --card-shadow: 0 4px 12px rgba(0, 102, 204, 0.08);
    --social-bg: #efefef;
    --social-border: rgba(0, 0, 0, 0.12);
    --shadow-color: rgba(0, 102, 204, 0.2);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ================================
   GLOBAL STYLES
   ================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

::selection {
    background: var(--accent-primary);
    color: white;
}

/* ================================
   LOADING SCREEN
   ================================ */

.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.hospital-doors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}

.door {
    width: 50%;
    height: 100%;
    background: linear-gradient(180deg, #2a2a3e 0%, #1a1a2e 100%);
    position: relative;
    transition: transform 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(0, 217, 255, 0.3);
}

.door-left {
    transform-origin: left;
    border-right: 1px solid var(--accent-primary);
}

.door-right {
    transform-origin: right;
    border-left: 1px solid var(--accent-primary);
}

.loader-screen.opening .door-left {
    transform: rotateY(-120deg);
}

.loader-screen.opening .door-right {
    transform: rotateY(120deg);
}

.door-window {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 120px;
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid var(--accent-primary);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
}

.door-handle {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 4px;
    box-shadow: 0 0 20px var(--accent-primary);
}

.door-left .door-handle {
    right: 20px;
}

.door-right .door-handle {
    left: 20px;
}

.loader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hospital-cross {
    width: 100px;
    height: 100px;
    position: relative;
    margin: 0 auto 30px;
    animation: pulse 2s infinite;
}

.cross-vertical, .cross-horizontal {
    position: absolute;
    background: var(--accent-primary);
    box-shadow: 0 0 40px var(--accent-primary);
}

.cross-vertical {
    width: 30px;
    height: 100px;
    left: 50%;
    transform: translateX(-50%);
}

.cross-horizontal {
    width: 100px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.loader-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s infinite;
}

.loader-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.progress-container {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 20px auto;
    overflow: hidden;
}

.progress-bar-custom {
    height: 100%;
    width: 0%;
    background: var(--gradient-3);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px var(--accent-primary);
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ================================
   DESKTOP NAVIGATION
   ================================ */

.desktop-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 9997;
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Playfair Display', serif;
}

.nav-logo i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.nav-menu {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.90rem; /* reduced from 0.95rem */
    padding: 6px 10px; 
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

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

.nav-btn {
    padding: 9px 16px;
    font-size: 0.85rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
    color: white;
}



/* ================================
   THEME CONTROLS
   ================================ */

.theme-controls {
    position: fixed;
    top: 10px;        
    right: 250px;
    z-index: 9999;
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--shadow-color);
}

/* ================================
   3D CANVAS & EARTH CONTAINER
   ================================ */

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 1;
}

#canvas-container canvas {
    width: 100%;
    height: 100%;
}

#earth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

/* ================================
   FLOATING FINGERPRINT BUTTON
   ================================ */

.floating-fingerprint {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    cursor: move;
    z-index: 9998;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    animation: floatAnimation 3s ease-in-out infinite;
}

.floating-fingerprint:hover {
    transform: scale(1.2) rotate(360deg);
    box-shadow: 0 15px 60px rgba(102, 126, 234, 0.8);
}

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

/* ================================
   GLASS MODAL
   ================================ */

/* ================================
   GLASS MODAL - COMPLETE FIX
   ================================ */

/* Override Bootstrap's hardcoded white */
.modal-content {
    background-color: var(--modal-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6) !important;
}

.modal-header {
    background-color: var(--modal-bg) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--glass-border) !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 1.2rem 1.5rem !important;
}

.modal-body {
    background-color: var(--modal-bg) !important;
    color: var(--text-primary) !important;
    padding: 1.2rem 1.5rem !important;
}

.modal-footer {
    background-color: var(--modal-bg) !important;
    border-top: 1px solid var(--glass-border) !important;
    border-radius: 0 0 20px 20px !important;
}

/* glass-modal wrapper */
.glass-modal .modal-content {
    background-color: var(--modal-bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    animation: slideInUp 0.4s ease-out;
    padding: 0;
}

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

.glass-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.2rem 1.5rem 1rem 1.5rem !important;
    margin-bottom: 0;
    border-bottom: 1px solid var(--glass-border) !important;
    background-color: var(--modal-bg) !important;
    border-radius: 20px 20px 0 0 !important;
}

.glass-modal .modal-body {
    padding: 1.2rem 1.5rem !important;
    background-color: var(--modal-bg) !important;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.glass-modal .modal-body::-webkit-scrollbar {
    width: 5px;
}

.glass-modal .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.glass-modal .modal-body::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 3px;
}

/* Modal title & subtitle */
.modal-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin: 0 !important;
    line-height: 1.3;
}

.modal-subtitle {
    margin: 6px 0 0 !important;
    color: var(--text-secondary) !important;
    font-size: 0.82rem !important;
    line-height: 1.4;
}

/* Close button - white X in dark, black X in light */
.glass-modal .modal-header .btn-close {
    filter: invert(1) !important;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    margin-left: 12px;
    margin-top: 2px;
}

[data-theme="light"] .glass-modal .modal-header .btn-close {
    filter: invert(0) !important;
}

.glass-modal .modal-header .btn-close:hover {
    opacity: 1;
}

/* Light theme full override */
[data-theme="light"] .modal-content,
[data-theme="light"] .modal-header,
[data-theme="light"] .modal-body,
[data-theme="light"] .modal-footer,
[data-theme="light"] .glass-modal .modal-content,
[data-theme="light"] .glass-modal .modal-header,
[data-theme="light"] .glass-modal .modal-body {
    background-color: var(--modal-bg) !important; /* #ffffff */
    color: var(--text-primary) !important;         /* #1a1a2e */
}

/* Modal dialog size */
.modal-dialog.modal-sm {
    max-width: 430px;
}

@media (max-width: 576px) {
    .modal-dialog.modal-sm {
        max-width: 94vw;
        margin: 0.75rem auto;
    }

    .glass-modal .modal-content {
        border-radius: 16px !important;
    }

    .glass-modal .modal-header {
        border-radius: 16px 16px 0 0 !important;
        padding: 1rem 1.2rem 0.9rem 1.2rem !important;
    }

    .glass-modal .modal-body {
        padding: 1rem 1.2rem !important;
    }
}

/* Dark modal backdrop */
.modal-backdrop.show {
    opacity: 0.78 !important;
    background-color: #000 !important;
}

/* ================================
   QUICK LINKS GRID
   ================================ */

.quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
}

@media (max-width: 400px) {
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.55rem;
    }
}

/* ================================
   QUICK LINK BUTTONS - solid bg
   ================================ */

.quick-link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.6rem;
    background: var(--card-bg) !important;
    border: 1.5px solid var(--card-border) !important;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    gap: 0.55rem;
    min-height: 95px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.quick-link-btn:hover::before {
    left: 100%;
}

.quick-link-btn:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary) !important;
    box-shadow: var(--card-shadow), 0 8px 20px rgba(0, 0, 0, 0.2);
}

.quick-link-btn:active {
    transform: translateY(-2px);
}

.quick-link-btn i {
    font-size: 1.7rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.quick-link-btn:hover i {
    transform: scale(1.15);
}

.quick-link-btn span {
    font-weight: 600;
    text-align: center;
    font-size: 0.76rem;
    line-height: 1.25;
    color: var(--text-primary) !important;
}

/* WhatsApp card */
.whatsapp-link {
    background: var(--card-bg) !important;
    border-color: rgba(37, 211, 102, 0.35) !important;
}

.whatsapp-link i {
    color: #25d366 !important;
}

.whatsapp-link:hover {
    border-color: #25d366 !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2) !important;
}

/* ================================
   MODAL EXTRA - social + whatsapp
   ================================ */

.modal-extra {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

/* ================================
   SOCIAL ICON BUTTONS - solid bg
   ================================ */

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid var(--social-border) !important;
    background: var(--social-bg) !important;
    color: var(--accent-primary) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.social-icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-icon-btn:hover::before {
    opacity: 1;
}

.social-icon-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-icon-btn:hover {
    transform: translateY(-4px) scale(1.1);
    color: #ffffff !important;
    border-color: var(--accent-primary) !important;
    box-shadow: var(--card-shadow), 0 6px 14px rgba(0, 0, 0, 0.15);
}

.social-icon-btn:hover i {
    transform: scale(1.2);
}

/* ================================
   WHATSAPP BOTTOM BUTTON
   ================================ */

.whatsapp-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    padding: 0.85rem 1.2rem;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    border-radius: 50px;
    text-decoration: none;
}

.whatsapp-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
    color: white;
}
/* ================================
   CONTENT WRAPPER
   ================================ */

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

/* ================================
   HERO SECTION
   ================================ */

.hero-section {
    position: relative;
    background: transparent;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    animation: particleMove 20s infinite alternate;
}

@keyframes particleMove {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-50px) scale(1.1); }
}

.hero-content {
    padding: 60px 40px;
    animation: fadeInUp 1s ease;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInLeft 1s ease;
}

.title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 60px;
}

.cta-btn {
    padding: 18px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

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

.cta-btn:hover::before {
    left: 100%;
}

.cta-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.cta-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.cta-secondary:hover {
    background: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.cta-whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.cta-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
}

.hero-stats {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: left;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ================================
   SECTIONS
   ================================ */

.section-padding {
    padding: 100px 0;
    position: relative;
    background: transparent;
}

.bg-dark-section {
    background: transparent;
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
     margin-left: auto !important;   /* ADD THIS */
    margin-right: auto !important;  
}

/* ================================
   ABOUT SECTION
   ================================ */

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0.2;
    z-index: 1;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-content {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--accent-primary);
}

.about-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.motto-text {
    font-style: italic;
    font-size: 1.3rem;
    color: var(--accent-secondary);
    border-left: 4px solid var(--accent-secondary);
    padding-left: 20px;
}

.ceo-info {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
}

.ceo-details h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.ceo-details p {
    margin-bottom: 10px;
}

.ceo-bio {
    font-style: italic;
    color: var(--text-secondary);
}

/* ================================
   SERVICE CARDS
   ================================ */

.service-card, .anatomy-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    height: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card:hover, .anatomy-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 60px var(--shadow-color);
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ================================
   ANATOMY CARDS
   ================================ */

.anatomy-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

.anatomy-card h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.anatomy-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ================================
   TESTIMONIALS
   ================================ */

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.stars {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffd700;
    animation: starPulse 2s infinite;
}

@keyframes starPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-card h5 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.patient-detail {
    color: var(--accent-primary);
    font-size: 0.9rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--accent-primary);
    border-radius: 50%;
    padding: 20px;
}

/* ================================
   FAQ ACCORDION
   ================================ */

.accordion-item {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 2px solid var(--glass-border);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 20px;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-1);
    color: white;
    box-shadow: none;
}

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

.accordion-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ================================
   CONTACT & APPOINTMENT
   ================================ */

.glass-input {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    padding: 15px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: var(--glass-bg);
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px var(--shadow-color);
    color: var(--text-primary);
    outline: none;
}

.glass-input::placeholder {
    color: var(--text-secondary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-primary);
    min-width: 50px;
}

.contact-item h5 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: var(--bg-secondary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(20px);
}

.footer h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 10px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
}

/* ================================
   MOBILE BOTTOM NAVIGATION
   ================================ */

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 2px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 9999;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

/* Hide mobile nav on desktop/PC (992px and above) */
@media (min-width: 992px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 10px;
}

.mobile-nav-item i {
    font-size: 1.5rem;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--accent-primary);
    background: var(--glass-bg);
    transform: scale(1.1);
}

/* ================================
   ANIMATIONS
   ================================ */

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

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

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

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .floating-fingerprint {
        bottom: 90px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .hero-section {
        padding-top: 20px;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .section-header {
        padding: 20px;
    }
    
    .contact-info {
        padding: 30px 20px;
    }
    
    .about-content {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .loader-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 991px) {
    .theme-controls {
        top: 12px;
        right: 10px;
    }
    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
}

/* ================================
   MOBILE NAV - FINAL FIX
   ================================ */

@media (max-width: 991px) {

    /* Show desktop nav on mobile */
    .desktop-nav {
        display: block !important;
        padding: 0 !important;
        height: 58px !important;
    }

    .nav-content {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        padding: 0 14px !important;
        height: 58px !important;
        gap: 10px !important;
    }

    /* Logo - left, takes remaining space */
    .nav-logo {
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
        font-size: 1rem !important;
        white-space: nowrap !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .nav-logo i {
        font-size: 1.3rem !important;
        flex-shrink: 0 !important;
    }

    .nav-logo span {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* HIDE emergency button on mobile */
    .nav-cta {
        display: none !important;
    }

    /* HIDE nav menu links (hamburger shows them) */
    .nav-menu {
        display: none !important;
        position: fixed !important;
        top: 58px !important;
        left: 0 !important;
        width: 100% !important;
        background: var(--bg-secondary) !important;
        flex-direction: column !important;
        padding: 8px 0 20px !important;
        border-bottom: 2px solid var(--glass-border) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
        z-index: 9995 !important;
        gap: 0 !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .desktop-nav.menu-open .nav-menu {
        display: flex !important;
    }

    .nav-menu li {
        width: 100% !important;
    }

    .nav-menu .nav-link {
        display: block !important;
        padding: 14px 24px !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        border-bottom: 1px solid var(--glass-border) !important;
        color: var(--text-primary) !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: var(--glass-bg) !important;
        color: var(--accent-primary) !important;
        padding-left: 32px !important;
    }

    .nav-menu .nav-link::after {
        display: none !important;
    }

    /* Right side: toggles + hamburger together */
    .nav-right-mobile {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
    }

    /* Theme controls - right side in nav */
    .theme-controls {
        all: unset !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 7px !important;
        flex-shrink: 0 !important;
        position: fixed !important;
        top: 11px !important;
        right: 56px !important;   /* space for hamburger only */
        z-index: 10000 !important;
    }

    .control-btn {
        all: unset !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 50% !important;
        border: 2px solid var(--accent-primary) !important;
        background: var(--bg-primary) !important;
        color: var(--accent-primary) !important;
        font-size: 1rem !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 0 10px rgba(0,217,255,0.2) !important;
        transition: all 0.3s ease !important;
    }

    .control-btn i {
        font-size: 1rem !important;
        color: var(--accent-primary) !important;
        -webkit-text-fill-color: var(--accent-primary) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
    }

    /* Hamburger - far right */
    .hamburger-btn {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        border: 1.5px solid var(--glass-border) !important;
        background: var(--glass-bg) !important;
        color: var(--text-primary) !important;
        font-size: 1.4rem !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        position: fixed !important;
        top: 11px !important;
        right: 14px !important;
        z-index: 10000 !important;
        transition: all 0.3s ease !important;
    }

    /* Floating button above bottom nav */
    .floating-fingerprint {
        bottom: 72px !important;
        right: 12px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
    }

    /* Push content below nav */
    .hero-section {
        padding-top: 72px !important;
    }
}

@media (max-width: 400px) {
    .theme-controls {
        right: 52px !important;
        gap: 5px !important;
    }

    .control-btn {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        font-size: 0.9rem !important;
    }

    .control-btn i {
        font-size: 0.9rem !important;
    }

    .nav-logo {
        font-size: 0.88rem !important;
    }
}

/* ================================
   LOADER - Show toggles on top
   ================================ */

/* Theme controls visible ABOVE loader */
.loader-screen ~ .theme-controls,
.theme-controls {
    z-index: 10001 !important;
}

/* ================================
   HIDE CONTROLS DURING LOADER
   ================================ */

/* Hide toggles and hamburger while loader is active */
body:not(.loaded) .theme-controls {
    display: none !important;
}

body:not(.loaded) .hamburger-btn {
    display: none !important;
}

/* Smooth fade in when loader finishes */
body.loaded .theme-controls {
    animation: fadeInUp 0.5s ease forwards;
}

body.loaded .hamburger-btn {
    animation: fadeInUp 0.5s ease forwards;
}

/* ================================
   MODAL - MOBILE VIEW FIX
   Add at very bottom of styles.css
   ================================ */

@media (max-width: 991px) {

    /* Modal positioning - center properly on mobile */
    .modal-dialog.modal-sm {
        max-width: 95vw !important;
        margin: auto !important;
        display: flex !important;
        align-items: center !important;
        min-height: 100% !important;
    }

    .glass-modal .modal-content {
        border-radius: 18px !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* Header smaller on mobile */
    .glass-modal .modal-header {
        padding: 1rem 1.1rem 0.85rem 1.1rem !important;
        border-radius: 18px 18px 0 0 !important;
    }

    .modal-title {
        font-size: 1.1rem !important;
    }

    .modal-subtitle {
        font-size: 0.76rem !important;
    }

    /* Body padding tighter */
    .glass-modal .modal-body {
        padding: 0.9rem 1rem !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
    }

    /* Quick links - 3 columns on mobile */
    .quick-links {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
        margin-bottom: 0.85rem !important;
    }

    /* Quick link cards - compact */
    .quick-link-btn {
        min-height: 80px !important;
        padding: 0.7rem 0.4rem !important;
        gap: 0.4rem !important;
        border-radius: 10px !important;
    }

    .quick-link-btn i {
        font-size: 1.4rem !important;
    }

    .quick-link-btn span {
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
    }

    /* Modal extra section */
    .modal-extra {
        margin-top: 0.75rem !important;
        padding-top: 0.75rem !important;
        gap: 0.65rem !important;
    }

    /* Social icons row */
    .social-icons {
        gap: 0.5rem !important;
    }

    .social-icon-btn {
        width: 38px !important;
        height: 38px !important;
    }

    .social-icon-btn i {
        font-size: 1rem !important;
    }

    /* WhatsApp button */
    .whatsapp-action {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* Very small phones */
@media (max-width: 380px) {

    .modal-dialog.modal-sm {
        max-width: 98vw !important;
    }

    .glass-modal .modal-header {
        padding: 0.85rem 0.9rem 0.75rem 0.9rem !important;
    }

    .glass-modal .modal-body {
        padding: 0.75rem 0.85rem !important;
    }

    /* 2 columns on very small phones */
    .quick-links {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.45rem !important;
    }

    .quick-link-btn {
        min-height: 75px !important;
        padding: 0.65rem 0.4rem !important;
    }

    .quick-link-btn i {
        font-size: 1.3rem !important;
    }

    .quick-link-btn span {
        font-size: 0.65rem !important;
    }

    .social-icon-btn {
        width: 34px !important;
        height: 34px !important;
    }

    .modal-title {
        font-size: 1rem !important;
    }
}

/* ================================
   MODAL BACKDROP & VISIBILITY FIX
   Add at very bottom of styles.css
   ================================ */

/* Fix backdrop - too dark, blocking everything */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}

.modal-backdrop.show {
    opacity: 0.55 !important;
    background-color: #000 !important;
}

/* Ensure modal sits above backdrop */
.modal {
    z-index: 10500 !important;
}

.modal-dialog {
    z-index: 10501 !important;
}

/* Backdrop below modal */
.modal-backdrop {
    z-index: 10499 !important;
}

/* Make sure modal is visible and centered on mobile */
@media (max-width: 991px) {
    .modal {
        padding: 0 !important;
    }

    .modal-dialog.modal-sm {
        max-width: 92vw !important;
        margin: auto !important;
        position: relative !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    /* When modal is shown, fix transform */
    .modal.show .modal-dialog.modal-sm {
        transform: translateY(-50%) !important;
    }

    .glass-modal .modal-content {
        position: relative !important;
        z-index: 10502 !important;
    }
}

/* ================================
   SERVICE & ANATOMY CARDS - MOBILE
   Add at very bottom of styles.css
   ================================ */

@media (max-width: 991px) {

    /* Service cards */
    .service-card {
        padding: 20px 14px !important;
        border-radius: 16px !important;
    }

    .service-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.8rem !important;
        margin-bottom: 14px !important;
    }

    .service-card h4 {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }

    .service-card p {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
    }

    /* Anatomy cards */
    .anatomy-card {
        padding: 20px 14px !important;
        border-radius: 16px !important;
    }

    .anatomy-icon {
        font-size: 2.8rem !important;
        margin-bottom: 10px !important;
    }

    .anatomy-card h5 {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }

    .anatomy-card p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 576px) {

    /* Service cards - 2 per row on small phones */
    .service-card {
        padding: 16px 10px !important;
        border-radius: 14px !important;
    }

    .service-icon {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
        box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3) !important;
    }

    .service-card h4 {
        font-size: 0.88rem !important;
        margin-bottom: 5px !important;
    }

    .service-card p {
        font-size: 0.76rem !important;
    }

    /* Anatomy cards - 2 per row */
    .anatomy-card {
        padding: 16px 10px !important;
        border-radius: 14px !important;
    }

    .anatomy-icon {
        font-size: 2.4rem !important;
        margin-bottom: 8px !important;
    }

    .anatomy-card h5 {
        font-size: 0.88rem !important;
        margin-bottom: 5px !important;
    }

    .anatomy-card p {
        font-size: 0.74rem !important;
    }
}

@media (max-width: 380px) {

    .service-card {
        padding: 14px 8px !important;
        border-radius: 12px !important;
    }

    .service-icon {
        width: 46px !important;
        height: 46px !important;
        font-size: 1.3rem !important;
        margin-bottom: 8px !important;
    }

    .service-card h4 {
        font-size: 0.82rem !important;
    }

    .service-card p {
        font-size: 0.72rem !important;
    }

    .anatomy-card {
        padding: 14px 8px !important;
        border-radius: 12px !important;
    }

    .anatomy-icon {
        font-size: 2rem !important;
        margin-bottom: 6px !important;
    }

    .anatomy-card h5 {
        font-size: 0.82rem !important;
    }

    .anatomy-card p {
        font-size: 0.7rem !important;
    }
}

/* ================================
   FOOTER - MOBILE VIEW MEDIUM SIZE
   Add at very bottom of styles.css
   ================================ */

@media (max-width: 991px) {

    .footer {
        padding: 50px 0 110px !important;
    }

    .footer h3 {
        font-size: 1.8rem !important;
        margin-bottom: 12px !important;
    }

    .footer p {
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }

    .footer h5 {
        font-size: 1.15rem !important;
        margin-bottom: 16px !important;
    }

    .social-links {
        gap: 14px !important;
        margin-top: 18px !important;
    }

    .social-links a {
        width: 46px !important;
        height: 46px !important;
        font-size: 1.3rem !important;
    }

    .footer-links li {
        margin-bottom: 12px !important;
    }

    .footer-links a {
        font-size: 1rem !important;
    }

    .footer-bottom {
        margin-top: 30px !important;
        padding-top: 20px !important;
    }

    .footer-bottom p {
        font-size: 0.95rem !important;
        text-align: center !important;
    }
}

@media (max-width: 576px) {

    .footer {
        padding: 40px 0 110px !important;
    }

    /* First column - full width centered */
    .footer .col-lg-4 {
        text-align: center !important;
        margin-bottom: 28px !important;
    }

    .footer .col-lg-4 .social-links {
        justify-content: center !important;
    }

    .footer h3 {
        font-size: 1.6rem !important;
        margin-bottom: 10px !important;
    }

    .footer p {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
    }

    .footer h5 {
        font-size: 1.05rem !important;
        margin-bottom: 14px !important;
    }

    .footer-links a {
        font-size: 0.95rem !important;
    }

    .footer-links li {
        margin-bottom: 10px !important;
    }

    /* Legal full width */
    .footer .col-lg-3:last-child {
        width: 100% !important;
        margin-top: 10px !important;
    }

    .social-links a {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.2rem !important;
    }

    .footer-bottom {
        margin-top: 24px !important;
        padding-top: 16px !important;
    }

    .footer-bottom p {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 380px) {

    .footer {
        padding: 36px 0 110px !important;
    }

    .footer h3 {
        font-size: 1.4rem !important;
    }

    .footer p {
        font-size: 0.9rem !important;
    }

    .footer h5 {
        font-size: 1rem !important;
    }

    .footer-links a {
        font-size: 0.9rem !important;
    }

    .footer-links li {
        margin-bottom: 9px !important;
    }

    .social-links a {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
    }

    .footer-bottom p {
        font-size: 0.85rem !important;
    }
}