* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

/* ─── Background Video ─── */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.5);
    will-change: transform;
}

.main-content-wrapper {
    position: relative;
    z-index: 2;
}

/* ─── Header / Navigation ─── */
.heading {
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logos {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: clamp(20px, 5vw, 125px);
    z-index: 2;
}

.acmlogo {
    width: 80px;
    height: 80px;
    background: url("ac_tr.svg") center / cover no-repeat;
    transform: scale(1.3);
    flex-shrink: 0;
}

.amritalogo {
    height: 80px;
    width: 80px;
    flex-shrink: 0;
}

.amritalogo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu {
    margin-right: clamp(15px, 4vw, 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 2vw, 30px);
    flex-wrap: wrap;
    z-index: 2;
}

.menu a {
    height: 35px;
    width: 35px;
    text-decoration: none;
    color: white;
    border-radius: 50%;
    font-size: 18px;
    padding: 8px;
    text-align: center;
    transition: color 0.2s, border 0.2s, transform 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.menu a:hover {
    color: red;
    border: 2px solid red;
    transform: scale(1.2);
}

.menu a::after {
    content: attr(data-label);
    position: absolute;
    top: 38px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
}

.menu a:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.menu a i {
    display: inline-block;
    transition: transform 0.4s ease;
}

.menu a:hover i {
    transform: rotate(-360deg);
}

/* ─── Page Title ─── */
.content {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
    padding: 0 20px;
}

.content h1 {
    color: #0ff;
    letter-spacing: 5px;
    font-size: clamp(36px, 8vw, 70px);
    text-shadow: 0 0 20px #0ff;
    transition: 0.3s ease;
    opacity: 1 !important;
    transform: none !important;
}

.content h1:hover {
    text-decoration: underline;
}

/* ─── Shared Container Styles ─── */
.container,
.container2 {
    border: 2px solid #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: clamp(30px, 5vw, 80px) clamp(20px, 4vw, 70px);
    margin: 40px clamp(15px, 5vw, 125px) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.container2 {
    margin-top: 60px;
}

.container h1,
.container2 h1 {
    color: wheat;
    font-size: clamp(28px, 5vw, 50px);
    background: linear-gradient(to right, #FFD700, #DAA520, #B8860B);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.container2 h3 {
    color: wheat;
    font-size: clamp(20px, 3.5vw, 30px);
    background: linear-gradient(to right, #FFD700, #DAA520, #B8860B);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* ─── Event Cards Grid ─── */
.box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    max-height: 65vh;
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: #0ff transparent;
}

.items {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    background: rgba(17, 17, 17, 0.9);
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.items:hover {
    border-color: red;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.items .info {
    flex-grow: 1;
    overflow-y: auto;
    margin: 10px 0;
    color: white;
    text-align: justify;
    font-size: 14px;
    line-height: 1.6;
    scrollbar-width: none;
}

.items h1 {
    color: red;
    letter-spacing: 1px;
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: 8px;
    background: linear-gradient(to right, #4acfee, #53f8c9, #02d79a, #6070fd, #2a46ff, #0099ff, #4acfee);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.items p {
    color: white;
    margin: 4px 0;
    line-height: 1.5;
    font-size: clamp(13px, 1.5vw, 15px);
}

.items a {
    display: inline-block;
    padding: 8px 16px;
    background-color: black;
    color: red;
    font-size: 16px;
    text-align: center;
    border: 2px solid red;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 2px;
    transition: background-color 0.25s, color 0.25s;
    margin-top: auto;
}

.items a:hover {
    background-color: red;
    color: black;
}

.items i {
    padding: 0 4px;
}

.box::-webkit-scrollbar,
.items .info::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* ─── Social Icons ─── */
.social-icons {
    z-index: 2;
    position: fixed;
    bottom: 40px;
    left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 30px;
    color: white;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.25s, color 0.25s;
    border-radius: 50%;
}

.social-icons a:hover {
    border: 2px solid red;
    color: red;
    transform: scale(1.2);
}

/* ─── Scrollbar ─── */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

body::-webkit-scrollbar-thumb {
    background: #0ff;
    border-radius: 10px;
    box-shadow: 0 0 6px rgba(0, 255, 255, 0.4);
}

body::-webkit-scrollbar-thumb:hover {
    background: #0cc;
}

body {
    scrollbar-width: thin;
    scrollbar-color: #0ff transparent;
}

/* ─── Modal Styles ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #050505;
    border-radius: 14px;
    border: 2px solid #ff0000;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5), 0 0 15px rgba(0, 255, 255, 0.3);
    padding: 28px 32px 32px;
    max-width: 420px;
    width: 100%;
    position: relative;
    color: #f5f5f5;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-title {
    font-size: clamp(18px, 4vw, 24px);
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #0ff;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none;
    color: #ff0000;
    font-size: 26px;
    cursor: pointer;
    transition: transform 0.2s, color 0.2s;
}

.modal-close:hover {
    transform: scale(1.2);
    color: #0ff;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px 20px;
    min-height: 200px;
}

.checkmark-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #0ff;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.6), inset 0 0 10px rgba(0, 255, 255, 0.15);
}

.checkmark-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 32px;
    border-right: 4px solid #0ff;
    border-bottom: 4px solid #0ff;
    border-left: none;
    border-top: none;
    transform: translate(-50%, -65%) rotate(45deg);
    box-sizing: border-box;
}

.modal-success p {
    font-size: clamp(20px, 4vw, 28px);
    color: #0ff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    letter-spacing: 2px;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.92;
    }
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-field label {
    font-size: 13px;
    color: #ccc;
}

.modal-field input {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    background: #111;
    color: #f5f5f5;
    outline: none;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.modal-field input::placeholder {
    color: #666;
}

.modal-field input:focus {
    border-color: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
    background: #0a0a0a;
}

.modal-field select {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 255, 0.5);
    background: #111;
    color: #f5f5f5;
    outline: none;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300ffff' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.modal-field select:focus {
    border-color: #ff0000;
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
    background: #0a0a0a;
}

.modal-field select option {
    background: #111;
    color: #f5f5f5;
}

.modal-submit {
    margin-top: 8px;
    padding: 12px 18px;
    border-radius: 8px;
    border: 2px solid #ff0000;
    background: #000;
    color: #ff0000;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.modal-submit:hover {
    background: #ff0000;
    color: #000;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
}

.modal-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ─── Admin Floating Action Button ─── */
.admin-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(5, 5, 15, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 255, 255, 0.08);
    color: #0ff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transform: translateX(200px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.admin-fab.visible {
    transform: translateX(0);
    opacity: 1;
}

.admin-fab i {
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.admin-fab span {
    white-space: nowrap;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.35s ease;
    margin-left: 0;
}

.admin-fab:hover {
    background: rgba(0, 255, 255, 0.12);
    border-color: #0ff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 255, 255, 0.15);
    transform: translateY(-3px);
    color: #fff;
}

.admin-fab:hover i {
    transform: rotate(-15deg) scale(1.1);
}

.admin-fab:hover span {
    max-width: 120px;
    opacity: 1;
    margin-left: 4px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE: Tablet (≤1024px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .heading {
        padding: 15px;
    }

    .logos {
        margin-left: 15px;
    }

    .menu {
        margin-right: 15px;
        gap: 12px;
    }

    .container,
    .container2 {
        margin-left: 30px;
        margin-right: 30px;
        padding: 40px 30px;
    }

    .box {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        max-height: 60vh;
    }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE: Mobile (≤768px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .heading {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 10px;
    }

    .logos {
        margin-left: 0;
        justify-content: center;
    }

    .acmlogo {
        width: 60px;
        height: 60px;
        transform: scale(1.1);
    }

    .amritalogo {
        width: 60px;
        height: 60px;
    }

    .menu {
        margin-right: 0;
        gap: 10px;
        justify-content: center;
        width: 100%;
    }

    .menu a {
        height: 32px;
        width: 32px;
        font-size: 16px;
        padding: 6px;
    }

    /* Hide tooltips on mobile — they don't work well with touch */
    .menu a::after {
        display: none;
    }

    .content {
        margin: 15px auto;
        z-index: 3;
    }

    .container,
    .container2 {
        margin: 25px 10px 0;
        padding: 25px 15px;
        gap: 15px;
        border-radius: 10px;
    }

    .container2 {
        margin-top: 40px;
    }

    .box {
        grid-template-columns: 1fr;
        max-height: none;
        overflow-y: visible;
        gap: 15px;
        padding: 5px;
    }

    .items {
        min-height: unset;
        max-height: none;
        padding: 18px 15px;
    }

    .items .info {
        overflow-y: visible;
        max-height: 150px;
        overflow-y: auto;
    }

    .items a {
        padding: 10px 14px;
        font-size: 14px;
        letter-spacing: 1.5px;
        width: 100%;
        text-align: center;
    }

    /* Move social icons to bottom row on mobile */
    .social-icons {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        flex-direction: row;
        justify-content: center;
        gap: 25px;
        margin-top: 30px;
        padding: 30px 0 50px 0;
        width: 100%;
        background: none;
        backdrop-filter: none;
        border: none;
        border-radius: 0;
    }

    .social-icons a {
        font-size: 22px;
        height: 35px;
        width: 35px;
    }

    /* Modal adjustments */
    .modal {
        padding: 22px 18px 26px;
        margin: 10px;
        max-height: 85vh;
    }

    .modal-field input {
        padding: 12px;
        font-size: 16px;
        /* Prevent iOS zoom on focus */
    }

    .modal-submit {
        padding: 14px;
        font-size: 14px;
    }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE: Small phones (≤480px)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .heading {
        padding: 10px 5px;
    }

    .acmlogo {
        width: 50px;
        height: 50px;
        transform: scale(1);
    }

    .amritalogo {
        width: 50px;
        height: 50px;
    }

    .menu {
        gap: 6px;
    }

    .menu a {
        height: 28px;
        width: 28px;
        font-size: 14px;
        padding: 5px;
    }

    .container,
    .container2 {
        margin: 20px 5px 0;
        padding: 20px 10px;
    }

    .items {
        padding: 15px 12px;
    }

    .items h1 {
        font-size: 15px;
    }

    .items p {
        font-size: 12px;
    }

    .social-icons {
        gap: 20px;
        padding: 20px 0 40px 0;
    }

    .social-icons a {
        font-size: 18px;
        height: 30px;
        width: 30px;
    }
}