:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1e40af;
    --primary-blue-light: #3b82f6;
    --accent-blue: #60a5fa;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Century Gothic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

/* Reduce Container Width */
.container {
    max-width: 1140px;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

/* Top Bar */
.top-bar {
    background-color: #f0f4f8;
    padding: 10px;
    padding-bottom: 20px !important;
    font-size: 0.875rem;
}

.top-bar-custom-padding {
    padding-bottom: 10px !important;
}

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

.top-bar-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-bar-social a {
    color: #6b7280;
    font-size: 1.125rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar-social a:hover {
    color: var(--primary-blue);
}

.top-bar-right {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-bar-contact {
    display: flex;
    gap: 25px;
    align-items: center;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0;
    align-items: center;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 2px;
}

.language-switcher-mobile {
    margin: 0.5rem 0;
    padding: 0.5rem;
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    color: var(--primary-blue);
}

.lang-btn.active {
    background: var(--primary-blue);
    color: white;
}

@media (max-width: 1002px) {
    .top-bar-right {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }
    
    .language-switcher {
        order: -1;
    }
}

.top-bar-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px !important
}

.top-bar-contact-item:hover {
    color: var(--primary-blue);
}

.top-bar-contact-item i {
    color: var(--primary-blue);
    font-size: 1rem;
}

@media (max-width: 1002px) {
    .top-bar {
        display: none;
    }
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background-color: white !important;
    transition: all 0.3s ease;
    border-bottom: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: relative;
}

.navbar.scrolled {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    padding: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 12px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-brand-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-blue) !important;
    letter-spacing: 0.5px;
    text-transform: none;
    white-space: nowrap;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    align-self: center;
    vertical-align: middle;
}

@media (max-width: 1002px) {
    .navbar-brand-text {
        font-size: 1.17rem;
        letter-spacing: 0.3px;
        display: block;
    }
    
    .logo-container {
        gap: 8px;
    }
    
    .navbar-brand {
        gap: 8px;
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .navbar-brand-text {
        font-size: 1.25rem;
        letter-spacing: 0.4px;
    }
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar-logo-size {
    height: 80px;
}

.logo-container {
    position: relative;
}

.logo-container .navbar-logo {
    position: relative;
    z-index: 1001;
    display: block;
}

.logo-triangle {
    position: absolute;
    top: calc(100% - 1px);
    left: 140%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 85px solid transparent;
    border-right: 85px solid transparent;
    border-top: 60px solid white;
    z-index: 1000;
}

@media (max-width: 1002px) {
    .logo-container {
        left: 20px !important;
    }
    
    .logo-container .navbar-logo {
        height: 70px !important;
    }
    
    .logo-triangle {
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-top: 40px solid white;
    }
}

.navbar-nav {
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0.75rem !important;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-appointment-btn {
    background: transparent;
    color: var(--text-dark) !important;
    border: 2px solid var(--text-dark);
    padding: 10px 25px !important;
    border-radius: 4px;
    margin-left: 1rem !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-appointment-btn-clickable {
    cursor: pointer;
}

.nav-appointment-btn:hover {
    background: var(--text-dark);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.55)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
    .nav-appointment-btn {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }
}

/* Hero Carousel Section */
.hero-carousel-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.carousel-slide {
    position: relative;
    min-height: 65vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.carousel-slide-1 {
    background-image: url('../images/slider/item-1.webp');
}

.carousel-slide-2 {
    background-image: url('../images/slider/item-2.webp');
}

.carousel-slide-3 {
    background-image: url('../images/slider/item-3.webp');
}

.carousel-overlay {
    display: none;
}

.carousel-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: left;
    padding: 30px 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: 50px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.9) 50%, rgba(15, 23, 42, 0.85) 100%);
    border-radius: 12px;
}

.carousel-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.flip-word-container {
    display: inline-block;
    position: relative;
    perspective: 300px;
    min-width: 100px;
    height: 1.2em;
    padding-right: 4px;
    /* vertical-align: bottom; */
}

.flip-word {
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transform: rotateX(90deg);
    transform-origin: center bottom;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}

.flip-word.active {
    position: relative;
    opacity: 1;
    transform: rotateX(0deg);
}

.carousel-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.carousel-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.carousel-features li {
    padding: 0.5rem 0;
    color: white;
    font-size: 1rem;
}

.carousel-features li i {
    color: #64ffda;
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.carousel-btn {
    margin-top: 1.5rem;
}

.carousel-btn-wrapper {
    text-align: right;
}

@media (max-width: 992px) {
    .carousel-content {
        text-align: center;
        margin: 0 auto;
        padding: 25px 20px;
        max-width: 90%;
        margin-right: auto;
    }
    
    .hero-carousel-section {
        height: 50vh;
    }
    
    .carousel-slide {
        height: 50vh;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

.carousel-indicators {
    bottom: 20px;
}

/* Left-positioned carousel indicators */
.carousel-indicators-left {
    left: 50px;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    justify-content: flex-start;
}

.carousel-indicators button {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
    margin: 0 3px;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-indicators button:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}

.carousel-indicators button.active {
    background: white;
    border-color: white;
    transform: scale(1.5);
}

@media (max-width: 1002px) {
    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-subtitle {
        font-size: 1.125rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 15px;
    }
    
    .carousel-control-next {
        right: 15px;
    }
}

.star-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8), 0 0 12px rgba(255, 255, 255, 0.6);
    animation: starFade 2s ease-out forwards;
}

@keyframes starFade {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg);
    }
}

.star-particle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        -8px 0 0 0 white,
        8px 0 0 0 white,
        0 -8px 0 0 white,
        0 8px 0 0 white;
}

@keyframes heroBackgroundZoom {
    0% {
        background-size: 100% auto;
    }
    100% {
        background-size: 110% auto;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.9) 50%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
    animation: fadeInOverlay 1.5s ease-out;
}

.hero-image-blend {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    max-width: 550px;
    height: auto;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    animation: fadeInRight 1.5s ease-out 0.8s forwards;
    pointer-events: none;
}

.hero-image-blend img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5)) brightness(1.1) contrast(1.1);
    mix-blend-mode: lighten;
    opacity: 0.9;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

/* Alternative blend mode for better visibility */
.hero-image-blend::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to left, rgba(15, 23, 42, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

@media (max-width: 992px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        justify-content: center !important;
    }
}

/* Initial animation states */
.hero-animate {
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
}

.hero-description {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
    opacity: 0;
}

.hero-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    display: inline-block;
}

.hero-features li {
    padding: 0.75rem 0;
    color: white;
    font-size: 1.125rem;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-features li:nth-child(1) {
    animation-delay: 1.0s;
}

.hero-features li:nth-child(2) {
    animation-delay: 1.2s;
}

.hero-features li:nth-child(3) {
    animation-delay: 1.4s;
}

.hero-features li:nth-child(4) {
    animation-delay: 1.6s;
}

.hero-features li i {
    color: #64ffda;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* Text reveal animation */
@keyframes textReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Letter-by-letter animation for title */
.hero-title {
    display: inline-block;
}

.hero-title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: white;
    margin: 10px auto 0;
    animation: expandLine 1s ease-out 1.5s forwards;
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

/* Jssor-style animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
}

.hero-section .hero-subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-section .hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    max-width: 700px;
    line-height: 1.8;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    opacity: 0;
}

.btn-primary-custom {
    background-color: white;
    color: var(--text-dark);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary-custom:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary-custom:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    background-color: #f8f9fa;
    color: var(--text-dark);
}

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

.btn-outline-custom {
    background-color: transparent;
    color: white;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-outline-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: white;
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-outline-custom:hover::before {
    left: 0;
}

.btn-outline-custom:hover {
    color: var(--primary-blue);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-outline-custom:active {
    transform: translateY(-1px) scale(1.02);
}

/* Section Styling */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -1px;
    line-height: 1.2;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.25rem;
    margin-bottom: 4rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    z-index: 5;
}

.stat-card {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-icon {
    font-size: 3rem;
    color: #64ffda;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
}

.stat-label {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Services Overview Section */
.services-overview-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.services-overview-content {
    max-width: 900px;
    margin: 0 auto;
}

.services-overview-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.services-overview-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: left;
    display: inline-block;
}

.services-overview-features li {
    padding: 0.75rem 0;
    color: white;
    font-size: 1.125rem;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.services-overview-features li:nth-child(1) {
    animation-delay: 0.3s;
}

.services-overview-features li:nth-child(2) {
    animation-delay: 0.5s;
}

.services-overview-features li:nth-child(3) {
    animation-delay: 0.7s;
}

.services-overview-features li:nth-child(4) {
    animation-delay: 0.9s;
}

.services-overview-features li i {
    color: #64ffda;
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.services-overview-buttons {
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

/* Testimonials Section */
.testimonials-section {
    background: #f8f9fa;
    padding: 100px 0;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author h5 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.testimonial-author p {
    color: var(--text-gray);
    margin: 0;
}

/* Services Section */
.services-section {
    position: relative;
    background-image: url('../images/Medicine.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    padding: 100px 0;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.75);
    z-index: 1;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

.services-section .section-title {
    color: white;
}

.services-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.services-section .carousel-control-prev,
.services-section .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0.8;
}

.services-section .carousel-control-prev:hover,
.services-section .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
}

/* Flip Card Container */
.flip-card-container {
    perspective: 1200px;
    -webkit-perspective: 1200px;
    height: 100%;
    min-height: 350px;
    width: 100%;
    position: relative;
}

.service-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -webkit-transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    pointer-events: auto;
}

.service-card:hover {
    transform: rotateY(180deg) !important;
    -webkit-transform: rotateY(180deg) !important;
}

.flip-card-container:hover .service-card {
    transform: rotateY(180deg) !important;
    -webkit-transform: rotateY(180deg) !important;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.flip-card-front {
    overflow: hidden;
}

.flip-card-back {
    overflow: auto;
}

.flip-card-front {
    background: rgba(30, 30, 60, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
}

.flip-card-front .service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.flip-card-front .service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 2rem;
    z-index: 2;
    pointer-events: none;
}

.flip-card-front h4 {
    font-weight: 700;
    font-size: 1.75rem;
    color: white;
    letter-spacing: -0.5px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.flip-card-back {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
    background: rgba(20, 40, 80, 1);
    padding: 2.5rem;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(100, 200, 255, 0.3);
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2;
    overflow: visible !important;
}

.flip-card-back h4 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: white !important;
    letter-spacing: -0.5px;
    text-align: center;
    display: block !important;
    visibility: visible !important;
}

.flip-card-back p {
    color: white !important;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
    text-align: center;
    max-width: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}


/* About Section */
.about-section {
    background-color: #f8f9fa !important;
    position: relative;
    z-index: 10;
    padding: 100px 0;
}

/* About Feature Cards */
.about-feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 8px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); */
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-feature-card:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12); */
}

.feature-card-blue {
    background: var(--primary-blue) !important;
    color: white;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    display: block;
}

.feature-icon-white {
    color: white !important;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-title-white {
    color: white !important;
}

.feature-description {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.feature-description-white {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* About Content */
.about-content {
    padding-left: 2rem;
}

.about-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.about-main-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.about-text {
    color: var(--text-gray);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Highlight Lubumbashi */
.highlight-lubumbashi {
    font-weight: 700;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.1) 100%);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary-blue);
}

.btn-about-cta {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-about-cta:hover {
    background: var(--text-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .about-content {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .about-main-title {
        font-size: 2rem;
    }
}

@media (max-width: 1002px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-feature-card {
        padding: 2rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    .about-main-title {
        font-size: 1.75rem;
    }
}

/* Contact Section */
.contact-section {
    /* background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%); */
    /* color: white; */
    position: relative;
}

.contact-section-bg {
    background-color: #f8f9fa;
}

.contact-section .section-title {
    color: black;
}

.contact-section .section-subtitle {
    color: black;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    border: 0px solid #e5e7eb;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    background: #ffffff;
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
}

.contact-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

.contact-form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.contact-form-card form {
    position: relative;
    z-index: 1;
}

.contact-form-card .form-control {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: var(--text-dark);
    padding: 12px 16px;
    border-radius: 8px;
}

.contact-form-card .form-control::placeholder {
    color: var(--text-light);
}

.contact-form-card .form-control:focus {
    background: #ffffff;
    border-color: var(--primary-blue);
    color: var(--text-dark);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.map-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.map-iframe {
    border: 0;
}

.contact-map-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

.honeypot {
    display: none;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float i {
    font-size: 32px;
}

@media (max-width: 1002px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
        font-size: 28px;
    }
    
    .whatsapp-float i {
        font-size: 28px;
    }
}

/* Appointment Modal */
.appointment-modal .modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.appointment-modal .modal-header {
    background: white;
    color: var(--text-dark);
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.appointment-modal .modal-title {
    font-weight: 600;
    font-size: 1.75rem;
    color: var(--text-dark);
    width: 100%;
    text-align: center;
    margin: 0;
}

.appointment-modal .btn-close {
    opacity: 1;
}

.appointment-modal .modal-body {
    padding: 2rem;
    background: white;
}

/* Material Design Form Styles */
.material-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.material-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.material-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    background: transparent;
    padding: 8px 0;
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.material-input::placeholder {
    color: transparent;
}

.material-input:focus {
    border-bottom-color: var(--primary-blue);
    border-bottom-width: 2px;
}

.material-input:focus ~ .material-label,
.material-form-group:focus-within .material-label {
    color: var(--primary-blue);
}

.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.captcha-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    padding: 8px 16px;
    background-color: var(--bg-light);
    border-radius: 6px;
    min-width: 100px;
    text-align: center;
    white-space: nowrap;
}

.material-input-captcha {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
}

.btn-captcha-refresh {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.btn-captcha-refresh:hover {
    background: var(--primary-blue-dark);
    transform: rotate(180deg);
}

.btn-captcha-refresh:active {
    transform: rotate(180deg) scale(0.95);
}

.btn-captcha-refresh i {
    font-size: 1.1rem;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .captcha-question {
        text-align: center;
        width: 100%;
    }
    
    .material-input-captcha {
        max-width: 100%;
        width: 100%;
    }
    
    .btn-captcha-refresh {
        width: 100%;
    }
}

.material-textarea {
    resize: vertical;
    min-height: 80px;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 0;
    line-height: 1.6;
}

.material-textarea:focus {
    border-bottom-color: var(--primary-blue);
    border-bottom-width: 2px;
}

.material-form-group:focus-within .material-label {
    color: var(--primary-blue);
}

.appointment-modal .modal-footer {
    border-top: none;
    padding: 1.5rem 2rem 2rem;
    justify-content: center;
    background: white;
}

.appointment-modal .btn-submit {
    background: #1f2937;
    color: white;
    padding: 14px 50px;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.appointment-modal .btn-submit:hover {
    background: #111827;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.appointment-modal .btn-submit.loading {
    cursor: not-allowed;
    opacity: 0.8;
}

.appointment-modal .btn-submit.loading:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.appointment-modal .btn-submit .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
    vertical-align: middle;
}

/* Welcome Section - Enhanced Professional Design */
.welcome-section {
    background: #ffffff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    display: none;
}

.welcome-images {
    position: relative;
    height: 600px;
}

.welcome-image-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    z-index: 2;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.welcome-image-top:hover {
    transform: translateY(-5px);
}

.welcome-image-top img {
    width: 100%;
    height: auto;
    display: block;
}

.welcome-image-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.welcome-image-bottom:hover {
    transform: translateY(5px);
}

.welcome-image-bottom img {
    width: 100%;
    height: auto;
    display: block;
}

.welcome-content {
    padding-left: 2rem;
}

.welcome-content-left {
    text-align: left;
}

.welcome-images-left {
    text-align: left;
}

.welcome-subtitle {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 30px;
    border: 2px solid var(--primary-blue);
}

.welcome-title {
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-text {
    color: var(--text-gray);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.welcome-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.welcome-features li {
    padding: 0.75rem 0;
    color: var(--text-gray);
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.welcome-features li:hover {
    transform: translateX(5px);
}

.welcome-features li i {
    color: var(--primary-blue);
    margin-right: 0.75rem;
    font-size: 1.25rem;
    background: rgba(37, 99, 235, 0.1);
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-welcome {
    background: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-welcome:hover {
    background: var(--primary-blue-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

@media (max-width: 992px) {
    .welcome-content {
        padding-left: 0;
        margin-top: 3rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-images {
        height: auto !important;
        min-height: 400px !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        justify-content: center !important;
        align-items: flex-end !important;
        position: relative !important;
    }
    
    .welcome-image-top,
    .welcome-image-bottom {
        position: relative !important;
        width: calc(50% - 7.5px) !important;
        flex: 0 0 calc(50% - 7.5px) !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 1 !important;
        margin: 0 !important;
    }
    
    .welcome-image-top img,
    .welcome-image-bottom img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
    }
}

@media (max-width: 1002px) {
    .welcome-section {
        padding: 60px 0;
    }
    
    .welcome-section .row {
        display: flex;
        flex-direction: column;
    }
    
    .welcome-section .col-lg-6:first-child {
        order: 1;
    }
    
    .welcome-section .col-lg-6:last-child {
        order: 2;
        margin-top: 2rem;
    }
    
    .welcome-images {
        height: auto !important;
        min-height: 350px !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        justify-content: center !important;
        align-items: flex-end !important;
        position: relative !important;
    }
    
    .welcome-image-top,
    .welcome-image-bottom {
        position: relative !important;
        width: calc(50% - 5px) !important;
        flex: 0 0 calc(50% - 5px) !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 1 !important;
        margin: 0 !important;
    }
    
    .welcome-image-top img,
    .welcome-image-bottom img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
    }
}

/* Footer */
.footer {
    /* background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); */
    /* color: rgba(255, 255, 255, 0.8); */
    padding: 60px 0 30px;
    /* background-color: blue; */
}

.footer h5 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    /* color: white; */
}

.footer-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.footer-logo-size {
    height: 150px;
}

.footer p {
    /* color: rgba(255, 255, 255, 0.7); */
    line-height: 1.7;
    font-size: 0.97rem;
}

.footer a {
    /* color: rgba(255, 255, 255, 0.7); */
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer a:hover {
    /* color: white; */
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-right: 0.75rem;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 30px;
}

/* Responsive */
@media (max-width: 992px) {
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content h2 {
        font-size: 2.5rem;
    }
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 1002px) {
    /* Container & General */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Navigation - Not sticky on Mobile */
    .navbar {
        padding: 0.75rem 0 !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        z-index: 1050 !important;
        background-color: white !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Remove padding from body since navbar is not fixed */
    body {
        padding-top: 0 !important;
    }
    
    /* Ensure top bar doesn't interfere */
    .top-bar {
        position: relative;
        z-index: 1040;
    }
    
    /* Hero section should account for fixed navbar */
    .hero-carousel-section {
        margin-top: 0 !important;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .logo-container {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }
    
    .logo-container .navbar-logo {
        height: 60px !important;
    }
    
    /* Mobile Brand Text */
    .mobile-brand-text {
        display: none;
    }
    
    .mobile-brand-text h3 {
        font-size: 1.5rem;
        font-weight: 900;
        color: var(--text-dark);
        margin: 0;
        text-align: center;
        padding: 0.75rem 0;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
        letter-spacing: -0.5px;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
        margin: 0.25rem 0;
    }
    
    .nav-appointment-btn {
        margin: 1rem auto 0 !important;
        display: block;
        width: fit-content;
    }
    
    .navbar-nav .language-switcher {
        display: flex !important;
        justify-content: center;
        margin: 1rem 0;
        padding: 0.5rem;
    }
    
    .navbar-nav .nav-item .language-switcher .lang-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .mobile-brand-text {
        display: block !important;
        width: 100%;
        order: 3;
        margin-top: 0.5rem;
        border-top: 1px solid #e5e7eb;
        padding-top: 0.5rem;
    }
    
    .mobile-brand-text h3 {
        font-size: 1.1rem !important;
        font-weight: 900 !important;
        margin: 0 !important;
        padding: 0.5rem 0 !important;
        text-align: center !important;
    }
    
    .navbar {
        flex-direction: row !important;
        align-items: center !important;
    }
    
    .navbar .container {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .navbar-brand {
        flex: 0 0 auto;
        margin-bottom: 0;
        width: auto;
        display: flex;
        align-items: center;
    }
    
    .navbar-toggler {
        order: 2;
        margin-left: auto;
    }
    
    .logo-container .navbar-logo {
        height: 70px !important;
    }
    
    .navbar-toggler {
        margin-left: auto !important;
        order: 2;
        flex-shrink: 0;
    }
    
    .navbar-collapse {
        width: 100%;
        order: 3;
        margin-top: 0.5rem;
    }
    
    /* Hero Carousel - Mobile: Professional & Neat Display */
    .hero-carousel-section {
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
    }
    
    #heroCarousel {
        position: relative;
    }
    
    /* Carousel items - maintain Bootstrap carousel functionality */
    .carousel-item {
        transition: opacity 0.6s ease-in-out;
    }
    
    .carousel-item.active {
        display: block;
    }
    
    /* Carousel controls - show on mobile with better styling */
    .carousel-control-prev,
    .carousel-control-next {
        display: flex !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: 50% !important;
        opacity: 0.9 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .carousel-control-prev {
        left: 10px !important;
    }
    
    .carousel-control-next {
        right: 10px !important;
    }
    
    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background: rgba(255, 255, 255, 1) !important;
        opacity: 1 !important;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px !important;
        height: 20px !important;
        filter: brightness(0) saturate(100%) invert(20%) sepia(100%) saturate(5000%) hue-rotate(210deg) brightness(0.9) contrast(1);
    }
    
    /* Carousel indicators - show on mobile */
    .carousel-indicators {
        display: flex !important;
        bottom: 120px !important;
        margin: 0 !important;
        justify-content: center !important;
        z-index: 10 !important;
    }
    
            .carousel-indicators button {
                width: 4px !important;
                height: 4px !important;
                border-radius: 50% !important;
                background: rgba(255, 255, 255, 0.5) !important;
                border: 1px solid transparent !important;
                margin: 0 3px !important;
                padding: 0 !important;
            }
            
            .carousel-indicators button.active {
                background: white !important;
                border-color: white !important;
                transform: scale(1.5) !important;
            }
    
    .carousel-slide {
        height: auto !important;
        min-height: 70vh !important;
        padding: 0 !important;
        background-size: cover !important;
        background-position: center !important;
        background-attachment: scroll !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
    }
    
    .carousel-slide .container {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: flex-end !important;
    }
    
    .carousel-content {
        text-align: center !important;
        margin: 0 !important;
        padding: 30px 20px !important;
        max-width: 100% !important;
        width: 100% !important;
        background: rgba(15, 23, 42, 0.65) !important;
        border-radius: 0 !important;
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.2) !important;
    }
    
    .carousel-title {
        font-size: 2.25rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.25rem !important;
        text-align: center !important;
        font-weight: 900 !important;
        color: white !important;
    }
    
    .flip-word-container {
        min-width: 130px !important;
        height: 1.4em !important;
        display: inline-block !important;
    }
    
    .carousel-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 1.75rem !important;
        text-align: center !important;
        line-height: 1.7 !important;
        color: rgba(255, 255, 255, 0.95) !important;
    }
    
    .carousel-features {
        display: none !important;
    }
    
    .carousel-features li {
        font-size: 0.95rem !important;
        padding: 0.6rem 0 !important;
        text-align: left !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .carousel-features li i {
        margin-right: 0.75rem !important;
        font-size: 1.1rem !important;
        color: #64ffda !important;
    }
    
    .carousel-btn {
        margin-top: 1.5rem !important;
        padding: 10px 24px !important;
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        width: auto !important;
        max-width: 200px !important;
        display: inline-block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        border-radius: 6px !important;
    }
    
    
    /* Sections */
    .section {
        padding: 40px 0 !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Services Section */
    .services-section {
        padding: 40px 0 !important;
    }
    
    .flip-card-container {
        min-height: 280px !important;
        margin-bottom: 1.5rem;
    }
    
    .service-card {
        min-height: 280px !important;
    }
    
    .flip-card-front h4 {
        font-size: 1.25rem !important;
    }
    
    .flip-card-back {
        padding: 1.5rem !important;
    }
    
    .flip-card-back h4 {
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }
    
    .flip-card-back p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    /* About Section */
    .about-section {
        padding: 40px 0 !important;
    }
    
    .about-content {
        padding-left: 0 !important;
        margin-top: 2rem;
        text-align: center;
    }
    
    .about-subtitle {
        font-size: 0.75rem !important;
    }
    
    .about-main-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .about-text {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .about-feature-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .feature-title {
        font-size: 1.25rem !important;
    }
    
    .feature-description {
        font-size: 0.95rem !important;
    }
    
    /* Statistics Section */
    .statistics-section {
        padding: 40px 0 !important;
    }
    
    .stat-card {
        margin-bottom: 1.5rem;
    }
    
    .stat-icon {
        font-size: 2.5rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.875rem !important;
    }
    
    /* Testimonials */
    .testimonials-section {
        padding: 40px 0 !important;
    }
    
    .testimonial-card {
        padding: 1.5rem !important;
    }
    
    .testimonial-text {
        font-size: 0.95rem !important;
    }
    
    /* Contact Section */
    .contact-section {
        padding: 40px 0 !important;
    }
    
    .contact-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem !important;
    }
    
    .contact-icon {
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .contact-card h5 {
        font-size: 1.125rem !important;
    }
    
    .contact-card p {
        font-size: 0.95rem !important;
    }
    
    /* Welcome Section - Mobile Enhanced */
    .welcome-section {
        padding: 50px 0 !important;
    }
    
    .welcome-content {
        padding-left: 0 !important;
        margin-top: 2.5rem;
        text-align: center;
    }
    
    .welcome-subtitle {
        font-size: 0.875rem !important;
        padding: 6px 16px !important;
        letter-spacing: 1.5px !important;
    }
    
    .welcome-title {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1.25rem !important;
    }
    
    .welcome-text {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .welcome-features {
        margin-bottom: 1.5rem !important;
    }
    
    .welcome-features li {
        font-size: 1rem !important;
        padding: 0.6rem 0 !important;
        justify-content: center;
    }
    
    .welcome-features li i {
        font-size: 1.1rem !important;
        width: 32px !important;
        height: 32px !important;
        padding: 6px !important;
    }
    
    .welcome-section .row {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .welcome-section .col-lg-6:first-child {
        order: 1 !important;
    }
    
    .welcome-section .col-lg-6:last-child {
        order: 2 !important;
        margin-top: 2.5rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Ensure images appear at the bottom of the section on mobile */
    .welcome-images-left {
        order: 999 !important;
    }
    
    .welcome-images {
        height: auto !important;
        min-height: 300px !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        justify-content: center !important;
        align-items: flex-end !important;
        margin-bottom: 2.5rem;
        position: relative !important;
    }
    
    .welcome-image-top,
    .welcome-image-bottom {
        position: relative !important;
        width: calc(50% - 5px) !important;
        flex: 0 0 calc(50% - 5px) !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 1 !important;
        margin: 0 !important;
    }
    
    .welcome-image-top img,
    .welcome-image-bottom img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
    }
    
    .btn-welcome {
        width: 100% !important;
        max-width: 300px !important;
        padding: 12px 30px !important;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px !important;
        text-align: center;
    }
    
    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    .footer-logo {
        height: 80px !important;
        margin-bottom: 1rem;
    }
    
    /* Modal */
    .appointment-modal .modal-dialog {
        margin: 10px;
    }
    
    .appointment-modal .modal-header {
        padding: 1.5rem 1rem 0.75rem !important;
    }
    
    .appointment-modal .modal-title {
        font-size: 1.5rem !important;
    }
    
    .appointment-modal .modal-body {
        padding: 1.5rem 1rem !important;
    }
    
    .material-form-group {
        margin-bottom: 1.25rem !important;
    }
    
    .appointment-modal .modal-footer {
        padding: 1rem !important;
    }
    
    .appointment-modal .btn-submit {
        padding: 12px 30px !important;
        width: 100%;
    }
    
    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        right: 20px !important;
        font-size: 24px !important;
    }
    
    .whatsapp-float i {
        font-size: 24px !important;
    }
}

@media (max-width: 576px) {
    .carousel-title {
        font-size: 1.25rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .flip-card-container {
        min-height: 250px !important;
    }
    
    .service-card {
        min-height: 250px !important;
    }
    
    .about-main-title {
        font-size: 1.5rem !important;
    }
    
    .welcome-title {
        font-size: 1.5rem !important;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ============================================
   SECTION ENTRY ANIMATIONS
   ============================================ */

/* Base animation states - hidden by default */
.section-animate {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for child elements */
.section-animate-stagger > * {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate-stagger.animate-in > *:nth-child(1) {
    transition-delay: 0.1s;
}

.section-animate-stagger.animate-in > *:nth-child(2) {
    transition-delay: 0.2s;
}

.section-animate-stagger.animate-in > *:nth-child(3) {
    transition-delay: 0.3s;
}

.section-animate-stagger.animate-in > *:nth-child(4) {
    transition-delay: 0.4s;
}

.section-animate-stagger.animate-in > *:nth-child(5) {
    transition-delay: 0.5s;
}

.section-animate-stagger.animate-in > *:nth-child(6) {
    transition-delay: 0.6s;
}

.section-animate-stagger.animate-in > * {
    opacity: 1;
    transform: translateY(0);
}

/* Fade in from left */
.section-animate-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.section-animate-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate-right.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Scale animation */
.section-animate-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-animate-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Mobile optimizations - reduce animation distance */
@media (max-width: 768px) {
    .section-animate {
        transform: translateY(40px);
    }
    
    .section-animate-left,
    .section-animate-right {
        transform: translateX(0);
        transform: translateY(40px);
    }
    
    .section-animate-stagger > * {
        transform: translateY(30px);
    }
}

/* ============================================
   IMAGE ERROR HANDLING
   ============================================ */

/* Hide broken images gracefully */
img[src=""],
img:not([src]) {
    display: none;
}

/* Image error state styling */
img.img-error {
    display: none;
}

/* Placeholder for failed images */
.img-placeholder {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 0.875rem;
    min-height: 200px;
}
