html, body {
    min-height: 100%;
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #010302 0%, #070908 48%, #020403 100%);
    color: white;
    font-family: "Red Hat Display", sans-serif;
}

img, video {
    max-width: 100%;
    height: auto;
}

header {
    z-index: 5;
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, calc(100% - 300px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-radius: 9999px;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(5px);
    border: 2px solid #3b3b3b79;
    transition: background 0.5s ease;
}

header:hover {
    background-color: rgba(0, 0, 0, 0.34);
}

.header-left {
    display: flex;
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

#icon {
    width: 200px;
    height: auto;
    margin-right: 15px;
    position: relative;
    display: block;
}

#github-logo {
    width: 50px;
    height: auto;
    margin-right: 30px;
    transition: box-shadow 0.35s ease;
    border-radius: 999px;
}

#github-logo:hover {
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.8);
}

.wg-center {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: min(780px, calc(100% - 48px));
    transform: translate(-50%, -50%);
}

.center-pill {
    position: relative;
    width: 100%;
    align-self: center;
    margin-right: 0;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 72px 0 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.center-pill:hover {
    border-color: rgba(80, 255, 145, 0.38);
    background: rgba(0, 0, 0, 0.46);
    box-shadow: 0 0 28px rgba(50, 255, 128, 0.12);
    transform: translateY(-2px);
}

.center-pill.copied {
    animation: copyPulse 0.55s ease;
}

.command-text {
    margin: 0;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: clamp(13px, 2.2vw, 20px);
    letter-spacing: 0;
    white-space: nowrap;
}

.copy-icon {
    position: absolute;
    right: 24px;
    width: 21px;
    height: 25px;
    border: 2px solid rgba(183, 255, 199, 0.72);
    border-radius: 5px;
    box-sizing: border-box;
    pointer-events: none;
    transform: rotate(0deg) scale(1);
    transition: border-color 0.25s ease, transform 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.copy-icon::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 4px;
    width: 9px;
    height: 5px;
    border: 2px solid rgba(183, 255, 199, 0.72);
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    background: rgba(0, 0, 0, 0.62);
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.copy-icon::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 5px;
    width: 7px;
    height: 3px;
    border-left: 2px solid transparent;
    border-bottom: 2px solid transparent;
    transform: rotate(-45deg) scale(0);
    transform-origin: center;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.center-pill.copied .copy-icon {
    width: 24px;
    height: 24px;
    border-color: #b7ffc7;
    border-radius: 50%;
    transform: rotate(360deg) scale(1.08);
}

.center-pill.copied .copy-icon::before {
    opacity: 0;
    transform: translateY(4px) scale(0.2);
}

.center-pill.copied .copy-icon::after {
    border-left-color: #b7ffc7;
    border-bottom-color: #b7ffc7;
    transform: rotate(-45deg) scale(1);
}

.terminal-button {
    display: inline-flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.78);
    color: white;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.terminal-button:hover {
    background: rgba(0, 0, 0, 0.94);
    transform: translateY(-3px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(54px);
}

body::before {
    top: 10%;
    left: 4%;
    width: 46vmax;
    height: 46vmax;
    background:
        linear-gradient(rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.16)),
        radial-gradient(circle, rgba(38, 255, 128, 0.22), transparent 62%),
        repeating-radial-gradient(circle, rgba(174, 255, 200, 0.16) 0 1px, transparent 1px 4px);
    background-blend-mode: normal, screen, overlay;
    opacity: 0.68;
    animation: glowDrift 12s ease-in-out infinite alternate;
}

body::after {
    right: -12%;
    bottom: -22%;
    width: 62vmax;
    height: 62vmax;
    background:
        linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
        radial-gradient(circle, rgba(35, 185, 82, 0.24), transparent 64%),
        repeating-radial-gradient(circle, rgba(123, 255, 168, 0.15) 0 1px, transparent 1px 4px);
    background-blend-mode: normal, screen, overlay;
    opacity: 0.64;
    animation: glowDriftReverse 14s ease-in-out infinite alternate;
}

.wg-lines,
.wg-lines::before,
.wg-lines::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.wg-lines {
    z-index: 1;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 620'%3E%3Cg fill='none' stroke='%23eafff0' stroke-width='1.6' stroke-linecap='round' opacity='.52'%3E%3Cpath d='M-60 112 C 55 14 162 216 286 106 S 450 55 562 160 S 735 312 956 145'/%3E%3Cpath d='M-70 360 C 118 488 208 185 372 326 S 580 530 742 370 S 808 225 970 442'/%3E%3Cpath d='M120 -60 C 236 120 52 246 190 372 S 420 506 294 690'/%3E%3Cpath d='M650 -55 C 540 140 740 266 620 402 S 478 536 676 694'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 760 760'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.25' stroke-linecap='round' opacity='.34'%3E%3Cpath d='M-30 195 C 115 82 220 320 370 172 S 528 98 790 242'/%3E%3Cpath d='M-42 520 C 128 390 240 622 384 480 S 575 255 802 558'/%3E%3Cpath d='M265 -45 C 145 128 342 252 225 430 S 158 590 342 802'/%3E%3Cpath d='M590 -20 C 450 172 665 328 520 502 S 448 624 650 790'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1040 520'%3E%3Cg fill='none' stroke='%23d8ffe4' stroke-width='1.1' stroke-linecap='round' opacity='.28'%3E%3Cpath d='M-80 86 C 160 240 225 -70 455 98 S 762 285 1110 56'/%3E%3Cpath d='M-95 430 C 160 315 282 512 510 372 S 735 180 1100 392'/%3E%3Cpath d='M410 -70 C 500 110 330 204 455 340 S 680 405 570 590'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 84vmax 58vmax, 64vmax 64vmax, 96vmax 48vmax;
    background-position: 42% 46%, 62% 38%, 50% 62%;
    filter: blur(0.1px);
    opacity: 0.46;
    mix-blend-mode: screen;
    animation: curvedLinesDriftPrimary 28s ease-in-out infinite;
}

.wg-lines::before {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 680 540'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.15' stroke-linecap='round' opacity='.30'%3E%3Cpath d='M-50 92 C 110 246 142 -34 306 124 S 480 288 736 86'/%3E%3Cpath d='M-70 286 C 70 198 194 384 344 260 S 494 130 725 330'/%3E%3Cpath d='M62 586 C 190 402 304 560 442 408 S 535 214 730 478'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 820 680'%3E%3Cg fill='none' stroke='%23eafff0' stroke-width='1.05' stroke-linecap='round' opacity='.26'%3E%3Cpath d='M170 -65 C 265 118 88 224 228 388 S 455 520 316 750'/%3E%3Cpath d='M520 -48 C 405 132 626 286 492 446 S 402 570 585 760'/%3E%3Cpath d='M-60 455 C 96 570 204 330 358 468 S 568 610 875 386'/%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 980 720'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='.95' stroke-linecap='round' opacity='.22'%3E%3Cpath d='M-76 156 C 118 8 270 318 458 150 S 660 52 1030 260'/%3E%3Cpath d='M-40 642 C 168 490 310 780 500 606 S 754 385 1038 624'/%3E%3Cpath d='M760 -70 C 610 130 850 290 700 455 S 585 590 810 790'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 58vmax 46vmax, 70vmax 58vmax, 82vmax 60vmax;
    background-position: 30% 38%, 68% 58%, 55% 46%;
    filter: blur(0.1px);
    opacity: 0.62;
    mix-blend-mode: screen;
    animation: curvedLinesDriftSecondary 20s ease-in-out infinite;
}

.wg-lines::after {
    background:
        linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
        url("https://raw.githubusercontent.com/taimoorshahzada/Film-Grain-Noise-Effect-on-Background-in-Website-using-Pure-CSS/refs/heads/main/noise.gif"),
        radial-gradient(circle at 50% 42%, rgba(24, 32, 27, 0.42), rgba(1, 3, 2, 0.78) 58%),
        rgba(1, 3, 2, 0.48);
    background-size: cover, 180px 180px, cover, cover;
    background-blend-mode: normal, overlay, normal, normal;
    backdrop-filter: blur(7px);
    z-index: 2;
    opacity: 0.72;
}

@keyframes glowDrift {
    from {
        transform: translate3d(-5vw, 3vh, 0) scale(0.95);
    }
    to {
        transform: translate3d(8vw, -6vh, 0) scale(1.12);
    }
}

@keyframes glowDriftReverse {
    from {
        transform: translate3d(7vw, -2vh, 0) scale(1.05);
    }
    to {
        transform: translate3d(-6vw, 8vh, 0) scale(0.9);
    }
}

@keyframes curvedLinesDriftPrimary {
    0% {
        background-position: 42% 46%, 62% 38%, 50% 62%;
        transform: translate3d(-1.5vw, 0, 0) scale(1.04) rotate(-1.2deg);
        opacity: 0.40;
    }
    25% {
        background-position: 47% 54%, 57% 32%, 55% 67%;
        transform: translate3d(1vw, 0, 0) scale(1.06) rotate(0.8deg);
        opacity: 0.50;
    }
    50% {
        background-position: 38% 59%, 67% 45%, 44% 56%;
        transform: translate3d(2vw, 0, 0) scale(1.05) rotate(1.3deg);
        opacity: 0.44;
    }
    75% {
        background-position: 50% 40%, 60% 51%, 58% 60%;
        transform: translate3d(-1vw, 0, 0) scale(1.06) rotate(-0.7deg);
        opacity: 0.52;
    }
    100% {
        background-position: 42% 46%, 62% 38%, 50% 62%;
        transform: translate3d(-1.5vw, 0, 0) scale(1.04) rotate(-1.2deg);
        opacity: 0.40;
    }
}

@keyframes curvedLinesDriftSecondary {
    0% {
        background-position: 30% 38%, 68% 58%, 55% 46%;
        transform: translate3d(1.5vw, 0, 0) scale(1.07) rotate(1.1deg);
    }
    25% {
        background-position: 36% 50%, 61% 45%, 64% 58%;
        transform: translate3d(-1vw, 0, 0) scale(1.09) rotate(-1.5deg);
    }
    50% {
        background-position: 26% 44%, 73% 63%, 48% 38%;
        transform: translate3d(-2vw, 0, 0) scale(1.06) rotate(-0.6deg);
    }
    75% {
        background-position: 40% 33%, 66% 52%, 60% 66%;
        transform: translate3d(2vw, 0, 0) scale(1.10) rotate(1.8deg);
    }
    100% {
        background-position: 30% 38%, 68% 58%, 55% 46%;
        transform: translate3d(1.5vw, 0, 0) scale(1.07) rotate(1.1deg);
    }
}

@keyframes copyPulse {
    0% {
        box-shadow: 0 0 0 rgba(50, 255, 128, 0);
        transform: translateY(0) scale(1);
    }
    45% {
        border-color: rgba(80, 255, 145, 0.70);
        box-shadow: 0 0 34px rgba(50, 255, 128, 0.24);
        transform: translateY(-2px) scale(1.015);
    }
    100% {
        box-shadow: 0 0 0 rgba(50, 255, 128, 0);
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    header {
        top: 18px;
        width: calc(100% - 36px);
        padding: 8px 14px;
    }

    #icon {
        width: 180px;
    }

    #github-logo {
        display: none;
    }

    .wg-center {
        width: calc(100% - 32px);
    }

    .center-pill {
        min-height: 58px;
        padding: 0 54px 0 20px;
    }

    .copy-icon {
        right: 18px;
    }

    .terminal-button {
        min-width: 160px;
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .wg-lines,
    .wg-lines::before,
    .wg-lines::after {
        animation: none;
    }
}
