body {
    cursor: none !important;
    margin: 0;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 4.5rem;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #ffb07c;
}
h2 {
    font-size: 4rem;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
h3 {
    font-size: 3.75rem;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}
h4 {
    font-size: 3rem;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #ffb07c;
}
h5 {
    font-size: 1.9rem;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

p {
    font-size: 1.3rem;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    text-align: justify;
    text-justify: inter-word;
}

@media (min-width: 1367px) and (max-width: 1910px) {
    p {
        font-size: 1.1rem;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
        text-align: justify;
        text-justify: inter-word;
    }

    h1 {
        font-size: 4rem;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
        color: #ffb07c;
    }

    h4 {
        font-size: 2.5rem;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
        color: #ffb07c;
    }

    h5 {
        font-size: 2rem;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    }
}

main {
    position: relative;
    display: grid;
    height: 100vh;
    overflow: auto;
    scroll-snap-type: y mandatory;
}

main > section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: grid;
    place-items: center;
    min-height: 100vh;
    color: white;
    padding-block: 30px;
    padding-inline: 30px;
}

section > div {
    opacity: 0; /* Initially hide text */
    transition: opacity 1s ease; /* Adjusted transition duration */
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(100px); /* Increased from 20px to 40px */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeInUp 1s forwards; /* Adjusted duration to 1 second */
}

.animation-group {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-right: 700px;
    font-size: 10px;
}

.animation-group > [data-animation]:hover .icon {
    transform: scale(1.1);
}

.card {
    margin-top: 30px;
    width: auto;
    padding: 10px;
    border-radius: 10px;
}

.custom-card {
    background: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card {
    position: relative;
    z-index: 1; /* Ensure the card is above the video */
}

.back-btn {
    position: fixed;
    bottom: 20px;
    right: 35px;
    background-color: transparent;
    border: 2px solid white; /* Adds an outline */
    color: white; /* Font color for visibility */
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10; /* Ensure it's above other elements */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-btn:hover {
    background-color: white; /* Change background on hover */
    color: black; /* Change font color on hover */
}

/* LAPTOP */
@media (min-width: 1367px) and (max-width: 1910px) {
    .card {
        padding: 1px;
    }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1366px) {
    p {
        font-size: 1.1rem;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
        text-align: justify;
        text-justify: inter-word;
    }

    h1 {
        font-size: 4.5rem;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
        color: #ffb07c;
    }

    h4 {
        font-size: 3.3rem;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
        color: #ffb07c;
    }

    h5 {
        font-size: 1.8rem;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    }

    .animation-group {
        width: 310px;
    }

    .animation-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        margin-right: 700px;
        font-size: 10px;
    }

    .card {
        padding-bottom: -51px;
        margin-bottom: -51px;
    }

    .back-btn {
        position: fixed;
        bottom: 50px;
        right: 50px;
        background-color: transparent;
        border: 2px solid white; /* Adds an outline */
        color: white; /* Font color for visibility */
        padding: 10px 20px;
        font-size: 20px;
        border-radius: 5px;
        cursor: pointer;
        z-index: 10; /* Ensure it's above other elements */
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .back-btn:hover {
        background-color: white; /* Change background on hover */
        color: black; /* Change font color on hover */
    }

    section > div {
        margin-top: -100px;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    p {
        font-size: 0.8rem;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
        text-align: justify;
        text-justify: inter-word;
    }

    h1 {
        font-size: 2.3rem;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
        color: #ffb07c;
    }

    h4 {
        font-size: 2rem;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
        color: #ffb07c;
    }

    h5 {
        font-size: 1rem;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    }

    .animation-group {
        width: 310px;
    }

    .animation-group {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        margin-right: 700px;
        font-size: 10px;
    }

    .card {
        padding-bottom: -51px;
        margin-bottom: -51px;
    }

    .back-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: transparent;
        border: 2px solid white; /* Adds an outline */
        color: white; /* Font color for visibility */
        padding: 10px 20px;
        font-size: 10px;
        border-radius: 5px;
        cursor: pointer;
        z-index: 10; /* Ensure it's above other elements */
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .back-btn:hover {
        background-color: white; /* Change background on hover */
        color: black; /* Change font color on hover */
    }

    section > div {
        margin-top: -100px;
    }
}
