:root {
    --primary: #6366F1;
    --primary-dark: #4f46e5;
    --dark: #0F172A;
    --darker: #0a0f1d;
    --light: #F8FAFC;
    --gray: #94a3b8;
    --gradient: linear-gradient(135deg, #6366F1, #8B5CF6);
    --tech-blue: #00f3ff;
    --tech-purple: #8a2be2;
    --tech-green: #00ff9d;
    --tech-pink: #ff2a6d;
    --tech-cyan: #05d9e8;
    --tech-yellow: #ffd700;
    --tech-orange: #ff6b35;
    --tech-magenta: #ff00ff;
    --tech-teal: #00ffcc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    position: relative;
    scroll-behavior: smooth;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
}

.bg-animation span {
    position: absolute;
    display: block;
    border-radius: 50%;
    animation: animate 15s linear infinite;
    bottom: -150px;
    background: rgba(255, 42, 109, 0.2);
    box-shadow: 0 0 10px rgba(255, 42, 109, 0.3),
                0 0 20px rgba(255, 42, 109, 0.2),
                0 0 30px rgba(255, 42, 109, 0.1),
                0 0 40px rgba(255, 42, 109, 0.05);
}

.bg-animation span:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.bg-animation span:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
    background: rgba(5, 217, 232, 0.2);
    box-shadow: 0 0 10px rgba(5, 217, 232, 0.3),
                0 0 20px rgba(5, 217, 232, 0.2),
                0 0 30px rgba(5, 217, 232, 0.1),
                0 0 40px rgba(5, 217, 232, 0.05);
}

.bg-animation span:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
    background: rgba(211, 0, 197, 0.2);
    box-shadow: 0 0 10px rgba(211, 0, 197, 0.3),
                0 0 20px rgba(211, 0, 197, 0.2),
                0 0 30px rgba(211, 0, 197, 0.1),
                0 0 40px rgba(211, 0, 197, 0.05);
}

.bg-animation span:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3),
                0 0 20px rgba(99, 102, 241, 0.2),
                0 0 30px rgba(99, 102, 241, 0.1),
                0 0 40px rgba(99, 102, 241, 0.05);
}

.bg-animation span:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.bg-animation span:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
    background: rgba(5, 217, 232, 0.2);
    box-shadow: 0 0 10px rgba(5, 217, 232, 0.3),
                0 0 20px rgba(5, 217, 232, 0.2),
                0 0 30px rgba(5, 217, 232, 0.1),
                0 0 40px rgba(5, 217, 232, 0.05);
}

.bg-animation span:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
    background: rgba(211, 0, 197, 0.2);
    box-shadow: 0 0 10px rgba(211, 0, 197, 0.3),
                0 0 20px rgba(211, 0, 197, 0.2),
                0 0 30px rgba(211, 0, 197, 0.1),
                0 0 40px rgba(211, 0, 197, 0.05);
}

.bg-animation span:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.bg-animation span:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
    background: rgba(5, 217, 232, 0.2);
    box-shadow: 0 0 10px rgba(5, 217, 232, 0.3),
                0 0 20px rgba(5, 217, 232, 0.2),
                0 0 30px rgba(5, 217, 232, 0.1),
                0 0 40px rgba(5, 217, 232, 0.05);
}

.bg-animation span:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* Particle Background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0,7;
    pointer-events: none;
}

/* Matrix Effect */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.05;
    pointer-events: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 5% 0;
    position: relative;
}

.profile-container {
    position: relative;
    width: 230px;
    height: 230px;
    margin: 0 auto 2rem;
}

.profile-img {
    width: 250px;
    height: 250px;
    bottom: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    animation: float 6s ease-in-out infinite;
    position: relative;
    transform: translate(-50%, -50%);
    z-index: 1;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 42, 109, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 42, 109, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 42, 109, 0); }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--tech-teal), var(--tech-magenta), var(--tech-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin-bottom: 2rem;
    font-weight: 400;
}

.cta-buttons {
  display: flex;
  justify-content: center;   /* tombol tepat di tengah horizontal */
  align-items: center;       /* kalau tinggi beda tetap rata */
  gap: 20px;                 /* jarak antar tombol */
  width: 100%;               /* pastikan lebarnya full */
  text-align: center;        /* teks tombol ikut rata */
  margin: 20px auto;         /* otomatis tengah */
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-magenta));
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-magenta));
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 255, 157, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 42, 109, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--tech-magenta);
}

.btn-secondary:hover {
    background: var(--tech-magenta);
    transform: translateY(-5px);
    border-color: transparent;
    color: white;
}

.wheel {
    width: 6px;
    height: 6px;
    background: var(--tech-cyan);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--tech-cyan);
    border-right: 2px solid var(--tech-cyan);
    transform: rotate(45deg);
    margin: -5px auto;
    animation: scroll 1.5s infinite;
}

.arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Orbit teknologi */
.tech-orbits {
    position: absolute;
    width: 300px;
    height: 300px;
    top: -50px;
    left: -50px;
    animation: rotateOrbits 20s linear infinite;
}

.orbit {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    animation: float 6s ease-in-out infinite;
}

.orbit-1 {
    top: 0;
    left: 125px;
    background: #E34F26; /* HTML color */
    animation-delay: 0s;
}

.orbit-2 {
    top: 125px;
    left: 250px;
    background: #264DE4; /* CSS color */
    animation-delay: 1s;
}

.orbit-3 {
    top: 250px;
    left: 125px;
    background: #F7DF1E; /* JS color */
    animation-delay: 2s;
}

.orbit-4 {
    top: 125px;
    left: 0;
    background: #61DAFB; /* React color */
    animation-delay: 3s;
}

@keyframes rotateOrbits {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern Digital Animation Container */
.tech-animation-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 15px;
    background: rgba(10, 15, 29, 0.5);
    overflow: hidden;
    perspective: 1000px;
}

.digital-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.tech-animation {
    position: absolute;
    animation: float 8s ease-in-out infinite;
}

/* WiFi Animation */
.wifi-animation {
    top: 10%;
    left: 20%;
    width: 100px;
    height: 100px;
    transform-origin: center bottom;
    animation-delay: 0s;
}

.wifi-signal {
    position: absolute;
    border: 4px solid transparent;
    border-top: 4px solid var(--tech-cyan);
    border-radius: 50%;
    animation: wifiPulse 3s infinite;
}

.wifi-signal:nth-child(1) {
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.wifi-signal:nth-child(2) {
    width: 70px;
    height: 70px;
    top: 15px;
    left: 15px;
    animation-delay: 0.5s;
}

.wifi-signal:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 30px;
    left: 30px;
    animation-delay: 1s;
}

@keyframes wifiPulse {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: scale(1.2); }
}

/* Laptop Animation */
.laptop-animation {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 100px;
    animation: laptopFloat 6s ease-in-out infinite;
}

.laptop-screen {
    width: 130px;
    height: 80px;
    background: #000;
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--tech-purple);
    box-shadow: 0 0 15px var(--tech-purple);
}

.screen-content {
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    background: #001122;
    padding: 10px;
    overflow: hidden;
}

.code-line {
    height: 4px;
    background: var(--tech-green);
    margin-bottom: 6px;
    border-radius: 2px;
    animation: codeLine 3s infinite;
}

.code-line:nth-child(1) { width: 90%; animation-delay: 0s; }
.code-line:nth-child(2) { width: 70%; animation-delay: 0.5s; }
.code-line:nth-child(3) { width: 85%; animation-delay: 1s; }
.code-line:nth-child(4) { width: 60%; animation-delay: 1.5s; }

.cursor {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 8px;
    height: 15px;
    background: var(--tech-cyan);
    animation: blink 1s infinite;
}

@keyframes codeLine {
    0% { opacity: 0; transform: translateX(-100%); }
    10% { opacity: 1; transform: translateX(0); }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.laptop-keyboard {
    width: 150px;
    height: 10px;
    background: #222;
    border-radius: 0 0 8px 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

@keyframes laptopFloat {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -55%) rotate(2deg); }
    100% { transform: translate(-50%, -50%) rotate(0deg); }
}

/* Server Animation */
.server-animation {
    top: 20%;
    right: 15%;
    width: 80px;
    height: 120px;
    animation: serverFloat 7s ease-in-out infinite;
}

.server-rack {
    width: 60px;
    height: 120px;
    background: linear-gradient(to right, #1a1a1a, #333);
    border-radius: 5px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

.server-light {
    position: absolute;
    width: 50px;
    height: 8px;
    background: #333;
    border-radius: 3px;
    left: 5px;
    animation: serverLight 2s infinite;
}

.server-light:nth-child(1) { top: 15px; animation-delay: 0s; }
.server-light:nth-child(2) { top: 35px; animation-delay: 0.4s; }
.server-light:nth-child(3) { top: 55px; animation-delay: 0.8s; }
.server-light:nth-child(4) { top: 75px; animation-delay: 1.2s; }

@keyframes serverLight {
    0%, 100% { background: #333; box-shadow: none; }
    50% { background: var(--tech-green); box-shadow: 0 0 10px var(--tech-green); }
}

@keyframes serverFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Cloud Animation */
.cloud-animation {
    bottom: 20%;
    left: 10%;
    width: 120px;
    height: 60px;
    animation: cloudFloat 9s ease-in-out infinite;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--tech-blue);
}

.cloud:nth-child(1) {
    width: 50px;
    height: 50px;
    top: 5px;
    left: 10px;
}

.cloud:nth-child(2) {
    width: 40px;
    height: 40px;
    top: 0;
    left: 40px;
}

.cloud:nth-child(3) {
    width: 30px;
    height: 30px;
    top: 15px;
    left: 70px;
}

.data-packet {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--tech-pink);
    border-radius: 50%;
    animation: dataMove 4s infinite linear;
    box-shadow: 0 0 8px var(--tech-pink);
}

.data-packet:nth-child(4) { top: 20px; left: 0; animation-delay: 0s; }
.data-packet:nth-child(5) { top: 40px; left: 20px; animation-delay: 1s; }
.data-packet:nth-child(6) { top: 10px; left: 50px; animation-delay: 2s; }

@keyframes dataMove {
    0% { transform: translateX(0) translateY(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100px) translateY(-50px); opacity: 0; }
}

@keyframes cloudFloat {
    0% { transform: translateX(0); }
    50% { transform: translateX(20px); }
    100% { transform: translateX(0); }
}

/* Chip Animation */
.chip-animation {
    bottom: 15%;
    right: 20%;
    width: 80px;
    height: 80px;
    animation: chipRotate 15s linear infinite;
}

.chip {
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 42, 109, 0.5);
    transform-style: preserve-3d;
}

.chip-core {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    background: var(--tech-purple);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--tech-purple);
}

.chip-pin {
    position: absolute;
    width: 5px;
    height: 10px;
    background: var(--tech-yellow);
    box-shadow: 0 0 5px var(--tech-yellow);
}

.chip-pin:nth-child(2) { top: 0; left: 10px; }
.chip-pin:nth-child(3) { top: 0; right: 10px; }
.chip-pin:nth-child(4) { bottom: 0; left: 10px; }
.chip-pin:nth-child(5) { bottom: 0; right: 10px; }

.chip-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    box-shadow: 0 0 30px var(--tech-purple);
    animation: chipGlow 3s infinite alternate;
    opacity: 0.7;
}

@keyframes chipRotate {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes chipGlow {
    0% { box-shadow: 0 0 20px var(--tech-purple); }
    100% { box-shadow: 0 0 50px var(--tech-purple); }
}

/* Satellite Animation */
.satellite-animation {
    top: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    animation: satelliteOrbit 20s linear infinite;
}

.satellite {
    position: relative;
    width: 40px;
    height: 20px;
    transform-style: preserve-3d;
    animation: satelliteRotate 5s linear infinite;
}

.satellite-body {
    width: 40px;
    height: 10px;
    background: #333;
    border-radius: 3px;
    position: absolute;
    top: 5px;
    box-shadow: 0 0 10px var(--tech-teal);
}

.satellite-dish {
    width: 20px;
    height: 20px;
    border: 2px solid var(--tech-teal);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: -15px;
    transform: rotate(45deg);
}

.satellite-panel {
    width: 30px;
    height: 5px;
    background: var(--tech-teal);
    position: absolute;
    box-shadow: 0 0 8px var(--tech-teal);
}

.satellite-panel:nth-child(3) { top: 0; left: 45px; transform: rotate(30deg); }
.satellite-panel:nth-child(4) { bottom: 0; left: 45px; transform: rotate(-30deg); }

.satellite-signal {
    position: absolute;
    top: 10px;
    left: -50px;
    width: 50px;
    height: 2px;
    background: var(--tech-teal);
    transform-origin: right center;
    animation: satelliteSignal 3s infinite;
    box-shadow: 0 0 8px var(--tech-teal);
}

@keyframes satelliteOrbit {
    0% { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

@keyframes satelliteRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes satelliteSignal {
    0% { transform: scaleX(0); opacity: 0; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: all 0.3s ease;
    backdrop-filter: blur(0px);
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    background: linear-gradient(90deg, var(--tech-teal), var(--tech-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--tech-teal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tech-teal);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--tech-teal);
}

.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background: var(--light);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Section Styles */
section {
    padding: 6rem 5%;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    background: linear-gradient(90deg, var(--tech-teal), var(--tech-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--tech-teal), var(--tech-magenta));
    border-radius: 2px;
    animation: linePulse 2s infinite;
}

@keyframes linePulse {
    0% { width: 80px; }
    50% { width: 120px; }
    100% { width: 80px; }
}

/* About Section */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;   /* ✅ jadi 1 kolom di tablet */
        text-align: center;
        gap: 2rem;
    }

    .about-illustration {
        max-width: 80%;
        margin: 0 auto;
    }

    .about-text p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .about-illustration {
        max-width: 100%;          /* ✅ gambar full di HP kecil */
    }

    .skills-badges {
        justify-content: center;  /* ✅ badge rata tengah */
    }
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.badge {
    padding: 0.5rem 1.2rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--tech-cyan);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--tech-cyan);
    transition: all 0.3s ease;
    cursor: pointer;
}

.badge:hover {
    background: var(--tech-cyan);
    color: var(--darker);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.4);
}

.about-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    height: 400px;
}

/* Education Section */
.education-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, var(--tech-teal), var(--tech-magenta));
    margin-left: -2px;
    border-radius: 10px;
    animation: timelinePulse 3s infinite;
}

@keyframes timelinePulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 243, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 243, 255, 0); }
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--tech-cyan);
}

.timeline-year {
    position: absolute;
    top: -20px;
    background: linear-gradient(90deg, var(--tech-teal), var(--tech-magenta));
    color: var(--darker);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.4);
    animation: yearPulse 2s infinite;
}

@keyframes yearPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.timeline-item:nth-child(odd) .timeline-year {
    right: 0;
}

.timeline-item:nth-child(even) .timeline-year {
    left: 0;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.timeline-desc {
    color: var(--gray);
    line-height: 1.6;
}

.timeline-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0% { transform: translateY(-50%); }
    50% { transform: translateY(-60%); }
    100% { transform: translateY(-50%); }
}

.timeline-item:nth-child(odd) .timeline-icon {
    left: -30px;
}

.timeline-item:nth-child(even) .timeline-icon {
    right: -30px;
}

/* Skills Section */
.skills-container {
    max-width: 800px;
    margin: 0 auto;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatIcon 4s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.icon-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10%;
    z-index: -1;
    opacity: 0.7;
}

@keyframes floatIcon {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}


/* Technology specific colors and effects */
.skill-icon.html {
    background: #E34F26;
    color: white;
}
.skill-icon.html {
    background: radial-gradient(circle, #E34F26, transparent 10%);
}

.skill-icon.css {
    background: #264DE4;
    color: white;
}
.skill-icon.css {
    background: radial-gradient(circle, #264DE4, transparent 10%);
}

.skill-icon.js {
    background: #F7DF1E;
    color: #333;
}
.skill-icon.js {
    background: radial-gradient(circle, #F7DF1E, transparent 10%);
}

.skill-icon.mysql {
    background: #4479A1;
    color: white;
}
.skill-icon.mysql {
    background: radial-gradient(circle, #4479A1, transparent 10%);
}

.skill-icon.python {
    background: #3776AB;
    color: white;
}
.skill-icon.python {
    background: radial-gradient(circle, #3776AB, transparent 10%);
}
/* Skill icons dengan efek 3D */
.skill-icon.ethical-hacking {
    background: linear-gradient(135deg, #6a00ff, #a100f6);
    color: white;
    box-shadow: 0 0 20px rgba(106, 0, 255, 0.7);
    transform: translateZ(20px);
}

.skill-icon.linux {
    background: linear-gradient(135deg, #f5a623, #f5d623);
    color: black;
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.7);
    transform: translateZ(20px);
}

.skill-icon.exploitation {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    box-shadow: 0 0 20px rgba(255, 65, 108, 0.7);
    transform: translateZ(20px);
}

.skill-icon.network-security {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.7);
    transform: translateZ(20px);
}

.skill-icon.pc-assembly {
    background: linear-gradient(135deg, #8e2de2, #4a00e0);
    color: white;
    box-shadow: 0 0 20px rgba(142, 45, 226, 0.7);
    transform: translateZ(20px);
}

.skill-icon.video-editing {
    background: linear-gradient(135deg, #ff0084, #33001b);
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 132, 0.7);
    transform: translateZ(20px);
}

/* Background skill bar yang baru */
.skill-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
    border-radius: 10px;
}

/* Efek 3D untuk skill items */
.skill-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.skill-item:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Glow effect untuk icon */
.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
}

.skill-icon.html {
    background: #e34f26;
}

.skill-icon.css {
    background: #264de4;
}

.skill-icon.js {
    background: #f7df1e;
}

.skill-icon.mysql {
    background: #4479a1;
}

.skill-icon.python {
    background: #3776ab;
}

.skill-icon.ethical-hacking {
    background: #6a00ff;
}

.skill-icon.linux {
    background: #f5a623;
}

.skill-icon.exploitation {
    background: #ff416c;
}

.skill-icon.network-security {
    background: #0072ff;
}

.skill-icon.pc-assembly {
    background: #8e2de2;
}

.skill-icon.video-editing {
    background: #ff0084;
}

/* Animasi untuk skill icons */
@keyframes float3D {
    0% {
        transform: translateY(0) translateZ(0) rotateY(0deg);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: translateY(-10px) translateZ(10px) rotateY(10deg);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    }
    100% {
        transform: translateY(0) translateZ(0) rotateY(0deg);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

.skill-icon {
    animation: float3D 6s ease-in-out infinite;
}

.skill-icon.html {
    animation-delay: 0s;
}

.skill-icon.css {
    animation-delay: 0.5s;
}

.skill-icon.js {
    animation-delay: 1s;
}

.skill-icon.mysql {
    animation-delay: 1.5s;
}

.skill-icon.python {
    animation-delay: 2s;
}

.skill-icon.ethical-hacking {
    animation-delay: 2.5s;
}

.skill-icon.linux {
    animation-delay: 3s;
}

.skill-icon.exploitation {
    animation-delay: 3.5s;
}

.skill-icon.network-security {
    animation-delay: 4s;
}

.skill-icon.pc-assembly {
    animation-delay: 4.5s;
}

.skill-icon.video-editing {
    animation-delay: 5s;
}

.skill-name {
    font-weight: 600;
    font-size: 1.1rem;
    flex: 1;
}

.skill-percent {
    color: var(--tech-cyan);
    font-weight: 700;
}

.skill-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--tech-teal), var(--tech-magenta));
    position: relative;
    width: 0;
    transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.7), 
        transparent);
    animation: shine 2s infinite;
    transform: translateX(-100%);
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Hover effects */
.skill-item:hover .skill-icon {
    transform: scale(1.2) translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: floatIconHover 0.5s ease-in-out;
}

@keyframes floatIconHover {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.3) translateY(-15px); }
    100% { transform: scale(1.2) translateY(-10px); }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 400px;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--tech-cyan);
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card:hover .project-card-inner {
    transform: rotateY(180deg);
}

.project-card-front, .project-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.project-card-back {
    background: var(--darker);
    transform: rotateY(180deg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card-back h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--tech-cyan);
}

.project-card-back ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.project-card-back ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive images */
.project-img-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--light);
}

.project-desc {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-buttons {
    display: flex;
    gap: 1rem;
}

.project-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white;
}

.project-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-magenta));
    transition: all 0.5s ease;
    z-index: -1;
}

.project-btn:hover:before {
    width: 100%;
}

.demo-btn {
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-magenta));
}

.code-btn {
    background: transparent;
    color: var(--tech-cyan);
    border: 1px solid var(--tech-cyan);
}

.code-btn:hover {
    color: var(--darker);
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Sertifikat Section */
.certificates-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
    padding: 1rem 0;
}

.certificate-card {
    width: 100%;
    max-width: 800px;       /* bisa atur sendiri */
    aspect-ratio: 16 / 9;   /* ✅ fix landscape */
    background: transparent; 
    box-shadow: none;       
    position: relative;
    overflow: hidden;       /* ✅ buang box sisa */
    border: 2px;
}

.certificate-card:hover {
    transform: translateY(-10px);
}

.certificate-front, 
.certificate-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.certificate-front {
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-magenta));
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* ✅ isi penuh landscape */
    display: block;
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    text-shadow: 0 0 10px var(--tech-cyan);
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-back {
    background-image: url('https://iili.io/KFkfWB4.jpg');
    background-size: cover;       /* gambar menutupi seluruh area */
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: rotateY(180deg);
    border: 2px solid var(--tech-cyan);
    text-align: center;
}

.certificate-card:hover .certificate-front {
    transform: rotateY(180deg);
}

.certificate-card:hover .certificate-back {
    transform: rotateY(0deg);
}

.certificate-back h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1E3A8A, #06B6D4);
}

.certificate-back p {
    margin-bottom: 0.5rem;
    color: var(--light);
}

.view-btn {
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-magenta));
    color: var(--darker);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.4);
    display: inline-block;
}

.view-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.6);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-prev, .carousel-next {
    background: rgba(30, 41, 59, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 50px;
    height: 50px;
    color: var(--tech-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
}

.carousel-prev:hover, .carousel-next:hover {
    background: linear-gradient(45deg, rgba(0, 255, 200, 0.35), rgba(0, 180, 255, 0.35));
    color: var(--darker);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 255, 200, 0.4);
}

.swipe-indicator {
    text-align: center;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(30, 41, 59, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 8px 16px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.swipe-indicator i {
    color: var(--tech-cyan);
    font-size: 1rem;
    animation: swipeHint 1.5s infinite ease-in-out;
}

/* ✨ Animasi lembut ikon swipe */
@keyframes swipeHint {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.8;
    }
    50% {
        transform: translateX(5px);
        opacity: 1;
    }
}

/* Testimonial Section */
.testimonial {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 243, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.testimonial::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: rotate 15s linear infinite;
}

.testimonial-content {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    animation: textColorChange 5s infinite alternate;
}

@keyframes textColorChange {
    0% { color: var(--light); }
    50% { color: var(--tech-teal); }
    100% { color: var(--tech-magenta); }
}

.testimonial-author {
    font-weight: 600;
    color: var(--tech-cyan);
}

.testimonial-role {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-magenta));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.contact-text p {
    color: var(--gray);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--tech-cyan);
    transform: translateY(-5px);
    color: var(--darker);
    box-shadow: 0 0 15px var(--tech-cyan);
}

.contact-form {
    background: rgba(10, 10, 20, 0.7);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 243, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.2),
                0 0 50px rgba(255, 0, 255, 0.15);
    color: #00f3ff; /* teks default neon cyan */
    font-family: 'Orbitron', sans-serif; /* font futuristik */
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ff00ff; /* label warna magenta neon */
    text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: #00f3ff;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #00f3ff;
}

.form-control:focus {
    outline: none;
    border-color: #ff00ff;
    box-shadow: 0 0 15px #ff00ff, 0 0 30px #00f3ff;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #00f3ff, #ff00ff);
    color: #0a0a14;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-shadow: 0 0 8px #00f3ff;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 25px #ff00ff, 0 0 40px #00f3ff;
}

/* Footer */
footer {
    background: rgba(15, 23, 42, 0.95);
    padding: 3rem 5%;
    text-align: center;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--tech-teal), var(--tech-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--tech-teal);
    text-shadow: 0 0 10px var(--tech-teal);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--light);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--tech-cyan);
    transform: translateY(-5px);
    box-shadow: 0 0 15px var(--tech-cyan);
}

.copyright {
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-magenta));
    color: var(--darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 243, 255, 0.3);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 243, 255, 0.5);
    animation: pulse 1.5s infinite;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .certificate-card {
        flex: 0 0 calc(33.333% - 2rem);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .education-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 0;
    }
    
    .timeline-year {
        top: -20px;
        left: -70px;
        right: auto;
    }
    
    .timeline-icon {
        left: 0;
        right: auto;
    }
    
    .certificate-card {
        flex: 0 0 calc(50% - 2rem);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1000;
    }
    
    .hamburger.active div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active div:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-card {
        height: auto;
    }
    
    .project-card-inner {
        height: 400px;
    }

    .tech-orbits {
        width: 200px;
        height: 200px;
        top: -25px;
        left: -25px;
    }
    
    .orbit {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .tech-animation-container {
        height: 300px;
    }
    
    .certificate-card {
        flex: 0 0 calc(100% - 2rem);
    }
    
    .carousel-controls {
        display: none;
    }
    
    .swipe-indicator {
        display: block;
    }
    
    /* Reduce animation intensity on mobile */
    .bg-animation span {
        animation-duration: 20s !important;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-year {
        left: -50px;
        font-size: 0.9rem;
        padding: 0.3rem 1rem;
    }
    
    .timeline-icon {
        width: 40px;
    }
}

/* ===== UPGRADED 3D CERTIFICATES SECTION ===== */

/* Certificate Particles Background - FIXED */
.certificate-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.certificate-particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-magenta), var(--tech-cyan));
    animation: floatParticle 15s infinite linear;
    opacity: 0.7;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.5);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(720deg) scale(1.5);
        opacity: 0;
    }
}

/* Pastikan z-index untuk konten sertifikat lebih tinggi */
.certificates-3d-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    height: 1000px;
    perspective: 1500px;
    z-index: 2; /* Pastikan lebih tinggi dari partikel */
}

.certificates-scene {
    width: 100%;
    height: 120%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-140px) rotateX(10deg);
}

.certificates-carousel-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.certificate-3d-card {
    position: absolute;
    width: 900px;
    height: 550px;
    left: 50%;
    top: 50%;
    transform: translate(50%, 50%);
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.certificate-3d-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.certificate-3d-front,
.certificate-3d-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.certificate-3d-front {
    background: linear-gradient(145deg, rgba(30, 42, 120, 0.9), rgba(21, 32, 118, 0.9));
    transform: translateZ(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.certificate-3d-back {
    background: linear-gradient(145deg, rgba(13, 18, 56, 0.95), rgba(7, 11, 42, 0.95));
    transform: rotateY(180deg);
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(101, 110, 255, 0.3);
    backdrop-filter: blur(10px);
}

.certificate-3d-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.certificate-3d-badge {
position: absolute;
top: 20px;
right: 20px;
background: linear-gradient(45deg, var(--tech-teal), var(--tech-magenta));
color: white;
padding: 8px 15px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
z-index: 3;
box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
text-align: center; 
}

.certificate-3d-content img {
    width: 100%;
    height: 70%;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
}

.certificate-3d-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 20px;
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-3d-card:hover .certificate-3d-overlay {
    opacity: 1;
}

.certificate-3d-card:hover .certificate-3d-content img {
    transform: scale(1.05);
}

.certificate-3d-details {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* vertikal */
    align-items: center;      /* horizontal */
    height: 100%;
}

.certificate-3d-details h3 {
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.certificate-3d-details p {
    color: #c7d2fe;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: center;
}

.view-3d-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(45deg, rgba(0, 255, 200, 0.2), rgba(255, 0, 150, 0.2));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.view-3d-btn:hover {
    background: linear-gradient(45deg, rgba(0, 255, 200, 0.35), rgba(255, 0, 150, 0.35));
    box-shadow: 0 6px 25px rgba(255, 0, 150, 0.4);
    transform: translateY(-2px);
}

/* 3D Positioning for Certificates */
.certificate-3d-card[data-index="0"] {
    transform: rotateY(0deg) translateZ(-140px);
}

.certificate-3d-card[data-index="1"] {
    transform: rotateY(51.4deg) translateZ(-140px);
}

.certificate-3d-card[data-index="2"] {
    transform: rotateY(102.8deg) translateZ(-140px);
}

.certificate-3d-card[data-index="3"] {
    transform: rotateY(154.2deg) translateZ(-140px);
}

.certificate-3d-card[data-index="4"] {
    transform: rotateY(205.6deg) translateZ(-140px);
}

.certificate-3d-card[data-index="5"] {
    transform: rotateY(257deg) translateZ(-140px);
}

.certificate-3d-card[data-index="6"] {
    transform: rotateY(308.4deg) translateZ(-140px);
}

/* 3D Controls */
.certificate-3d-controls {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.control-3d-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--tech-teal), var(--tech-magenta));
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-3d-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.6);
}

/* Certificate Info */
.certificate-3d-info {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    z-index: 10;
}

.certificate-3d-info p {
    margin: 5px 0;
}

.certificate-3d-info i {
    margin-right: 8px;
    color: var(--tech-cyan);
}

/* 3D Certificate Flip Animation */
.certificate-3d-card.flipped .certificate-3d-inner {
    transform: rotateY(180deg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .certificates-3d-container {
        height: 500px;
        perspective: 1000px;
    }
    
    .certificate-3d-card {
        width: 280px;
        height: 400px;
        margin: -140px 0 0 -140px;
    }
    
    .certificate-3d-card[data-index="0"] {
    transform: rotateY(0deg) translateZ(10px);
    }
    
    .certificate-3d-card[data-index="1"] {
    transform: rotateY(0deg) translateZ(10px);
    }
    
    .certificate-3d-card[data-index="2"] {
    transform: rotateY(0deg) translateZ(10px);
    }
    
    .certificate-3d-card[data-index="3"] {
    transform: rotateY(0deg) translateZ(10px);
    }
    
    .certificate-3d-card[data-index="4"] {
    transform: rotateY(0deg) translateZ(10px);
    }
    
    .certificate-3d-card[data-index="5"] {
    transform: rotateY(0deg) translateZ(10px);
    }
    
    .certificate-3d-card[data-index="6"] {
    transform: rotateY(0deg) translateZ(10px);
    }
}

@media (max-width: 768px) {
    #certificates {
        padding: 80px 5%;
    }
    
    .certificates-3d-container {
        height: 400px;
        perspective: 800px;
    }
    
    .certificate-3d-card {
        width: 220px;
        height: 320px;
        margin: -160px 0 0 -110px;
    }
    
    .certificate-3d-card[data-index="0"] {
    transform: rotateY(0deg) translateZ(0px);
    }
    
    .certificate-3d-card[data-index="1"] {
    transform: rotateY(0deg) translateZ(0px);
    }
    
    .certificate-3d-card[data-index="2"] {
    transform: rotateY(0deg) translateZ(0px);
    }
    
    .certificate-3d-card[data-index="3"] {
    transform: rotateY(0deg) translateZ(0px);
    }
    
    .certificate-3d-card[data-index="4"] {
    transform: rotateY(0deg) translateZ(0px);
    }
    
    .certificate-3d-card[data-index="5"] {
    transform: rotateY(0deg) translateZ(0px);
    }
    
    .certificate-3d-card[data-index="6"] {
    transform: rotateY(0deg) translateZ(0px); 
    }
    
    .control-3d-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .certificate-3d-info {
        bottom: 100px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .certificates-3d-container {
        height: 350px;
    }
    
    .certificate-3d-card {
        width: 180px;
        height: 260px;
        margin: -130px 0 0 -90px;
    }
    
    .certificate-3d-card[data-index="0"] {
        transform: rotateY(0deg) translateZ(-140px);
    }
    
    .certificate-3d-card[data-index="1"] {
        transform: rotateY(51.4deg) translateZ(-140px);
    }
    
    .certificate-3d-card[data-index="2"] {
        transform: rotateY(102.8deg) translateZ(-140px);
    }
    
    .certificate-3d-card[data-index="3"] {
        transform: rotateY(154.2deg) translateZ(-140px);
    }
    
    .certificate-3d-card[data-index="4"] {
        transform: rotateY(205.6deg) translateZ(-140px);
    }
    
    .certificate-3d-card[data-index="5"] {
        transform: rotateY(257deg) translateZ(-140px);
    }
    
    .certificate-3d-card[data-index="6"] {
        transform: rotateY(308.4deg) translateZ(-140px);
    }
    
    .certificate-3d-details h3 {
        font-size: 18px;
    }
    
    .certificate-3d-details p {
        font-size: 12px;
    }
    
    .view-3d-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .certificate-3d-info {
        display: none;
    }
}

.certificate-particle {
    will-change: transform;
    pointer-events: none;
}

/* ===== CARD TIDAK MENGECIL SAAT SWIPE ===== */
.certificate-card,
.certificate-card.swiper-slide,
.certificate-card.swiper-slide-active,
.certificate-card.swiper-slide-next,
.certificate-card.swiper-slide-prev {
    transform: none !important;
    scale: 1 !important;
}

/* ===== PERBAIKAN TAMPILAN SERTIFIKAT - FIXED ===== */

/* Container utama */
#certificates {
    position: relative;
    min-height: 100vh;
    padding: 80px 5%;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.7);
}

/* Perbaikan partikel background */
.certificate-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.certificate-particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-magenta));
    animation: floatParticle 20s infinite linear;
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* Container 3D yang diperbaiki */
.certificates-3d-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 600px;
    perspective: 1500px;
    z-index: 2;
}

/* Scene yang diperbaiki */
.certificates-scene {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-400px) rotateX(5deg);
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Carousel 3D yang diperbaiki */
.certificates-carousel-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

/* Kartu sertifikat yang diperbaiki */
.certificate-3d-card {
    position: absolute;
    width: 300px;
    height: 200px;
    left: 50%;
    top: 50%;
    margin-left: -150px;
    margin-top: -100px;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Inner card yang diperbaiki */
.certificate-3d-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 15px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    background: transparent;
}

/* Front dan back card yang diperbaiki */
.certificate-3d-front,
.certificate-3d-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
}

.certificate-3d-front {
    background: linear-gradient(135deg, #1e2a78 0%, #152076 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 50px rgba(0, 243, 255, 0.1);
}

.certificate-3d-back {
    background: linear-gradient(135deg, #0d1238 0%, #070b2a 100%);
    transform: rotateY(180deg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px solid rgba(101, 110, 255, 0.3);
    box-shadow: inset 0 0 50px rgba(99, 102, 241, 0.1);
}

/* Konten card yang diperbaiki */
.certificate-3d-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.certificate-3d-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.certificate-3d-card:hover .certificate-3d-content img {
    transform: scale(1.05);
}

.certificate-3d-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-magenta));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.certificate-3d-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 25px 15px 15px;
    color: white;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-3d-card:hover .certificate-3d-overlay {
    opacity: 1;
}

.certificate-3d-overlay span {
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Detail card back yang diperbaiki */
.certificate-3d-details {
    text-align: center;
    color: white;
}

.certificate-3d-details h3 {
    font-size: 18px;
    margin-bottom: 12px;
    background: linear-gradient(45deg, var(--tech-teal), var(--tech-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.certificate-3d-details p {
    color: #c7d2fe;
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.view-3d-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(45deg, rgba(0, 255, 200, 0.2), rgba(255, 0, 150, 0.2));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.view-3d-btn:hover {
    background: linear-gradient(45deg, rgba(0, 255, 200, 0.35), rgba(255, 0, 150, 0.35));
    box-shadow: 0 6px 25px rgba(255, 0, 150, 0.4);
    transform: translateY(-2px);
}

/* Posisi 3D untuk desktop - DIPERBAIKI */
.certificate-3d-card[data-index="0"] { transform: rotateY(0deg) translateZ(400px); }
.certificate-3d-card[data-index="1"] { transform: rotateY(51.4deg) translateZ(400px); }
.certificate-3d-card[data-index="2"] { transform: rotateY(102.8deg) translateZ(400px); }
.certificate-3d-card[data-index="3"] { transform: rotateY(154.2deg) translateZ(400px); }
.certificate-3d-card[data-index="4"] { transform: rotateY(205.6deg) translateZ(400px); }
.certificate-3d-card[data-index="5"] { transform: rotateY(257deg) translateZ(400px); }
.certificate-3d-card[data-index="6"] { transform: rotateY(308.4deg) translateZ(400px); }

/* Flip animation */
.certificate-3d-card.flipped .certificate-3d-inner {
    transform: rotateY(180deg);
}

/* Kontrol yang diperbaiki */
.certificate-3d-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
    z-index: 10;
}

.control-3d-btn {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tech-teal), var(--tech-magenta));
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.control-3d-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

/* Info text yang diperbaiki */
.certificate-3d-info {
    position: absolute;
    bottom: 110px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    z-index: 10;
}

.certificate-3d-info p {
    margin: 6px 0;
    font-weight: 500;
}

.certificate-3d-info i {
    margin-right: 8px;
    color: var(--tech-cyan);
    font-size: 14px;
}

/* ===== RESPONSIVE DESIGN - DIPERBAIKI ===== */

/* Tablet */
@media (max-width: 992px) {
    .certificates-3d-container {
        height: 500px;
        perspective: 1200px;
    }
    
    .certificate-3d-card {
        width: 250px;
        height: 170px;
        margin-left: -125px;
        margin-top: -85px;
    }
    
    /* Posisi untuk tablet */
    .certificate-3d-card[data-index="0"] { transform: rotateY(0deg) translateZ(300px); }
    .certificate-3d-card[data-index="1"] { transform: rotateY(51.4deg) translateZ(300px); }
    .certificate-3d-card[data-index="2"] { transform: rotateY(102.8deg) translateZ(300px); }
    .certificate-3d-card[data-index="3"] { transform: rotateY(154.2deg) translateZ(300px); }
    .certificate-3d-card[data-index="4"] { transform: rotateY(205.6deg) translateZ(300px); }
    .certificate-3d-card[data-index="5"] { transform: rotateY(257deg) translateZ(300px); }
    .certificate-3d-card[data-index="6"] { transform: rotateY(308.4deg) translateZ(300px); }
    
    .certificates-scene {
        transform: translateZ(-300px) rotateX(5deg);
    }
    
    .certificate-3d-details h3 {
        font-size: 16px;
    }
    
    .certificate-3d-details p {
        font-size: 11px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    #certificates {
        padding: 60px 5%;
        min-height: auto;
    }
    
    .certificates-3d-container {
        height: 400px;
        perspective: 1000px;
    }
    
    .certificate-3d-card {
        width: 200px;
        height: 140px;
        margin-left: -100px;
        margin-top: -70px;
    }
    
    /* Posisi untuk mobile */
    .certificate-3d-card[data-index="0"] { transform: rotateY(0deg) translateZ(200px); }
    .certificate-3d-card[data-index="1"] { transform: rotateY(51.4deg) translateZ(200px); }
    .certificate-3d-card[data-index="2"] { transform: rotateY(102.8deg) translateZ(200px); }
    .certificate-3d-card[data-index="3"] { transform: rotateY(154.2deg) translateZ(200px); }
    .certificate-3d-card[data-index="4"] { transform: rotateY(205.6deg) translateZ(200px); }
    .certificate-3d-card[data-index="5"] { transform: rotateY(257deg) translateZ(200px); }
    .certificate-3d-card[data-index="6"] { transform: rotateY(308.4deg) translateZ(200px); }
    
    .certificates-scene {
        transform: translateZ(-200px) rotateX(5deg);
    }
    
    .certificate-3d-badge {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .certificate-3d-details h3 {
        font-size: 14px;
    }
    
    .certificate-3d-details p {
        font-size: 10px;
    }
    
    .view-3d-btn {
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .control-3d-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .certificate-3d-info {
        bottom: 90px;
        font-size: 11px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .certificates-3d-container {
        height: 350px;
        perspective: 800px;
    }
    
    .certificate-3d-card {
        width: 160px;
        height: 110px;
        margin-left: -80px;
        margin-top: -55px;
    }
    
    /* Posisi untuk small mobile */
    .certificate-3d-card[data-index="0"] { transform: rotateY(0deg) translateZ(150px); }
    .certificate-3d-card[data-index="1"] { transform: rotateY(51.4deg) translateZ(150px); }
    .certificate-3d-card[data-index="2"] { transform: rotateY(102.8deg) translateZ(150px); }
    .certificate-3d-card[data-index="3"] { transform: rotateY(154.2deg) translateZ(150px); }
    .certificate-3d-card[data-index="4"] { transform: rotateY(205.6deg) translateZ(150px); }
    .certificate-3d-card[data-index="5"] { transform: rotateY(257deg) translateZ(150px); }
    .certificate-3d-card[data-index="6"] { transform: rotateY(308.4deg) translateZ(150px); }
    
    .certificates-scene {
        transform: translateZ(-150px) rotateX(5deg);
    }
    
    .certificate-3d-overlay span {
        font-size: 11px;
    }
    
    .certificate-3d-info {
        display: none; /* Sembunyikan info di mobile kecil */
    }
}

/* Pastikan z-index proper */
.certificates-3d-container * {
    transform-style: preserve-3d;
}

/* Loading state */
.certificates-3d-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Performance optimizations */
.certificate-3d-card {
    will-change: transform;
    backface-visibility: hidden;
}