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

:root {
    --primary: #002147;
    --primary-light: #003366;
    --accent: #F37021;
    --accent-hover: #d65d18;
    --bg-light: #F4F7F9;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Buttons ===== */
.btn-medanta {
    background-color: var(--accent);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.3s;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
}

.btn-medanta:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-medanta i {
    font-size: 14px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ===== Top Bar ===== */
.top-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.emergency-link {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.emergency-link i {
    color: var(--accent);
}

.pulse-text {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.top-bar-right {
    display: flex;
    gap: 25px;
}

.top-link {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: var(--transition);
}

.top-link:hover {
    opacity: 1;
    color: var(--accent);
}

/* ===== Header ===== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

.logo-subtext {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 3px;
    font-weight: 600;
}

/* ===== Navigation ===== */
.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link i {
    font-size: 10px;
}

/* Mega Menu */
.nav-item {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    padding: 30px;
    min-width: 700px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    margin-top: 20px;
    z-index: 100;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

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

.mega-menu-column h4 {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.mega-menu-column a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 0;
    font-size: 13px;
    transition: var(--transition);
}

.mega-menu-column a:hover {
    color: var(--accent);
    padding-left: 5px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 999;
    padding: 80px 20px 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-list {
    list-style: none;
}

.mobile-nav-list li {
    border-bottom: 1px solid #eee;
}

.mobile-nav-list a {
    display: block;
    padding: 15px 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.mobile-book-btn {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

.hero-slider {
    flex: 1;
    position: relative;
}

.hero-slide {
    position: relative;
    height: 100%;
    min-height: 70vh;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 33, 71, 0.85) 0%, rgba(0, 33, 71, 0.4) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    color: var(--white);
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    align-items: center;
}

.search-box i {
    padding: 0 15px;
    color: var(--text-light);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 15px 0;
    font-size: 14px;
    outline: none;
}

.search-box .search-btn {
    border-radius: 0;
    padding: 15px 25px;
}

/* Hero Stats */
.hero-stats {
    background: var(--white);
    padding: 40px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

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

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

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 24px;
}

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

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 5px;
}

/* ===== Section Styles ===== */
section {
    padding: 80px 0;
}

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

.section-badge {
    display: inline-block;
    background: rgba(243, 112, 33, 0.1);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Specialty Grid ===== */
.specialties {
    background: var(--bg-light);
}

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

.specialty-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid transparent;
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(243, 112, 33, 0.2);
}

.specialty-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(243, 112, 33, 0.1) 0%, rgba(0, 33, 71, 0.05) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 20px;
}

.specialty-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.specialty-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.specialty-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.specialty-card:hover .specialty-link {
    gap: 12px;
}

/* ===== Medanta Edge ===== */
.medanta-edge {
    background: var(--white);
}

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

.edge-image {
    position: relative;
}

.image-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid var(--bg-light);
    margin: 0 auto;
    position: relative;
}

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

.quote-card {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    max-width: 300px;
}

.quote-card i {
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 10px;
}

.quote-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 15px;
}

.quote-author {
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
}

.edge-content .section-badge {
    margin-bottom: 10px;
}

.edge-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.firsts-list h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 20px;
}

.firsts-list ul {
    list-style: none;
}

.firsts-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.firsts-list li i {
    color: var(--accent);
}

/* ===== Research & Technology ===== */
.research-tech {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.research-tech .section-title {
    color: var(--white);
}

.research-tech .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

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

.tech-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.tech-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.tech-icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.tech-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.tech-card p {
    font-size: 14px;
    opacity: 0.9;
}

/* ===== Floating Actions ===== */
.floating-actions {
    position: fixed;
    right: 20px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 13px;
    box-shadow: var(--shadow-hover);
    transition: var(--transition);
}

.floating-btn i {
    font-size: 18px;
}

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

.floating-btn span {
    max-width: 0;
    overflow: hidden;
    transition: max-width 0.3s ease;
}

.floating-btn:hover span {
    max-width: 100px;
}

.floating-btn.emergency {
    background: #dc2626;
    animation: pulse-btn 2s infinite;
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.location {
    background: var(--primary);
}

@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
}

/* ===== Footer ===== */
.main-footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-logo .logo-subtext {
    color: var(--accent);
}

.footer-desc {
    font-size: 14px;
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-contact p {
    font-size: 13px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.9;
}

.footer-contact i {
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--white);
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.accreditations-title {
    margin-top: 30px;
}

.accreditations {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.accreditation-logo {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.8;
}

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

.footer-social a {
    color: var(--white);
    font-size: 16px;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    color: var(--accent);
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--accent);
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition);
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .mega-menu {
        display: none;
    }
    
    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .edge-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .quote-card {
        position: relative;
        margin: 20px auto 0;
        right: auto;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
    }
    
    .top-bar-right {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .header-actions .btn-medanta {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .glass-card {
        padding: 25px;
        margin: 0 20px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-box input {
        width: 100%;
        padding: 12px 15px;
    }
    
    .search-box .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .specialty-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
    }
    
    .image-circle {
        width: 280px;
        height: 280px;
    }
    
    .floating-actions {
        right: 10px;
        bottom: 80px;
    }
    
    .floating-btn {
        padding: 10px;
        border-radius: 50%;
    }
    
    .floating-btn span {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-suffix {
        font-size: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}