* {
    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);
}

.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);
}

.content {
    position: fixed;
    top: 180px;
    left: 100px;
    height: 500px;
    width: 300px;
    z-index: 2;
}

.content h1 {
    color: #0ff;
    font-size: 40px;
    z-index: 2;
    letter-spacing: 0.4px;
    text-shadow: 0 0 10px #0ff;
    transition: 0.5s ease-in-out;
}

.content h1:hover {
    text-decoration: underline;
}

.content-para {
    padding: 20px 0px;
    color: bisque;
    font-weight: 400;
    letter-spacing: 0.7px;
    line-height: 1.8;
    font-size: 15px;
    text-shadow: 0 0 10px bisque;
    text-align: justify;
}

.box {
    height: auto;
    width: 950px;
    position: fixed;
    z-index: 2;
    top: 160px;
    left: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.box2 {
    height: auto;
    width: 950px;
    position: fixed;
    z-index: 2;
    top: 340px;
    left: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    height: 150px;
    width: 200px;
    border: 2px solid #0ff;
    text-align: center;
    background-color: #0ff;
    border-radius: 5px;
    box-shadow: 0 0 10px #0ff;
    filter: brightness(0.7);
    transition: 0.3s;
}

.card i {
    font-size: 30px;
    color: black;
    transition: 0.5s ease-in-out;
}

.card p {
    font-size: 15px;
    color: black;
}

.card:hover {
    background-color: red;
    box-shadow: 0 0 10px red,
        0 0 30px red;
    border: 2px solid red;
    transform: translateZ(70px);
    filter: brightness(1);
}

.card:hover+* {
    filter: brightness(0.6);
    transform: translateZ(35px) rotateY(40deg);
}

.card:hover+*+* {
    filter: brightness(0.4);
    transform: translateZ(15px) rotateY(20deg);
}

.card:has(+ *:hover) {
    filter: brightness(0.6);
    transform: translateZ(35px) rotateY(-40deg);
}

.card:has(+ * + *:hover) {
    filter: brightness(0.4);
    transform: translateZ(15px) rotateY(-20deg);
}

.card i {
    display: inline-block;
    transition: transform 0.6s ease-in-out;
    transform: rotate(360deg);
}

.card:hover i {
    transform: rotate(-360deg);
}

.quote {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    width: 600px;
    position: fixed;
    top: 88%;
    left: 60%;
    z-index: 2;
    color: white;
    font-size: 15px;
}

.quote p {
    padding: 0px 10px;
    font-size: 18px;
    letter-spacing: 1px;
}

.quote h1 {
    padding: 10px;
    font-size: 25px;
    color: white;
    text-shadow: 0 0 10px white;
}


/* ===========================
   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 {
        top: 170px;
        left: 80px;
        width: 280px;
    }

    .content h1 {
        font-size: 32px;
    }

    .content-para {
        font-size: 13px;
    }

    .box {
        left: 400px;
        width: 800px;
    }

    .box2 {
        left: 400px;
        width: 800px;
    }

    .card {
        height: 130px;
        width: 160px;
    }

    .card p {
        font-size: 12px;
    }

    .card i {
        font-size: 24px;
    }

    .quote {
        left: 50%;
        transform: translateX(-50%);
        width: auto;
    }

    .quote p {
        font-size: 15px;
    }

    .quote h1 {
        font-size: 20px;
    }
}


/* ===========================
   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 {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        padding: 20px;
    }

    .content h1 {
        font-size: clamp(24px, 6vw, 36px);
        text-align: center;
    }

    .content-para {
        font-size: 14px;
        text-align: center;
        line-height: 1.6;
        letter-spacing: 0.7px;
        padding: 20px 0;
    }

    .box,
    .box2 {
        position: relative;
        top: auto;
        left: auto;
        width: calc(100% - 40px);
        margin: 0 auto;
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 10px 0;
        transform: none;
    }

    .card {
        width: 100%;
        height: 110px;
        filter: brightness(0.8);
        padding: 8px;
    }

    /* When the last card is alone in its row (odd count), span full width */
    .box .card:last-child:nth-child(odd),
    .box2 .card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .card:hover {
        transform: scale(1.05);
    }

    .card:hover+* {
        filter: brightness(0.8);
        transform: none;
    }

    .card:hover+*+* {
        filter: brightness(0.8);
        transform: none;
    }

    .card:has(+ *:hover) {
        filter: brightness(0.8);
        transform: none;
    }

    .card:has(+ * + *:hover) {
        filter: brightness(0.8);
        transform: none;
    }

    .card p {
        font-size: 11px;
        letter-spacing: 0;
    }

    .card i {
        font-size: 22px;
    }

    .quote {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
        flex-direction: column;
        text-align: center;
        height: auto;
        margin-top: 20px;
        overflow: visible;
    }

    .quote p {
        font-size: 14px;
        letter-spacing: 0.7px;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .quote h1 {
        font-size: 20px;
        margin-top: 10px;
    }

    .social-icons {
        position: relative;
        top: auto;
        left: auto;
        flex-direction: row;
        justify-content: center;
        gap: 25px;
        margin-top: 30px;
        padding: 30px 0 50px 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 {
        padding: 15px;
    }

    .content h1 {
        font-size: 22px;
    }

    .content-para {
        font-size: 13px;
    }

    .box,
    .box2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .card {
        height: 100px;
    }

    .card p {
        font-size: 11px;
    }

    .card i {
        font-size: 20px;
    }

    .quote p {
        font-size: 13px;
    }

    .quote h1 {
        font-size: 18px;
    }
}