:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-color: #0ea5e9; /* Light Blue */
    --accent-glow: rgba(14, 165, 233, 0.6);
    --accent-secondary: #8b5cf6; /* Purple */
    --accent-secondary-glow: rgba(139, 92, 246, 0.6);
    --glass-bg: rgba(20, 20, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Backgrounds & Particles */
.bg-gradient {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: 
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.1), transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1), transparent 30%);
    z-index: -2; pointer-events: none;
}

.particles {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1; pointer-events: none;
}
.particle {
    position: absolute;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 20s infinite linear;
}
@keyframes float-particle {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) translateX(100px) rotate(360deg); opacity: 0; }
}

/* Cursor Glow */
.cursor-glow {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    border-radius: 50%;
    position: fixed; pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: screen;
    filter: blur(40px);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
h1, h2, h3, h4, .logo { font-family: var(--font-heading); }

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.glass-card:hover {
    border-color: rgba(255,255,255,0.15);
}

/* 3D Tilt Effect Utilities (applied via JS) */
.tilt-card { transform-style: preserve-3d; perspective: 1000px; }
.tilt-card-inner { transform: translateZ(50px); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none; font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; border: none; font-family: var(--font-main);
    position: relative; overflow: hidden;
    z-index: 1;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    z-index: -1; transition: opacity 0.3s; opacity: 0;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px var(--accent-glow);
}
.glow-effect {
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.btn-secondary {
    background: rgba(255,255,255,0.05); color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

/* Nav */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 100;
    padding: 1.5rem 0; transition: all 0.4s ease;
}
.navbar.scrolled {
    padding: 1rem 0; background: rgba(5,5,5,0.8);
    backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border);
}
.nav-container { display: flex; justify-content: center; align-items: center; }
.logo { font-size: 2rem; font-weight: 800; color: white; text-decoration: none; letter-spacing: -1px; display: none; /* Logo disembunyikan sesuai permintaan */ }
.logo span { color: var(--accent-color); }
.nav-links { display: flex; list-style: none; gap: 3.5rem; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none; font-weight: 600;
    font-size: 1.15rem; text-transform: uppercase; letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; padding: 0.5rem 0; display: inline-block;
}
.nav-links a:hover, .nav-links a.active { 
    color: white; 
    transform: scale(1.15) translateY(-3px);
    animation: hologram-glitch 0.3s infinite;
}
.nav-links a:active {
    transform: scale(0.9) translateY(2px);
    color: cyan;
    text-shadow: 0 0 20px cyan, 4px 0 0 red, -4px 0 0 blue;
    transition: all 0.1s;
    animation: none;
}
@keyframes hologram-glitch {
    0% { text-shadow: 2px 0 0 #ff003c, -2px 0 0 #00e5ff, 0 0 15px rgba(255,255,255,0.8); opacity: 1; }
    25% { text-shadow: -3px 0 0 #ff003c, 3px 0 0 #00e5ff, 0 0 10px rgba(14, 165, 233, 0.8); opacity: 0.8; transform: scale(1.15) translateY(-3px) skewX(2deg); }
    50% { text-shadow: 2px 0 0 #ff003c, -2px 0 0 #00e5ff, 0 0 20px rgba(139, 92, 246, 0.8); opacity: 1; transform: scale(1.15) translateY(-3px) skewX(-2deg); }
    75% { text-shadow: -2px 0 0 #ff003c, 2px 0 0 #00e5ff, 0 0 15px rgba(255,255,255,0.8); opacity: 0.9; transform: scale(1.15) translateY(-3px) skewX(1deg); }
    100% { text-shadow: 2px 0 0 #ff003c, -2px 0 0 #00e5ff, 0 0 10px rgba(14, 165, 233, 0.8); opacity: 1; transform: scale(1.15) translateY(-3px) skewX(0deg); }
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
    width: 0; height: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
    box-shadow: 0 0 10px var(--accent-glow);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; }
.hamburger span { display: block; width: 30px; height: 2px; background: white; transition: 0.3s; }

/* Sections */
section { padding: 8rem 0; min-height: 100vh; display: flex; align-items: center; position: relative; }
.section-title { margin-bottom: 5rem; text-align: center; }
.section-title h2 { font-size: 3rem; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; }
.section-title span { background: linear-gradient(to right, var(--accent-color), var(--accent-secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.section-title .line { width: 80px; height: 4px; background: linear-gradient(to right, var(--accent-color), transparent); margin: 1rem auto 0; border-radius: 2px; }

/* Hero */
.hero { padding-top: 10rem; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.greeting { font-size: 1.5rem; color: var(--accent-color); font-weight: 600; margin-bottom: 0.5rem; letter-spacing: 2px; text-transform: uppercase; }
.name { font-size: 3.2rem; line-height: 1.1; margin-bottom: 1.5rem; font-weight: 800; background: linear-gradient(to right, #fff, #a1a1aa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.degree { font-size: 1.8rem; color: var(--accent-color); font-weight: 600; text-shadow: 0 0 15px var(--accent-glow); display: inline-block; letter-spacing: 1px; -webkit-text-fill-color: var(--accent-color); background: none; margin-left: 5px; }
.typewriter-wrapper { font-size: 1.8rem; color: var(--text-secondary); margin-bottom: 3rem; font-family: var(--font-heading); height: 2.5rem; }
.typewriter-text { font-weight: 600; color: white; }
.cursor { animation: blink 1s infinite; color: var(--accent-color); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-cta { display: flex; gap: 1.5rem; }

/* Profile Visual */
.hero-visual { display: flex; justify-content: center; position: relative; }
.profile-container { position: relative; width: 350px; height: 350px; }
.profile-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(circle, var(--accent-secondary-glow), transparent 70%);
    filter: blur(30px); z-index: -1;
    animation: rotate-glow 10s linear infinite;
}
@keyframes rotate-glow { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
.profile-img-wrapper {
    width: 100%; height: 100%; border-radius: 50%; padding: 8px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    position: relative; z-index: 1; overflow: hidden;
}
.profile-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--bg-color); border: 5px solid var(--bg-color); }
.floating-badge {
    position: absolute; background: rgba(20,20,25,0.8); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1); padding: 0.8rem 1.5rem; border-radius: 30px;
    font-weight: 600; font-size: 0.9rem; z-index: 2; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.badge-1 { top: 10%; left: -10%; animation: float 4s ease-in-out infinite; color: #38bdf8; }
.badge-2 { bottom: 15%; right: -15%; animation: float 5s ease-in-out infinite reverse; color: #a78bfa; }
.badge-3 { bottom: -5%; left: 20%; animation: float 6s ease-in-out infinite 1s; color: #34d399; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    width: 30px; height: 50px; border: 2px solid rgba(255,255,255,0.3); border-radius: 15px;
}
.scroll-indicator span {
    position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 6px; height: 6px; background: white; border-radius: 50%;
    animation: scroll-down 1.5s infinite;
}
@keyframes scroll-down { 0% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 20px); opacity: 0; } }

/* About & Edu */
.about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 3rem; }
.about-text { padding: 3rem; font-size: 1.1rem; line-height: 1.8; }
.about-text .lead { font-size: 1.4rem; color: white; font-weight: 600; margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.5rem; color: var(--text-secondary); }
.about-text p:last-child { margin-bottom: 0; }
.education-card { padding: 3rem; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; background: linear-gradient(180deg, rgba(30,30,40,0.6) 0%, rgba(20,20,25,0.6) 100%); }
.edu-icon { font-size: 4rem; margin-bottom: 1rem; }
.education-card h3 { color: var(--accent-color); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px;}
.education-card h4 { font-size: 1.4rem; color: white; margin-bottom: 0.5rem; }
.edu-degree { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1rem; }
.edu-year { display: inline-block; padding: 0.4rem 1rem; background: rgba(14, 165, 233, 0.1); color: var(--accent-color); border-radius: 20px; font-weight: bold;}

/* Skills Grid */
.skills-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.skill-item {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem; border-radius: 16px; display: flex; align-items: center; gap: 1.5rem;
    transition: all 0.4s ease; cursor: pointer; position: relative; overflow: hidden;
}
.skill-item::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.5s; z-index: 1;
}
.skill-item:hover {
    transform: translateY(-5px); background: rgba(255,255,255,0.08);
    border-color: var(--accent-color); box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.skill-item:hover::before { left: 100%; }
.skill-icon { font-size: 2rem; background: rgba(0,0,0,0.3); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 12px; }
.skill-item span { font-weight: 600; font-size: 1.1rem; letter-spacing: 0.5px; z-index: 2; position: relative; }

/* Timeline Experience */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 2rem 0; }
.timeline-line {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 4px; height: 100%; background: rgba(255,255,255,0.05); border-radius: 2px;
}
.timeline-progress {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 4px; height: 0%; background: linear-gradient(to bottom, var(--accent-color), var(--accent-secondary));
    border-radius: 2px; z-index: 1; transition: height 0.1s;
    box-shadow: 0 0 15px var(--accent-glow);
}
.timeline-item { position: relative; margin-bottom: 4rem; width: 100%; display: flex; justify-content: space-between; align-items: center; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-dot {
    position: absolute; left: 50%; transform: translate(-50%, 0);
    width: 24px; height: 24px; background: var(--bg-color); border: 4px solid var(--accent-color);
    border-radius: 50%; z-index: 2; transition: all 0.3s;
}
.timeline-item:hover .timeline-dot { background: var(--accent-color); box-shadow: 0 0 20px var(--accent-color); transform: translate(-50%, 0) scale(1.3); }
.timeline-content { width: 45%; padding: 2.5rem; position: relative; }
.timeline-date { display: inline-block; padding: 0.4rem 1.2rem; background: rgba(139, 92, 246, 0.1); color: #c4b5fd; border-radius: 20px; font-size: 0.9rem; font-weight: 700; margin-bottom: 1rem; border: 1px solid rgba(139, 92, 246, 0.2); }
.timeline-role { font-size: 1.5rem; color: white; margin-bottom: 0.5rem; }
.timeline-company { font-size: 1.1rem; color: var(--accent-color); margin-bottom: 1.5rem; font-weight: 500; }
.timeline-desc { list-style: none; }
.timeline-desc li { position: relative; padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-secondary); font-size: 0.95rem; }
.timeline-desc li::before { content: '▹'; position: absolute; left: 0; color: var(--accent-color); font-weight: bold; }
.timeline-desc strong { color: white; }

/* Contact */
.contact-centered { max-width: 900px; margin: 0 auto; }
.contact-info { padding: 3.5rem; text-align: center; }
.contact-info h3 { font-size: 2.2rem; margin-bottom: 1rem; color: white; }
.contact-info > p { color: var(--text-secondary); margin-bottom: 3.5rem; font-size: 1.1rem; }
.info-items { display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.info-item { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.info-icon { width: 60px; height: 60px; background: rgba(14, 165, 233, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: var(--accent-color); transition: all 0.3s; }
.info-item:hover .info-icon { background: var(--accent-color); color: white; transform: scale(1.1); box-shadow: 0 10px 20px var(--accent-glow); }
.info-item h4 { color: white; margin-bottom: 0.3rem; font-size: 1.1rem; }
.info-item p { color: var(--text-secondary); }
.contact-form-container { padding: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.input-group input, .input-group textarea {
    width: 100%; padding: 1.2rem; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; color: white; font-family: var(--font-main); font-size: 1rem; transition: all 0.3s;
}
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--accent-color); background: rgba(0,0,0,0.5); box-shadow: 0 0 15px rgba(14, 165, 233, 0.2); }
.submit-btn { width: 100%; font-size: 1.1rem; padding: 1.2rem; margin-top: 1rem; }
.submit-btn .arrow { transition: transform 0.3s; display: inline-block; margin-left: 8px;}
.submit-btn:hover .arrow { transform: translateX(8px); }

/* Footer */
footer { text-align: center; padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-secondary); background: rgba(0,0,0,0.5); }

/* Animations & Transitions */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.slide-in-right { opacity: 0; transform: translateX(50px); transition: all 0.8s ease; }
.slide-in-right.visible { opacity: 1; transform: translateX(0); }
.slide-in-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s ease; }
.slide-in-left.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.2s; } .delay-2 { transition-delay: 0.4s; } .delay-3 { transition-delay: 0.6s; }

/* Staggered delays using CSS variables */
[style*="--delay"] { transition-delay: calc(var(--delay) * 0.1s); }

/* Reveal Text Animation */
.reveal-text h2 { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
.reveal-text h2 span { display: inline-block; transform: translateY(100%); opacity: 0; transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s; }
.reveal-text.visible h2 span { transform: translateY(0); opacity: 1; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .hero-visual { order: -1; }
    .hero-cta { justify-content: center; }
    .name { font-size: 3.5rem; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .timeline::before { left: 30px; }
    .timeline-progress { left: 30px; }
    .timeline-line { left: 30px; }
    .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; align-items: flex-end; }
    .timeline-dot { left: 30px; transform: translateX(-50%); }
    .timeline-item:hover .timeline-dot { transform: translate(-50%, 0) scale(1.3); }
    .timeline-content { width: calc(100% - 70px); }
    .slide-in-right, .slide-in-left { transform: translateX(30px); }
}

@media (max-width: 768px) {
    .hamburger { display: flex; z-index: 101; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(5,5,5,0.95); backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
    section { padding: 6rem 0; }
    .name { font-size: 2.8rem; }
    .typewriter-wrapper { font-size: 1.2rem; }
    .hero-cta { flex-direction: column; }
    .profile-container { width: 280px; height: 280px; }
    .contact-form-container, .contact-info, .about-text, .education-card { padding: 2rem; }
}

@media print {
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    body { background-color: #050505 !important; color: white !important; }
    .fade-in-up, .slide-in-right, .slide-in-left { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
    .navbar, .hamburger, .scroll-indicator, .bg-gradient, .particles { display: none !important; }
    section { padding: 3rem 0 !important; min-height: auto !important; page-break-inside: avoid; }
    .hero { padding-top: 2rem !important; }
    .glass-card { border: 1px solid rgba(255,255,255,0.2) !important; background: rgba(20, 20, 25, 1) !important; }
    .timeline-progress { height: 100% !important; }
    @page { margin: 1cm; }
}
