/* General reset for box-sizing for consistency */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Global styling for body and html */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    font-family: 'EB Garamond', serif;
    font-weight: 400;
}

/* Container for the entire page */
.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Background video styling */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay styling */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Content styling (centered) */
.content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 20px;
    max-width: 90%;
    width: 100%;
}

.content h1 {
    font-size: clamp(4rem, 6vw, 6rem);
    margin-top: 2px;
    margin-bottom: 5px;
    font-weight: 500;
}

.welcome {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-top: 0;
    margin-bottom: 0px;
}

.subheading {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-top: 0;
    margin-bottom: 100px;
}

/* Boxes container: full width with gap for spacing */
.boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
    width: 100%;
    padding: 80px 300px;
}

/* Box styling */
.box {
    box-sizing: border-box;
    /* On larger screens: three boxes per row */
    flex: 1 1 calc((100% - 20px) / 3);
    text-align: center;
    padding: 40px 60px;
    border-radius: 10px;
    transition: transform 0.3s ease, opacity 0.5s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Optional background color classes */
.medical {
    background-color: rgba(135, 116, 82, 0.52);
}

.ladies {
    background-color: rgba(123, 51, 60, 0.70);
}

.gents {
    background-color: rgba(52, 52, 54, 0.59);
}

/* Logo styling */
.box img {
    display: block;
    margin: 0 auto 20px auto;
    width: 100px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Button styling */
.box button {
    width: 100px;
    padding: 10px 8px;
    font-size: 0.9em;
    cursor: pointer;
    border: none;
    background: transparent;
    color: white;
    border: 1px solid rgb(255, 255, 255);
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.box button:hover {
    background: white;
    color: rgb(0, 0, 0);
    border: 1px solid rgb(255, 255, 255);
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Animation delay classes */
.animate-box {
    animation-delay: 0s;
}

.animate-box[data-delay="0.5s"] {
    animation-delay: 0.5s;
}

.animate-box[data-delay="1s"] {
    animation-delay: 1s;
}

/* Hover effects */
.box:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.9);
}

.box:hover.medical {
    background-color: rgba(135, 116, 82, 0.9);
}

.box:hover.ladies {
    background-color: rgba(123, 51, 60, 0.9);
}

.box:hover.gents {
    background-color: rgba(52, 52, 54, 0.9);
}

/* Footer styling */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    padding: 10px 0;
}

/* Tablet responsiveness (up to 1500px) */
@media (max-width: 1500px) {

    /* Reduce the gaps/padding on tablets */
    .boxes {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 5px;
        padding: 0;
    }

    /* Adjust box padding */
    .box {
        padding: 30px;
    }

    /* First box: full width */
    .boxes .box:first-child {
        flex: 1 1 100%;
    }

    .boxes .box:nth-child(2),
    .boxes .box:nth-child(3) {
        flex: 0 0 calc(50% - 2.5px);
        /* half of the gap if you're using justify-content: space-between */
    }

    .content {
        max-width: 100%;
    }

    .content h1 {
        font-size: 3.5rem;
    }

    .welcome,
    .subheading {
        font-size: 2rem;
    }

    .box img {
        width: 120px;
    }

    .box button {
        width: 120px;
    }
}

/* Mobile responsiveness (up to 768px) */
@media (max-width: 768px) {

    .content h1 {
        font-size: 2.5rem;
    }

    .welcome,
    .subheading {
        font-size: 1.3rem;
    }

    .box img {
        width: 100px;
    }

    .box button {
        width: 100px;
    }
}