* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'poppins', sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('background1.jpg') no-repeat center/cover;
    background-attachment: fixed;
    min-height: 100vh;
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

header {
    background: linear-gradient(
    90deg,
    rgba(68, 68, 68, 0) 0%,
    rgba(34, 34, 34, 0) 100%
  );
    padding: 14px 30px 15px 30px;
    display: flex;
    flex-direction: row;
    gap: 0px;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
}

header a {
    text-decoration: none;
}

header h1 {
    margin: 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    font-family: 'poppins', sans-serif;
    color: #fff;

    opacity: 0;
    transform: translateY(-10px);
    animation: header-fade-in 1s ease-out forwards;
}

@keyframes header-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header h1:hover {
    transform: scale(1.1);
}

header h1, article h2 {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

nav {
    z-index: 1000;
    background: rgba(40, 40, 40, 0);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5px;
    align-self: stretch;
    flex-shrink: 0;
    flex-direction: row;
    position: relative;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2rem;
    font-family: 'poppins', sans-serif;
    transition:transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

nav .button {
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 5px 10px;
    background: linear-gradient(45deg, #e55a9b, #8a2be2);
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

nav .button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
    background-color: linear-gradient(45deg, #ff7ac7, #a155f0);
}

nav .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-45deg);
    transition: 0.5s;
    z-index: 1;
}

nav .button:hover::before {
    left: 100%;
}

nav a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    top: -100%;
    transition: left 0.3s ease;
}

nav a:hover {
    color: #fff;
    transform: scale(1.1);
}

nav a:hover::before {
    left: 0;
}

.portofolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 25px;
    place-items: center;
}

.portofolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 1100px;
    aspect-ratio: 16/9;
}

.portofolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3),
                0 15px 30px rgba(0, 0, 0, 0.4);
}

.portofolio-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portofolio-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.9);
}

.portofolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.portofolio-item:hover .overlay {
    opacity: 1;
}

.portofolio-item .overlay h3 {
    font-size: 1.5rem;
    margin: 0 0 8px 0;
    padding: 0;
}

.portofolio-item .overlay p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0 15px;
    max-width: 90%;
}

.portofolio-item .overlay h3,
.portofolio-item .overlay p {
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}

.game-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}


.game-card {
    background-color: #383838; 
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.game-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9; 
    overflow: hidden;
    background-color: #2c2c2c;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.08);
}

.game-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-content h3 {
    margin: 0 0 8px 0;
}

.game-content h3 a {
    color: #cda8e2;
    text-decoration: none;
    font-size: 1.4rem;
    font-family: 'poppins', sans-serif;
    transition: color 0.2s ease;
}

.game-content h3 a:hover {
    color: #e6cff7;
}

.game-tagline {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1; 
    font-family: 'poppins', sans-serif;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #4a4a4a;
    color: #a0a0a0;
}

.game-genre {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'poppins', sans-serif;
}

.game-platforms i {
    font-size: 1.3rem; 
    margin-left: 10px; 
    font-family: 'poppins', sans-serif;
}

.hero {
    color: #fff;
    padding: 100px 20px;
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    color: #fff;
    font-family: 'poppins', sans-serif;

    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 1.2s ease-out forwards,
               pulse-glow 3s ease-in-out infinite 2s;
}

.hero p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    text-align: center;
    font-family: 'poppins', sans-serif;
    margin-bottom: 20px;
    animation: fadeInDown 2s ease-in-out;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(214, 104, 181, 0.8), 0 0 20px rgba(214, 104, 181, 0.4);
    }
    50% {
        transform: scale(1.01);
        text-shadow: 0 0 15px rgba(244, 84, 167, 0.9), 0 0 30px rgba(244, 84, 167, 0.6);
    }
}

#loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1,5rem;
    color: #fff;
    z-index: 2000;
}

.cta-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    background: linear-gradient(45deg, #e55a9b, #8a2be2);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-45deg);
    transition: 0.5s;
    z-index: 1;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #ff7ac7, #a155f0);
    transform: scale(1.0.5);
    /*box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);*/
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25),
                0 15px 25px rgba(0, 0, 0, 0.3);
}

.cta-button:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(101, 52, 255, 0.7);
}

.container {
    background-color: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

article {
    background-color: #444;
    color: #e0e0e0;
    padding: 15px;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

article:hover {
    transform: translateY(-5px);
    /*box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);*/
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
                0 10px 20px rgba(0, 0, 0, 0.4);
}

article h2 {
    color: #e0e0e0;
    font-size: 1.8rem;
    font-family: 'poppins', sans-serif;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

article h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(
    86.57deg,
    rgba(229, 90, 155, 1) 0%,
    rgba(138, 43, 226, 1) 100%
  );
    border-radius: 2px;
}

article p {
    line-height: 1.6;
    font-size: 1rem;
}

.comment-section {
    background: #383838;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    margin: 20px auto;
}

.comment-section h2 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.5rem;
}

#comment-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

#comment-form input, #comment-form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#comment-form input:focus, #comment-form textarea:focus {
    border-color: #1da1f2;
    outline: none;
}

#comment-form button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 40px;
    background: linear-gradient(45deg, #e55a9b, #8a2be2);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

#comment-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-45deg);
    transition: 0.5s;
    z-index: 1;
}

#comment-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ff7ac7, #a155f0);
}

#comment-form button:hover::before {
    left: 100%;
}

.comment {
    background: #333;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s;
}

.comment:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.comment strong {
    color: #1da1f2;
    font-weight: bold;
}

.comment p {
    margin: 5px 0 0;
    color: #fff;
}

.comment .timestamp {
    font-size: 0.9rem;
    color: #999;
    margin-top: 5px;
}

footer {
    background: #222222;
    border-width: 1px;
    border-style: solid;
    border-image: linear-gradient(
        90deg,
        rgba(229, 90, 155, 1) 0%,
        rgba(138, 43, 226, 1) 100%
    );
    border-image-slice: 1;
    padding: 32px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: flex-start;
    justify-content: flex-start;
    align-self: stretch;
    flex-shrink: 0;
    position: relative;
    align-items: center;
}

footer .social-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #e55a9b, #8a2be2);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

footer .social-button i {
    margin-right: 8px;
}

footer .social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
    background-color: linear-gradient(45deg, #ff7ac7, #a155f0);
}

footer .social-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-45deg);
    transition: 0.5s;
    z-index: 1;
}

footer .social-button:hover::before {
    left: 100%;
}

footer a {
    color: #4ccece;
    text-decoration: none;
    margin: 0 5px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #fff;
    transform: scale(1.1);
}

footer a .fab {
    margin-right: 5px;
}

footer a:hover .fa-instagram {
    color: #c13584;
}

footer a:hover .fa-telegram {
    color: #0088cc;
}

footer a:hover .fa-twitter {
    color: #1da1f2;
}

footer a:hover .fa-github {
    color: #333;
}

footer a:hover .fa-spotify {
    color: #108954;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.profile-photo {
    width: 160px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #659286;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

#popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#popup-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#popup-container.popup-visible {
    visibility: visible;
    opacity: 1;
}

#popup-container::after {
    content: "Klik di mana saja untuk menutup";
    position: absolute;
    bottom: 20px;
    color: #fff;
    font-size: 1rem;
}

.profile-cta {
    background-color: #383838;
    border-radius: 12px;
    padding: 25px 30px;
    margin-top: 80px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-cta-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-avatar-orbit {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    padding: 4px;
    position: relative;
    
    background: conic-gradient(#e55a9b, #5865f2, transparent, #e55a9b);
    
    animation: orbit-spin 2.5s linear infinite;
}

.profile-avatar-orbit .profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #2c2c2c;
    animation: counter-spin 2.5s linear infinite;
}

@keyframes counter-spin {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes orbit-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.profile-text {
    flex-grow: 1;
}

.profile-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.6rem;
    color: #e9e9e9;
}

.profile-text p {
    margin: 0;
    color: #b0b0b0;
    font-size: 1rem;
    font-family: 'poppins', sans-serif;
    max-width: 450px;
}

.profile-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: linear-gradient(45deg, #e55a9b, #8a2be2);
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.profile-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(229, 90, 155, 0.3);
    background: linear-gradient(45deg, #ff7ac7, #a155f0);
}

.profile-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-45deg);
    transition: 0.5s;
    z-index: 1;
}

.card {
    background-color: #383838;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.profile-button:hover::before {
    left: 100%;
}

.profile-button i {
    font-size: 1.3rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}