/* Dr. Sushmita's Clinic - Unified Stylesheet */
:root {
    --primary-color: #14B8A6;
    --primary-hover: #0D9488;
    --primary-dark: #0F766E;
    --accent-color: #F59E0B;
    --accent-hover: #D97706;
    --navy-dark: #0a192f;
    --body-bg: #0B1120;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    font-family: 'Poppins', sans-serif;
    max-width: 100vw;
}

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

body {
    background-color: var(--body-bg);
    color: white;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', serif;
}

/* Navbar Custom Styles */
.bg-dark-nav {
    background-color: rgba(10, 25, 47, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1030 !important;
    min-height: 70px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

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

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

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

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-dark));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.4);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5EEAD4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-amber {
    background: linear-gradient(135deg, var(--accent-color) 0%, #FBBF24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    border-color: rgba(20, 184, 166, 0.3);
    box-shadow: 0 20px 40px rgba(20, 184, 166, 0.15);
}

/* Hero Section */
.hero-section {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.5;
}

.hero-img-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 17, 32, 0.8), transparent);
}

.hero-floating-card {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Stats */
.stats-card {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0.05) 100%);
    border: 1px solid rgba(20, 184, 166, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    height: 100%;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Gallery */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* WhatsApp & Chat Buttons */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

#chat-fab {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
    border: none;
}

#chat-fab:hover {
    transform: scale(1.1);
}

/* Modals */
.modal-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content-custom {
    background: var(--navy-dark);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: white;
}

.form-control-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    border-radius: 10px;
    padding: 12px 16px;
}

.form-control-custom:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
    color: white;
}

/* Utility Classes */
.bg-navy-dark { background-color: var(--navy-dark) !important; }
.bg-teal { background-color: var(--primary-color) !important; }
.text-teal { color: var(--primary-color) !important; }
.text-amber { color: var(--accent-color) !important; }
.bg-teal-subtle { background: rgba(20, 184, 166, 0.1) !important; }
.section-padding { padding: 100px 0; }
.pattern-bg {
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(11, 17, 32, 0.8) 0%, transparent 100%);
}

.shadow-glow {
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

/* Treatment Card Specifics */
.treatment-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.treatment-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.treatment-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.treatment-card:hover .treatment-img-container img {
    transform: scale(1.1);
}

/* Chat Modal Customization */
#chat-modal .chat-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-width: calc(100vw - 60px);
    height: 500px;
    max-height: calc(100vh - 150px);
    background: #111827;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 10000;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--body-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(20, 184, 166, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Mobile Responsive Fixes */
@media (max-width: 991.98px) {
    .navbar-brand span {
        font-size: 0.95rem;
    }
    .navbar .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 90px 0 40px;
    }
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    .hero-section .lead {
        font-size: 0.9rem;
    }
    .hero-floating-card {
        display: none !important;
    }
    .section-padding {
        padding: 50px 0;
    }
    .section-padding .display-5 {
        font-size: 1.5rem;
    }
    .stats-card {
        padding: 1.25rem;
    }
    .stats-card h3 {
        font-size: 1.5rem;
    }
    .stats-card p {
        font-size: 0.8rem;
    }
    .glass-card.p-4 {
        padding: 1rem !important;
    }
    .treatment-img-container {
        height: 150px;
    }
    #chat-modal .chat-container {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 90px;
        height: 450px;
        max-height: calc(100vh - 120px);
    }
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
        bottom: 20px;
        right: 20px;
    }
    #chat-fab {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 80px;
        right: 20px;
    }
    .gallery-item {
        aspect-ratio: auto;
        height: auto;
    }
    .modal-dialog {
        margin: 10px;
    }
    .form-control-custom {
        padding: 10px 12px;
        font-size: 16px;
    }
    .btn-primary-custom {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .navbar-brand .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .navbar-toggler i {
        font-size: 1.75rem !important;
    }
    .nav-link {
        padding: 0.4rem 0 !important;
        font-size: 0.9rem;
    }
    footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    footer .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .hero-section .glass-card.p-4 {
        padding: 0.75rem !important;
    }
    .hero-section .glass-card h5 {
        font-size: 0.9rem;
    }
    .hero-section .glass-card p {
        font-size: 0.75rem;
    }
    .hero-section .row.g-4 {
        --bs-gutter-y: 0.75rem;
    }
    .glass-card.card-hover:hover {
        transform: none;
    }
    .rounded-4.overflow-hidden.shadow-lg[style*="height: 500px"] {
        height: 350px !important;
    }
    .doctor-img-col .rounded-4 {
        height: 350px !important;
    }
    section .rounded-4.overflow-hidden.shadow-lg:not(.treatment-card *) {
        max-height: 350px;
    }
    .wellness-card-img,
    [class*="col-"] .glass-card [style*="height: 200px"] {
        height: 160px !important;
    }
    [class*="col-"] .glass-card [style*="height: 250px"] {
        height: 200px !important;
    }
    .contact-map {
        height: 220px !important;
    }
    iframe[style*="height: 300px"] {
        height: 220px !important;
    }
    .display-5.font-serif.fw-bold {
        font-size: 1.4rem;
    }
    .hero-section .row.g-4 .col-md-4 {
        padding-left: 5px;
        padding-right: 5px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 80px 0 30px;
    }
    .hero-section .display-4 {
        font-size: 1.5rem;
    }
    .hero-section .badge {
        font-size: 0.7rem;
    }
    .section-padding .display-5 {
        font-size: 1.3rem;
    }
    .section-padding .lead {
        font-size: 0.85rem;
    }
    .stats-card {
        padding: 0.75rem;
    }
    .stats-card h3 {
        font-size: 1.1rem;
    }
    .stats-card p {
        font-size: 0.7rem;
    }
    .treatment-img-container {
        height: 230px;
    }
    .gallery-item {
        height: auto;
    }
    .navbar-brand span {
        font-size: 0.85rem;
    }
    .hero-section p {
        font-size: 0.85rem;
    }
    .rounded-4.overflow-hidden.shadow-lg[style*="height: 500px"] {
        height: 280px !important;
    }
    [class*="col-"] .glass-card [style*="height: 200px"] {
        height: 140px !important;
    }
    [class*="col-"] .glass-card [style*="height: 250px"] {
        height: 180px !important;
    }
    iframe[style*="height: 300px"] {
        height: 200px !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section .display-4 {
        font-size: 1.5rem;
    }
    .hero-section .badge {
        font-size: 0.7rem;
    }
    .section-padding .display-5 {
        font-size: 1.3rem;
    }
    .section-padding .lead {
        font-size: 0.85rem;
    }
    .stats-card {
        padding: 1rem;
    }
    .stats-card h3 {
        font-size: 1.25rem;
    }
    .treatment-img-container {
        height: 230px;
    }
    .gallery-item {
        height: 120px;
    }
    .navbar-brand span {
        font-size: 0.85rem;
    }
}
