/* =========================================================================
   LAMIYA HOSPITAL - PREMIUM CSS
   ========================================================================= */

:root {
    --primary: #ff4da6;
    --primary-dark: #e63990;
    --primary-light: #ff80c0;
    --purple: #8250df;
    --dark-purple: #5c35a5;
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--purple) 100%);
    --gradient-hover: linear-gradient(135deg, var(--purple) 0%, var(--primary) 100%);
    --bg-main: #ffffff;
    --bg-light: #f8f9fa;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --text-main: #2b2b2b;
    --text-light: #6c757d;
    --text-white: #ffffff;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(130, 80, 223, 0.15);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --section-pad: 80px 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-main); background-color: var(--bg-main); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-main); }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.text-gradient { background: var(--gradient-main); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.section { padding: var(--section-pad); }
.bg-light { background-color: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 50px; font-family: var(--font-heading); font-weight: 600; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: none; gap: 10px; font-size: 1rem; }
.btn-large { padding: 15px 35px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-gradient { background: var(--gradient-main); color: var(--text-white); box-shadow: 0 4px 15px rgba(255, 77, 166, 0.3); }
.btn-gradient:hover { background: var(--gradient-hover); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255, 77, 166, 0.4); color: var(--text-white); }
.btn-outline { background: transparent; color: var(--text-main); border: 2px solid rgba(255,255,255,0.5); backdrop-filter: blur(5px); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--text-white); transform: translateY(-3px); }

/* Navigation */
.glass-nav { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; transition: all 0.4s ease; padding: 20px 0; }
.glass-nav.scrolled { background: var(--bg-glass); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: var(--shadow-sm); padding: 12px 0; }
.nav-container { width: 90%; max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 40px; }
.nav-links { display: flex; gap: 30px; }
.nav-link { font-weight: 500; color: var(--text-main); position: relative; padding: 5px 0; }
.glass-nav:not(.scrolled) .nav-link { color: #fff; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gradient-main); transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--primary); cursor: pointer; }
.glass-nav:not(.scrolled) .mobile-menu-toggle { color: #fff; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: #fff; z-index: 2000; box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: right 0.4s ease; padding: 40px; display: flex; flex-direction: column; }
.mobile-menu.active { right: 0; }
.close-menu { align-self: flex-end; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); margin-bottom: 40px; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 20px; }
.mobile-menu a { font-size: 1.2rem; font-weight: 600; font-family: var(--font-heading); color: var(--text-main); }

/* Hero Section */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background-image: url('images/front.jpeg'); background-size: cover; background-position: center; background-attachment: fixed; padding-top: 80px; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%); }
.hero-content { position: relative; z-index: 10; width: 90%; max-width: 1200px; margin: 0 auto; color: var(--text-white); }
.hero-badge { display: inline-block; padding: 8px 16px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border-radius: 50px; font-size: 0.9rem; font-weight: 500; letter-spacing: 1px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.2); }
.hero h1 { font-size: 4rem; margin-bottom: 20px; color: #fff; }
.hero p { font-size: 1.2rem; max-width: 600px; margin-bottom: 40px; opacity: 0.9; }
.hero-buttons { display: flex; gap: 20px; }

/* Grid */
.grid { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Cards (Departments) */
.premium-card { background: var(--bg-main); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(0,0,0,0.02); position: relative; cursor: pointer; }
.premium-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--shadow-lg); }
.card-img-wrapper { position: relative; height: 220px; overflow: hidden; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.premium-card:hover .card-img-wrapper img { transform: scale(1.1); }
.card-icon { position: absolute; bottom: -20px; right: 20px; width: 60px; height: 60px; background: var(--gradient-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; box-shadow: 0 5px 15px rgba(255, 77, 166, 0.4); border: 4px solid var(--bg-main); transition: transform 0.3s ease; }
.premium-card:hover .card-icon { transform: rotate(15deg) scale(1.1); }
.card-body { padding: 35px 25px 25px; }
.card-body h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card-body p { color: var(--text-light); margin-bottom: 20px; }
.card-btn { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary); font-family: var(--font-heading); }

/* Service Cards */
.service-card { background: var(--bg-main); padding: 40px 30px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: all 0.3s ease; border: 1px solid rgba(0,0,0,0.03); cursor: pointer; position: relative; z-index: 1; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--gradient-main); opacity: 0; z-index: -1; transition: opacity 0.4s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-card:hover::before { opacity: 0.05; }
.service-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; background: linear-gradient(135deg, rgba(255, 77, 166, 0.1) 0%, rgba(130, 80, 223, 0.1) 100%); width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; border-radius: 20px; transition: all 0.3s ease; }
.service-card:hover .service-icon { background: var(--gradient-main); color: white; }
.service-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; }

/* Dynamic Detail Section */
.dynamic-panel { padding: 60px 0; background-color: #fce8f3; background-image: radial-gradient(at 0% 0%, hsla(331,100%,76%,0.2) 0px, transparent 50%), radial-gradient(at 100% 100%, hsla(264,68%,59%,0.2) 0px, transparent 50%); }
.dynamic-panel.hidden { display: none; }
.close-btn { background: none; border: none; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; color: var(--text-main); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; transition: color 0.3s ease; }
.close-btn:hover { color: var(--primary); }
.glass-card { background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--radius-lg); padding: 50px; box-shadow: 0 25px 45px rgba(0,0,0,0.05); animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes slideUpFade { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }
.detail-header { margin-bottom: 30px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 20px; }
.detail-header h2 { font-size: 2.8rem; margin-bottom: 15px; color: var(--dark-purple); }
.detail-header p { font-size: 1.1rem; color: var(--text-light); max-width: 800px; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.tags-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.pill-tag { background: white; padding: 8px 16px; border-radius: 50px; font-size: 0.9rem; font-weight: 500; color: var(--dark-purple); box-shadow: var(--shadow-sm); border: 1px solid rgba(130, 80, 223, 0.1); }
.facilities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 15px; }
.facility-item { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.7); padding: 12px; border-radius: var(--radius-sm); }
.facility-item i { color: var(--primary); }
.doc-mini-card { background: white; border-radius: var(--radius-md); padding: 20px; text-align: center; box-shadow: var(--shadow-sm); margin-top: 15px; }
.doc-mini-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px; border: 3px solid var(--primary-light); }

/* Doctors Preview */
.doctor-card { background: white; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s ease; }
.doctor-card:hover { transform: translateY(-10px); }
.doc-img-wrapper { height: 300px; overflow: hidden; }
.doc-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.doctor-card:hover .doc-img-wrapper img { transform: scale(1.05); }
.doc-info { padding: 25px; text-align: center; }
.doc-info h3 { margin-bottom: 5px; }
.doc-info .specialty { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; }
.doc-info .qualification { color: var(--text-light); font-size: 0.85rem; }

/* Contact Section */
.contact-section { background-color: var(--bg-main); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.contact-info { padding: 60px; background: var(--bg-light); }
.contact-info h2 { font-size: 2.5rem; margin-bottom: 10px; }
.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 30px; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; }
.c-icon { width: 50px; height: 50px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.2rem; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.contact-item h4 { margin-bottom: 5px; font-size: 1.1rem; }
.contact-item p { color: var(--text-light); }
.contact-map iframe { height: 100%; min-height: 400px; }

/* Footer */
.footer { background: #1a1a1a; color: #fff; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-logo { height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { color: #aaa; margin-bottom: 20px; }
.social-links { display: flex; gap: 15px; }
.social-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; transition: all 0.3s ease; }
.social-icon:hover { background: var(--primary); transform: translateY(-3px); }
.footer-links h4, .footer-contact h4 { font-size: 1.2rem; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.footer-links h4::after, .footer-contact h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: var(--primary); }
.footer-links ul { display: flex; flex-direction: column; gap: 15px; }
.footer-links a { color: #aaa; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-light); padding-left: 5px; }
.footer-contact p { color: #aaa; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); color: #aaa; font-size: 0.9rem; }

/* Floating WhatsApp */
.floating-whatsapp { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25d366; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); z-index: 1000; transition: all 0.3s ease; animation: pulse-wa 2s infinite; }
.floating-whatsapp:hover { transform: scale(1.1); }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* Utilities & Animations */
.mt-3 { margin-top: 15px; }
.fade-up-element { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up-element.visible { opacity: 1; transform: translateY(0); }

/* Booking Modal */
.modal { visibility: hidden; pointer-events: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(5px); opacity: 0; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.modal.show { visibility: visible; pointer-events: auto; opacity: 1; }
.modal-content { background-color: #fff; border-radius: var(--radius-lg); width: 90%; max-width: 600px; padding: 40px; position: relative; transform: translateY(-30px); transition: transform 0.3s ease; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal.show .modal-content { transform: translateY(0); }
.close-modal { position: absolute; right: 25px; top: 25px; font-size: 24px; color: var(--text-light); cursor: pointer; transition: color 0.3s ease; }
.close-modal:hover { color: var(--primary); }
.modal-header { margin-bottom: 30px; text-align: center; }
.modal-header h2 { font-size: 2rem; margin-bottom: 10px; }
.modal-header p { color: var(--text-light); }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-row .form-group { margin-bottom: 0; }
.form-group label { font-weight: 500; font-size: 0.95rem; color: #444; }
.form-group input, .form-group select, .form-group textarea { padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s ease; outline: none; background-color: #fcfcfc; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background-color: #fff; }
.form-message { margin-bottom: 20px; padding: 10px 15px; border-radius: 8px; display: none; text-align: center; font-weight: 500; }
.form-message.success { display: block; background-color: #d1fae5; color: #065f46; border: 1px solid #10b981; }
.form-message.error { display: block; background-color: #fee2e2; color: #b91c1c; border: 1px solid #ef4444; }
.loader { border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top: 3px solid #fff; width: 20px; height: 20px; animation: spin 1s linear infinite; margin-left: 10px; }
.loader.hidden { display: none; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Responsiveness */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { flex-direction: column; display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .open-booking-modal { display: none; }
    .mobile-menu-toggle { display: block; }
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .grid-3 { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .glass-card { padding: 30px; }
    .contact-info { padding: 40px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .form-row { flex-direction: column; gap: 0; }
    .form-row .form-group { margin-bottom: 20px; }
}
