/* ================= CYBERPUNK Welcome/INTRO ================= */
body {
    visibility: hidden;
    background: #000;
}


#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;
}


.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;

}

.nav-links a:hover {
    background: cyan;
    color: black;
    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;
        /* Show the menu icon */
    }
}





/* ======================= 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: #321fe0;
    color: #fff !important;
}




/* ======================= 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;
    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.03);
}

@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;
    }
}