/* Add Google Fonts imports at the very top of your home.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

/* Ensure the body has your background image without interference */
body {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; /* Modern, approachable font */
    margin: 0;
    padding: 0;
    /* This is where your background image is now defined */
    background-image: url('onl.jpg'); /* Your specified background image */
    background-size: cover; /* Covers the entire viewport */
    background-position: center center; /* Centers the image */
    background-attachment: fixed; /* Keeps background fixed when scrolling */
    background-color: #f8f9fa; /* Fallback color if image fails to load */
    color: #343a40; /* Darker, softer text color for contrast */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6; /* Improved readability for paragraphs */
}


/* --- Header Styling --- */
header {
    background-color: rgba(0, 123, 255, 0.9); /* Semi-transparent blue for header */
    color: white;
    padding: 25px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Stronger shadow for depth */
    position: relative; /* For potential future elements */
    z-index: 10; /* Ensure it stays on top */
}

header h1 {
    font-family: 'Montserrat', sans-serif; /* A bold, modern font for the hospital name */
    font-size: 3.5em; /* Larger, more impactful heading */
    margin: 0;
    letter-spacing: 2px; /* Prominent letter spacing */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3); /* Enhanced text shadow */
    font-weight: 700;
}


/* --- Navigation Styling --- */
nav {
    background-color: rgba(44, 62, 80, 0.95); /* Slightly less transparent, darker navy */
    color: white;
    padding: 15px 0; /* More padding */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); /* Enhanced shadow */
    position: sticky; /* Sticky navigation for better UX */
    top: 0;
    z-index: 9; /* Below header, above content */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 25px; /* Increased spacing */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em; /* Slightly larger nav links */
    padding: 10px 20px; /* More padding for clickable area */
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
    border-radius: 8px; /* More rounded corners */
    text-transform: uppercase; /* Uppercase for nav items */
}

nav ul li a:hover {
    color: #e0f2ff; /* Lighter blue on hover */
    background-color: rgba(255, 255, 255, 0.15); /* More visible background hover effect */
    transform: translateY(-3px); /* Pronounced lift effect */
}

/* --- Main Container & Sections --- */
.container {
    flex: 1;
    width: 90%;
    max-width: 1200px;
    margin: 30px auto; /* More margin */
    padding: 0 15px;
    position: relative; /* For z-index if needed */
    z-index: 1;
}

/* --- Hero Section --- */
.hero {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white to see background image */
    padding: 60px; /* Generous padding */
    border-radius: 15px; /* Softer, more rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); /* Deep shadow */
    text-align: center;
    margin-bottom: 50px; /* More space below */
    backdrop-filter: blur(5px); /* Soft blur effect on content background */
    -webkit-backdrop-filter: blur(5px); /* For Safari */
}

.hero h2 {
    color: #0056b3; /* Darker blue for contrast */
    margin-bottom: 25px;
    font-size: 3.2em; /* Larger, more prominent heading */
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1); /* Subtle text shadow */
}

.hero p {
    font-size: 1.35em; /* Larger body text for impact */
    line-height: 1.8;
    color: #444; /* Slightly darker text for readability on transparent background */
    max-width: 850px;
    margin: 0 auto 35px auto;
    font-weight: 400; /* Standard weight for readability */
}

.cta-buttons a {
    display: inline-block;
    padding: 16px 35px; /* Even larger buttons */
    border-radius: 35px; /* More pill-shaped */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em; /* Larger text in buttons */
    margin: 0 18px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: none; /* Ensure no default border */
}

.btn-primary {
    background-color: #007bff;
    color: white;
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4); /* More pronounced shadow */
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-5px); /* More pronounced lift */
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.5);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    box-shadow: 0 6px 15px rgba(108, 117, 125, 0.4);
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.5);
}

/* --- Features Section --- */
.features {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white */
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    backdrop-filter: blur(5px); /* Soft blur effect */
    -webkit-backdrop-filter: blur(5px);
}

.features h2 {
    color: #0056b3;
    margin-bottom: 40px;
    font-size: 2.8em; /* Larger feature heading */
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.08);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Larger min-width */
    gap: 35px; /* Increased gap */
    justify-content: center;
}

.feature {
    background-color: rgba(234, 246, 255, 0.95); /* Slightly transparent lighter blue */
    padding: 35px; /* More padding */
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    border: 1px solid rgba(208, 231, 255, 0.8); /* Subtle border */
    text-align: center;
}

.feature:hover {
    transform: translateY(-10px); /* More pronounced lift */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); /* Deeper shadow on hover */
    background-color: rgba(219, 234, 255, 1); /* Solid color on hover */
}

.feature a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature i {
    font-size: 4.5em; /* Even larger icons */
    color: #007bff;
    margin-bottom: 25px; /* More space below icon */
}

.feature h3 {
    color: #343a40;
    margin-bottom: 15px;
    font-size: 1.8em; /* Larger feature title */
    font-weight: 600;
}

.feature p {
    font-size: 1.05em; /* Slightly larger paragraph size */
    color: #6c757d;
    line-height: 1.7;
    font-weight: 300; /* Lighter weight for body text */
}

/* --- Footer Styling --- */
footer {
    background-color: rgba(44, 62, 80, 0.98); /* Almost opaque dark navy */
    color: #f8f9fa;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 60px; /* More space above footer */
    position: relative; /* For z-index if background elements overlap */
    z-index: 5;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 280px;
    margin: 15px;
    text-align: left;
    padding: 10px;
}

.footer-section h3 {
    color: #8bbceb;
    margin-bottom: 20px;
    font-size: 1.5em; /* Larger footer headings */
    border-bottom: 2px solid #8bbceb;
    padding-bottom: 8px;
    display: inline-block;
    font-weight: 600;
}

.footer-section p {
    font-size: 1em; /* Standard footer text size */
    line-height: 1.7;
    margin-bottom: 10px;
    color: #e0e0e0;
    font-weight: 300; /* Lighter weight for footer body text */
}

.footer-section p i {
    margin-right: 10px;
    color: #cfe2ff;
}

.footer-section.social-links {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px; /* Increased spacing */
    margin-top: 25px; /* More space above icons */
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 2em; /* Even larger social icons */
    color: #e0e0e0;
}

.social-icons a:hover {
    transform: translateY(-6px) scale(1.15); /* More pronounced lift and enlarge */
    color: #007bff; /* Vibrant blue on hover */
}

/* Font Awesome specific */
.fas, .fab {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    header h1 {
        font-size: 2.8em;
    }
    .hero h2 {
        font-size: 2.6em;
    }
    .hero p {
        font-size: 1.2em;
    }
    .features h2 {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 10px 0;
    }
    header h1 {
        font-size: 2.2em;
    }
    .hero {
        padding: 40px;
    }
    .hero h2 {
        font-size: 2.2em;
    }
    .hero p {
        font-size: 1.1em;
    }
    .cta-buttons a {
        padding: 14px 25px;
        font-size: 1.1em;
        margin: 0 10px;
    }
    .features {
        padding: 40px;
    }
    .features h2 {
        font-size: 2em;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    .footer-section {
        min-width: unset;
        width: 90%;
        text-align: center;
        margin-bottom: 25px;
    }
    .footer-section h3 {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    nav ul li a {
        font-size: 1em;
        padding: 8px 15px;
    }
    .hero {
        padding: 30px;
    }
    .hero h2 {
        font-size: 1.8em;
        letter-spacing: 0.8px;
    }
    .hero p {
        font-size: 0.95em;
    }
    .cta-buttons a {
        padding: 10px 18px;
        font-size: 0.95em;
        margin: 0 5px;
        border-radius: 25px;
    }
    .features {
        padding: 30px;
    }
    .features h2 {
        font-size: 1.8em;
    }
    .feature i {
        font-size: 3.5em;
    }
    .feature h3 {
        font-size: 1.5em;
    }
    .feature p {
        font-size: 0.9em;
    }
    .social-icons a {
        font-size: 1.7em;
        gap: 15px;
    }
    .footer-section h3 {
        font-size: 1.3em;
    }
    .footer-section p {
        font-size: 0.9em;
    }

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* Popup Content Box */
.popup-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: popupSlide 0.4s ease-out;
}

@keyframes popupSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header Styling */
.popup-header {
    background: linear-gradient(135deg, #007bff, #003366);
    color: white;
    padding: 20px;
}

.popup-header h2 {
    margin: 0;
    letter-spacing: 1px;
    font-size: 1.8rem;
}

.popup-body {
    padding: 30px;
}

.popup-body i {
    color: #007bff;
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Close Button */
.close-popup {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
}

.close-popup:hover {
    background-color: #003366;
}
}