* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.heading {
    padding: 30px 50px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    gap: 10px;
}

.acmlogo {
    width: 100px;
    height: 100px;
    background: url("ac_tr.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: scale(1.5);
}

.amritalogo {
    height: 100px;
    width: 100px;
}

.amritalogo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

video.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5);
}

.menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    z-index: 2;
}

.menu a {
    height: 35px;
    width: 35px;
    text-decoration: none;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    padding: 10px;
    text-align: center;
    transition: 0.2s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu a:hover {
    color: red;
    border-radius: 50%;
    border: 2px solid red;
    transform: scale(1.2);
}

.menu a::after {
    content: attr(data-label);
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateY(-150%);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.menu a:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.menu a i {
    display: inline-block;
    transition: transform 0.6s ease-in-out;
    transform: rotate(360deg);
}

.menu a:hover i {
    transform: rotate(-360deg);
}

.container {
    position: absolute;
    top: 180px;
    left: 50%;
    transform: translateX(-50%);
    height: 70vh;
    width: 80%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    overflow-y: auto;
    z-index: 2;
    padding: 20px;
}

.content h1 {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #0ff;
    font-size: 50px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.8px;
    text-shadow: 0 0 10px #0ff;
    white-space: nowrap;
}

.content h1:hover {
    text-decoration: underline;
}

.box {
    display: flex;
    gap: 100px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.cards {
    position: relative;
    height: 300px;
    width: 250px;
    transition: 0.5s ease-in-out;
    overflow: hidden;
    border: transparent;
    filter: brightness(0.4) grayscale(100%);
}

.cards:hover {
    box-shadow: 0 0 15px red;
    filter: brightness(1) grayscale(0%);
}

.cards::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 10px;
    width: 10px;
    border-left: 5px solid red;
    border-top: 5px solid red;
    opacity: 0;
    transition: 0.5s;
}

.cards::after {
    position: absolute;
    content: "";
    height: 10px;
    width: 10px;
    right: 0;
    bottom: 0;
    border-right: 5px solid red;
    border-bottom: 5px solid red;
    transition: 0.5s;
    opacity: 0;
}

.cards:hover img {
    border-radius: 50%;
}

.cards:hover::before {
    height: 100%;
    width: 100%;
    opacity: 1;
}

.cards:hover::after {
    height: 100%;
    width: 100%;
    opacity: 1;
}

.image {
    height: 300px;
    width: 250px;
}

.image img {
    transition: 0.5s;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.details {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 140px;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: bottom 0.5s ease;
    padding: 8px 12px;
}

.details h1,
.details p {
    opacity: 0;
    transition: opacity 0.5s ease;
    color: white;
    margin: 5px 0;
    font-size: 0;
    text-align: center;
}

.cards:hover .details {
    bottom: 0;
    transition-delay: 0.2s;
}

.cards:hover .details h1,
.cards:hover .details p {
    opacity: 1;
    font-size: 17px;
}

.sl {
    display: flex;
    gap: 14px;
    margin-top: 6px;
    justify-content: center;
}

.sl a {
    color: white;
    font-size: 18px;
    text-decoration: none;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease, color 0.2s;
}

.cards:hover .sl a {
    transform: translateY(0);
    opacity: 1;
}

.sl a:nth-child(1) { transition-delay: 0.3s; }
.sl a:nth-child(2) { transition-delay: 0.4s; }
.sl a:nth-child(3) { transition-delay: 0.5s; }
.sl a:nth-child(4) { transition-delay: 0.6s; }

.sl a:hover { color: red; }

.social-icons {
    z-index: 2;
    position: fixed;
    top: 500px;
    left: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 30px;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
    border-radius: 50%;
}

.social-icons a:hover {
    border: 2px solid red;
    color: red;
    transform: scale(1.2);
}


.container::-webkit-scrollbar {
    width: 10px;
}

.container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.container::-webkit-scrollbar-thumb {
    background: #0ff;
    border-radius: 10px;
    box-shadow: 0 0 10px #0ff;
}

.container::-webkit-scrollbar-thumb:hover {
    background: #0cc;
    box-shadow: 0 0 15px #0ff;
}

.container {
    scrollbar-width: thin;
    scrollbar-color: #0ff transparent;
}


/* ===========================
   TABLET (≤ 1280px)
   =========================== */
@media screen and (max-width: 1280px) {
    .heading {
        padding: 25px 30px;
    }

    .acmlogo {
        width: 80px;
        height: 80px;
        transform: scale(1.2);
    }

    .amritalogo {
        height: 80px;
        width: 80px;
    }

    .menu {
        gap: 20px;
    }

    .content h1 {
        font-size: 40px;
    }

    .box {
        gap: 50px;
    }

    .cards {
        height: 260px;
        width: 220px;
    }

    .image {
        height: 260px;
        width: 220px;
    }
}


/* ===========================
   MOBILE (≤ 768px)
   =========================== */
@media screen and (max-width: 768px) {

    html,
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .heading {
        position: relative;
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 15px;
    }

    .acmlogo {
        width: 55px;
        height: 55px;
        transform: scale(1);
    }

    .amritalogo {
        height: 55px;
        width: 55px;
    }

    .menu {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu a {
        font-size: 15px;
        height: 30px;
        width: 30px;
        padding: 8px;
    }

    .menu a::after {
        display: none;
    }

    .content h1 {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        font-size: clamp(24px, 6vw, 36px);
        text-align: center;
        padding: 15px 20px;
    }

    .container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        height: auto;
        padding: 15px;
        gap: 20px;
    }

    .box {
        gap: 20px;
    }

    .cards {
        width: 45%;
        height: 250px;
        filter: brightness(0.7) grayscale(50%);
    }

    .image {
        width: 100%;
        height: 100%;
    }

    .cards:hover .details h1,
    .cards:hover .details p {
        font-size: 13px;
    }

    .social-icons {
        position: relative;
        top: auto;
        left: auto;
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        padding: 20px 0 40px 0;
        width: 100%;
    }

    .social-icons a {
        font-size: 22px;
        height: 35px;
        width: 35px;
    }
}


/* ===========================
   SMALL MOBILE (≤ 480px)
   =========================== */
@media screen and (max-width: 480px) {
    .heading {
        padding: 10px;
        gap: 12px;
    }

    .acmlogo {
        width: 45px;
        height: 45px;
    }

    .amritalogo {
        height: 45px;
        width: 45px;
    }

    .menu {
        gap: 8px;
    }

    .menu a {
        font-size: 14px;
        height: 28px;
        width: 28px;
        padding: 6px;
    }

    .content h1 {
        font-size: 22px;
        padding: 10px 15px;
    }

    .container {
        padding: 10px;
        gap: 15px;
    }

    .box {
        gap: 15px;
    }

    .cards {
        width: 100%;
        height: 280px;
    }

    .cards:hover .details h1,
    .cards:hover .details p {
        font-size: 14px;
    }
}