:root {
  --primary: #8a2be2;
  --primary-light: #9d4aff;
  --secondary: #00f5d4;
  --secondary-light: #5effeb;
  --accent: #ff206e;
  --accent-light: #ff5c94;
  --dark: #0f0e17;
  --darker: #0a0a10;
  --light: #fffffe;
  --gray: #a7a9be;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-dark: rgba(0, 0, 0, 0.3);
  --gradient: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-light: linear-gradient(
    135deg,
    var(--primary-light),
    var(--accent-light)
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--darker);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Keep these fog-related styles */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, var(--darker) 0%, var(--dark) 100%);
  z-index: -3;
}

.bg-pattern {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30vh;
  background: linear-gradient(
    to top,
    rgba(138, 43, 226, 0.15) 0%,
    transparent 100%
  );
  z-index: -2;
  animation: fogMovement 20s linear infinite;
}

.fog-layer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40vh;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.02) 0%,
    transparent 100%
  );
  z-index: -1;
  pointer-events: none;
  animation: fogFloat 25s linear infinite alternate;
}

@keyframes fogMovement {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 100%;
  }
}

@keyframes fogFloat {
  0% {
    transform: translateX(-5%);
    opacity: 0.7;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(5%);
    opacity: 0.7;
  }
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 1rem 5%;
  background: rgba(15, 14, 23, 0.9);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  transition: all 0.3s ease;
}

.logo:hover .logo-img {
  transform: rotate(15deg);
  border-color: var(--secondary);
}

.logo-text h1 {
  font-size: 1.5rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

.logo:hover .logo-text h1 {
  background: linear-gradient(to right, var(--secondary), var(--accent));
}

.logo-text p {
  font-size: 0.8rem;
  color: var(--gray);
}

/* Navigation */
nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: var(--light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: all 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
  left: 0;
  transform: translateX(0);
}

nav a:hover {
  color: var(--secondary);
}

nav a.active {
  color: var(--secondary);
}

nav a i {
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
  position: relative;
  padding-top: 100px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero-text h2 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(to right, var(--light), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text p {
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: var(--light);
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:hover {
  background: var(--gradient-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--light);
  border: 2px solid var(--secondary);
  position: relative;
}

.btn-secondary::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid transparent;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--secondary), var(--primary))
    border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  transition: all 0.3s ease;
  opacity: 0;
}

.btn-secondary:hover::before {
  opacity: 1;
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--dark);
  transform: translateY(-3px);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

/* Avatar */
.hero-avatar {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 0 auto;
  perspective: 1000px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: relative;
  z-index: 2;
  transition: all 0.5s ease;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.avatar-frame {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 3px solid var(--secondary);
  border-radius: 30px;
  z-index: 1;
  transition: all 0.5s ease;
}

.avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    var(--primary-light),
    transparent 70%
  );
  opacity: 0.3;
  z-index: 0;
  border-radius: 20px;
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.6;
  }
}

/* Sections Common Styles */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
  background: linear-gradient(to right, var(--light), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  border-radius: 3px;
}

/* Videos Section */
.featured-work {
  padding: 5rem 10%;
  background: var(--glass-dark);
  position: relative;
}

.featured-work::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/pattern.png") repeat;
  opacity: 0.05;
  z-index: -1;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.work-card {
  position: relative;
  overflow: hidden;
}

.work-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.work-card:hover::before {
  opacity: 0.3;
}

.work-card:hover .work-info {
  transform: translateY(-10px);
}

.work-info {
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}
.work-thumbnail {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.work-thumbnail iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.work-thumbnail:hover .play-button {
  opacity: 1;
}

.work-thumbnail:hover .video-thumbnail {
  filter: brightness(0.7);
}

.work-info {
  padding: 1.5rem;
}

.work-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--light);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  color: var(--gray);
  font-size: 0.9rem;
}

.work-meta i {
  margin-right: 0.3rem;
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 10%;
  background: var(--dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-placeholder {
  background: var(--glass);
  border-radius: 15px;
  padding: 3rem;
  text-align: center;
  grid-column: 1 / -1;
  color: var(--gray);
  border: 2px dashed var(--glass);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.gallery-placeholder:hover {
  border-color: var(--secondary);
  transform: scale(1.02);
}

.gallery-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 245, 212, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.gallery-placeholder:hover::before {
  transform: translateX(100%);
}

.gallery-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}

/* About Section */
.about-section {
  padding: 5rem 10%;
  background: var(--glass-dark);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  color: var(--gray);
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.skills-container {
  margin-top: 2rem;
}

.skills-container h3 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill-item {
  background: var(--glass);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  background: var(--primary);
}

.skill-icon {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
}

/* Contact Section */
.contact-section {
  padding: 5rem 10%;
  background: var(--dark);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--glass);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--light);
  font-family: "Poppins", sans-serif;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Form Message */
.form-message {
  display: none;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 8px;
  text-align: center;
}

.form-message.success {
  background: rgba(0, 255, 0, 0.1);
  color: var(--secondary);
  display: block;
}

.form-message.error {
  background: rgba(255, 0, 0, 0.1);
  color: var(--accent);
  display: block;
}

/* Social Buttons */
.social-floating {
  position: fixed;
  left: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 99;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0)
  );
  transform: rotate(30deg);
  transition: transform 0.5s ease;
}

.social-btn:hover::before {
  transform: translateY(100%) rotate(30deg);
}

.social-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Specific social media brand colors */
.social-btn.instagram {
  background: linear-gradient(
    45deg,
    #405de6,
    #5851db,
    #833ab4,
    #c13584,
    #e1306c,
    #fd1d1d
  );
}

.social-btn.tiktok {
  background: linear-gradient(45deg, #25f4ee, #000000, #fe2c55);
}

.social-btn.facebook {
  background: #1877f2;
}

.social-btn.youtube {
  background: #ff0000;
}

/* Center the icons better */
.social-btn i {
  position: relative;
  z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .social-floating {
    flex-direction: row;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
  }

  .social-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 2rem;
  grid-column: 1 / -1;
  color: var(--secondary);
}

.loading-spinner i {
  font-size: 2rem;
  margin-bottom: 1rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Error Message */
.error {
  text-align: center;
  padding: 2rem;
  grid-column: 1 / -1;
  color: var(--accent);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-avatar {
    order: -1;
    margin-bottom: 3rem;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    font-size: 1.2rem; /* Increase nav links size for better tap target */
    padding: 12px 15px; /* Add padding around nav links */
  }

  .hero {
    padding: 100px 5% 50px;
  }

  .featured-work,
  .gallery-section,
  .about-section,
  .contact-section {
    padding: 3rem 5%;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Adjust social buttons container for mobile center bottom */
  .social-floating {
    flex-direction: row;
    bottom: 15px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  /* Increase social button tap sizes */
  .social-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }

  /* Adjust Support Me button for mobile center bottom */
  .support-container {
    bottom: 70px;
    right: 50%;
    transform: translateX(50%);
  }

  /* Increase button sizes for easier tapping */
  .btn {
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
}

.work-meta {
  display: flex;
  gap: 1rem;
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.work-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.work-meta i {
  color: var(--secondary);
}
.work-info h3 {
  margin-bottom: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 3em;
}
/* Pastikan struktur work-card tetap utuh */
.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.work-thumbnail {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  flex-shrink: 0; /* Agar thumbnail tidak menyusut */
}

.work-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.work-info h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-meta {
  display: flex;
  gap: 1rem;
  margin-top: auto; /* Push ke bawah */
  font-size: 0.8rem;
  color: var(--gray);
  flex-wrap: wrap;
}

.work-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.work-meta i {
  color: var(--secondary);
  font-size: 0.7rem;
}
/* Interactive Background */
#interactive-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, var(--darker), #1a0a2e);
}

/* Add this to your style.css */
#interactive-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, #0a0514 0%, #1a0a30 100%);
}
/* Splash Screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--darker);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 0.5s ease-out 2.5s forwards;
  background: linear-gradient(135deg, #0a0514 0%, #1a0a30 100%);
}

.splash-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin-bottom: 1.5rem;
  animation: pulse 1.5s infinite alternate, float 3s ease-in-out infinite;
  box-shadow: 0 0 50px rgba(138, 43, 226, 0.5), 0 0 100px rgba(0, 245, 212, 0.3);
  animation: pulse 1.5s infinite alternate, float 3s ease-in-out infinite,
    rotate 10s linear infinite;
}

.splash-text {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 0.5s forwards;
}

.splash-subtext {
  color: var(--gray);
  margin-top: 0.5rem;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1s forwards;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.5s ease-out 1.5s forwards;
}

.loading-progress {
  height: 100%;
  width: 0;
  background: var(--gradient);
  animation: load 1s ease-out 1.5s forwards;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  box-shadow: 0 0 10px var(--secondary);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes load {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
/* Page Content Animation */
body > *:not(.splash-screen) {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out 2.5s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero Section Specific Animation */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
}

.hero-text {
  animation: fadeInUp 0.5s ease-out 2.8s forwards;
}

.hero-avatar {
  animation: fadeInUp 0.5s ease-out 3.1s forwards;
}
.hero-content {
  perspective: 1000px;
}

.hero-text,
.hero-avatar {
  transition: transform 0.5s ease-out;
}

body:hover .hero-text {
  transform: translateZ(50px) rotateY(-5deg);
}

body:hover .hero-avatar {
  transform: translateZ(80px) rotateY(5deg);
}
.hero-text h1 {
  position: relative;
  display: inline-block;
}

.hero-text h1::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
}

.hero-text h1:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
@keyframes sectionPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(138, 43, 226, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
  }
}
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.floating-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: floatElement 15s infinite ease-in-out;
}

.shape1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: 15%;
  right: 10%;
  animation-delay: 3s;
}

.shape3 {
  width: 250px;
  height: 250px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  animation-delay: 6s;
}

@keyframes floatElement {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(50px, 50px) rotate(180deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(138, 43, 226, 0.5);
  border: 2px solid var(--secondary);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, width 0.3s ease, height 0.3s ease,
    background 0.3s ease;
  mix-blend-mode: difference;
}

.cursor-hover {
  width: 40px;
  height: 40px;
  background: rgba(0, 245, 212, 0.3);
  border-color: var(--primary);
}
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--darker);
  margin: 10% auto;
  padding: 2rem;
  border: 1px solid var(--primary);
  border-radius: 15px;
  max-width: 500px;
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--accent);
}

/* Admin Controls */
#adminControls {
  position: fixed;
  bottom: 100px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

/* Gallery Admin Styles */
.gallery-item {
  position: relative;
}

.gallery-item .delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: none; /* Sembunyikan secara default */
}

.gallery-item:hover .delete-btn {
  opacity: 1;
}
/* Hanya tampilkan jika admin login */
.admin-logged-in .gallery-item .delete-btn {
  display: flex;
}
/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toast.show {
  opacity: 1;
}

.toast.success {
  background: rgba(0, 245, 212, 0.2);
  border: 1px solid var(--secondary);
}

.toast.error {
  background: rgba(255, 32, 110, 0.2);
  border: 1px solid var(--accent);
}
/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: var(--glass);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-item h3 {
  padding: 1rem;
  font-size: 1rem;
  color: var(--light);
  text-align: center;
}
/* Admin System Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  will-change: opacity;
}

.modal.active {
  display: block;
  opacity: 1;
}

.modal-content {
  background: var(--darker);
  margin: 10% auto;
  padding: 2rem;
  border: 1px solid var(--primary);
  border-radius: 15px;
  max-width: 500px;
  position: relative;
  animation: modalFadeIn 0.3s ease-out;
  transform: translateZ(0);
  will-change: transform, opacity;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--gray);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--accent);
}

#adminControls {
  position: fixed;
  bottom: 100px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 100;
}

.gallery-item {
  position: relative;
}

.gallery-item .delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .delete-btn {
  opacity: 1;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem 2rem;
  border-radius: 50px;
  color: white;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.toast.show {
  opacity: 1;
}

.toast.success {
  background: rgba(0, 245, 212, 0.2);
  border: 1px solid var(--secondary);
}

.toast.error {
  background: rgba(255, 32, 110, 0.2);
  border: 1px solid var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  background: var(--glass);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-item h3 {
  padding: 1rem;
  font-size: 1rem;
  color: var(--light);
  text-align: center;
}
.achievement-toast {
  position: fixed;
  top: 30px;
  right: -400px;
  background: var(--gradient);
  color: white;
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
  transition: right 0.5s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.achievement-toast.show {
  right: 30px;
}

.achievement-icon {
  font-size: 2rem;
  color: gold;
}

.achievement-content h4 {
  margin-bottom: 0.3rem;
}
.video-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.video-link:hover {
  color: var(--secondary);
}
/* Support Me Button */
.support-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 11000;
  pointer-events: auto;
}

.support-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #ff206e, #ff6b8b);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(255, 32, 110, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  pointer-events: auto;
}

.support-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 32, 110, 0.6);
  animation: none;
}

.support-btn i {
  font-size: 1.2rem;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .support-container {
    bottom: 90px; /* Naikkan sedikit di atas social buttons */
    right: 50%;
    transform: translateX(-50%);
    z-index: 12000;
  }

  .support-btn {
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    box-shadow: 0 6px 18px rgba(255, 32, 110, 0.6);
    border-radius: 60px;
  }

  /* Improve vertical spacing in sections */
  .featured-work,
  .gallery-section,
  .about-section,
  .contact-section,
  .analytics-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Adjust font sizes and line heights for mobile */
  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-text p,
  .about-text {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Buttons full width and larger tap area */
  .btn {
    width: 100%;
    padding: 1.1rem 1.8rem;
    font-size: 1.1rem;
    border-radius: 12px;
  }

  /* Navigation and header stack with spacing */
  header {
    flex-direction: column;
    padding: 1.5rem 1.5rem;
    gap: 1.5rem;
  }

  nav ul {
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 1.1rem;
  }

  /* Adjust social and support button positions */
  .social-floating {
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .social-btn {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .support-container {
    bottom: 100px;
    right: 50%;
    transform: translateX(50%);
  }
}

@media (max-width: 480px) {
  /* Further adjustments for smaller phones */
  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-text p,
  .about-text {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .btn {
    padding: 1.2rem 1.8rem;
    font-size: 1.15rem;
  }

  .hero-btns {
    flex-direction: column;
    gap: 1.2rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  /* Padding for sections */
  .featured-work,
  .gallery-section,
  .about-section,
  .contact-section,
  .analytics-section {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
/* Support Toast */
.support-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 32, 110, 0.9);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.support-toast.show {
  opacity: 1;
}

.support-toast i {
  color: #ffd700;
}
/* Easter Egg Styles */
.easter-egg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(138, 43, 226, 0.9);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
  transition: all 0.5s ease;
}

.easter-egg.active {
  opacity: 1;
  animation: float 3s ease-in-out infinite;
}

.initials {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(to right, #ff206e, #ff6b8b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.message {
  font-size: 1.2rem;
  color: var(--secondary-light);
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-5deg);
  }
  50% {
    transform: translate(-50%, -55%) rotate(5deg);
  }
}
/* Easter Egg Styles */
.easter-egg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(138, 43, 226, 0.9);
  color: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
  transition: opacity 0.5s ease;
}

.easter-egg.active {
  opacity: 1;
  animation: eggFloat 3s ease-in-out infinite;
}

.easter-egg .initials {
  font-size: 5rem;
  font-weight: 800;
  background: linear-gradient(to right, #ff206e, #ff6b8b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 1rem;
}

.easter-egg .message {
  font-size: 1.2rem;
  color: #5effeb;
}

@keyframes eggFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-5deg);
  }
  50% {
    transform: translate(-50%, -55%) rotate(5deg);
  }
}
/* Easter Egg Mobile Responsive */
.easter-egg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw; /* Lebih responsif untuk mobile */
  max-width: 300px;
  padding: 1.5rem;
  z-index: 99999; /* Pastikan di atas semua elemen */
  /* ... style lainnya tetap ... */
}

@media (max-width: 768px) {
  .easter-egg {
    padding: 1rem;
  }
  .easter-egg .initials {
    font-size: 3rem;
  }
  .easter-egg .message {
    font-size: 1rem;
  }
}
/* AI Chatbot Styles */
#chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: var(--darker);
  border: 1px solid var(--primary);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(138, 43, 226, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 999;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  overflow: hidden;
  display: none;
}

#chatbot-container.active {
  transform: translateY(0);
  opacity: 1;
  display: flex;
}

#chatbot-container.minimized {
  height: 60px;
  overflow: hidden;
}

.chatbot-header {
  background: var(--primary);
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: move;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1rem;
}

.chatbot-header button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: 10px;
  transition: all 0.3s ease;
}

.chatbot-header button:hover {
  transform: scale(1.1);
}

#chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: var(--dark);
}

.chat-message {
  margin-bottom: 15px;
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  line-height: 1.4;
  font-size: 0.9rem;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.user-message {
  background: var(--primary-light);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.bot-message {
  background: var(--glass);
  color: var(--light);
  margin-right: auto;
  border-bottom-left-radius: 5px;
}

.chatbot-input {
  display: flex;
  padding: 10px;
  background: var(--darker);
  border-top: 1px solid var(--glass);
}

#chatbot-input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--glass);
  border-radius: 50px;
  background: var(--dark);
  color: var(--light);
  outline: none;
  transition: all 0.3s ease;
}

#chatbot-input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
}

#chatbot-send {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#chatbot-send:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

#chatbot-toggle {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 998;
  box-shadow: 0 5px 15px rgba(138, 43, 226, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

#chatbot-toggle:hover {
  background: var(--primary-light);
  transform: translateY(-3px) rotate(10deg);
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.7);
}

.typing-indicator {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 15px;
  background: var(--glass);
  border-radius: 15px;
  width: fit-content;
  max-width: 80%;
  margin-bottom: 15px;
  border-bottom-left-radius: 5px;
}

.typing-text {
  font-size: 0.8rem;
  color: var(--gray);
  opacity: 0.8;
}

.bouncing-dots {
  display: flex;
  gap: 6px;
  align-items: flex-end;
  height: 20px;
}

.bouncing-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  animation: bounce 1.2s infinite ease-in-out;
}

.bouncing-dots .dot1 {
  animation-delay: 0s;
}
.bouncing-dots .dot2 {
  animation-delay: 0.2s;
}
.bouncing-dots .dot3 {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  #chatbot-container {
    width: 100%;
    height: 70vh;
    bottom: 0;
    right: 0;
    border-radius: 15px 15px 0 0;
  }

  #chatbot-toggle {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}
/* Chatbot Message Time */
.message-time {
  display: block;
  font-size: 0.7rem;
  color: var(--gray);
  opacity: 0.7;
  margin-top: 0.3rem;
  text-align: right;
}

.user-message .message-time {
  color: rgba(255, 255, 255, 0.7);
}

/* Message Content */
.message-content {
  word-wrap: break-word;
}

/* Typing Indicator Animation */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.bouncing-dots .dot {
  animation: bounce 1.2s infinite ease-in-out;
}

.bouncing-dots .dot1 {
  animation-delay: 0s;
}
.bouncing-dots .dot2 {
  animation-delay: 0.2s;
}
.bouncing-dots .dot3 {
  animation-delay: 0.4s;
}
.message-time {
  display: block;
  font-size: 0.7rem;
  color: var(--gray);
  margin-top: 5px;
  text-align: right;
}

.bot-message .message-time {
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 768px) {
  .social-floating {
    flex-direction: row;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
  }

  .support-container {
    bottom: 80px; /* Naikkan sedikit di atas social buttons */
    right: 50%;
    transform: translateX(50%);
  }
}
/* Voice Controls */
.voice-controls {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--glass-dark);
  border-top: 1px solid var(--glass);
  justify-content: center;
}

.voice-controls button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-controls button:hover {
  background: var(--primary-light);
  transform: scale(1.1);
}

.voice-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
#chatbot-voice-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  padding: 8px;
  margin-right: 5px;
  transition: all 0.3s;
}

#chatbot-voice-toggle:hover {
  color: #4caf50;
}

#chatbot-voice-toggle i {
  pointer-events: none;
}
/* Analytics Section */
.analytics-section {
  padding: 5rem 10%;
  background: var(--glass-dark);
}

.analytics-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.analytics-card {
  background: var(--darker);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.analytics-card h3 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-container {
  display: flex;
  height: 200px;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chart-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-bar {
  width: 30px;
  background: var(--gradient);
  border-radius: 5px 5px 0 0;
  transition: height 1s ease;
}

.chart-label {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
}

.chart-legend {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray);
}

.pie-chart {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
  background: conic-gradient(
    var(--primary) 0% 45%,
    var(--secondary) 45% 70%,
    var(--accent) 70% 85%,
    var(--primary-light) 85% 100%
  );
}

.pie-segment {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 50%);
  transform: rotate(var(--deg));
}

.pie-label {
  position: absolute;
  transform: rotate(calc(var(--deg) / 2)) translate(100px)
    rotate(calc(var(--deg) / -2));
  font-size: 0.7rem;
  color: white;
  text-shadow: 0 0 2px var(--dark);
}
/* Cloud Background */
.clouds {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.192);
  border-radius: 1000px;
  filter: blur(20px);
}

.cloud-1 {
  width: 300px;
  height: 100px;
  top: 20%;
  left: -150px;
  animation: cloudMove 60s linear infinite;
}

.cloud-2 {
  width: 400px;
  height: 150px;
  top: 40%;
  right: -200px;
  animation: cloudMove 80s linear infinite reverse;
  animation-delay: 10s;
}

.cloud-3 {
  width: 250px;
  height: 80px;
  bottom: 30%;
  left: -125px;
  animation: cloudMove 50s linear infinite;
  animation-delay: 20s;
}

.cloud-4 {
  width: 350px;
  height: 120px;
  bottom: 15%;
  right: -175px;
  animation: cloudMove 70s linear infinite reverse;
  animation-delay: 30s;
}

@keyframes cloudMove {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(calc(100vw + 100%));
  }
}

@keyframes cloudMove {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(calc(100vw + 100%));
  }
}
/* Tambahkan di style.css */
.skill-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.skill-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.skill-item.active .skill-details {
  max-height: 500px;
  opacity: 1;
  padding-top: 0.5rem;
}

.skill-item.active {
  background: rgba(138, 43, 226, 0.2);
  border: 1px solid var(--primary);
}

.skill-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    var(--primary-light),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-item.active .skill-glow {
  opacity: 0.3;
}
/* Scroll-triggered animations */
section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

section.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Different animation delays for each section */
#videos.in-view {
  transition-delay: 0.1s;
}

#gallery.in-view {
  transition-delay: 0.2s;
}

#about.in-view {
  transition-delay: 0.3s;
}

#contact.in-view {
  transition-delay: 0.4s;
}
/* Micro-interactions */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:active {
  transform: scale(0.95);
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Hover effects for cards */
.work-card,
.gallery-item,
.skill-item {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.work-card:hover,
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.skill-item:hover {
  transform: translateY(-3px) scale(1.02);
}

/* Social media button hover effects */
.social-btn {
  transition: all 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-btn:active {
  transform: translateY(-1px);
}
/* Hero section animations */
.hero-text h1 {
  animation: textGlow 2s infinite alternate;
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 5px rgba(55, 0, 255, 0.3);
  }
  to {
    text-shadow: 0 0 20px var(--primary-light), 0 0 30px var(--secondary-light);
  }
}

.hero-stats .stat-item {
  transition: all 0.3s ease;
}

.hero-stats .stat-item:hover {
  transform: scale(1.05);
}

.hero-stats .stat-item:hover .stat-number {
  background: linear-gradient(to right, var(--accent), var(--secondary-light));
  -webkit-background-clip: text;
  background-clip: text;
}
/* Avatar hover effects */
.hero-avatar:hover .avatar-img {
  transform: rotateY(180deg) scale(1.05);
  filter: brightness(1.1);
}

.hero-avatar:hover .avatar-frame {
  border-color: var(--accent);
  transform: rotate(-5deg) scale(1.05);
}

.hero-avatar:hover .avatar-glow {
  opacity: 0.5;
  animation: pulse 2s infinite alternate;
}
/* TRANSISI ANTAR SECTION */
section {
  transition: all 0.8s cubic-bezier(0.65, 0, 0.35, 1);
  transform-origin: center;
}

/* Efek untuk section yang tidak aktif */
section:not(.active) {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  pointer-events: none;
  position: relative;
  z-index: 1;
}

/* Efek untuk section aktif */
section.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Animasi khusus untuk hero section */
#home.active {
  transform: translateY(0) scale(1) rotateY(0);
}

#home:not(.active) {
  transform: translateY(30px) scale(0.98) rotateY(10deg);
}
