@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    background-color: black;
    color: rgb(255, 255, 255);
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-thumb {
    background: rgba(0, 128, 0, 0.938);
    border-radius: 5px;
}

body::-webkit-scrollbar-track {
    background: #000; /* Scrollbar track color */
}


/* ai */
.Hacker-ai-container {
    width: 450px;
    height: 500px;
    position: fixed;
    top: 5%;
    left: 70%;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.Hacker-ai-chat {
    width: 80%;
    float: left;
    height: 500px;
    display: none;
    opacity: 1;
    background: rgba(0, 128, 0, 0.938);
    border-radius: 10px;
    animation: slideTop 1s ease forwards;
}

.ai-title-container {
    font-size: 25px;
    font-weight: 600;
    color: black;
    width: 100%;
    height: 25%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-end;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    margin-top: 130px;
    animation: slideTop 1s ease forwards;
}

.ai-title-digi {
    font-family: "blanka", serif;
    letter-spacing: 3px;
}

@keyframes slideTop {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

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

.ai-preloader {
    width: 100%;
    height: 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-preloader-dot:nth-child(1) {
    width: 10px;
    height: 10px;
    background: black;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    animation: preloader 1s 4 forwards;
    animation-delay: 0s;
}

.ai-preloader-dot:nth-child(2) {
    width: 10px;
    height: 10px;
    background: black;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    animation: preloader 1s 4 forwards;
    animation-delay: .2s;
}

.ai-preloader-dot:nth-child(3) {
    width: 10px;
    height: 10px;
    background: black;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    animation: preloader 1s 4 forwards;
    animation-delay: .4s;
}

@keyframes preloader {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.asli-chat-ai {
    width: 100%;
    height: 100%;
    display: flex;
    display: none;
    flex-wrap: wrap;
}

.chat-close-btn {
    width: 100%;
    height: 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 66, 0, 0.938);
    border-radius: 7px 7px 0 0 ;
    padding: 20px;
}

.chat-title-ai {
    font-weight: 600;
    color: black;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    font-family: "blanka", serif;
    letter-spacing: 3px;
    transform: translateY(-4px);
}

.ai-munu-btn {
    width: 40px;
    height: 40px;
    background: black;
    border-radius: 50%;
    margin-right: 5px;
    color: rgba(0, 128, 0, 0.938);
    font-size: 20px;
    cursor: pointer;
    text-align: center;
    border: none;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.ai-munu-btn:hover {
    background: rgba(0, 128, 0, 0.938);
    color: black;
    box-shadow: inset 0px 0px 10px 10px rgba(0, 0, 0, 0.5);
}

.ai-menu-setting {
    width: 50%;
    height: 50%;
    display: flex;
    position: absolute;
    left: 100px;
    bottom: 228px;
    flex-direction: column;
    border-radius: 15px;
    z-index: 2;
    background: rgba(0, 66, 0, 0.938);
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.5);
    display: none;
    animation: fadeup 1s ease forwards;
}

@keyframes fadeup {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

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

.ai-menu-setting-btn {
    width: 100%;
    height: 50px;
    background: black;
    color: rgba(0, 128, 0, 0.938);
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    border: none;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.ai-menu-setting-btn:hover {
    background: rgba(0, 128, 0, 0.938);
    color: black;
    scale: 1.05;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.5);
}

.ai-menu-setting-btn:first-child {
    border-radius: 15px 15px 0 0;
}

.ai-menu-setting-btn:last-child {
    border-radius: 0 0 15px 15px;
}

.chat-message-container {
    width: 95%;
    margin: auto;
    height: 79%; /* Ensures content overflows */
    margin-top: 10px;
    overflow-y: auto;
    box-shadow: inset 0px 0px 10px 5px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 10px;
    background: rgba(0, 128, 0, 0.938);
}

.chat-message-container p {
    font-size: 16px;
    margin: 10px 0;
    width: 60%;
    padding: 10px;
    margin-left: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 5px 2px rgba(0, 0, 0, 0.5);
    color: rgb(255, 255, 255);
    text-align: left;
    position: relative;
}

.chat-message-container p::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(0, 0, 0, 0.5);
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
}

.chat-message-container p::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(0, 0, 0, 0.5);
    right: -10px;
    top: 50%;
    transform: translateY(-50%) rotateY(180deg);
}


/* Webkit Browsers (Chrome, Edge, Safari) */
.chat-message-container::-webkit-scrollbar {
    width: 8px;
}

.chat-message-container::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 5px;
}

.chat-message-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.chat-input-container {
    margin: auto;
    margin-bottom: 0;
    width: 97%;
    height: 9%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 0 7px 7px;
    animation: slideTop 1s ease forwards;
}

.ai-function {
    width: 15%;
    height: 257px;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: -135px;
    left: 9px;
}

.ai-showmorebtn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
    border-radius: 50%;
    color: rgba(0, 128, 0, 0.938);
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    bottom: 75px;
    text-align: center;
    border: none;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.ai-showmorebtn:hover {
    background: rgba(0, 128, 0, 0.938);
    color: black;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.5);
}

.ai-showing-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
    background: black;
    border-radius: 50%;
    color: green;
    font-size: 20px;
    display: none;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
}

.ai-showing-icon:hover {
    background: transparent;
    color: black;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.5);
}

.showing-icon-1 {
    margin-top: 0;
    transform: translateY(136px);
    animation: ai-show-icon1 1s ease forwards;
}

@keyframes ai-show-icon1 {
    0% {
        transform: translateY(136px);
        rotate: 0;
    }

    100% {
        transform: translateY(0);
        rotate: 360deg;
    }
}

.showing-icon-2 {
    transform: translateY(93px);
    animation: ai-show-icon2 0.5s ease forwards;
}

@keyframes ai-show-icon2 {
    0% {
        transform: translateY(93px);
        rotate: 0;
    }

    100% {
        transform: translateY(0);
        rotate: 360deg;
    }
}

.showing-icon-3 {
    transform: translateY(48px);
    animation: ai-show-icon3 0.3s ease forwards;
}

@keyframes ai-show-icon3 {
    0% {
        transform: translateY(48px);
        rotate: 0;
    }

    100% {
        transform: translateY(0);
        rotate: 360deg;
    }
}


.chat-input {
    width: 55%;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 0 20px 0 15px;
    color: rgb(255, 255, 255);
    font-size: 16px;
    margin-left: 53px;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input::placeholder {
    color: rgb(255, 255, 255);
}

.chat-input:focus {
    background: rgba(0, 0, 0, 0.7);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: black;
    border-radius: 50%;
    color: rgba(0, 128, 0, 0.938);
    font-size: 20px;
    cursor: pointer;
    text-align: center;
    border: none;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    background: rgba(0, 128, 0, 0.938);
    color: black;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.5);
}

.hacker-ai-btn {
    width: 15%;
    height: 70px;
    display: flex;
    justify-content: center;
    color: black;
    position: absolute;
    top: 585px;
    background: rgba(0, 128, 0, 0.938);
    border-radius: 50px;
    font-size: 25px;
    cursor: pointer;
    border: 5px solid black;
    margin-left: 80%;
    align-items: center;
    text-shadow: 0px 0px 10px black;
    box-shadow: 0px 0px 10px 5px rgba(0, 128, 0, 0.938);
    border: none;
    transition: all 0.3s ease;
    animation: slideTop1 2s ease forwards;
}

@keyframes slideTop1 {
    0% {
        opacity: 0;
        scale: 0;
    }

    100% {
        opacity: 1;
        scale: 1;
    }
}

.hacker-ai-btn:hover {
    background: transparent;
    color: rgba(0, 128, 0, 0.938);
    box-shadow: 0px 0px 20px 5px rgba(0, 128, 0, 0.938);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 10%;
    background: transparent;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.548), green, rgba(0, 0, 0, 0.548));
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    width: 220px;
    text-shadow: 5px 5px 10px black;
    margin: 5px 0 0 0;
    text-decoration: none;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.navbar a {
    display: inline-block;
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    opacity: 0;
    animation: slideLeft 0.7s ease forwards;
    animation-delay: calc(.2s * var(--i));
}
.navbar a::after {
    content: '';
    width: 0;
    height: 2px;
    background: black;
    border-radius: 50%;
    position: absolute;
    left: 0;
    bottom: -3px;
    transition: 0.6s;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    background: linear-gradient(45deg, rgb(0, 0, 0), rgb(0, 0, 0));
    -webkit-text-fill-color: transparent;
    background-clip: border-box;
    -webkit-background-clip: text;
}

.home {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px 10% 0;
}

.home-content {
    max-width: 600px;
    padding: 50px;
}

.home-content h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: .7s;
}

.home-content h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.home-content h4 {
    font-size: 25px;
    font-weight: 600;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.mu {
    margin-top: 50px;
}

.home-content h1, h3, h4 {
    text-shadow: 5px 4px 10px green;
    font-family: "blanka", serif;
    letter-spacing: 3px;
}

.home-content h3 span {
    color: rgb(0, 255, 0);
}

.home-content p {
    font-size: 16px;
    margin: 20px 0 0;
    text-align: left;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1.3s;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: black;
    border: 2px solid green;
    border-radius: 50%;
    font-size: 20px;
    color: green;
    text-decoration: none;
    margin: 30px 15px 30px 0;
    opacity: 0;
    animation: zoomIn 1s ease forwards;
    animation-delay: 0.4s;
}

.home-sci a:hover {
    background: green;
    color: black;
    box-shadow: 0 0 20px green;
}

.btn-box {
    display: inline-block;
    padding: 12px 28px;
    margin-top: 50px;
    background: green;
    border-radius: 40px;
    font-size: 16px;
    color: black;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: zoomIn 1s ease forwards;
    animation-delay: 0.4s;
    transition: all 0.5s;
}

.btn-box:hover {
    box-shadow: 0 0 5px green,
    0 0 25px green, 0 0 50px green,
    0 0 100px green, 0 0 200px green;
}

.game-btn-box {
    display: inline-block;
    padding: 12px 28px;
    margin-top: 50px;
    margin-left: 15px;
    background: transparent;
    border-radius: 40px;
    font-size: 16px;
    color: green;
    letter-spacing: 1px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    animation: zoomIn 1s ease forwards;
    animation-delay: 0.4s;
    transition: all 0.5s;
}

.game-btn-box:hover {
    box-shadow: 0 0 5px green,
    0 0 25px green, 0 0 50px green,
    0 0 100px green, 0 0 200px green;
    background-color: green;
    color: black;
}

.home-img {
    width: 410px;
    height: 410px;
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: 2.1s, 3.1s;
}

.home-img .glowing-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.home-img .glowing-circle::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: black;
    border-radius: 50%;
}

.glowing-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(black, rgba(0, 128, 0, 0.411));
    border-radius: 50%;
    animation: circleRotate 5s linear infinite;
}

.glowing-circle span:nth-child(1) {
    filter: blur(10px);
}

.image img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    max-width: 350px;
    object-fit: cover;
}

.glowing-circle .image {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    z-index: 1;
}

.navbar-1 a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 50px;
    text-align-last: center;
}

.navbar-1 a.active,
.navbar-1 a:hover {
    background: linear-gradient(45deg, rgb(0, 0, 0), rgb(0, 0, 0));
    -webkit-text-fill-color: transparent;
    background-clip: border-box;
    -webkit-background-clip: text;
}

canvas {
    position: fixed;
    top: auto;
    left: auto;
    background-color: black;
    background-size: cover;
    z-index: -1;
    background-size:cover;
    background-blend-mode: multiply;
    scroll-behavior: smooth;
}

.games-container {
    width: 100%;
    height: 700px;
    display: flex;
    justify-content: space-between;
    text-align: center;
    align-items: center;
    padding: 70px 10% 0;
}

.games-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    text-align: center;
    animation: slideRight 1s ease forwards;
    animation-delay: .7s;
}

.games-img {
    width: 410px;
    height: 410px;
    opacity: 0;
    animation: zoomIn 1s ease forwards, floatImage 4s ease-in-out infinite;
    animation-delay: 2.1s, 3.1s;
}

.games-img .glowing-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.games-img .glowing-circle::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: black;
    border-radius: 50%;
}

.glowing-circle span {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(black, rgba(0, 128, 0, 0.411));
    border-radius: 50%;
    animation: circleRotate 5s linear infinite;
}

.glowing-circle span:nth-child(1) {
    filter: blur(10px);
}

.image img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    max-width: 350px;
    object-fit: cover;
}

.glowing-circle .image {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    z-index: 1;
}

.navbar-2 a {
    font-size: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 50px;
    text-align-last: center;
}

.navbar-2 a.active,
.navbar-2 a:hover {
    background: linear-gradient(45deg, rgb(0, 0, 0), rgb(0, 0, 0));
    -webkit-text-fill-color: transparent;
    background-clip: border-box;
    -webkit-background-clip: text;
}

/* Animation */
@keyframes slideTop {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }

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

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

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

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

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

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }

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

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-24px);
    }

    100%{
        transform: translate(0);
    }
}

@keyframes circleRotate {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .header {
        padding: 15px 4%;
    }

    .home-content h1 {
        font-size: 1.8rem;
    }

    .home-content h3 {
        font-size: 1.3rem;
    }

    .home-img {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .navbar a {
        margin: 5px 0;
        font-size: 16px;
    }

    .home-content h1 {
        font-size: 1.6rem;
    }

    .home-content h3 {
        font-size: 1.2rem;
    }

    .home-content p {
        font-size: 0.85rem;
    }

    .home-img {
        margin-top: 20px;
    }

    .glowing-circle {
        max-width: 200px;
        height: 200px;
    }

    .image img {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 3%;
        flex-direction: column;
        align-items: center;
    }

    .navbar {
        flex-direction: column;
    }

    .navbar a {
        margin: 5px 0;
        font-size: 14px;
    }

    .home-content h1 {
        font-size: 1.5rem;
    }

    .home-content h3 {
        font-size: 1rem;
    }

    .home-content p {
        font-size: 0.8rem;
    }

    .home-sci a {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .glowing-circle {
        max-width: 150px;
        height: 150px;
    }

    .image img {
        max-width: 140px;
    }
}