/* ============================================
   Saha Medical Hall - Professional Stylesheet
   ============================================ */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #00948c;
    --primary-dark: #007a74;
    --primary-light: #008f88;
    --secondary-color: #6c757d;
    --accent-color: #FFA500;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    --box-shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ===== Top Bar ===== */
.top-bar {
    background: var(--dark-color);
    color: var(--white);
    padding: 0.7rem 0;
    font-size: 0.9rem;
}

.top-bar-left span {
    margin-right: 1.5rem;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: var(--transition);
}

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

.top-bar i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

/* ===== Navigation ===== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

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

.navbar-brand img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    color: var(--dark-color) !important;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem !important;
}

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

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

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

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    height: 600px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

/* Fallback gradients if images don't load */
.slide-1 {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.slide-2 {
    background-color: var(--primary-light);
    background-image: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
}

.slide-3 {
    background-color: var(--primary-dark);
    background-image: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.carousel-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.carousel-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease;
}

.carousel-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 1s ease;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--white);
    background: var(--white);
    color: var(--primary-color);
    animation: fadeInUp 1.4s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 148, 140, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: var(--transition);
    z-index: 10;
}

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

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

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev:focus,
.carousel-control-next:focus {
    background: var(--primary-color);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 25px;
    height: 25px;
    background-size: 100% 100%;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--white);
    opacity: 0.5;
    transition: var(--transition);
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: var(--accent-color);
    transform: scale(1.2);
}

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

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

/* ===== Section Styles ===== */
.about-section,
.products-section,
.map-section {
    padding: 100px 0;
}

.about-section {
    background: var(--white);
}

.products-section {
    background: var(--white);
}

.brands-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.map-section {
    background: var(--light-bg);
}

/* ===== Section Title ===== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.section-title.text-white {
    color: var(--white);
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-title.text-white + .title-underline {
    background: var(--accent-color);
}

/* ===== About Section ===== */
.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-color);
}

.info-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-hover);
    background: var(--white);
}

.info-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotateY(360deg);
}

.info-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

/* ===== Products Section ===== */
.product-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    height: 100%;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
    background: var(--white);
}

.product-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

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

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.product-description {
    color: var(--secondary-color);
    line-height: 1.7;
}

/* ===== Brands Section - Scrolling Image ===== */
.brands-scroll-wrapper {
    overflow: hidden;
    padding: 2rem 0;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

.brands-scroll-container {
    display: flex;
    width: fit-content;
    animation: scrollBrands 40s linear infinite;
}

.brands-scroll-container:hover {
    animation-play-state: paused;
}

.brands-image {
    height: 150px;
    width: auto;
    display: block;
}

@keyframes scrollBrands {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-4386px);
    }
}

/* ===== Map Section ===== */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    height: 450px;
    border: 3px solid var(--primary-color);
}

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

/* ===== Contact Section ===== */
.contact-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.2);
}

.contact-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.25);
    border-color: var(--white);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotateY(360deg);
}

.contact-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* ===== Footer Styles ===== */
.footer {
    background: var(--dark-color);
    color: var(--white);
}

.footer-main {
    padding: 4rem 0 2rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-badge {
    background: rgba(0, 148, 140, 0.2);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

.footer-badge i {
    margin-right: 0.5rem;
}

.footer-widget-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links a i {
    font-size: 0.7rem;
    margin-right: 0.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-links a:hover i {
    color: var(--accent-color);
}

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

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.1rem;
    margin-top: 0.2rem;
    min-width: 20px;
}

.footer-contact span {
    color: rgba(255,255,255,0.7);
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}

.social-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 148, 140, 0.3);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-copyright {
    margin: 0;
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

.footer-copyright strong {
    color: var(--primary-color);
}

/* ===== Scroll to Top Button ===== */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 148, 140, 0.3);
}

.scroll-top-btn:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.4);
}

.scroll-top-btn.show {
    display: flex;
}

/* ===== Responsive Design ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: var(--box-shadow);
    }
    
    .nav-link {
        padding: 0.8rem 1rem !important;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        height: 500px;
    }

    .carousel-title {
        font-size: 2.5rem;
    }
    
    .carousel-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

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

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

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

    .carousel-badge {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    .top-bar {
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        justify-content: center;
        width: 100%;
    }

    .top-bar a {
        margin: 0 0.5rem;
        font-size: 0.85rem;
    }

    .footer-widget {
        margin-bottom: 2rem;
    }

    .footer-logo {
        margin: 0 auto;
        display: block;
    }

    .footer-widget-title::after {
        left: 0;
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 450px;
    }

    .carousel-title {
        font-size: 2rem;
    }
    
    .carousel-subtitle {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .about-section,
    .products-section,
    .brands-section,
    .map-section,
    .contact-section {
        padding: 60px 0;
    }

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

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

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

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

    .carousel-badge {
        padding: 0.3rem 0.8rem;
        font-size: 0.85rem;
    }
}