/* JMTDI - Premium Medical Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Brand Core */
    --bs-primary: #157a4a;
    /* Deep Medical Green */
    --bs-primary-rgb: 21, 122, 74;
    --bs-success: #198754;
    --bs-dark: #1e293b;

    /* Medical Palette */
    --jmtdi-teal: #0d9488;
    --jmtdi-blue: #0f766e;
    --jmtdi-light: #f0fdf4;
    --jmtdi-gradient: linear-gradient(135deg, #157a4a 0%, #0d9488 100%);

    /* Surfaces */
    --surface-white: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.95);
    --surface-light: #f8fafc;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -5px rgba(21, 122, 74, 0.15);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-body);
    background-color: var(--surface-light);
    color: #334155;
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--bs-dark);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* --- Components --- */

/* Navbar: Glassmorphic */
.navbar-glass {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    color: #475569 !important;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bs-primary) !important;
}

/* Buttons */
.btn-primary-gradient {
    background: var(--jmtdi-gradient);
    border: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(21, 122, 74, 0.3);
    color: white;
}

/* Hero Section - V3 Smooth Motion */
.hero-section {
    position: relative;
    padding-top: 80px;
    /* Navbar offset */
    padding-bottom: 40px;
    background-color: #fafafa;
    /* Very light subtle gray */
}

/* Custom Image Shape */
.hero-image-wrapper {
    position: relative;
    animation: floatImage 6s ease-in-out infinite;
}

.hero-main-img {
    border-radius: 40px 40px 40px 100px;
    object-fit: cover;
    width: 100%;
    min-height: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    background-color: transparent !important;
    /* Ensure no background color for videos */
}

.hero-main-img:hover {
    transform: scale(1.02);
}

/* Floating Animations */
.float-card {
    animation: floatCard 6s ease-in-out infinite;
}

.float-card-1 {
    animation-delay: 0s;
}

.float-card-2 {
    animation-delay: 2.5s;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.blur-3xl {
    filter: blur(80px);
}

.icon-link-hover {
    transition: transform 0.2s;
}

.icon-link-hover:hover {
    transform: translateX(5px);
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid rgba(21, 122, 74, 0.15);
    /* Visible green border */
    box-shadow: 0 4px 20px rgba(21, 122, 74, 0.1);
    /* Soft green glow */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(21, 122, 74, 0.25);
    /* Stronger glow */
    border-color: rgba(21, 122, 74, 0.5);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--jmtdi-light);
    color: var(--bs-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Section Styling */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--jmtdi-gradient);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-down {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.fade-down.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Alternating Bounce Animation */
@keyframes smoothBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-bounce-alt {
    animation: smoothBounce 3s ease-in-out infinite;
}

/* Stagger animation for alternating effect */
.col-md-6:nth-child(odd) .animate-bounce-alt {
    animation-delay: 0s;
}


/* Flip Card Animation */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 320px;
    /* match service card roughly */
    border-radius: 1rem;
    margin-bottom: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 5px 20px rgba(21, 122, 74, 0.25);
    /* Glowy Green Shadow */
    border: 1px solid rgba(21, 122, 74, 0.15);
    /* Subtle border */
    border-radius: 1rem;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
    overflow: hidden;
}

.flip-card-front {
    background-color: white;
    /* Light bg for transparent imgs */
    display: flex;
    flex-direction: column;
}

/* Fix for Image Zoom - Show Whole Photo */
.doctor-img-fit {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Shows full image strictly */
    object-position: bottom;
    background-color: #f8fafc;
}

.flip-card-back {
    background: var(--jmtdi-gradient);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Utilities */
.hover-bg-light:hover {
    background-color: var(--bs-light);
    transition: background-color 0.2s ease;
}

.text-gradient-light {
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Admin Panel Styling --- */
.admin-sidebar {
    background: var(--jmtdi-gradient) !important;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateX(5px);
}

.admin-sidebar hr {
    background-color: rgba(255, 255, 255, 0.2) !important;
    opacity: 1;
}

.admin-sidebar .dropdown-menu {
    background: white;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* --- Builder Credit Badge --- */
.credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05); /* Slight white tint for dark footer */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    text-decoration: none;
}

.credit-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.badge-avatar {
    width: 32px;
    height: 32px;
    background: var(--jmtdi-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    letter-spacing: -0.5px;
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.4);
}

.badge-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    text-align: left;
}

.badge-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
}

.badge-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    letter-spacing: 0.2px;
}