* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Page Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e4c9a, #d90405);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: white;
}

.medical-loader {
    position: relative;
    font-size: 4rem;
}

.medical-loader i {
    color: white;
}

.pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: pulseWave 2s infinite;
}

.loader-text {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 300;
    animation: fadeIn 1s ease-in;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulseWave {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


body {
    height: 100vh;
    width: 100%;
    background: linear-gradient(-45deg, rgba(217, 4, 5, 1), rgba(30, 76, 154, 1), rgba(217, 4, 5, 0.8), rgba(30, 76, 154, 0.9));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(217, 4, 5, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.white-rectangle {
    width: 90%;
    height: 90%;
    background: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    border-top: 3px solid rgba(217, 4, 5, 1);
}

.logo {
    height: 3rem;
    width: auto;
}

.nav-menu {
    display: flex;
    position: static;
    background: none;
    border: none;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    flex: 1;
    justify-content: flex-end;
    margin-right: 1rem;
    transition: all 0.5s ease;
}

.nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Hamburger Menu */
.hamburger-menu {
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    border-radius: 5px;
}

.hamburger-menu:hover {
    color: rgba(217, 4, 5, 1);
}

.hamburger-menu.active i {
    color: rgba(217, 4, 5, 1);
}

/* X Icon Animation */
.hamburger-menu.active .fa-bars::before {
    content: "\f00d"; /* X icon */
}


.nav-list {
    list-style: none;
    margin: 0;
    padding: 1rem;
    display: flex;
    gap: 0;
    min-width: auto;
}

.nav-list li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.nav-link:last-child {
    border-right: none;
}

.nav-separator {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
    border: none;
}

.mobile-only {
    display: none;
}

/* Floating Button */
.float-btn {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 100;
}

.float-btn a {
    background: blue;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.float-btn a:hover {
    background: red;
    transform: scale(1.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(217, 4, 5, 1);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: rgba(217, 4, 5, 1);
}

.nav-link.active {
    color: blue;
}

.nav-link.login-btn, .nav-link.book-btn {
    background: blue;
    color: white;
    font-weight: 600;
    border-radius: 35px;
    margin-right: 1rem;
}

.nav-link.login-btn:hover, .nav-link.book-btn:hover {
    background: red;
    color: white;
    border-bottom: 2px solid blue;
}

.nav-link.login-btn::after, .nav-link.book-btn::after {
    display: none;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Image Slider Styles */
.image-slider {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.slider-container {
    display: flex;
    width: 300%; /* 3 slides */
    height: 100%;
    transition: transform 0.5s ease;
}

.slide {
    position: relative;
    width: 33.333%;
    height: 100%;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    z-index: 5;
    text-align: center;
}

#animated-text {
    transition: opacity 2s ease;
}

.slide:nth-child(2) .slide-caption {
    animation: fadeIn 1s ease-in;
}

.slide:nth-child(3) .slide-caption {
    animation: fadeIn 1s ease-in;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 50px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

/* Mobile Social Media */
.mobile-social-media {
    display: none;
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mobile-social-media .social-media {
    display: flex;
    gap: 15px;
}

/* Scroll Down Icon */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* About Page Styles */
.about-content {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 3em;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 76, 154, 0.8), rgba(30, 76, 154, 0.5));
    overflow-y: auto;
}

.image-section {
    position: absolute;
    right: 2rem;
    top: 0rem;
    width: 30%;
    height: calc(100% - 0rem);
    opacity: 0.8;
    z-index: 0;
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about-header h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: rgba(217, 4, 5, 1);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.tabs-section {
    display: flex;
    gap: 2rem;
    max-width: 80%;
}

.tabs {
    display: flex;
    flex-direction: column;
    width: 150px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    transition: background 0.3s ease;
}

.tab-button.active {
    background: rgba(217, 4, 5, 0.1);
    color: rgba(217, 4, 5, 1);
    font-weight: 600;
}

.tab-button:hover {
    background: rgba(217, 4, 5, 0.05);
}

.tab-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h2 {
    font-size: 1.6rem;
    color: red;
    margin-bottom: 1rem;
}

.tab-pane p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

/* Mobile About Page Styles */
@media (max-width: 768px) {
    .about-content {
        position: absolute;
        top: 3rem;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 1rem;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .about-content .image-section {
        display: block;
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        height: 200px;
        opacity: 1;
        margin-top: auto;
        margin-bottom: 0;
        order: 10;
        flex-shrink: 0;
    }

    .about-content .image-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center -50px;
        border-radius: 10px;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    }

    .about-container {
        order: 1;
        flex: 1;
    }

    .about-header {
        margin-bottom: 1rem;
    }

    .about-header h1 {
        font-size: 1.5rem;
        color: white;
    }

    .breadcrumb {
        color: rgba(255, 255, 255, 0.8);
    }

    .breadcrumb a {
        color: white;
    }

    .tabs-section {
        flex-direction: column;
        gap: 1rem;
        max-width: 100%;
    }

    .tabs {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        padding: 0.5rem;
        gap: 0.5rem;
        justify-content: center;
    }

    .tab-button {
        flex: 1;
        min-width: 70px;
        padding: 0.6rem 0.5rem;
        text-align: center;
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .tab-content {
        padding: 1rem;
    }

    .tab-pane h2 {
        font-size: 1.2rem;
        text-align: center;
    }

    .tab-pane p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .tab-pane ul {
        padding-left: 1.2rem;
    }

    .tab-pane li {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }
}

/* Services Page Styles */
.services-content {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 3em;
    padding: 2rem;
    overflow-y: auto;
}

.image-section {
    position: absolute;
    right: 2rem;
    top: 0rem;
    width: 30%;
    height: calc(100% - 0rem);
    opacity: 0.8;
    z-index: 0;
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-container h1 {
    font-size: 2.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.services-intro {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.services-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 70%;
}

.service-icon-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.service-icon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(217, 4, 5, 0.3);
}

.service-icon-card.active {
    border-color: rgba(217, 4, 5, 1);
    background: rgba(217, 4, 5, 0.05);
}

.service-icon-card .service-icon {
    font-size: 3rem;
    color: rgba(217, 4, 5, 1);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.service-icon-card:hover .service-icon {
    transform: scale(1.1);
    color: blue;
}

.service-icon-card h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.service-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-modal-content {
    background: rgba(255, 255, 255, 0.95);
    margin: 10% auto;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: rgba(217, 4, 5, 1);
}

.service-detail-content h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-detail-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1.5rem;
}

.service-detail-content .service-features {
    list-style: none;
    padding: 0;
}

.service-detail-content .service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 1rem;
}

.service-detail-content .service-features li:last-child {
    border-bottom: 1px solid #eee;
}

.service-detail-content .service-features li:before {
    content: "✓";
    color: rgba(217, 4, 5, 1);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Mobile Services Page Styles */
@media (max-width: 768px) {
    .services-content {
        position: absolute;
        top: 3rem;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 1rem;
        overflow-y: auto;
        background: linear-gradient(135deg, rgba(30, 76, 154, 0.9), rgba(30, 76, 154, 0.7));
    }

    .services-content .image-section {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        height: 400px;
        opacity: 1;
        margin-bottom: -9rem;
        display: block;
    }

    .services-content .image-section img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    }

    .services-container {
        margin-top: 0.5rem;
    }

    .services-container h1 {
        font-size: 1.5rem;
        color: white;
        margin-bottom: 1rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .services-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .service-icon-card {
        padding: 1rem 0.6rem;
        border-radius: 12px;
        opacity: 1;
        transform: none;
    }

    .service-icon-card .service-icon {
        font-size: 1.8rem;
        margin-bottom: 0.4rem;
    }

    .service-icon-card h4 {
        font-size: 0.8rem;
        font-weight: 600;
    }

    .service-modal {
        z-index: 10000;
    }

    .service-modal-content {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        padding: 1.5rem;
        width: 90%;
        max-width: none;
        border-radius: 12px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .close-modal {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.8rem;
    }

    .service-detail-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .service-detail-content p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .service-detail-content .service-features li {
        padding: 0.4rem 0;
        font-size: 0.85rem;
    }
}

/* Animation Classes */
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3em;
    background: white;
    color: red;
    padding: 0 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    font-weight: 300;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-media {
    display: flex;
    gap: 15px;
}

.social-link {
    color: black;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: rgba(217, 4, 5, 1);
}

.separator {
    color: black;
    font-size: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: black;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 300;
}

.footer-links a:hover {
    color: rgba(217, 4, 5, 1);
}

.copyright {
    font-size: 0.9rem;
    font-weight: 300;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        overflow: hidden !important;
    }

    .white-rectangle {
        padding: 1.5rem;
    }

    .header {
        padding: 0 1.5rem;
        height: 3rem;
    }

    .logo {
        height: 2rem;
    }

    .hamburger-menu {
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.8);
        padding: 0.25rem;
        border-radius: 5px;
        position: relative;
        z-index: 15;
        margin-right: 0.5rem;
    }

    #headerLogin {
        display: none;
    }

    .mobile-only {
        display: list-item;
    }

    .float-btn {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        z-index: 10;
        transform: translateX(0);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .image-slider {
        top: 3rem;
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1.5rem;
        overflow: hidden;
    }

    .slide-caption {
        font-size: 2rem;
    }

    .slider-dots {
        bottom: 60px;
    }

    .mobile-social-media {
        display: block;
        bottom: 40px;
    }

    .mobile-social-media .social-media {
        gap: 20px;
    }

    .mobile-social-media .social-link {
        color: white;
        font-size: 1.5rem;
    }

    .footer .social-media {
        display: none;
    }

    .footer .separator {
        display: none;
    }

    .copyright {
        display: none;
    }

    .footer {
        display: none;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-link {
        text-align: center;
    }

    .nav-buttons {
        display: flex;
        justify-content: center;
        gap: 1rem;
        padding: 0.5rem;
        border-bottom: none;
    }

    .nav-buttons .nav-link {
        flex: 1;
        max-width: 120px;
    }

    .scroll-down {
        bottom: 35px;
    }
}