/* ========================================
   UTKAL MEDICAL HALL & POLYCLINIC
   Modern Anti-Gravity Healthcare Website
   ======================================== */

/* CSS Variables - Color Palette from Logo */
:root {
    /* Primary Colors */
    --primary-green: #4a9d5f;
    --primary-blue: #1e3a8a;
    --secondary-teal: #14b8a6;
    --secondary-light-blue: #60a5fa;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-teal) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-light-blue) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(74, 157, 95, 0.95) 100%);

    /* Neutral Colors */
    --white: #ffffff;
    --light-gray: #f8fafc;
    --gray: #64748b;
    --dark-gray: #334155;
    --black: #0f172a;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-float: 0 12px 48px rgba(74, 157, 95, 0.2);
    --shadow-glow: 0 0 30px rgba(74, 157, 95, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-xl: 35px;
}

/* ========================================
   Global Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* ========================================
   Navigation
   ======================================== */

.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    transition: var(--transition-normal);
}

.glass-nav.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo {
    height: 50px;
    width: auto;
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.brand-text {
    font-size: 1.1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link:hover::after {
    width: 80%;
}

.btn-cta {
    background: var(--gradient-primary);
    color: var(--white) !important;
    border-radius: var(--radius-lg);
    padding: 0.6rem 1.5rem !important;
    margin-left: 1rem;
}

.btn-cta::after {
    display: none;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-float);
}

/* ========================================
   Floating Action Buttons
   ======================================== */

.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    animation: floatUpDown 3s ease-in-out infinite;
}

.fab-call {
    background: var(--gradient-secondary);
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.fab-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    position: relative;
    background: var(--gradient-hero);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.float-icon {
    position: absolute;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
    animation: floatUpDown 4s ease-in-out infinite;
}

.float-icon:nth-child(2) {
    animation-delay: 0.5s;
}

.float-icon:nth-child(3) {
    animation-delay: 1s;
}

.float-icon:nth-child(4) {
    animation-delay: 1.5s;
}

.float-icon:nth-child(5) {
    animation-delay: 2s;
}

.float-icon:nth-child(6) {
    animation-delay: 2.5s;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-float);
}

.btn-outline-primary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-outline-primary:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 400;
}

/* ========================================
   Floating Cards (Anti-Gravity Effect)
   ======================================== */

.floating-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.floating-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-float);
}

.floating-card:hover::before {
    transform: scaleX(1);
}

/* ========================================
   Info Cards
   ======================================== */

.info-card {
    text-align: center;
    height: 100%;
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition-normal);
}

.info-card:hover .info-icon {
    transform: rotate(360deg) scale(1.1);
}

.info-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.info-card p {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ========================================
   Service Cards
   ======================================== */

.service-category-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-green);
}

.service-card {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.15);
    box-shadow: var(--shadow-glow);
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.service-card p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ========================================
   Booking Form
   ======================================== */

.booking-form-container {
    max-width: 100%;
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: var(--transition-normal);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(74, 157, 95, 0.1);
}

#bookingSuccess {
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary-green);
}

/* ========================================
   Timeline (Home Collection)
   ======================================== */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    margin: 0 2rem;
}

.timeline-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.timeline-content p {
    color: var(--gray);
}

/* ========================================
   Feature Cards
   ======================================== */

.feature-card {
    text-align: center;
    height: 100%;
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(360deg);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.feature-card p {
    color: var(--gray);
}

/* ========================================
   Reports Section
   ======================================== */

.report-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.report-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.report-feature-item:hover {
    transform: translateX(10px);
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.report-feature-item i {
    font-size: 2rem;
    color: var(--primary-green);
    flex-shrink: 0;
}

.report-feature-item h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.report-feature-item p {
    color: var(--gray);
    margin: 0;
}

.report-portal {
    padding: 3rem;
}

.report-portal i {
    color: var(--primary-green);
}

/* ========================================
   Testimonials
   ======================================== */

.testimonial-card {
    text-align: center;
    padding: 3rem;
    margin: 1rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.testimonial-author strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: var(--gray);
    font-size: 0.9rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-green);
    border-radius: 50%;
    padding: 1.5rem;
}

/* ========================================
   Contact Cards
   ======================================== */

.contact-card {
    text-align: center;
    height: 100%;
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
}

.contact-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.contact-card p {
    color: var(--gray);
}

.contact-card a {
    color: var(--primary-green);
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.working-hours {
    padding: 2rem;
}

.working-hours h4 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.working-hours ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.working-hours ul li:last-child {
    border-bottom: none;
}

.map-container {
    padding: 0;
    overflow: hidden;
}

.emergency-contact {
    background: var(--light-gray);
    padding: 3rem;
    border-radius: var(--radius-lg);
}

.emergency-contact h4 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.emergency-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--gradient-hero);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-about h5 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-about p {
    opacity: 0.9;
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--white);
    color: var(--primary-green);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.copyright a {
    color: var(--white);
    text-decoration: underline;
}

/* ========================================
   Gallery Section
   ======================================== */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    height: 300px;
    cursor: pointer;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(74, 157, 95, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.gallery-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.gallery-content .btn {
    background: var(--white);
    color: var(--primary-green);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition-normal);
}

.gallery-content .btn:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   Animations
   ======================================== */

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-item {
        flex-direction: row !important;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row !important;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .floating-actions {
        bottom: 20px;
        right: 20px;
    }

    .fab-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .float-icon {
        font-size: 2rem;
    }

    .emergency-buttons {
        flex-direction: column;
    }

    .emergency-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .brand-text {
        font-size: 0.9rem;
    }

    .logo {
        height: 40px;
    }

    .service-category-title {
        font-size: 1.5rem;
    }
}