/* Base Design System & Common Styles for Rajasthan Eye Hospital */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004a99;
    --secondary-color: #00d2ff;
    --accent-color: #ff4d6d;
    --dark-blue: #0a0a0a;
    --light-blue: #f0f7ff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --shadow-lg: 0 20px 60px 0 rgba(0, 0, 0, 0.1);
    --border-radius: 24px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: #ffffff;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

.hindi-text { font-family: 'Hind', sans-serif; font-weight: 600; }

/* Modern Navbar Styling */
.navbar {
    backdrop-filter: blur(15px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.navbar-cta {
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
    border-radius: 50px !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
    font-weight: 700 !important;
}

.navbar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
    background: var(--primary-dark) !important;
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -1px;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.nav-link {
    font-weight: 600;
    color: var(--dark-blue) !important;
    padding: 0.5rem 1.2rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active { color: var(--primary-color) !important; }

/* Pulse Animation */
@keyframes pulse-primary {
    0% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 102, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); }
}

.pulse-button {
    animation: pulse-primary 2s infinite;
}

/* Modern Button Styling */
.btn-modern {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(0, 102, 204, 0.2);
}

.btn-modern-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.3);
}

.btn-modern-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color) !important;
    background: transparent;
}

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

/* Section Headlines */
.section-padding { padding: 100px 0; }

.section-tag {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 12px;
    display: block;
}

.section-title-modern {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 50px;
    line-height: 1.2;
    color: var(--dark-blue);
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Card Modern Definitions */
.card-modern {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    height: 100%;
    transition: var(--transition);
}

.card-modern:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Service Cards */
.service-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 40px;
    border: 1px solid #f0f0f0;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--light-blue);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(10deg);
}

/* Contact Details */
.contact-item {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.05);
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.1);
    border-color: var(--primary-color);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Address Obfuscation Approach */
.email-obfuscated a { text-decoration: none; color: inherit; }

/* Locations & Map */
.location-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: var(--transition);
    border: 1px solid #f0f0f0;
}

.location-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.map-container { height: 280px; width: 100%; overflow: hidden; }
.map-container iframe { width: 100%; height: 100%; border: 0; }
.location-info { padding: 30px; }

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

.footer h4 { color: var(--secondary-color); font-weight: 700; margin-bottom: 25px; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { color: rgba(255,255,255,0.7); text-decoration: none; transition: 0.3s; }
.footer ul li a:hover { color: #fff; transform: translateX(5px); display: inline-block; }

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 999;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: translateY(-5px) scale(1.05);
    color: white;
}

/* Form Styling */
.form-control, .form-select {
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    font-family: inherit;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Hero Elements - Specific to Index but nice to have global */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, var(--light-blue) 100%);
    padding: 160px 0 100px;
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-tagline {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 30px;
    letter-spacing: -2.5px;
    color: var(--dark-blue);
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

/* Subpage Hero */
.subpage-hero {
    background: linear-gradient(135deg, #ffffff 0%, var(--light-blue) 100%);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Animation utilities */
[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}

@media (max-width: 991px) {
    .section-padding { padding: 60px 0; }
    .hero-section { text-align: center; padding-top: 120px; }
    .nav-link { padding: 0.5rem 0 !important; }
}

/* --- Added Missing Styles --- */

/* Hero Animation & Elements */
.hero-circle {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, rgba(0, 210, 255, 0.05) 100%);
    border-radius: 50%;
    z-index: 0;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Service Detail Cards - for Services Page */
.service-detail-card {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-detail-card:hover {
    box-shadow: var(--shadow-lg);
}

.service-detail-card:nth-child(even) {
    flex-direction: row-reverse;
}

.service-media {
    flex: 1;
    position: relative;
    height: 450px;
    overflow: hidden;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-detail-card:hover .service-media img {
    transform: scale(1.1);
}

.service-num-floating {
    position: absolute;
    top: 30px;
    left: 30px;
    background: var(--primary-color);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.service-content {
    flex: 1;
    padding: 60px;
}

.feature-badge {
    display: inline-block;
    padding: 8px 18px;
    background: var(--light-blue);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 102, 204, 0.1);
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.process-icon {
    width: 90px;
    height: 90px;
    background: var(--light-blue);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 30px;
    transition: var(--transition);
}

.process-step:hover .process-icon {
    background: var(--primary-color);
    color: #fff;
}

/* Icon Box & Service Icon Box */
.icon-box, .service-icon-box {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    color: var(--primary-color);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.card-modern:hover .icon-box,
.location-card:hover .service-icon-box {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(10deg);
}

/* Contact & Forms */
.contact-section {
    position: relative;
    z-index: 1;
}

.contact-form {
    background: #fff;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid #f0f0f0;
}

.contact-form h3 {
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--dark-blue);
}

/* Maps & Frames */
.map-frame {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius);
    border: 0;
    box-shadow: var(--shadow-lg);
}

/* Helper Utilities */
.fw-900 { font-weight: 900; }
.letter-spacing-1 { letter-spacing: 1px; }
.opacity-90 { opacity: 0.9; }

/* Responsive Adjustments */
@media (max-width: 991px) {
    .service-detail-card {
        flex-direction: column !important;
        gap: 0;
    }
    
    .service-media {
        height: 350px;
        width: 100%;
    }
    
    .service-content {
        padding: 40px 30px;
    }
    
    .contact-form {
        padding: 30px;
        margin-top: 50px;
    }
    
    .map-frame {
        height: 350px;
        margin-bottom: 30px;
    }
}
