/* 
 * PRAXIS THEME: Modern, Glassmorphism, Medical Blue 
 * Focus on clean aesthetics and responsive readability.
 */

:root {
    --primary-color: #0d47a1;
    /* Deep clinical blue */
    --secondary-color: #e3f2fd;
    /* Light medical blue */
    --accent-color: #00b0ff;
    /* Bright blue for hover/links */
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --bg-white: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Glassmorphism Utilities */
.glassmorphism-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glassmorphism-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.12);
}

/* Navbar */
.navbar-custom {
    background: var(--bg-white) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-custom.navbar-scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.98) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin: 0 10px;
    position: relative;
}

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

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

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, rgba(255, 255, 255, 1) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(to right bottom, rgba(13, 71, 161, 0.1), rgba(0, 176, 255, 0.05));
    animation: float 15s infinite ease-in-out alternate;
    z-index: 0;
}

.hero-shape-1 {
    left: -10%;
    top: -10%;
    width: 500px;
    height: 500px;
}

.hero-shape-2 {
    right: -5%;
    bottom: -10%;
    width: 400px;
    height: 400px;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Custom Buttons */
.btn-primary-custom {
    background: linear-gradient(45deg, var(--primary-color), #1565c0);
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(13, 71, 161, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 71, 161, 0.4);
    color: #fff;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 30px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Info Cards (Opening hours & News) */
.info-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.news-card {
    border-left: 4px solid var(--accent-color) !important;
}

.opening-hours-table th {
    font-weight: 700;
    color: var(--primary-color);
    padding: 6px 0 !important;
}

.opening-hours-table td {
    padding: 6px 0 !important;
}

.opening-hours-extra {
    font-size: 0.88rem;
    line-height: 1.5;
    background: rgba(13, 71, 161, 0.03);
    border-left: 3px solid var(--accent-color);
    padding: 10px 15px;
    border-radius: 4px;
}

/* Doctor Profile */
.doctor-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.doctor-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.doctor-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.doctor-img-wrapper:hover .doctor-img {
    transform: scale(1.04);
}

.doctor-img-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(13, 71, 161, 0.15);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
    color: #fff;
}

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

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}

/* Team Section */
.team-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(13, 71, 161, 0.1) !important;
    border-color: var(--accent-color);
}

.team-img-wrapper {
    width: 250px;
    height: 250px;
    padding: 5px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover .team-img-wrapper {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Mobile Navbar Optimization to prevent burger menu wrapping */
@media (max-width: 576px) {
    .navbar-custom .navbar-brand {
        font-size: 0 !important;
    }
    .navbar-custom .navbar-brand::after {
        content: "Praxis Irina Nugaeva";
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--primary-color);
        letter-spacing: -0.5px;
    }
    .navbar-custom .navbar-brand i {
        font-size: 1.4rem !important;
    }
}

@media (max-width: 380px) {
    .navbar-custom .navbar-brand::after {
        content: "Irina Nugaeva";
        font-size: 1.1rem;
    }
    .navbar-custom .navbar-brand i {
        font-size: 1.3rem !important;
    }
}

/* Pulsing Animation for Important Badges & Emergency Icons */
.animate-pulse {
    animation: pulse 2s infinite ease-in-out;
    display: inline-block;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.18);
    }
    100% {
        transform: scale(1);
    }
}