/* ======= GLOBAL RESET & VARIABLES ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

:root {
  --primary: #00d9ff;
  --secondary: #7b00ff;
  --dark: #0a0a1a;
  --darker: #050510;
  --light: #f0f8ff;
  --gray: #a0a0c0;
  --card-bg: rgba(10, 15, 30, 0.7);
  --success: #25d366;
}

/* Reset Bootstrap list defaults */
.list-unstyled,
.list-inline {
  color: var(--light) !important;
}

/* Force all text in dark sections to be light */
section[class*="bg-"] li,
section[class*="bg-"] ul,
section[class*="bg-"] ol,
.card li,
.card ul,
.card ol {
  color: var(--light) !important;
}

/* Important override untuk semua elemen list */
*[class*="container"] li,
*[class*="container"] ul,
*[class*="container"] ol {
  color: var(--light) !important;
}

/* ======= 3D SPACE BACKGROUND ======= */
#space3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  pointer-events: auto;
  will-change: contents;
  contain: layout style paint;
  display: block; /* Prevent margin collapse */
}

/* Efek partikel untuk seluruh halaman */
.particle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(0, 217, 255, 0.5);
  pointer-events: none;
  z-index: -5;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
  animation: floatParticle 4s ease-in-out infinite;
}

/* Interactive particle */
.interactive-particle {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
  background: radial-gradient(circle, rgba(0, 217, 255, 1) 0%, rgba(0, 217, 255, 0.5) 70%, rgba(0, 217, 255, 0) 100%);
  animation: glow 0.6s ease-out;
}

/* Particles container */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -5;
  overflow: hidden;
  mix-blend-mode: screen;
}

/* Interaksi 3D pada section */
.section-3d-interactive {
  position: relative;
  overflow: hidden;
}

/* Floating elements */
.floating-element {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
  animation: floatDecoration 6s ease-in-out infinite;
}

/* Planet hover effect pada card */
.card:hover .planet-hover {
  transform: scale(1.1) rotate(10deg);
  filter: drop-shadow(0 0 20px rgba(123, 0, 255, 0.7));
  animation: glow 0.6s ease-in-out;
}

/* 3D hover effects untuk interactive elements */
.planet-interactive {
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.planet-interactive:hover {
  filter: brightness(1.3) drop-shadow(0 0 25px rgba(0, 217, 255, 0.9));
  animation: glow 0.6s ease-in-out;
}

/* ======= BASE STYLES ======= */
body {
  background-color: var(--darker);
  color: var(--light);
  background-image: radial-gradient(circle at 10% 20%, rgba(123, 0, 255, 0.08) 0%, transparent 20%), radial-gradient(circle at 90% 80%, rgba(0, 217, 255, 0.08) 0%, transparent 20%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.02) 0%, transparent 30%), radial-gradient(circle at 80% 50%, rgba(123, 0, 255, 0.02) 0%, transparent 30%);
  z-index: -7;
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5, 5, 16, 0.85) 0%, rgba(5, 5, 16, 0.5) 50%, rgba(5, 5, 16, 0.85) 100%);
  z-index: -8;
  pointer-events: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ======= HEADER & NAVIGATION ======= */
header {
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(5, 5, 16, 0.98) 0%, rgba(5, 5, 16, 0.95) 100%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.25);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 217, 255, 0.1);
  transition: box-shadow 0.2s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1001;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
  z-index: 1002;
}

.logo-profile {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  box-shadow:
    0 0 20px rgba(0, 217, 255, 0.6),
    0 0 40px rgba(0, 217, 255, 0.3),
    inset 0 0 20px rgba(0, 217, 255, 0.2);
  transition: box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  animation: glowPulse 3s ease-in-out infinite;
}

.logo-profile:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 30px rgba(0, 217, 255, 0.9),
    0 0 60px rgba(0, 217, 255, 0.5),
    inset 0 0 30px rgba(0, 217, 255, 0.4);
}

.logo-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 1;
}

/* Navigation Styles */
nav {
  position: relative;
  z-index: 1002;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

nav a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.2s;
  position: relative;
  padding: 5px 0;
  z-index: 1;
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
  z-index: -1;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  font-size: 24px;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1010;
  padding: 5px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ======= HERO SECTION ======= */
.hero {
  padding: 120px 0 80px;
  min-height: 100vh; /* Use 100vh to prevent layout shift on first load */
  display: flex;
  align-items: center;
  z-index: 10;
  contain: layout style; /* Prevent paint from affecting other sections */
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  z-index: 2;
}

.hero-content {
  animation: slideInLeft 1s ease-out;
  position: relative;
  z-index: 3;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
  z-index: 1;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  display: inline-block;
  z-index: 1;
}

/* .hero h1 span::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
} */

.hero p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: var(--gray);
  line-height: 1.8;
  z-index: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: slideInRight 1s ease-out 0.2s both;
  z-index: 3;
}

.hero-photo-container {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0 auto;
  z-index: 4;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  border: 5px solid var(--dark);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-photo:hover {
  transform: scale(1.03);
}

.photo-frame {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 3px solid var(--primary);
  border-radius: 30px;
  background: linear-gradient(45deg, transparent, rgba(0, 217, 255, 0.1));
  z-index: 1;
  animation: pulse 4s infinite;
}

.photo-decoration {
  position: absolute;
  top: -25px;
  right: -25px;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  box-shadow: 0 10px 30px rgba(123, 0, 255, 0.4);
  z-index: 3;
  animation: floatDecoration 3s ease-in-out infinite;
}

.hero-avatar {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(0, 217, 255, 0.4);
  overflow: hidden;
}

.hero-avatar::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--dark);
  transform: scale(0.85);
}

.avatar-icon {
  position: relative;
  z-index: 1;
  font-size: 120px;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.7);
}

/* ======= ANIMATIONS ======= */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes floatDecoration {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(5deg);
  }
  75% {
    transform: translateY(10px) rotate(-5deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Enhanced floating animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(5deg);
  }
  75% {
    transform: translateY(10px) rotate(-5deg);
  }
}

/* Glow animations untuk 3D elements - optimized */
@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(0, 217, 255, 0.5);
  }
  50% {
    box-shadow:
      0 0 20px rgba(0, 217, 255, 0.8),
      0 0 30px rgba(123, 0, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 5px rgba(0, 217, 255, 0.5);
  }
}

/* Particle floating animation */
@keyframes floatParticle {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(10px, -10px) scale(1.2);
    opacity: 0.6;
  }
  50% {
    transform: translate(15px, -20px) scale(0.8);
    opacity: 0.4;
  }
  75% {
    transform: translate(5px, -15px) scale(1.1);
    opacity: 0.5;
  }
}

/* Orbital rotation animation */
@keyframes orbit {
  0% {
    transform: rotateZ(0deg);
  }
  100% {
    transform: rotateZ(360deg);
  }
}

/* Pulsing glow for background sun */
@keyframes sunGlow {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(255, 170, 0, 0.6),
      inset 0 0 20px rgba(255, 170, 0, 0.3);
  }
  50% {
    box-shadow:
      0 0 40px rgba(255, 170, 0, 0.9),
      inset 0 0 30px rgba(255, 170, 0, 0.5);
  }
}

/* Global glow pulse for background */
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

/* Rotating objects animation */
@keyframes spin {
  from {
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

/* Subtle parallax shift */
@keyframes parallaxShift {
  0%,
  100% {
    transform: translateZ(0);
  }
  50% {
    transform: translateZ(20px);
  }
}

/* Active section fade in */
@keyframes fadeInActive {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.btn {
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  will-change: transform, box-shadow;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 25px rgba(123, 0, 255, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(123, 0, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: width 0.4s;
  z-index: -1;
}

.btn-outline:hover::before {
  width: 100%;
}

.btn-outline:hover {
  color: white;
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.2);
}

/* ======= SECTION STYLES ======= */
section {
  padding: 80px 0;
  position: relative;
  z-index: 5;
  transition: background 0.3s ease;
  background: linear-gradient(180deg, rgba(5, 5, 16, 0) 0%, rgba(0, 217, 255, 0.02) 50%, rgba(5, 5, 16, 0) 100%);
}

section.active {
  background: linear-gradient(180deg, rgba(5, 5, 16, 0) 0%, rgba(0, 217, 255, 0.05) 50%, rgba(5, 5, 16, 0) 100%);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease-out;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 2px;
  z-index: 1;
}

/* ======= CARD STYLES ======= */
.card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid rgba(0, 217, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  will-change: transform, box-shadow;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
  transition: left 0.5s ease;
  z-index: 0;
}

.card:hover::before {
  left: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 30px rgba(0, 217, 255, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.card h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--light);
  position: relative;
  z-index: 1;
}

.card .date {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 15px;
  display: inline-block;
  padding: 5px 15px;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

/* ======= EDUCATION ACCORDION ======= */
.education-accordion {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.accordion-item {
  background-color: var(--card-bg);
  border-radius: 15px;
  margin-bottom: 25px;
  border: 1px solid rgba(0, 217, 255, 0.1);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 3;
  contain: content; /* Prevent repaints from affecting other items */
}

.accordion-item:hover {
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 10px 25px rgba(0, 217, 255, 0.15);
}

.accordion-item.active {
  border-color: rgba(0, 217, 255, 0.5);
  box-shadow: 0 15px 30px rgba(0, 217, 255, 0.2);
}

.accordion-header {
  padding: 25px 30px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(5, 10, 25, 0.5);
  transition: background 0.2s;
  position: relative;
  z-index: 4;
  will-change: background;
}

.accordion-header:hover {
  background: rgba(0, 217, 255, 0.05);
}

.accordion-header.active {
  background: rgba(0, 217, 255, 0.08);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.education-title {
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.education-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.4);
  position: relative;
  z-index: 1;
}

.education-header-text h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}

.education-header-text .date {
  color: var(--gray);
  font-size: 1rem;
  display: inline-block;
  padding: 5px 15px;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

.accordion-toggle {
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.2s;
  position: relative;
  z-index: 1;
  will-change: transform;
}

.accordion-item.active .accordion-toggle {
  transform: rotate(180deg);
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: max-height;
  position: relative;
  z-index: 3;
  contain: layout;
}

.accordion-item.active .accordion-content {
  padding: 30px;
  overflow: visible;
  transition: max-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.education-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

/* ======= DIPLOMA PREVIEW ======= */
.diploma-image-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  min-height: 250px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(0, 217, 255, 0.2);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  contain: paint; /* Optimize paint performance */
  justify-content: center;
  position: relative;
  transition: min-height 0.3s ease;
  z-index: 2;
}

.diploma-image-container:hover .diploma-image {
  transform: scale(1.03);
}

.diploma-image-container::after {
  content: "🔍 Klik untuk memperbesar";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 217, 255, 0.9);
  color: var(--dark);
  padding: 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  opacity: 0;
  z-index: 3;
}

.diploma-image-container:hover::after {
  transform: translateY(0);
  opacity: 1;
}

.diploma-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* ======= MODAL STYLES ======= */
.modal {
  z-index: 1060 !important;
}

.modal-content.bg-dark {
  background-color: var(--darker) !important;
  border: 1px solid var(--primary) !important;
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.3);
  position: relative;
  z-index: 1061;
}

.modal-header.border-primary,
.modal-footer.border-primary {
  border-color: rgba(0, 217, 255, 0.3) !important;
  position: relative;
  z-index: 1;
}

.btn-close.btn-close-white {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(175deg);
  opacity: 0.8;
  position: relative;
  z-index: 2;
}

.btn-close.btn-close-white:hover {
  opacity: 1;
}

.diploma-modal-container {
  max-height: 70vh;
  overflow-y: auto;
  padding: 15px;
  position: relative;
  z-index: 1;
}

.diploma-modal-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
  position: relative;
  z-index: 1;
}

.btn-outline-primary:hover {
  background: rgba(0, 217, 255, 0.1);
  color: var(--light);
  border-color: var(--primary);
}

/* ======= SKILLS SECTION ======= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.skill-category h3 {
  color: var(--primary);
  margin-bottom: 20px;
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.skill-item {
  padding: 10px 20px;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 30px;
  border: 1px solid rgba(0, 217, 255, 0.3);
  font-size: 1rem;
  transition:
    background 0.2s,
    border-color 0.2s;
  position: relative;
  z-index: 2;
}

.skill-item:hover {
  background: rgba(0, 217, 255, 0.2);
  transform: scale(1.05);
}

.skill-item.highlight {
  background: rgba(123, 0, 255, 0.2);
  border-color: rgba(123, 0, 255, 0.5);
}

/* ======= TIMELINE ======= */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  z-index: 1;
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 40px;
  z-index: 2;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.8);
  z-index: 3;
}

/* ======= CERTIFICATIONS CAROUSEL ======= */
.certifications-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0 50px;
  position: relative;
  z-index: 2;
}

.swiper-container {
  width: 100%;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 3;
}

.swiper {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.swiper-slide {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 217, 255, 0.2);
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
  height: 450px;
  position: relative;
  cursor: pointer;
  z-index: 1;
  will-change: transform, box-shadow;
}

.swiper-slide:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 217, 255, 0.2);
  border-color: rgba(0, 217, 255, 0.3);
}

.swiper-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  z-index: 2;
}

.certificate-img-container {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.certificate-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  z-index: 1;
}

.swiper-slide:hover .certificate-img {
  transform: scale(1.05);
}

.certificate-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.certificate-title {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.certificate-issuer {
  color: var(--light);
  font-size: 1rem;
  margin-bottom: 15px;
  font-weight: 600;
  z-index: 1;
  position: relative;
}

.certificate-description {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.certificate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 20px;
  background: rgba(0, 217, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(0, 217, 255, 0.3);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  width: 100%;
  text-align: center;
  margin-top: auto;
  position: relative;
  z-index: 2;
  will-change: transform, box-shadow;
}

.certificate-link:hover {
  background: rgba(0, 217, 255, 0.15);
  color: var(--secondary);
  gap: 12px;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 217, 255, 0.15);
}

.certificate-link i {
  transition: transform 0.2s;
  position: relative;
  z-index: 1;
}

.certificate-link:hover i {
  transform: translateX(3px);
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  color: var(--primary);
  background: rgba(5, 5, 16, 0.8);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 217, 255, 0.3);
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  will-change: transform, box-shadow;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 217, 255, 0.15);
  transform: translateY(-50%);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 24px;
  font-weight: bold;
}

.swiper-button-next {
  right: 10px;
}

.swiper-button-prev {
  left: 10px;
}

.swiper-pagination {
  bottom: -40px !important;
  z-index: 10;
}

.swiper-pagination-bullet {
  background: var(--gray);
  opacity: 0.5;
  width: 12px;
  height: 12px;
  transition:
    opacity 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
}

/* ======= CONTACT SECTION ======= */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact-description {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 40px;
  color: var(--gray);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 30px 25px;
  border-radius: 15px;
  background-color: var(--card-bg);
  min-width: 220px;
  border: 1px solid rgba(0, 217, 255, 0.1);
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s,
    background 0.25s,
    box-shadow 0.25s;
  flex: 1;
  max-width: 300px;
  position: relative;
  z-index: 3;
  will-change: transform, box-shadow;
}

.contact-item:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 217, 255, 0.1);
  background: rgba(10, 15, 30, 0.85);
}

.contact-icon {
  font-size: 42px;
  color: var(--primary);
  margin-bottom: 15px;
  background: rgba(0, 217, 255, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(0, 217, 255, 0.2);
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.25s;
  position: relative;
  z-index: 1;
  will-change: transform;
}

.contact-item:hover .contact-icon {
  background: rgba(0, 217, 255, 0.15);
  border-color: var(--primary);
  transform: scale(1.05);
}

.contact-item h4 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.contact-item p {
  color: var(--light);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 5px;
  position: relative;
  z-index: 1;
}

/* Contact Methods */
.contact-methods {
  width: 100%;
  max-width: 800px;
  margin: 40px auto 60px;
  padding: 40px;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid rgba(0, 217, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.contact-btn {
  display: flex;
  align-items: center;
  padding: 25px;
  border-radius: 15px;
  text-decoration: none;
  transition:
    transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
  will-change: transform, box-shadow;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.7s;
  z-index: -1;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* WhatsApp Button */
.whatsapp-btn {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.05));
  border-color: rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(37, 211, 102, 0.1));
  border-color: #25d366;
}

/* Email Button */
.email-btn {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(0, 217, 255, 0.05));
  border-color: rgba(0, 217, 255, 0.3);
}

.email-btn:hover {
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(0, 217, 255, 0.1));
  border-color: var(--primary);
}

.contact-btn-icon {
  font-size: 32px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.whatsapp-btn .contact-btn-icon {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.email-btn .contact-btn-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

.contact-btn-content {
  flex: 1;
  text-align: left;
  position: relative;
  z-index: 1;
}

.contact-btn-content h4 {
  color: var(--light);
  font-size: 1.4rem;
  margin-bottom: 5px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.contact-btn-content p {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.contact-btn-hint {
  color: var(--gray);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 1;
}

.contact-btn-hint::before {
  content: "⏱️";
  font-size: 0.8rem;
}

.contact-btn-arrow {
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0.7;
  transition:
    opacity 0.2s,
    transform 0.2s;
  position: relative;
  z-index: 1;
}

.contact-btn:hover .contact-btn-arrow {
  opacity: 1;
  transform: translateX(5px);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: inherit;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Active section styling */
.fade-in.active {
  animation: fadeInActive 0.6s ease-out forwards;
}

/* ======= RESPONSIVE DESIGN ======= */

@media (max-width: 1200px) {
  .hero-wrapper {
    gap: 50px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-photo-container {
    width: 350px;
    height: 350px;
  }
}

/* Tablet Styles (768px - 992px) */
@media (max-width: 992px) {
  .hero::before,
  #education::before,
  #experience::before,
  #skills::before,
  #certifications::before,
  #contact::before {
    opacity: 0.3;
    font-size: 1.5rem;
  }
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 80px 0 10px;
    gap: 40px;
  }

  .hero-avatar {
    width: 300px;
    height: 300px;
  }

  .hero-wrapper {
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .hero-photo-container {
    width: 320px;
    height: 320px;
  }

  .swiper-container {
    height: 460px;
  }

  .swiper-slide {
    height: 400px;
  }

  .certificate-img-container {
    height: 170px;
  }
}

/* Mobile Navigation (768px and below) */
@media (max-width: 768px) {
  #space3d {
    opacity: 0.5;
  }

  .hero::before,
  #education::before,
  #experience::before,
  #skills::before,
  #certifications::before,
  #contact::before {
    display: none;
  }

  nav ul {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: rgba(5, 5, 16, 0.98);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    z-index: 1000;
    margin: 0;
    padding-top: 80px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(0, 217, 255, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
  }

  nav ul.active {
    display: flex;
    transform: translateX(0);
  }

  .mobile-menu-btn {
    display: block;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 18px 30px;
    width: 100%;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    font-size: 18px;
    color: var(--light);
    position: relative;
    z-index: 1;
  }

  nav ul li a:hover,
  nav ul li a.active {
    background-color: rgba(0, 217, 255, 0.1);
    color: var(--primary);
    padding-left: 40px;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  .hero {
    padding: 100px 0 60px;
    text-align: center;
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
    justify-items: center;
  }

  .hero-content {
    animation: fadeInUp 1s ease-out;
    max-width: 600px;
  }

  .hero-image {
    animation: fadeInUp 1s ease-out 0.2s both;
    order: -1; /* Memindahkan foto ke atas di mobile */
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h1 span::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
  }

  .hero p {
    font-size: 1.15rem;
    margin-bottom: 30px;
  }

  .cta-buttons {
    justify-content: center;
  }

  .hero-photo-container {
    width: 300px;
    height: 300px;
  }

  .photo-decoration {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  .section-title {
    font-size: 2rem;
  }

  .education-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .education-accordion .education-icon {
    display: none;
  }

  .education-title {
    gap: 0;
  }

  .education-header-text {
    width: 100%;
  }

  .diploma-image-container {
    min-height: 200px;
    max-width: 350px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-avatar {
    width: 250px;
    height: 250px;
  }

  .swiper-container {
    height: 440px;
    padding: 0 15px;
  }

  .swiper-slide {
    height: 380px;
  }

  .certificate-img-container {
    height: 160px;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 45px;
    height: 45px;
    opacity: 0.7;
  }

  .swiper-button-next:after,
  .swiper-button-prev:after {
    font-size: 18px;
  }

  .contact-methods {
    padding: 30px;
  }

  .contact-btn {
    padding: 20px;
  }

  .contact-btn-icon {
    width: 60px;
    height: 60px;
    font-size: 26px;
    margin-right: 20px;
  }

  .contact-btn-content h4 {
    font-size: 1.3rem;
  }

  .contact-btn-content p {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 90px 0 50px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero-photo-container {
    width: 280px;
    height: 280px;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .contact-item {
    width: 100%;
    max-width: 100%;
  }

  .contact-methods {
    padding: 25px 20px;
  }

  .contact-btn {
    flex-direction: column;
    text-align: center;
    padding: 25px 20px;
  }

  .contact-btn-icon {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .contact-btn-content {
    text-align: center;
    margin-bottom: 15px;
  }

  .contact-btn-arrow {
    display: none;
  }

  .contact-buttons {
    gap: 15px;
  }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-photo-container {
    width: 260px;
    height: 260px;
  }

  .photo-decoration {
    top: -20px;
    right: -20px;
    width: 55px;
    height: 55px;
    font-size: 22px;
  }
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-photo-container {
    width: 260px;
    height: 260px;
  }

  .photo-decoration {
    top: -20px;
    right: -20px;
    width: 55px;
    height: 55px;
    font-size: 22px;
  }

  .contact-item {
    min-width: 100%;
  }

  nav ul {
    width: 250px;
    padding-top: 70px;
  }

  nav ul li a {
    padding: 16px 25px;
    font-size: 16px;
  }

  .mobile-menu-btn {
    font-size: 22px;
    right: 15px;
  }

  .education-accordion .education-icon {
    display: none;
  }

  .education-title {
    gap: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .education-header-text h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .education-header-text .date {
    font-size: 0.9rem;
    padding: 4px 12px;
  }

  .accordion-header {
    padding: 20px;
  }

  .diploma-image-container {
    min-height: 180px;
    max-width: 300px;
  }

  .accordion-item.active .accordion-content {
    padding: 20px;
  }

  .logo-text {
    font-size: 20px;
  }

  .logo-profile {
    width: 50px;
    height: 50px;
  }

  .swiper-container {
    height: 420px;
    padding: 0 5px;
  }

  .swiper-slide {
    height: 380px;
  }

  .certificate-img-container {
    height: 150px;
  }

  .certificate-info {
    padding: 15px;
  }

  .certificate-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .certificate-description {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }

  .certificate-link {
    padding: 10px 15px;
    font-size: 0.9rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    display: none;
  }

  .contact-description {
    font-size: 1.1rem;
  }

  .contact-item {
    padding: 25px 20px;
  }

  .contact-icon {
    width: 70px;
    height: 70px;
    font-size: 36px;
  }
}

/* ======= FOOTER ======= */
footer {
  padding: 50px 0 40px;
  text-align: center;
  border-top: 1px solid rgba(0, 217, 255, 0.3);
  margin-top: 80px;
  color: var(--gray);
  background: linear-gradient(180deg, rgba(5, 5, 16, 0.6) 0%, rgba(5, 5, 16, 0.9) 100%);
  position: relative;
  z-index: 10;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -5px 30px rgba(0, 217, 255, 0.1);
}

footer p {
  margin-bottom: 15px;
  color: var(--gray);
  position: relative;
  z-index: 1;
}

footer .social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

footer .social-links a {
  color: var(--gray);
  font-size: 22px;
  transition:
    color 0.3s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.3s ease,
    box-shadow 0.3s ease;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(123, 0, 255, 0.05));
  border: 1px solid rgba(0, 217, 255, 0.2);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
  will-change: transform;
}

footer .social-links a:hover {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(123, 0, 255, 0.2));
  border-color: rgba(0, 217, 255, 0.5);
  transform: translateY(-5px) scale(1.1);
  box-shadow:
    0 0 20px rgba(0, 217, 255, 0.6),
    0 10px 25px rgba(0, 217, 255, 0.3);
}

@media (min-width: 481px) and (max-width: 768px) {
  /* Tablet portrait - ukuran ikon lebih kecil */
  .education-accordion .education-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .education-title {
    gap: 12px;
  }
}
/* Extra Small Mobile (375px and below) */
@media (max-width: 375px) {
  .hero-avatar {
    width: 220px;
    height: 220px;
  }

  .hero {
    padding: 80px 0 40px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-photo-container {
    width: 240px;
    height: 240px;
  }

  .photo-frame {
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
  }

  .avatar-icon {
    font-size: 100px;
  }

  .swiper-container {
    height: 400px;
    margin: 0 -10px;
    padding: 0 15px;
    width: calc(100% + 20px);
  }

  .swiper-slide {
    height: 360px;
  }

  .certificate-img-container {
    height: 130px;
  }

  .certificate-info {
    padding: 12px;
  }

  .certificate-title {
    font-size: 1.1rem;
  }

  .certificate-description {
    font-size: 0.8rem;
  }
}

/* Tiny Mobile (320px and below) */
@media (max-width: 320px) {
  .hero-avatar {
    width: 200px;
    height: 200px;
  }

  .avatar-icon {
    font-size: 90px;
  }

  .swiper-container {
    height: 390px;
  }

  .swiper-slide {
    height: 350px;
  }

  .certificate-img-container {
    height: 120px;
  }

  .certificate-info {
    padding: 10px;
  }

  .certificate-title {
    font-size: 1rem;
  }

  .certificate-description {
    font-size: 0.75rem;
  }

  .certificate-link {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}

/* ======= UTILITY CLASSES ======= */
/* Perbaikan untuk mencegah flash of unstyled content */
.accordion-content {
  visibility: hidden;
}

.accordion-item.active .accordion-content {
  visibility: visible;
}

/* Perbaikan untuk animasi yang lebih smooth */
.accordion-content * {
  transform: translateZ(0); /* Force GPU acceleration */
}

.detail-item h4 {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.detail-item h4 i {
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.detail-item p {
  color: var(--light);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.thesis-info {
  background: rgba(0, 217, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.thesis-info h4 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
  position: relative;
  z-index: 1;
}

.thesis-info p {
  color: var(--light);
  font-size: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.diploma-preview {
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.diploma-preview h4 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

/* ======= FLOATING EMOJI FOR SECTIONS ======= */
.hero::before {
  content: "🚀";
  position: absolute;
  top: 20%;
  right: 10%;
  font-size: 3rem;
  animation: float 6s ease-in-out infinite;
  z-index: 0; /* Diperbaiki: di bawah konten hero */
  opacity: 0.5;
}

#education::before {
  content: "🪐";
  position: absolute;
  top: 10%;
  left: 5%;
  font-size: 2.5rem;
  animation: float 8s ease-in-out infinite;
  z-index: 0; /* Diperbaiki: di bawah konten section */
  opacity: 0.6;
  animation-delay: 1s;
}

#experience::before {
  content: "🛰️";
  position: absolute;
  top: 30%;
  right: 8%;
  font-size: 2rem;
  animation: float 7s ease-in-out infinite;
  z-index: 0;
  opacity: 0.6;
  animation-delay: 0.5s;
}

#skills::before {
  content: "🌌";
  position: absolute;
  bottom: 20%;
  left: 7%;
  font-size: 3rem;
  animation: float 9s ease-in-out infinite;
  z-index: 0;
  opacity: 0.5;
  animation-delay: 1.5s;
}

#certifications::before {
  content: "⭐";
  position: absolute;
  top: 15%;
  right: 12%;
  font-size: 2rem;
  animation: float 5s ease-in-out infinite;
  z-index: 5;
  opacity: 0.7;
}

#contact::before {
  content: "☄️";
  position: absolute;
  bottom: 10%;
  right: 10%;
  font-size: 2.5rem;
  animation: float 7s ease-in-out infinite;
  z-index: 0;
  opacity: 0.6;
  animation-delay: 0.7s;
}

/* Interactive hover effects */
.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 8px 20px rgba(0, 217, 255, 0.1),
    0 0 20px rgba(123, 0, 255, 0.1);
}

/* Particle effects for interactive elements */
.interactive-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 9999;
}

/* Performance optimization for 3D */
@media (prefers-reduced-motion: reduce) {
  #space3d,
  .particle,
  .floating-element,
  .interactive-particle {
    display: none;
  }

  .card:hover {
    transform: translateY(-5px);
  }
}

/* Reduce 3D intensity on mobile */
@media (max-width: 768px) and (prefers-contrast: more) {
  #space3d {
    display: none;
  }
}

/* Hardware acceleration */
#space3d,
.card,
.hero-photo-container {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000;
}
