:root {
    --primary-gradient: linear-gradient(135deg, #00A9CE 0%, #76BC21 100%);
    --primary-color: #00A9CE;
    --secondary-color: #76BC21;
    --dark-color: #1A2B3C;
    --light-color: #F8FAFC;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.6);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --glow: 0 0 30px rgba(0, 169, 206, 0.4);
}

/* Modern Keyframes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@keyframes slideInUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInScale {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes ripple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(4); opacity: 0; }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark-color);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Enhanced Glass Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 90px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 169, 206, 0.1);
    animation: slideInUp 1s ease-out;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo {
    position: relative;
    overflow: visible;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(0, 169, 206, 0.3));
    transition: var(--transition);
    animation: pulse 3s ease-in-out infinite;
}

.logo:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 169, 206, 0.5));
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
    display: none;
}

/* Show logo text only on mobile */
@media (max-width: 768px) {
    .logo-text {
        display: block;
        font-size: 1rem;
    }
    
    .logo img {
        height: 50px;
    }
}

/* Hide logo text on desktop */
@media (min-width: 769px) {
    .logo-text {
        display: none !important;
    }
}

.nav-links {
    display: flex;
    
    position: relative;
}

.nav-links a {
    font-weight: 500;
    font-size: 16px;
    color: var(--dark-color);
    position: relative;
    padding: 12px 20px;
    border-radius: 25px;
    transition: var(--transition);
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 25px;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
    z-index: -1;
}

.nav-links a:hover::before {
    opacity: 0.15;
    transform: scale(1);
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Immersive Hero with Particles */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(0, 169, 206, 0.9) 0%, rgba(118, 188, 33, 0.8) 100%),
        url('../img/hero-modern.jpg') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(0, 169, 206, 0.1) 0%, 
        rgba(118, 188, 33, 0.1) 25%,
        rgba(0, 169, 206, 0.1) 50%,
        rgba(118, 188, 33, 0.1) 75%,
        rgba(0, 169, 206, 0.1) 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: float 20s linear infinite;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    animation: fadeInScale 1.5s ease-out;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #e0f7ff, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    position: relative;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 120px;
    height: 4px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: var(--glow);
    animation: pulse 2s ease-in-out infinite;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
    animation: slideInUp 1s ease-out 0.3s both;
}

/* Enhanced Modern Buttons */
.btn {
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 15px 35px rgba(0, 169, 206, 0.4);
    animation: pulse 3s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 169, 206, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Statistics Section */
.stats-section {
    background: var(--dark-color);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 169, 206, 0.1) 0%, rgba(118, 188, 33, 0.1) 100%);
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--glow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
    animation: countUp 1s ease-out;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Enhanced Sections */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: var(--glow);
}

.section-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.section-padding {
    padding: 120px 0;
}

/* Interactive Procedures Grid */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    perspective: 1000px;
}

.spec-card {
    background: var(--white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.spec-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 169, 206, 0.05), transparent);
    transition: left 0.5s ease;
}

.spec-card:hover::before {
    transform: scaleX(1);
}

.spec-card:hover::after {
    left: 100%;
}

.spec-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(0, 169, 206, 0.2);
}

.spec-card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.spec-card-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.spec-card:hover .spec-card-icon::before {
    width: 100%;
    height: 100%;
}

.spec-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.spec-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Modern Facilities Showcase */
.fac-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.fac-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fac-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fac-item {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.fac-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 169, 206, 0.1), transparent);
    transition: left 0.5s ease;
}

.fac-item:hover::before {
    left: 100%;
}

.fac-item:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0, 169, 206, 0.15);
    border-left: 4px solid var(--primary-color);
}

.fac-item svg {
    color: var(--secondary-color);
    transition: var(--transition);
}

.fac-item:hover svg {
    transform: scale(1.2);
    color: var(--primary-color);
}

.fac-image {
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    background: linear-gradient(135deg, #dfe7ef 0%, #f8fafc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fac-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, 
        rgba(0, 169, 206, 0.1) 0%, 
        transparent 50%, 
        rgba(118, 188, 33, 0.1) 100%);
    z-index: 1;
}

.fac-image img {
    width: 200px;
    opacity: 0.4;
    filter: drop-shadow(0 10px 20px rgba(0, 169, 206, 0.3));
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* Doctor Section */
.doctor-card {
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
}

.doc-info {
    padding: 60px;
    flex: 1;
}

.doc-img {
    flex: 0.8;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.gallery-item:hover img {
    transform: scale(1.05) translateZ(0);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Doctors Grid Section */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.doctor-card-small {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #f1f5f9;
}

.doctor-card-small:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 169, 206, 0.15);
}

.doctor-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.doctor-card-small h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.doctor-qual {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.doctor-spec {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.doctor-exp {
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 10px;
}

/* Contact Overlap */
.contact-wrapper {
    background: var(--dark-color);
    color: var(--white);
    padding: 100px 60px;
    border-radius: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    margin-bottom: 20px;
}

/* Enhanced Animations & Effects */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Floating Action Button */
.floating-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 169, 206, 0.4);
    transition: var(--transition);
    z-index: 1000;
    animation: pulse 3s ease-in-out infinite;
}

.floating-action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 169, 206, 0.6);
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loader-content {
    position: relative;
}

.pulse-ring {
    border: 3px solid var(--white);
    border-radius: 50%;
    height: 80px;
    width: 80px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

.pulse-ring:nth-child(1) { animation-delay: 0s; }
.pulse-ring:nth-child(2) { animation-delay: 0.7s; }
.pulse-ring:nth-child(3) { animation-delay: 1.4s; }

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.3s ease;
    background: rgba(0, 169, 206, 0.1);
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(0, 169, 206, 0.2);
    border-color: var(--secondary-color);
}

/* Enhanced Mobile Styles */
@media (max-width: 768px) {
    .floating-action-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .custom-cursor {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .spec-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fac-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fac-list {
        grid-template-columns: 1fr;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 992px) {

    .fac-container,
    .doctor-card,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .doctors-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

/* Hide hamburger on desktop */
.hamburger {
    display: none;
}

/* Show hamburger only on mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block !important;
        font-size: 28px;
    }
}