@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap");

* {
    box-sizing: border-box;
    user-select: none;
}

a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    color: white;
    background: #0a0a0a;
    font-family: "Montserrat", sans-serif;
}

h1, h2 {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 300;
    text-align: center;
    letter-spacing: 0.15em;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(2.5rem, 10vw, 7rem);
    font-weight: 600;
}

header {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    width: 100%;
    z-index: 3;
    height: 5em;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 0.2em;
}

section {
    height: 100%;
    width: 100%;
    top: 0;
    position: fixed;
    visibility: hidden;
}

section .outer,
section .inner {
    width: 100%;
    height: 100%;
    overflow-y: hidden;
}

section .bg {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    background-size: cover;
    background-position: center;
}

section .bg h1,
section .bg h2 {
    z-index: 2;
}

section .bg .clip-text {
    overflow: hidden;
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    padding: 0 2rem;
}

.section-subtext {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    text-align: center;
}

.contact-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    opacity: 1;
}

.first .bg {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 100%),
        url(medical1.jpg);
}

.second .bg {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 100%),
        url(medical2.jpg);
}

h1 *, h2 * {
    will-change: transform;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Hide scroll indicator on second section */
.second .scroll-indicator {
    display: none;
}

/* Tablet and below */
@media (max-width: 768px) {
    header {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        padding: 0 4%;
        height: 4em;
        flex-direction: column;
        justify-content: center;
        gap: 0.3rem;
    }
    
    h1 {
        font-size: clamp(2rem, 12vw, 4rem);
        letter-spacing: 0.1em;
    }
    
    h2 {
        font-size: clamp(1.5rem, 10vw, 3rem);
        letter-spacing: 0.1em;
    }
    
    .content-wrapper {
        gap: 1rem;
        padding: 0 1.5rem;
    }
    
    .section-subtext {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        letter-spacing: 0.05em;
    }
    
    .contact-button {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }
    
    .scroll-indicator {
        bottom: 2rem;
    }
    
    .scroll-arrow {
        width: 20px;
        height: 20px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    header {
        font-size: 0.55rem;
        letter-spacing: 0.05em;
        padding: 0 3%;
        height: 3.5em;
    }
    
    h1 {
        font-size: clamp(1.8rem, 14vw, 3rem);
        letter-spacing: 0.08em;
    }
    
    h2 {
        font-size: clamp(1.3rem, 12vw, 2.5rem);
        letter-spacing: 0.08em;
    }
    
    .content-wrapper {
        gap: 0.8rem;
        padding: 0 1rem;
    }
    
    .section-subtext {
        font-size: clamp(0.85rem, 4.5vw, 1rem);
        letter-spacing: 0.03em;
        line-height: 1.4;
    }
    
    .contact-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
        margin-top: 1rem;
        letter-spacing: 0.05em;
    }
    
    .scroll-indicator {
        bottom: 1.5rem;
    }
    
    .scroll-arrow {
        width: 18px;
        height: 18px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    header {
        font-size: 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .section-subtext {
        font-size: 0.8rem;
    }
    
    .contact-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.75rem;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        height: 3em;
        font-size: 0.6rem;
    }
    
    h1 {
        font-size: clamp(1.5rem, 8vh, 2.5rem);
    }
    
    h2 {
        font-size: clamp(1.2rem, 6vh, 2rem);
    }
    
    .content-wrapper {
        gap: 0.5rem;
    }
    
    .section-subtext {
        font-size: clamp(0.8rem, 3vh, 1rem);
    }
    
    .contact-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
}