:root {
    --blue: #207dff;
    --violet: #a16ae8;
    --teal: #6ae8d3;
    --white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-dark: #1f2933;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
}

nav {
    position: fixed;
    top: -70px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    transition: top 0.3s ease;
    padding: 0;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 20px 15px;
    display: block;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #207dff;
    border-radius: 5px;
}

.hero-wrap {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url('../img/bg_hospital_w_logo.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 70px;
    animation: parallax 20s infinite linear;
}

/* Parallax animation */
@keyframes parallax {
    0% {
        background-position: center 0px;
    }
    100% {
        background-position: center -300px;
    }
}

.hero-wrap .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    content: '';
    opacity: 0.6;
    background: linear-gradient(135deg, var(--blue), var(--violet));
}

.hero-wrap .content {
    position: relative;
    color: white;
    text-align: center;
    z-index: 1;
}

.hero-wrap .content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-wrap .content p {
    font-size: 1.25rem;
}

section {
    min-height: 650px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#section1 {
    position: relative;
    min-height: 650px;
    background: url('../img/bg_section1.png') center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Gradient Overlay */
#section1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    opacity: 0.65;
    z-index: 1;
}

#section1 .app-container {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 2rem;
}

/* Make sure content stays above overlay */
#section1 > * {
    position: relative;
    z-index: 2;
}

#section1 h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#section1 p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

#section2 {
    position: relative;
    min-height: 650px;
    background: url('../img/bg_section2.png') center / cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#section2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #38bdf8, #22c55e);
    opacity: 0.55;
    z-index: 1;
}

/* Section content */
#section2 .app-container {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 2rem;
}

#section2 h2 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#section2 p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

#section3 {
    background-color: #ccc;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--violet));
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(32, 125, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(32, 125, 255, 0.55);
}


/* Media Queries for Responsive Design */

/* Mobile First: Menu and Navbar */
@media (max-width: 768px) {

    nav {
        position: static;
        height: auto;
        padding: 10px 0;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .menu-active {
        display: flex;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        padding: 5px;
    }

    .hamburger .bar {
        width: 30px;
        height: 4px;
        background-color: #fff;
        margin: 6px 0;
    }

    /* Hide desktop section and navbar on smaller devices */
    #desktop-navbar {
        display: none;
    }

    /* Show mobile navbar */
    #mobile-navbar {
        display: block;
    }
}
