/* Base Styles and Variables */
:root {
--primary-color: #3498db;
--secondary-color: #2ecc71;
--dark-color: #2c3e50;
--light-color: #ecf0f1;
--text-color: #333;
--bg-color: #fff;
--card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
--border-radius: 8px;
}

.dark-theme {
--primary-color: #3498db;
--secondary-color: #2ecc71;
--dark-color: #ecf0f1;
--light-color: #2c3e50;
--text-color: #f5f5f5;
--bg-color: #121212;
--card-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
scroll-behavior: smooth;
font-size: 16px;
}

body {
font-family: 'Poppins', sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--bg-color);
overflow-x: hidden;
transition: background-color 0.5s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
margin-bottom: 1rem;
line-height: 1.3;
}

h1 {
font-size: 2.5rem;
}

h2 {
font-size: 2rem;
text-align: center;
margin-bottom: 2rem;
position: relative;
}

h2::after {
content: '';
position: absolute;
width: 60px;
height: 4px;
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
left: 50%;
transform: translateX(-50%);
bottom: -10px;
border-radius: 2px;
}

h3 {
font-size: 1.5rem;
}

p {
margin-bottom: 1rem;
}

a {
color: var(--primary-color);
text-decoration: none;
transition: var(--transition);
}

a:hover {
color: var(--secondary-color);
}

/* Header Styles */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.5rem 5%;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
background-color: var(--bg-color);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
transition: padding 0.3s ease, background-color 0.5s ease;
}

header.scrolled {
padding: 1rem 5%;
backdrop-filter: blur(10px);
background-color: rgba(var(--bg-color-rgb), 0.8);
}

header h1 {
font-size: 1.8rem;
margin: 0;
background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
background-clip: text;
-webkit-background-clip: text;

-webkit-text-fill-color: transparent;
text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

nav {
display: flex;
align-items: center;
gap: 1.5rem;
}

nav a {
position: relative;
font-weight: 600;
}

nav a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -5px;
left: 0;
background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
transition: width 0.3s ease;
}

nav a:hover::after, nav a.active::after {
width: 100%;
}

#theme-toggle {
background: none;
border: 2px solid var(--primary-color);
color: var(--primary-color);
padding: 0.5rem 1rem;
border-radius: 20px;
cursor: pointer;
font-family: 'Poppins', sans-serif;
font-weight: 600;
transition: var(--transition);
}

#theme-toggle:hover {
background-color: var(--primary-color);
color: white;
}

/* Hero Section */
#hero {
height: 100vh;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 5%;
background-color: var(--bg-color);
position: relative;
overflow: hidden;
}

.hero-text {
max-width: 600px;
z-index: 2;
}

.hero-text h2 {
font-size: 3rem;
margin-bottom: 1.5rem;
animation: fadeInUp 1s ease forwards;
text-align: left;
}

.hero-text h2::after {
left: 0;
transform: none;
}

.hero-text p {
font-size: 1.2rem;
margin-bottom: 2rem;
opacity: 0;
animation: fadeInUp 1s ease 0.3s forwards;
}

#hero-canvas {
position: absolute;
top: 0;
right: 0;
width: 50%;
height: 100%;
z-index: 1;
}

.cta-button {
display: inline-block;
padding: 1rem 2rem;
background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
color: white;
border-radius: 30px;
font-weight: 600;
box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
opacity: 0;
animation: fadeInUp 1s ease 0.6s forwards;
}

.cta-button:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(46, 204, 113, 0.4);
color: white;
}


/* PROFILLLLL */
.profile-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 2rem;
  border: 4px solid var(--primary-color);
  box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 30px rgba(52, 152, 219, 0.4);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .profile-image {
      width: 180px;
      height: 180px;
  }
}




/* About Section */
#about {
padding: 6rem 5%;
background-color: var(--bg-color);
}

#about > p {
max-width: 800px;
margin: 0 auto 3rem;
text-align: center;
font-size: 1.1rem;
}

.about-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 2rem;
margin-top: 3rem;
}

.about-card {
background-color: var(--bg-color);
padding: 2rem;
border-radius: var(--border-radius);
box-shadow: var(--card-shadow);
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
transform: translateY(50px);
opacity: 0;
}

.about-card.visible {
transform: translateY(0);
opacity: 1;
}

.about-card:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-card i {
font-size: 3rem;
margin-bottom: 1.5rem;
color: var(--primary-color);
transition: var(--transition);
}

.about-card:hover i {
color: var(--secondary-color);
transform: scale(1.1);
}

/* Portfolio Section */
#portfolio {
padding: 6rem 5%;
background-color: var(--light-color);
}

.portfolio-carousel {
display: flex;
gap: 2rem;
overflow-x: auto;
padding: 2rem 0;
scroll-snap-type: x mandatory;
-ms-overflow-style: none;
scrollbar-width: none;
}

.portfolio-carousel::-webkit-scrollbar {
display: none;
}

.carousel-item {
min-width: 320px;
background-color: var(--bg-color);
border-radius: var(--border-radius);
overflow: hidden;
box-shadow: var(--card-shadow);
transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
scroll-snap-align: start;
opacity: 0.7;
transform: scale(0.9);
}

.carousel-item.active {
opacity: 1;
transform: scale(1);
}

.carousel-item:hover {
transform: translateY(-10px) scale(1.03);
}

.carousel-item img {
width: 100%;
height: 200px;
object-fit: cover;
border-bottom: 2px solid var(--primary-color);
}

.carousel-item h3, .carousel-item p {
padding: 0 1.5rem;
}

.carousel-item h3 {
margin-top: 1.5rem;
font-size: 1.3rem;
}

.carousel-item p {
padding-bottom: 1.5rem;
color: var(--text-color);
opacity: 0.8;
}

/* Contact Section */
#contact {
padding: 6rem 5%;
background-color: var(--bg-color);
}

form {
max-width: 600px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 1.5rem;
}

input, textarea {
padding: 1rem;
border: 2px solid transparent;
border-radius: var(--border-radius);
background-color: var(--light-color);
font-family: 'Poppins', sans-serif;
font-size: 16px;
transition: var(--transition);
color: var(--text-color);
}

input:focus, textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

form button {
padding: 1rem;
background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
color: white;
border: none;
border-radius: var(--border-radius);
font-weight: 600;
cursor: pointer;
transition: var(--transition);
font-family: 'Poppins', sans-serif;
font-size: 16px;
}

form button:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(46, 204, 113, 0.3);
}

/* Footer */
footer {
padding: 3rem 5%;
background-color: var(--dark-color);
color: white;
text-align: center;
}

.social-icons {
display: flex;
justify-content: center;
gap: 1.5rem;
margin-bottom: 1.5rem;
}

.social-icons a {
display: flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.1);
color: white;
font-size: 1.5rem;
transition: var(--transition);
}

.social-icons a:hover {
background-color: var(--primary-color);
transform: translateY(-5px);
}

footer p {
margin-bottom: 0;
opacity: 0.8;
}

footer a {
color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* Media Queries */
@media (max-width: 1024px) {
#hero {
flex-direction: column;
text-align: center;
justify-content: center;
}

.hero-text {
max-width: 100%;
}

.hero-text h2 {
text-align: center;
}

.hero-text h2::after {
left: 50%;
transform: translateX(-50%);
}

#hero-canvas {
position: absolute;
width: 100%;
height: 100%;
opacity: 0.3;
}

header {
padding: 1rem 5%;
}

header h1 {
font-size: 1.5rem;
}

nav {
gap: 1rem;
}

nav a {
font-size: 0.9rem;
}
}

@media (max-width: 768px) {
nav {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: var(--bg-color);
padding: 1rem;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
justify-content: space-around;
}

nav a {
font-size: 0.8rem;
display: flex;
flex-direction: column;
align-items: center;
}

nav a::after {
display: none;
}

#theme-toggle {
position: fixed;
top: 1rem;
right: 1rem;
padding: 0.3rem 0.8rem;
font-size: 0.8rem;
}

.hero-text h2 {
font-size: 2rem;
}

.about-grid {
grid-template-columns: 1fr;
}

.about-card {
max-width: 400px;
margin: 0 auto;
}
}

@media (max-width: 480px) {
h1 {
font-size: 1.8rem;
}

h2 {
font-size: 1.6rem;
}

.hero-text h2 {
font-size: 1.8rem;
}

.hero-text p {
font-size: 1rem;
}

.carousel-item {
min-width: 280px;
}

.social-icons a {
width: 40px;
height: 40px;
font-size: 1.2rem;
}

input, textarea, form button {
padding: 0.8rem;
}
}

/* Dark mode enhanced focus */
.dark-theme input:focus, .dark-theme textarea:focus {
box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
}

/* Loading Animation */
.loader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--bg-color);
display: flex;
justify-content: center;
align-items: center;
z-index: 9999;
transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
opacity: 0;
visibility: hidden;
}

.loader-content {
display: flex;
flex-direction: column;
align-items: center;
}

.loader-spinner {
width: 50px;
height: 50px;
border: 5px solid rgba(52, 152, 219, 0.2);
border-radius: 50%;
border-top-color: var(--primary-color);
animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
to { transform: rotate(360deg); }
}

/* Scroll Progress Indicator */
.scroll-progress {
position: fixed;
top: 0;
left: 0;
height: 4px;
background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
z-index: 1001;
width: 0%;
transition: width 0.1s ease;
}

/* Cursor Effects */
.cursor {
position: fixed;
width: 40px;
height: 40px;
border: 2px solid var(--primary-color);
border-radius: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
z-index: 9999;
transition: transform 0.2s ease, opacity 0.2s ease;
opacity: 0;
}

.cursor-dot {
position: fixed;
width: 8px;
height: 8px;
background-color: var(--secondary-color);
border-radius: 50%;
transform: translate(-50%, -50%);
pointer-events: none;
z-index: 10000;
transition: transform 0.1s ease, background-color 0.5s ease;
opacity: 0;
}

body:hover .cursor,
body:hover .cursor-dot {
opacity: 1;
}

/* Sound button */
#sound-toggle {
position: fixed;
bottom: 20px;
right: 20px;
width: 40px;
height: 40px;
background-color: var(--bg-color);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: var(--card-shadow);
z-index: 100;
opacity: 0.7;
transition: var(--transition);
}

#sound-toggle:hover {
opacity: 1;
transform: scale(1.1);
}

#sound-toggle i {
color: var(--primary-color);
font-size: 1.2rem;
}

/* Back to top button */
.back-to-top {
position: fixed;
bottom: 70px;
right: 20px;
width: 40px;
height: 40px;
background-color: var(--bg-color);
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: var(--card-shadow);
z-index: 100;
opacity: 0;
visibility: hidden;
transition: var(--transition);
transform: translateY(20px);
}

.back-to-top.visible {
opacity: 0.7;
visibility: visible;
transform: translateY(0);
}

.back-to-top:hover {
opacity: 1;
transform: scale(1.1);
}

.back-to-top i {
color: var(--primary-color);
font-size: 1.2rem;
}

/* Additional portfolio style for filter controls */
.portfolio-filters {
display: flex;
justify-content: center;
gap: 1rem;
margin-bottom: 2rem;
flex-wrap: wrap;
}

.portfolio-filter-btn {
padding: 0.5rem 1.5rem;
border: none;
background-color: var(--bg-color);
color: var(--text-color);
border-radius: 20px;
cursor: pointer;
transition: var(--transition);
font-family: 'Poppins', sans-serif;
font-weight: 500;
box-shadow: var(--card-shadow);
}

.portfolio-filter-btn.active,
.portfolio-filter-btn:hover {
background-color: var(--primary-color);
color: white;
}

/* Portfolio hover effect */
.portfolio-carousel .carousel-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 200px;
background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
opacity: 0;
transition: opacity 0.3s ease;
z-index: 1;
}

.portfolio-carousel .carousel-item:hover::before {
opacity: 1;
}

.view-project {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.8);
background-color: var(--primary-color);
color: white;
padding: 0.6rem 1.2rem;
border-radius: 20px;
font-weight: 500;
z-index: 2;
opacity: 0;
transition: var(--transition);
}

.carousel-item:hover .view-project {
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}

/* Image placeholders animation */
@keyframes imageShimmer {
0% {
background-position: -468px 0;
}
100% {
background-position: 468px 0;
}
}

.img-placeholder {
background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
background-size: 800px 200px;
animation: imageShimmer 1.5s linear infinite forwards;
}

#education {
  padding: 6rem 5%;
  background: linear-gradient(to bottom, var(--bg-color), var(--light-color));
  position: relative;
  overflow: hidden;
}

#education:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.2) 0%, transparent 70%);
  pointer-events: none;
}

#education h2 {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  text-align: center;
  color: var(--text-color);
  letter-spacing: 1px;
}

#education h2:after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #9b59b6);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

.education-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  max-width: 1200px;
}

.education-card {
  background-color: var(--bg-color);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border: 1px solid rgba(240, 240, 240, 0.8);
  height: 100%;
  text-align: center;
}

.education-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.education-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.education-logo {
  padding: 1.5rem 1rem 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 130px;
}

.education-logo img {
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.education-card:hover .education-logo img {
  transform: scale(1.1) rotate(5deg);
}

.education-content {
  padding: 1rem 1.2rem 1.5rem;
  position: relative;
}

.education-content:before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
}

.education-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.education-card:hover .education-content h3 {
  color: #3498db;
}

.education-year {
  font-weight: 500;
  color: #9b59b6;
  margin-bottom: 0.7rem;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 30px;
  font-size: 0.75rem;
  background-color: rgba(155, 89, 182, 0.1);
}

.education-description {
  color: #7f8c8d;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.education-card:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #9b59b6);
  transition: width 0.4s ease;
}

.education-card:hover:after {
  width: 100%;
}

@media (max-width: 1200px) {
  .education-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .education-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .education-container {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
  
  #education h2 {
    font-size: 1.8rem;
  }
}

/* Efek tambahan - badge sekolah */
.education-card .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.education-card:hover .badge {
  opacity: 1;
  transform: translateY(0);
}

.education-card .badge:before {
  content: '⭐';
  font-size: 0.9rem;
}


/* Coding Game Section Styles */
#coding-game {
  padding: 6rem 5%;
  background: linear-gradient(135deg, var(--bg-color), #6c5ce7, #0984e3);
  position: relative;
  overflow: hidden;
}

#coding-game::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.game-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
}

.game-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.game-card:hover {
  transform: translateY(-10px);
}

.game-animation {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.game-animation i {
  font-size: 3rem;
  color: var(--primary-color);
  animation: float 3s ease-in-out infinite;
}

.game-animation i:nth-child(2) {
  animation-delay: 0.5s;
  color: #6c5ce7;
}

.game-animation i:nth-child(3) {
  animation-delay: 1s;
  color: #0984e3;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.game-card h2 {
  color: var(--text-color);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--primary-color));
  position: relative;
  display: inline-block;
}

.game-card h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #0984e3);
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  border-radius: 2px;
}

.game-card > p {
  font-size: 1.2rem;
  color: var(--text-color);
  max-width: 800px;
  margin: 0 auto 3rem;
}

.game-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.feature {
  flex: 1;
  min-width: 250px;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.game-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(45deg, var(--primary-color), #0984e3);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: 0 10px 20px rgba(9, 132, 227, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.game-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(45deg, #6c5ce7, var(--primary-color));
  transition: width 0.5s ease;
  z-index: -1;
}

.game-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(9, 132, 227, 0.4);
  color: white;
}

.game-button:hover::before {
  width: 100%;
}

.game-button i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.game-button:hover i {
  transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .game-features {
    flex-direction: column;
    align-items: center;
  }
  
  .feature {
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .game-card {
    padding: 2rem;
  }
  
  .game-card h2 {
    font-size: 2rem;
  }
  
  .game-animation {
    gap: 1rem;
  }
  
  .game-animation i {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .game-card > p {
    font-size: 1rem;
  }
  
  .game-button {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

/* Dark theme adjustments */
.dark-theme .game-card {
  background-color: var(--bg-color);
}

.dark-theme .feature {
  background-color: rgba(0, 0, 0, 0.2);
}

.dark-theme .game-card > p,
.dark-theme .feature p {
  color: var(--text-color);
}






/* CSS untuk Live Widget Dashboard */
#dashboard-widget {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(42,99,177,0.7) 50%, rgba(157,78,221,0.7) 100%);
  border-radius: 20px;
  padding: 30px;
  color: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}

#dashboard-widget::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(0,212,255,0.3) 0%, rgba(157,78,221,0.1) 100%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(40px);
}

.time-date-display {
  text-align: center;
  margin-bottom: 30px;
}

.time {
  font-size: 60px;
  font-weight: 700;
  color: rgba(255, 165, 100, 0.9);
  text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
  line-height: 1;
}

.date {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 5px;
}

.widget-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.widget-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.widget-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  background: rgba(255, 255, 255, 0.15);
}

.widget-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.widget-link {
  display: block;
  margin-top: auto;
  padding-top: 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.widget-link:hover {
  color: white;
  text-decoration: underline;
}

/* Weather Widget Styles */
.weather {
  display: flex;
  align-items: flex-start;
}

.widget-icon {
  font-size: 35px;
  margin-right: 15px;
  color: #FFD700;
}

.widget-content {
  flex: 1;
}

.weather-temp {
  font-size: 35px;
  font-weight: 700;
  margin: 5px 0;
}

.temp-range {
  margin-top: 5px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Stocks Widget Styles */
.stocks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.stock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stock-name {
  font-weight: 600;
}

.stock-change {
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 13px;
}

.up {
  color: #4CAF50;
}

.down {
  color: #F44336;
}

.stock-price {
  font-weight: 500;
}

/* Traffic Widget Styles */
.traffic-map {
  width: 100%;
  height: 100px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin: 10px 0;
  overflow: hidden;
}

.traffic-info h4 {
  margin: 10px 0 5px;
  font-size: 14px;
}

.traffic-info p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

/* Sports Widget Styles */
.match-status {
  background: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

.matches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 5px;
}

.team {
  display: flex;
  align-items: center;
}

.team-icon {
  width: 15px;
  height: 15px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  margin-right: 5px;
}

.score {
  font-weight: 600;
}

/* Skeleton loading animation */
.skeleton {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* Loading state for maps */
#traffic-map.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.loading-matches {
  grid-column: 1 / span 2;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}