/* ============================================
   HOSPITORA - Premium Healthcare Website
   White 3D Room Aesthetic | 120fps Animations
   ============================================ */

/* CSS Variables */
:root {
    --white: #ffffff;
    --off-white: #f8f8f8;
    --light-gray: #f0f0f0;
    --mid-gray: #e0e0e0;
    --dark-gray: #666666;
    --dark: #1a1a1a;
    --black: #000000;
    --accent: #2563eb;
    --success: #10b981;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--white);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader span {
    font-size: 0.875rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dark-gray);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dark);
    transition: width 0.3s var(--transition-smooth);
}

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

.nav-cta {
    padding: 12px 28px;
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 100px;
    transition: all 0.3s var(--transition-smooth);
}

.nav-cta:hover {
    background: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 120px 40px 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #ffffff 100%);
}

.hero-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.grid-floor {
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 60%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
}

.floating-shape {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--mid-gray);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    opacity: 0.6;
}

.s1 { width: 100px; height: 100px; top: 20%; left: 10%; border-radius: 30px; }
.s2 { width: 60px; height: 60px; top: 30%; right: 15%; border-radius: 50%; }
.s3 { width: 80px; height: 80px; bottom: 30%; left: 5%; border-radius: 20px; }
.s4 { width: 50px; height: 50px; bottom: 40%; right: 25%; border-radius: 15px; }
.s5 { width: 70px; height: 70px; top: 50%; left: 20%; border-radius: 25px; }

.room-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 70%;
    pointer-events: none;
}

.wall {
    position: absolute;
    background: var(--white);
    opacity: 0.3;
}

.left-wall, .right-wall {
    width: 2px;
    height: 100%;
    top: 0;
}

.left-wall { left: 10%; background: linear-gradient(180deg, transparent, var(--mid-gray), transparent); }
.right-wall { right: 10%; background: linear-gradient(180deg, transparent, var(--mid-gray), transparent); }

.back-wall {
    width: 100%;
    height: 2px;
    top: 15%;
    background: linear-gradient(90deg, transparent, var(--mid-gray), transparent);
}

.floor {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--mid-gray), transparent);
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--mid-gray);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 30px;
    color: var(--dark);
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title em {
    font-style: normal;
    position: relative;
}

.hero-title em::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--accent);
    opacity: 0.15;
    z-index: -1;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--dark-gray);
    max-width: 550px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-bottom: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin-top: 5px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--dark);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 100px;
    transition: all 0.4s var(--transition-smooth);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.btn-primary:hover {
    background: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 2px solid var(--mid-gray);
    border-radius: 100px;
    transition: all 0.3s var(--transition-smooth);
}

.btn-outline:hover {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--white);
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 500px;
}

.card-3d {
    position: absolute;
    width: 280px;
    height: 360px;
    transform-style: preserve-3d;
    animation: float3d 6s ease-in-out infinite;
}

@keyframes float3d {
    0%, 100% { transform: translateY(0) rotateY(-5deg) rotateX(5deg); }
    50% { transform: translateY(-20px) rotateY(5deg) rotateX(-5deg); }
}

.card-main {
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -180px;
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-face.front {
    transform: translateZ(30px);
}

.card-face.back {
    transform: translateZ(-30px);
    background: var(--light-gray);
}

.doc-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

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

.doc-info {
    padding: 20px;
    text-align: center;
}

.doc-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.doc-info p {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    animation: floatBadge 4s ease-in-out infinite;
}

.fb1 {
    top: 10%;
    right: -20px;
}

.fb2 {
    bottom: 20%;
    left: -30px;
    animation-delay: 2s;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--dark-gray);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--mid-gray);
    border-radius: 13px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--dark-gray);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    margin-left: -2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(15px); }
}

/* Sections Common */
section {
    padding: 100px 40px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.header-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.header-tag.light {
    color: rgba(255, 255, 255, 0.7);
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--dark);
}

.section-header h2 em {
    font-style: normal;
    position: relative;
}

.section-header h2 em::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--accent);
    opacity: 0.15;
    z-index: -1;
}

/* Services Section */
.services {
    background: var(--off-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    transition: all 0.4s var(--transition-smooth);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
    border-color: var(--mid-gray);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--off-white);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s;
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-card:hover .service-icon {
    background: var(--dark);
}

.service-card:hover .service-icon svg {
    stroke: var(--white);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--dark-gray);
    line-height: 1.7;
}

.service-line {
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s var(--transition-smooth);
    border-radius: 2px;
}

.service-card:hover .service-line {
    transform: scaleX(1);
}

/* Departments Section */
.departments {
    background: var(--white);
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.dept-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.dept-img {
    width: 100%;
    height: 100%;
}

.dept-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

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

.dept-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.8) 100%);
    transition: all 0.4s;
}

.dept-card:hover .dept-overlay {
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.9) 100%);
}

.dept-info {
    position: absolute;
    bottom: 25px;
    left: 25px;
    color: var(--white);
}

.dept-num {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.6;
    letter-spacing: 2px;
}

.dept-info h4 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 5px 0;
}

.dept-info p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Why Us Section */
.why-us {
    background: var(--off-white);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 40px;
}

.why-content h2 em {
    font-style: normal;
    position: relative;
}

.why-content h2 em::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--accent);
    opacity: 0.15;
    z-index: -1;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.why-visual {
    position: relative;
}

.visual-container {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

.visual-container img {
    width: 100%;
    height: auto;
}

.year-badge {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background: var(--dark);
    color: var(--white);
    padding: 25px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.year-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.year-text {
    font-size: 0.75rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Doctors Section */
.doctors {
    background: var(--white);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.doctor-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    transition: all 0.4s var(--transition-smooth);
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.doc-photo {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.doc-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition-smooth);
}

.doctor-card:hover .doc-photo img {
    transform: scale(1.05);
}

.doc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.doctor-card:hover .doc-overlay {
    opacity: 1;
}

.social {
    display: flex;
    gap: 15px;
}

.social a {
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dark);
    transition: all 0.3s;
}

.social a:hover {
    background: var(--dark);
    color: var(--white);
}

.doc-details {
    padding: 25px;
    text-align: center;
}

.doc-details h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.doc-details span {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.doc-details p {
    font-size: 0.8125rem;
    color: var(--dark-gray);
    margin: 10px 0;
}

.rating {
    font-size: 0.875rem;
    color: var(--accent);
}

.rating span {
    color: var(--dark-gray);
    margin-left: 5px;
}

/* Appointment Section */
.appointment {
    background: var(--dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.appt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.appt-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.appt-info h2 em {
    font-style: normal;
    color: var(--accent);
}

.appt-info > p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-size: 1.0625rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item span {
    font-size: 1.5rem;
}

.contact-item label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 3px;
}

.contact-item a, .contact-item span:last-child {
    font-size: 1rem;
    font-weight: 500;
}

.appt-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    color: var(--dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.appt-form input,
.appt-form select,
.appt-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--mid-gray);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.3s;
    background: var(--off-white);
}

.appt-form input:focus,
.appt-form select:focus,
.appt-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.appt-form textarea {
    width: 100%;
    margin-bottom: 15px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--dark);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-submit svg {
    width: 20px;
    height: 20px;
}

.btn-submit:hover {
    background: var(--black);
    transform: translateY(-2px);
}

/* About Section */
.about {
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
    height: 500px;
}

.img-stack {
    width: 80%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.12);
}

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

.img-accent {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 50%;
    height: 60%;
    border-radius: 20px;
    overflow: hidden;
    border: 8px solid var(--white);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

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

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.about-content h2 em {
    font-style: normal;
    position: relative;
}

.about-content h2 em::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--accent);
    opacity: 0.15;
    z-index: -1;
}

.about-content p {
    color: var(--dark-gray);
    margin-bottom: 30px;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.about-numbers {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
}

.number-item {
    text-align: center;
}

.num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
}

.label {
    font-size: 0.8125rem;
    color: var(--dark-gray);
}

/* Contact Section */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-card {
    background: var(--off-white);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.c-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 0.875rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

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

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 40px 30px;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    transition: color 0.3s;
}

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

.footer-news h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-news p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.news-form {
    display: flex;
    gap: 10px;
}

.news-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-size: 0.875rem;
}

.news-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.news-form button {
    padding: 12px 16px;
    background: var(--white);
    color: var(--dark);
    border-radius: 8px;
    transition: all 0.3s;
}

.news-form button:hover {
    background: var(--accent);
    color: var(--white);
}

.news-form button svg {
    width: 18px;
    height: 18px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 30px auto 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-visual {
        width: 350px;
        height: 450px;
    }
    
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    section {
        padding: 80px 30px;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 30px 100px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-text {
        margin: 0 auto 40px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 400px;
        height: 300px;
        margin-top: 50px;
    }
    
    .card-3d {
        width: 200px;
        height: 260px;
        margin-left: -100px;
        margin-top: -130px;
    }
    
    .why-grid,
    .appt-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .why-visual {
        order: -1;
    }
    
    .dept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 30px;
        flex-wrap: wrap;
    }
    
    .stat-num {
        font-size: 2rem;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .services-grid,
    .dept-grid,
    .doctors-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        height: 350px;
    }
    
    .about-numbers {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 15px 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn-primary,
    .btn-outline {
        padding: 14px 24px;
        font-size: 0.875rem;
    }
    
    .services-grid {
        gap: 20px;
    }
    
    .service-card {
        padding: 30px;
    }
}