/* ================= CYBERPUNK Welcome/INTRO ================= */
body.home-page {
    visibility: hidden;
    background: #1b1a1a url('picgal/img/bg2.png') no-repeat center center fixed;
    background-size: cover;
}

#cyberpunk-loader {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    background: #000;
}

/* Hide loader by default */

#cyberpunk-loader {
    display: none;
}

/* Hide */

#cyberpunk-loader.hide {
    opacity: 0;
    visibility: hidden;
}

/* Grid */

.cyber-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(800px) rotateX(75deg);
    animation: gridMove 10s linear infinite;
}

@keyframes gridMove {

    0% {
        transform:
            perspective(800px) rotateX(75deg) translateY(0);
    }

    100% {
        transform:
            perspective(800px) rotateX(75deg) translateY(40px);
    }
}

/* Scanline */

.scanline {
    position: absolute;
    width: 100%;
    height: 120px;

    background:
        linear-gradient(to bottom,
            transparent,
            rgba(0, 255, 255, 0.08),
            transparent);

    animation: scanMove 4s linear infinite;
}

@keyframes scanMove {
    0% {
        top: -20%;
    }

    100% {
        top: 120%;
    }
}

/* Main content */

.cyber-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* ⭐ THIS fixes centering */
    justify-content: center;
    text-align: center;
}

/* Neon ring */

.cyber-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid cyan;
    margin: auto auto 35px;
    position: relative;

    /* ADD THIS 👇 */
    background: url("picgal/img/adi.png") no-repeat center;
    background-size: 75%;
    /* adjust size if needed */

    animation: heartbeat 1.5s ease-in-out infinite;

    box-shadow:
        0 0 20px cyan,
        0 0 50px cyan;
}

.cyber-ring::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 2px solid #00aaff;
    animation:
        reverseSpin 3s linear infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
        box-shadow:
            0 0 15px cyan,
            0 0 35px cyan;
    }

    25% {
        transform: scale(1.1);
        box-shadow:
            0 0 25px cyan,
            0 0 60px cyan;
    }

    40% {
        transform: scale(0.95);
    }

    60% {
        transform: scale(1.12);
        box-shadow:
            0 0 30px cyan,
            0 0 80px cyan;
    }

    100% {
        transform: scale(1);
        box-shadow:
            0 0 15px cyan,
            0 0 35px cyan;
    }
}

@keyframes spinRing {

    100% {
        transform: rotate(360deg);
    }
}

@keyframes reverseSpin {

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes pulseGlow {

    0% {
        box-shadow:
            0 0 15px cyan,
            0 0 35px cyan;
    }

    50% {
        box-shadow:
            0 0 35px cyan,
            0 0 80px cyan;
    }

    100% {
        box-shadow:
            0 0 15px cyan,
            0 0 35px cyan;
    }
}

/* Title */
.cyber-title {
    font-size: 60px;
    color: cyan;
    letter-spacing: 6px;
    text-transform: uppercase;
    animation: flicker 2s infinite;
}

/* Flicker */

@keyframes flicker {

    0%,
    18%,
    22%,
    25%,
    53%,
    57%,
    100% {
        opacity: 1;
    }

    20%,
    24%,
    55% {
        opacity: 0.4;
    }
}

/* Subtitle */

.cyber-subtitle {
    margin-top: 12px;
    color: #9fdfff;
    letter-spacing: 4px;
    font-size: 18px;
}

/* Loading bar */

.loading-bar {
    width: 320px;
    height: 10px;
    margin-top: 35px;
    border-radius: 20px;
    overflow: hidden;
    background:
        rgba(255, 255, 255, 0.08);
    border:
        1px solid rgba(0, 255, 255, 0.3);
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.3);
}

.loading-fill {
    width: 0%;
    height: 100%;
    background:
        linear-gradient(90deg,
            cyan,
            #00aaff,
            cyan);
    box-shadow:
        0 0 15px cyan;
    animation:
        loadingAnim 2.8s ease forwards;
}

@keyframes loadingAnim {

    100% {
        width: 100%;
    }
}

/* Mobile */
@media(max-width: 700px) {
    .cyber-title {
        font-size: 34px;
    }

    .cyber-subtitle {
        font-size: 14px;
    }

    .loading-bar {
        width: 240px;
    }

    .cyber-ring {
        width: 100px;
        height: 100px;
    }
}

/* RED WELCOME TEXT */
.cyber-title .welcome-text {
    color: #ff0000;

}






/* ======================= Body Style ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body {
    /* background-image: radial-gradient(circle, #2e8b57 5%, transparent 7%); */
    background: #1b1a1a url('picgal/img/bg2.png') no-repeat center center fixed;
    background-size: cover;
    display: grid;
    align-items: center;
    background-size: 100% 100%;
    font-family: Arial, sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;

    /* Ensure Content Doesn't Hide Under Navbar */
    margin: 0;
    padding-top: 0px;

}

/* For smaller screens (e.g., mobile and tablets) */
@media (max-width: 900px) {
    body {
        display: grid;
        align-items: center;
        margin: 0;
        font-family: Arial, sans-serif;
        background: url('/picgal/img/bg.png') no-repeat center center fixed;
        background-color: #000;
        background-size: cover;

    }
}





/* ======================= Navigation Bar ======================= */
/* .navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 15px;
    background: rgba(1, 21, 18, 0.833);
    border-bottom: 1px solid rgba(19, 222, 222, 0.2);
    position: sticky;
    top: 0;
    z-index: 999;
} */

 .navbar {
     width: 99%;
     max-width: 1300px;
     margin: 0 auto 6px;
     padding: 6px 8px;
     background: rgba(0, 20, 40, .7);
     backdrop-filter: blur(8px);
     border-radius: 0 0 20px 20px;
     border-bottom: 1px solid cyan;
     display: flex;
     justify-content: space-between;
     align-items: center;
    z-index: 999;
 }

.nav-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: white;
    padding: 10px 16px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.966);
    transition: 0.3s;
    font-size: 17px;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    background: cyan;
    transform: translate(-50%, -50%);
    transition: width .7s ease, height .7s ease;
    border-top-left-radius: inherit;
    border-bottom-right-radius: inherit;
    z-index: -1;
}

.nav-links a:hover::before {
    width: 220%;
    height: 220%;
}

.nav-links a:hover {
    color: black;
    background: cyan;
    box-shadow: 0 0 5px cyan;
    border: 1px solid rgb(255, 69, 69);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
        /* flex-direction: column; */
        position: absolute;
        top: 105%;
        right: 2%;
        width: 200px;
        background: rgba(0, 0, 0, 0.95);
        border-top-left-radius: 15px;
        border-bottom-right-radius: 15px;
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        border: 1px solid rgba(0, 255, 255, 0.25);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        display: block;
        padding: 10px 40px;
        margin-bottom: 5px;
        height: 40px;
        border: 1px solid rgb(0, 225, 255);
    }

    .nav-links.active {
        display: inline-block;
        /* Show menu when active */
        border: 1px solid rgb(0, 225, 255);
    }



}




/* ======================= Hamburger Menu ======================= */
/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
    font-size: 34px;
    cursor: pointer;
    display: none;
    color: cyan;
}

@media (max-width: 900px) {
    .hamburger-menu {
        display: block;
        font-size: 30px;
        color: cyan;
        cursor: pointer;
        z-index: 9999;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
    }
}





/* ======================= Active Page Highlight ======================= */
.nav-links a.active {
    background: #321fe0;
    border-radius: 1px;
    font-weight: bold;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(50, 31, 224, 0.7);
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* Keep active link highlighted even on hover */
.nav-links:hover a.active {
    background: #402cf3;
    color: #00ffd9 !important;
    border: #6d87ff 1px solid;
    box-shadow: 0 0 30px rgba(50, 31, 224, 5);

}




/* ======================= Malik Adil Logo on Navbar ======================= */
.logo a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: cyan;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 18px;
    margin-top: 2px;
    overflow: hidden;
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    transition: 0.4s ease;
    z-index: 1;
    padding: 12px;
}

/* Hover Text Effect */
.logo a:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow:
        0 0 10px cyan,
        0 0 20px cyan,
        0 0 40px #00f7ff;
}

/* Rotating Neon Ring */
.logo a::before {
    content: "";
    position: absolute;
    width: 250%;
    height: 250%;
    top: -75%;
    left: -75%;
    background: conic-gradient(transparent,
            cyan,
            transparent,
            blue,
            transparent,
            purple,
            transparent);
    animation: rotateRing 4s linear infinite;
    opacity: 0;
    transition: 0.5s;
    z-index: -2;
}

/* Show Ring on Hover */
.logo a:hover::before {
    opacity: 1;
}

/* Inner Dark Glass Layer */
.logo a::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: rgba(2, 91, 96, 0.427);
    border: 1px solid rgba(255, 255, 255, 0.363);
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: -1;
}

/* Rotation Animation */
@keyframes rotateRing {
    100% {
        transform: rotate(360deg);
    }
}





/* ======================= TABLE ======================= */
table {
    width: 65%;
    margin: 20px auto 40px auto;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(3, 78, 79, 0.355);
    backdrop-filter: blur(20px);
    border-top-left-radius: 15px;
    border-bottom-right-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2), 0 0 20px rgba(0, 0, 255, 0.2);
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.377);
    border-right: 1px solid rgba(255, 255, 255, 0.313);
    text-align: left;
    font-size: 18px;
}

th:last-child,
td:last-child {
    border-right: none;
}

th {
    background: rgba(0, 255, 255, 0.15);
    color: cyan;
    font-size: 30px;
    text-shadow: 0 0 2px cyan;
    padding: 7px;
}

tr {
    transition: 0.3s;
}

tr:hover {
    background: rgba(0, 255, 255, 0.08);
}

td {
    padding: 8px;
    color: #f2f2f2;
}

td a {
    text-decoration: none;
    color: cyan;
    font-weight: bold;
    padding: 6px 10px;
    border-top-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background: rgba(0, 255, 255, 0.173);
    border: 1px solid rgba(82, 249, 246, 0.337);
    transition: 0.3s;
    display: inline-block;
}

td a:hover {
    background: cyan;
    color: black;
    box-shadow: 0 0 12px cyan;
    transform: scale(1.01);
}

@media (max-width: 900px) {
    table {
        width: 90%;
        margin: 20px auto 40px auto;
        border-collapse: separate;
        border-spacing: 0;
        background: rgba(3, 78, 79, 0.355);
        backdrop-filter: blur(20px);
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.75);
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.2), 0 0 20px rgba(0, 0, 255, 0.2);
    }

    table,
    th,
    td {
        font-size: 14px;
    }
}


/* ================= Back Button ================= */
.back-btn,
.logout-btn {
    display: inline-block;
    padding: 6px 20px 6px 20px;
    margin: 8px;
    font-size: 20px;
    text-decoration: none;
    color: cyan;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid cyan;
    border-radius: 10px 0 10px 0;
    backdrop-filter: blur(8px);
    text-shadow: 0 0 8px cyan;
    box-shadow: 0 0 8px rgba(0, 255, 255, .4);
    transition: .3s;
}

.back-btn:hover,
.logout-btn:hover {
    background: cyan;
    color: black;
    box-shadow: 0 0 20px cyan;
    transform: translateY(-3px);
}





/* ================= New/Hot Item ================= */

.rainbow-card {
    position: relative;
    border: 1px solid transparent;
    background-clip: padding-box;
    animation: rainbowBorder 3s linear infinite;
}

.rainbow-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid white;
    border-radius: 12px 0 12px 0;
    background: linear-gradient(45deg, #ff6b35, #a603ab, #00b4d8a7, #ff6b35);
    background-size: 400% 400%;
    animation: rainbowSpin 3s linear infinite;
    z-index: -1;
}

.new-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #2b9cff;
    color: #000;
    padding: 4px 12px;
    border-radius: 15px;
    border: 1px solid rgb(0, 0, 0);
    font-size: 0.7rem;
    font-weight: 900;
    animation: pulse 1.5s ease-in-out infinite;
    z-index: 10;
    box-shadow: 0 4px 20px rgb(18, 73, 255);
}

@keyframes rainbowSpin {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.1) rotate(-3deg);
    }
}