/* Global Styles */
:root {
    --primary-color: #003366;
    --secondary-color: #007bff;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-radius: 20px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Service Colors */
    --surgery-color: #007bff;
    --ivf-color: #ff69b4;
    --ortho-color: #ffa500;
    --neuro-color: #800080;
    --medicine-color: #28a745;
    --radiology-color: #20c997;
    --oncology-color: #dc3545;
    --pediatrics-color: #ffc107;
    --ophthalmology-color: #6610f2;
    --embryology-color: #17a2b8;
    --dental-color: #e83e8c;
    --laparoscopic-color: #00bcd4;
    --anaesthesia-color: #6f42c1;
    --icu-color: #001f3f;
    --pathology-color: #6c757d;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px;
}

/* Header Styles */
.main-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.top-bar {
    background: #f8f9fa;
    font-size: 0.875rem;
}

.top-bar a {
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.main-header-content {
    background: white;
}

/* Logo and Hospital Name */
.main-header-content img {
    max-height: 50px;
    width: auto;
}

.main-header-content h1 {
    font-size: 1.25rem;
    line-height: 1.2;
}

.main-header-content p {
    font-size: 0.875rem;
    line-height: 1.2;
}

/* Navigation */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #8b5cf6;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.appointment-btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.appointment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.2);
}

/* Mobile Menu */
#mobileMenu {
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-nav-link {
    padding: 0.75rem 0;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-appointment-btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-appointment-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.2);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .main-header-content h1 {
        font-size: 1.125rem;
    }
    
    .main-header-content p {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .main-header-content {
        padding: 0.75rem 0;
    }
    
    .main-header-content img {
        max-height: 40px;
    }
    
    .main-header-content h1 {
        font-size: 1rem;
    }
    
    .main-header-content p {
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .main-header-content h1 {
        font-size: 0.875rem;
    }
    
    .main-header-content p {
        font-size: 0.65rem;
    }
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.services-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Department-specific gradients */
.service-card.surgery::before { background: linear-gradient(45deg, #FF6B6B, #FFE66D); }
.service-card.ivf::before { background: linear-gradient(45deg, #FF69B4, #FFB6C1); }
.service-card.ortho::before { background: linear-gradient(45deg, #4ECDC4, #45B7AF); }
.service-card.neuro::before { background: linear-gradient(45deg, #6C5CE7, #A8A4FF); }
.service-card.medicine::before { background: linear-gradient(45deg, #00B894, #55EFC4); }
.service-card.radiology::before { background: linear-gradient(45deg, #74B9FF, #0984E3); }
.service-card.oncology::before { background: linear-gradient(45deg, #E84393, #FD79A8); }
.service-card.pediatrics::before { background: linear-gradient(45deg, #FFA502, #FFEAA7); }
.service-card.ophthalmology::before { background: linear-gradient(45deg, #00CEC9, #81ECEC); }
.service-card.embryology::before { background: linear-gradient(45deg, #A29BFE, #6C5CE7); }
.service-card.dental::before { background: linear-gradient(45deg, #FDCB6E, #FFEAA7); }
.service-card.laparoscopic::before { background: linear-gradient(45deg, #00B894, #55EFC4); }
.service-card.anaesthesia::before { background: linear-gradient(45deg, #74B9FF, #0984E3); }
.service-card.icu::before { background: linear-gradient(45deg, #FF6B6B, #FFA502); }
.service-card.pathology::before { background: linear-gradient(45deg, #6C5CE7, #A8A4FF); }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    opacity: 0.2;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin: 0;
    position: relative;
    z-index: 2;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.service-detail-panel {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: sticky;
    top: 20px;
}

.detail-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.detail-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.detail-description {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .services-wrapper {
        flex-direction: column;
    }

    .service-detail-panel {
        position: relative;
        top: 0;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        font-size: 2rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .detail-title {
        font-size: 1.3rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* Stagger animation delay for cards */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }

/* Enhanced Main Footer Styles - Professional Design */
.main-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
    color: white;
    font-family: 'Poppins', sans-serif;
    min-height: 400px;
}

/* Animated Background Elements */
.footer-bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

/* Floating Medical Icons */
.floating-icon {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.floating-icon.icon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.floating-icon.icon-3 {
    top: 60%;
    left: 5%;
    animation-delay: 2s;
}

.floating-icon.icon-4 {
    top: 70%;
    right: 10%;
    animation-delay: 3s;
}

.floating-icon.icon-5 {
    top: 40%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Gradient Overlays */
.footer-gradient-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: gradientMove 8s ease-in-out infinite;
    z-index: 1;
}

.footer-gradient-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: gradientMove 8s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes gradientMove {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(180deg);
    }
}

/* Geometric Shapes */
.footer-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    animation: shapeFloat 10s ease-in-out infinite;
    z-index: 1;
}

.footer-shape.shape-1 {
    width: 100px;
    height: 100px;
    top: 15%;
    right: 20%;
    animation-delay: 0s;
}

.footer-shape.shape-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.footer-shape.shape-3 {
    width: 80px;
    height: 80px;
    top: 50%;
    right: 5%;
    animation-delay: 4s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Footer Girl Decoration */
.footer-girl-decoration {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 5;
    pointer-events: none;
}

.footer-girl-image {
    height: 300px;
    width: auto;
    opacity: 0.8;
    animation: girlFloat 4s ease-in-out infinite;
}

@keyframes girlFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Footer Content Styles */
.footer-top {
    position: relative;
    z-index: 10;
}

.footer-col {
    transition: all 0.3s ease;
}

.footer-col:hover {
    transform: translateY(-5px);
}

/* Footer Logo */
.footer-logo {
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Footer Headings */
.footer-heading {
    position: relative;
    transition: all 0.3s ease;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    transition: width 0.3s ease;
}

.footer-heading:hover::after {
    width: 100%;
}

/* Footer Links */
.footer-links li {
    transition: all 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(10px);
}

.footer-links a {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.footer-links a i {
    transition: all 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(5px);
}

/* Contact Info */
.contact-info li {
    transition: all 0.3s ease;
}

.contact-info li:hover {
    transform: translateX(5px);
}

.contact-icon-wrapper {
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Emergency Contact */
.emergency-contact {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.emergency-contact:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
}

.emergency-number {
    transition: all 0.3s ease;
}

.emergency-number:hover {
    transform: scale(1.05);
}

/* Footer Services */
.footer-services li {
    transition: all 0.3s ease;
    padding: 8px 0;
}

.footer-services li:hover {
    transform: translateX(10px);
}

.footer-services li i {
    transition: all 0.3s ease;
}

.footer-services li:hover i {
    transform: scale(1.2);
}

/* Newsletter Signup */
.newsletter-signup {
    transition: all 0.3s ease;
}

.newsletter-form input {
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.3);
}

.newsletter-form button {
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(236, 72, 153, 0.4);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Achievement Stats */
.achievement-stats {
    transition: all 0.3s ease;
}

.stat-item {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.stat-number {
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    color: #ec4899;
}

/* Certification Badges */
.certification-badge {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.certification-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Footer Bottom */
.footer-bottom {
    transition: all 0.3s ease;
}

.footer-bottom-links a {
    transition: all 0.3s ease;
    position: relative;
}

.footer-bottom-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ec4899;
    transition: width 0.3s ease;
}

.footer-bottom-links a:hover::after {
    width: 100%;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .footer-girl-decoration {
        display: none;
    }
    
    .floating-icon {
        display: none;
    }
    
    .footer-shape {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 20px 0;
    }
    
    .footer-top {
        padding: 20px 0;
    }
    
    .footer-col {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-heading {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .contact-info li {
        justify-content: center;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .achievement-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .certifications {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        border-radius: 8px;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 30px 0 15px 0;
    }
    
    .footer-logo h3 {
        font-size: 1.1rem;
    }
    
    .footer-heading {
        font-size: 1.2rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .emergency-contact {
        padding: 15px;
    }
    
    .emergency-number {
        font-size: 1rem;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        padding: 10px;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* AOS Animation Overrides */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effects for Interactive Elements */
.footer-col:hover .footer-heading::after {
    width: 100%;
}

.footer-links li:hover a {
    color: #ec4899;
}

.contact-info li:hover .contact-icon-wrapper i {
    color: #ec4899;
}

.footer-services li:hover {
    color: #ec4899;
}

/* Loading Animation for Stats */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    animation: countUp 1s ease-out;
}

/* Pulse Animation for Emergency Contact */
@keyframes emergencyPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

.emergency-contact:hover {
    animation: emergencyPulse 2s infinite;
}

/* Smooth Scrolling for Footer Links */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.footer-links a:focus,
.contact-info a:focus,
.social-link:focus,
.newsletter-form input:focus,
.newsletter-form button:focus {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .main-footer {
        background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    }
}

/* Print Styles */
@media print {
    .main-footer {
        background: white !important;
        color: black !important;
    }
    
    .footer-bg-elements,
    .footer-girl-decoration {
        display: none !important;
    }
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -80px; /* Compensate for header padding */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-btn:hover, .hero-btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(236, 72, 153, 0.4);
    color: white;
}

@media (max-width: 900px) {
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero-btn { font-size: 1rem; padding: 12px 28px; }
    .hero-content { min-height: 50vh; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 1.3rem; }
    .hero-subtitle { font-size: 0.95rem; margin-bottom: 22px; }
    .hero-btn { font-size: 0.98rem; padding: 10px 18px; }
    .hero-content { min-height: 40vh; }
} 