/* Design System & Custom Variables */
:root {
    --bg-base: #0c0d10;
    --bg-surface: #14161b;
    --bg-surface-hover: #1d2027;
    --bg-glass: rgba(20, 22, 27, 0.95); /* Solid translucent background without glassmorphism */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(99, 102, 241, 0.4);
    
    /* Neon gradients / Accent Colors */
    --color-primary: #0066FF; /* Vibrant Blue */
    --color-primary-rgb: 0, 102, 255;
    --color-secondary: #F0F8FF; /* Icy White / Faded Blue */
    --color-secondary-rgb: 240, 248, 255;
    --color-accent: #f43f5e; /* Rose Neon */
    
    /* Text colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    /* Fonts */
    --font-heading: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: #0c0d10;
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    cursor: url('assets/custom-cursor.svg') 6 4, auto;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    cursor: url('assets/custom-cursor.svg') 6 4, auto;
}

/* Custom Cursor Hover Feedback (Inverted color arrow instead of default Hand pointer) */
a, 
button, 
.social-link,
.btn-primary,
.btn-secondary,
input[type="submit"],
input[type="button"],
[role="button"],
.carousel-card,
.carousel-card *,
.hero-carousel-container * {
    cursor: url('assets/custom-cursor-hover.svg') 6 4, pointer !important;
}

/* Force custom hover cursor on native HTML5 Video Controls (Shadow DOM) */
video::-webkit-media-controls,
video::-webkit-media-controls-enclosure,
video::-webkit-media-controls-panel,
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-fullscreen-button {
    cursor: url('assets/custom-cursor-hover.svg') 6 4, pointer !important;
}





/* Thin Background Grid Overlay (GPU-accelerated center-aligned background) */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Changed from 100vw to 100% to match container width excluding OS scrollbar scroll area */
    height: 100%; /* Changed from 100vh to 100% */
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
    transform: translateZ(0);
}

.bg-grid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gunakan SVG ringan alih-alih linear-gradient matematis */
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 1H0V0h60v1zM1 60V1H0v59h1z' fill='%23ffffff' fill-opacity='0.045' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    background-position: center top; /* Center-align the grid pattern relative to page content width */
    background-repeat: repeat;
    transform: translateZ(0); /* Paksa masuk ke compositing layer mandiri */
    opacity: 0.50; /* Diperjelas menjadi 0.50 */
}

/* Layout Utilities */
section {
    padding: 120px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Typography elements */
.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.serif-italic {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tagline {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-primary);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5.6vw, 57px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    gap: 10px;
}

.btn-primary {
    position: relative;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary) 30%, var(--color-primary) 80%, var(--color-primary) 100%);
    background-size: 250% 100%;
    background-position: left center;
    color: #001B44; /* Deep Navy Blue text on white/icy background */
    border: 1px solid transparent; /* Set transparent border to prevent layout shift on hover */
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.2);
    text-shadow: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary svg {
    filter: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    color: var(--color-primary); /* Change text to primary theme blue on hover */
    border-color: var(--color-primary); /* Primary theme blue border on hover */
    transform: scale(1.1); /* Make button 10% larger */
    animation: btnVibrate 0.4s ease-in-out;
    box-shadow: 0 10px 35px rgba(var(--color-primary-rgb), 0.35); /* Soft matching blue halo glow */
}

.btn-primary:hover svg {
    transform: scale(1.2); /* Enlarge SVG icon inside the button by 20% on hover */
    color: var(--color-primary); /* Ensure icon stroke matches primary theme blue */
}

@keyframes btnVibrate {
    0% { transform: scale(1.1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(-3deg); }
    50% { transform: scale(1.1) rotate(3deg); }
    75% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1.1) rotate(0deg); }
}

.sparkle-particle {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%230066FF" xmlns="http://www.w3.org/2000/svg"><path d="M12 0L14.59 9.41L24 12L14.59 14.59L12 24L9.41 14.59L0 12L9.41 9.41L12 0Z"/></svg>'); /* Primary theme blue color fill (#0066FF) */
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10;
    animation: btnSparklePop 1.5s ease-in-out forwards;
}

@keyframes btnSparklePop {
    0% { transform: translate(-50%, -50%) scale(0) rotate(0deg); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1) rotate(90deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(0) rotate(180deg); opacity: 0; }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Custom Icons */
.icon-play {
    width: 18px;
    height: 18px;
}

.icon-play-large {
    width: 32px;
    height: 32px;
    color: white;
}

/* Floating Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-style: italic;
    font-size: 24px;
    font-weight: 800; /* Extra Bold weight */
    text-decoration: none;
    letter-spacing: -1px; /* Adjusted letter spacing */
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: #ffffff; /* Solid white by default */
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    background-clip: initial;
    transition: color 0.3s ease, filter 0.3s ease;
}

.logo:hover span {
    color: #ffffff; /* Retains solid white on hover */
    filter: drop-shadow(0 0 6px rgba(var(--color-primary-rgb), 0.5));
}

.logo-light {
    font-weight: 500; /* Medium weight for Visuals text */
}

.logo-svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.logo:hover .logo-svg {
    transform: rotate(15deg) scale(1.05);
    filter: drop-shadow(0 0 8px rgba(var(--color-primary-rgb), 0.6));
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease, font-size 0.3s ease, font-weight 0.3s ease;
    position: relative;
    padding: 6px 0;
    display: flex;
    align-items: center;
}

.icon-home {
    stroke: currentColor;
    transition: stroke 0.3s ease;
}

/* Remove bottom underline gradient completely */
.nav-link::after {
    display: none;
}

.nav-link:hover, .nav-link.active {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary) 15%, #ffffff 85%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Apply gradient stroke to Home SVG icon when hover/active */
.nav-link:hover .icon-home, .nav-link.active .icon-home {
    stroke: url(#home-grad);
}

.nav-link.active {
    font-size: 18px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero-section {
    width: 100%;
    max-width: 100% !important; /* Timpa batas max-width 1280px agar gambar melebar penuh ke tepi layar */
    min-height: 100vh;
    position: relative;
    background-image: url('https://res.cloudinary.com/fngcyksk/image/upload/v1784900334/bg_xfoswp.webp');
    background-size: cover;
    background-position: center top; /* Mulai dari paling atas */
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    will-change: background-position; /* Optimasi GPU rendering */
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 140px 24px 120px 24px;
}



.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Mini Browser Recommendation Notice */
.browser-notice {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.browser-notice strong {
    color: var(--text-main);
}

.notice-icon {
    font-size: 13px;
}

.notice-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.notice-close:hover {
    color: #ff5555;
}

/* Responsif Mobile */
@media (max-width: 640px) {
    .browser-notice {
        font-size: 11.5px;
        padding: 6px 10px;
        text-align: left;
        max-width: 100%;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--color-primary-rgb), 0.12);
    border: 1px solid rgba(var(--color-primary-rgb), 0.35);
    color: #818cf8;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    box-shadow: 
        0 0 15px rgba(var(--color-primary-rgb), 0.15),
        inset 0 0 8px rgba(var(--color-primary-rgb), 0.1);
}

.hero-badge::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 8px #34d399;
    animation: pulse-opacity 2s infinite alternate; 
}

@keyframes pulse-opacity {
    0% { opacity: 0.4; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(37px, 6vw, 63px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

#typewriter-text {
    display: inline-grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    vertical-align: bottom;
    overflow: visible;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.word-wrapper {
    grid-area: 1 / 1;
    display: inline-flex;
    white-space: nowrap;
    filter: drop-shadow(0 0 10px rgba(0, 102, 255, 0.45)); /* Glowing neon effect matching "Motion" */
}

.word-wrapper .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
    
    /* Clean Horizontal Gradient (no texture noise) */
    background-image: linear-gradient(135deg, var(--color-primary) -40%, #ffffff 110%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* Expand rendering box slightly more to prevent italic serif letters and neon glow from clipping */
    padding: 0.15em 0.18em;
    margin: -0.15em -0.18em;
    vertical-align: bottom;
}

/* Entrance Animation via class activation */
.word-wrapper.active .letter {
    opacity: 1;
    transform: translateY(0);
}

/* Exit Animation via class activation */
.word-wrapper.out .letter {
    opacity: 0;
    transform: translateY(-12px);
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual Box with hover tilt and glow */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(60px);
}

.visual-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

/* 3D Reels Video Carousel */
/* Container Carousel */
.hero-carousel-container {
    perspective: 1200px;
    transform-style: preserve-3d;
    position: relative;
    width: 280px;
    aspect-ratio: 9/16;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-card {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    overflow: hidden;
    will-change: transform, opacity;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease, filter 0.7s ease;
    border: 1.5px solid transparent;
    background-image: linear-gradient(#0c0d10, #0c0d10), linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.35), rgba(255, 255, 255, 0.5));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: -15px 20px 35px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.carousel-card,
.carousel-card * {
    cursor: url('assets/custom-cursor-hover.svg') 6 4, pointer !important;
}

.carousel-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: auto !important;
    cursor: url('assets/custom-cursor-hover.svg') 6 4, pointer !important;
}

.carousel-card.pos-1,
.carousel-card.pos-2,
.carousel-card.pos-3,
.carousel-card.enter-back {
    pointer-events: auto !important;
    cursor: url('assets/custom-cursor-hover.svg') 6 4, pointer !important;
}

/* Status Posisi 3D Diagonal (Desktop) */
/* Posisi 1: Paling Depan */
.carousel-card.pos-1 {
    transform: translate3d(0, 0, 0) rotateX(5deg) rotateY(5deg) scale(1);
    opacity: 1;
    z-index: 3;
    filter: brightness(1);
}

/* Posisi 2: Rapat ke dalam (110px) */
.carousel-card.pos-2 {
    transform: translate3d(110px, 0, -110px) rotateX(10deg) rotateY(15deg) scale(0.88);
    opacity: 0.85;
    z-index: 2;
    filter: brightness(0.80);
}

/* Posisi 3: Rapat ke dalam (220px) */
.carousel-card.pos-3 {
    transform: translate3d(220px, 0, -220px) rotateX(20deg) rotateY(30deg) scale(0.78);
    opacity: 0.65;
    z-index: 1;
    filter: brightness(0.60);
}

/* Animasi Transisi Keluar saat Kartu 1 Mengelupas/Pindah ke Belakang */
.carousel-card.exit-front {
    transform: translate3d(-80px, -40px, 150px) scale(1.15) !important;
    opacity: 0 !important;
    z-index: 4 !important;
}

/* Titik awal saat masuk dari paling belakang */
.carousel-card.enter-back {
    transform: translate3d(300px, 0, -320px) rotateX(30deg) rotateY(45deg) scale(0.68) !important;
    opacity: 0 !important;
    z-index: 0 !important;
}

/* Responsif Mobile (3D Carousel) */
@media (max-width: 768px) {
    .hero-carousel-container {
        perspective: 1000px;
        width: 280px;
        aspect-ratio: 9/16;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .carousel-card {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    }
    .carousel-card.card-center {
        transform: translateX(0) translateZ(0) scale(1) !important;
        opacity: 1 !important;
        z-index: 3 !important;
    }
    .carousel-card.card-left {
        transform: translateX(-60%) translateZ(-150px) scale(0.85) !important;
        opacity: 0.4 !important;
        z-index: 1 !important;
    }
    .carousel-card.card-right {
        transform: translateX(60%) translateZ(-150px) scale(0.85) !important;
        opacity: 0.4 !important;
        z-index: 1 !important;
    }
}

/* =============================================
   Folder Scene + Fan Cards (Glassmorphism)
   ============================================= */









/* Playhead default looping (sweeps from x=90 to x=215) */
.ui-playhead {
    transform: translateX(90px);
    animation: playheadLoop 8s infinite ease-in-out;
}

/* Morphing Keyframe Automation Graph elements */
.automation-line {
    /* Path animation delegated to native SMIL animate tag for cross-browser Safari support */
}
.keyframe-node-a {
    animation: keyframeALoop 8s infinite ease-in-out;
}
.keyframe-node-b {
    animation: keyframeBLoop 8s infinite ease-in-out;
}

/* Mouse Cursor Motion (rests, clicks play, selects pen tool, adds keyframe A, adds keyframe B, selects pointer, pauses, returns) */
.ui-cursor {
    transform: translate(190px, 165px);
    animation: cursorLoop 8s infinite ease-in-out;
}

/* Cursor tool modes (pointer arrow vs pen tool) */
.cursor-pointer {
    opacity: 1;
    animation: cursorTypeLoop 8s infinite ease-in-out;
}
.cursor-pen {
    opacity: 0;
    animation: cursorPenLoop 8s infinite ease-in-out;
}

/* Toolbar active tools backgrounds sync */
.tool-bg-select {
    animation: toolSelectBgLoop 8s infinite ease-in-out;
}
.tool-bg-pen {
    animation: toolPenBgLoop 8s infinite ease-in-out;
}

/* Click Ripple circles (AE Preview play coordinates & Time Graph coordinates) */
.click-ripple-play {
    transform-origin: 209px 80px;
    animation: ripplePlayLoop 8s infinite ease-in-out;
}
.click-ripple-cut {
    transform-origin: 130px 154px;
    animation: rippleCutLoop 8s infinite ease-in-out;
}
.click-ripple-key-b {
    transform-origin: 175px 142px;
    animation: rippleKeyBLoop 8s infinite ease-in-out;
}

/* Playback icons toggling */
.icon-play-state {
    opacity: 1;
    animation: iconPlayLoop 8s infinite ease-in-out;
}
.icon-pause-state {
    opacity: 0;
    animation: iconPauseLoop 8s infinite ease-in-out;
}

/* Video Preview Shape in Viewport (Morphs from square to circle and slides left-to-right in AE Viewport) */
.preview-morph-shape {
    transform-origin: 35px 81px;
    animation: morphLoop 8s infinite ease-in-out;
}
.program-monitor-bar {
    animation: monitorBarLoop 8s infinite linear;
}

/* Audio VU Meter segments active jumping when playing (12% to 72%) */
.vu-bar-1 { animation: vuBarBounce1 8s infinite ease-in-out; }
.vu-bar-2 { animation: vuBarBounce2 8s infinite ease-in-out; }
.vu-bar-3 { animation: vuBarBounce3 8s infinite ease-in-out; }
.vu-bar-4 { animation: vuBarBounce4 8s infinite ease-in-out; }
.vu-bar-5 { animation: vuBarBounce5 8s infinite ease-in-out; }
.vu-bar-6 { animation: vuBarBounce6 8s infinite ease-in-out; }

/* Audio Waveform active vibration when playing (12% to 72%) */
.audio-waveform-path {
    transform-origin: 90px 174px;
    animation: wavePulseLoop 8s infinite ease-in-out;
}

/* Render progress particles background */
.rocket-bg-stars circle {
    animation: renderDrift 6s infinite linear;
}
.rocket-bg-stars circle:nth-child(1) { animation-duration: 5s; }
.rocket-bg-stars circle:nth-child(2) { animation-duration: 7s; }
.rocket-bg-stars circle:nth-child(3) { animation-duration: 4s; }
.rocket-bg-stars circle:nth-child(4) { animation-duration: 6s; }

/* =======================================================
   ANIMATION KEYFRAMES (Synchronized to 8-second sequence)
   ======================================================= */

/* 1. Playhead Sweeps ONLY during playback (sweeps fully across AE time graph track 90px to 215px from 40% to 80%) */
@keyframes playheadLoop {
    0%, 40% { transform: translateX(90px); }
    80% { transform: translateX(215px); }
    84%, 100% { transform: translateX(90px); }
}

/* 3. Program Monitor progress bar matches playhead sweep (starts at 0px and scales to 125px from 40% to 80%) */
@keyframes monitorBarLoop {
    0%, 40% { width: 0px; }
    80% { width: 125px; }
    84%, 100% { width: 0px; }
}

/* 4. Playback Morphing Shape (morphs from 20x20 square to triangle and slides 128px left to right from 40% to 80%) */
@keyframes morphLoop {
    0%, 40% {
        transform: translateX(0px);
        d: path("M 25,71 L 45,71 L 45,91 L 25,91 Z");
        fill: rgba(34, 211, 238, 0.2);
        stroke: #22d3ee;
    }
    60% {
        d: path("M 35,71 L 35,71 L 45,91 L 25,91 Z");
        fill: rgba(99, 102, 241, 0.4);
        stroke: #6366f1;
    }
    80% {
        transform: translateX(128px);
        d: path("M 35,71 L 35,71 L 45,91 L 25,91 Z");
        fill: rgba(34, 211, 238, 0.2);
        stroke: #22d3ee;
    }
    84%, 100% {
        transform: translateX(0px);
        d: path("M 25,71 L 45,71 L 45,91 L 25,91 Z");
        fill: rgba(34, 211, 238, 0.2);
        stroke: #22d3ee;
    }
}

/* 5. Cursor path mapping (rests -> selects Pen tool -> adds keyframe A -> adds keyframe B -> selects Selection tool -> clicks play -> returns) */
@keyframes cursorLoop {
    0% { transform: translate(190px, 165px); }
    5%, 8% { transform: translate(82px, 39px); }     /* Select Pen tool in horizontal top toolbar */
    14%, 16% { transform: translate(130px, 154px); }   /* Add Keyframe A on timeline position track */
    22%, 24% { transform: translate(175px, 142px); }   /* Add Keyframe B on timeline position track */
    29%, 32% { transform: translate(20px, 39px); }     /* Select Selection tool in horizontal top toolbar */
    38%, 41% { transform: translate(209px, 80px); }    /* Click Play in Preview panel */
    52%, 100% { transform: translate(190px, 165px); }  /* Return to rest coordinates */
}

/* 6. Cursor tool modes (Selection is active except during keyframe adding) */
@keyframes cursorTypeLoop {
    0%, 6% { opacity: 1; }
    7%, 30% { opacity: 0; }
    31%, 100% { opacity: 1; }
}
@keyframes cursorPenLoop {
    0%, 6% { opacity: 0; }
    7%, 30% { opacity: 1; }
    31%, 100% { opacity: 0; }
}

/* 7. Toolbar active tool background sync */
@keyframes toolSelectBgLoop {
    0%, 5% { fill: rgba(255,255,255,0.08); }
    7%, 29% { fill: rgba(255,255,255,0); }
    31%, 100% { fill: rgba(255,255,255,0.08); }
}
@keyframes toolPenBgLoop {
    0%, 5% { fill: rgba(255,255,255,0); }
    7%, 29% { fill: rgba(255,255,255,0.08); }
    31%, 100% { fill: rgba(255,255,255,0); }
}

/* 8. Click Ripples */
@keyframes ripplePlayLoop {
    0%, 39% { transform: scale(0); opacity: 0; }
    40% { transform: scale(0.2); opacity: 0.8; }
    43% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(0); opacity: 0; }
}
@keyframes rippleCutLoop {
    0%, 14% { transform: scale(0); opacity: 0; }
    15% { transform: scale(0.2); opacity: 0.8; }
    18% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(0); opacity: 0; }
}
@keyframes rippleKeyBLoop {
    0%, 22% { transform: scale(0); opacity: 0; }
    23% { transform: scale(0.2); opacity: 0.8; }
    26% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(0); opacity: 0; }
}

/* 12. Keyframe nodes scaling (Keyframe node appears only after click) */
@keyframes keyframeALoop {
    0%, 14% { opacity: 0; transform: scale(0); }
    15%, 80% { opacity: 1; transform: scale(1); }
    84%, 100% { opacity: 0; transform: scale(0); }
}
@keyframes keyframeBLoop {
    0%, 22% { opacity: 0; transform: scale(0); }
    23%, 80% { opacity: 1; transform: scale(1); }
    84%, 100% { opacity: 0; transform: scale(0); }
}



/* 9. Play/Pause state toggles */
@keyframes iconPlayLoop {
    0%, 40% { opacity: 1; }
    41%, 80% { opacity: 0; }
    81%, 100% { opacity: 1; }
}
@keyframes iconPauseLoop {
    0%, 40% { opacity: 0; }
    41%, 80% { opacity: 1; }
    81%, 100% { opacity: 0; }
}

/* 10. Audio Waveform active pulsing when playing (40% to 80%) */
@keyframes wavePulseLoop {
    0%, 40% { transform: scaleY(1); opacity: 0.65; }
    50% { transform: scaleY(1.3); opacity: 0.95; }
    60% { transform: scaleY(0.7); opacity: 0.7; }
    70% { transform: scaleY(1.4); opacity: 0.95; }
    80% { transform: scaleY(1); opacity: 0.65; }
    84%, 100% { transform: scaleY(1); opacity: 0.65; }
}

/* 11. Audio VU Meter LED segments (bounces randomly/alternatingly when playing 40% to 80%) */
@keyframes vuBarBounce1 {
    0%, 40% { opacity: 0.25; }
    45% { opacity: 0.9; }
    55% { opacity: 0.4; }
    65% { opacity: 0.9; }
    75% { opacity: 0.3; }
    80% { opacity: 0.25; }
    84%, 100% { opacity: 0.25; }
}
@keyframes vuBarBounce2 {
    0%, 40% { opacity: 0.2; }
    48% { opacity: 0.85; }
    58% { opacity: 0.35; }
    68% { opacity: 0.85; }
    76% { opacity: 0.25; }
    80% { opacity: 0.2; }
    84%, 100% { opacity: 0.2; }
}
@keyframes vuBarBounce3 {
    0%, 40% { opacity: 0.15; }
    50% { opacity: 0.8; }
    60% { opacity: 0.3; }
    70% { opacity: 0.8; }
    78% { opacity: 0.2; }
    80% { opacity: 0.15; }
    84%, 100% { opacity: 0.15; }
}
@keyframes vuBarBounce4 {
    0%, 40% { opacity: 0.1; }
    52% { opacity: 0.75; }
    62% { opacity: 0.25; }
    72% { opacity: 0.75; }
    78% { opacity: 0.15; }
    80% { opacity: 0.1; }
    84%, 100% { opacity: 0.1; }
}
@keyframes vuBarBounce5 {
    0%, 40% { opacity: 0.05; }
    55% { opacity: 0.8; }
    65% { opacity: 0.15; }
    75% { opacity: 0.85; }
    80% { opacity: 0.05; }
    84%, 100% { opacity: 0.05; }
}
@keyframes vuBarBounce6 {
    0%, 40% { opacity: 0.02; }
    58% { opacity: 0.75; }
    68% { opacity: 0.08; }
    78% { opacity: 0.8; }
    80% { opacity: 0.02; }
    84%, 100% { opacity: 0.02; }
}

/* Render progress particles background */
@keyframes renderDrift {
    0% { transform: translateX(-10px); opacity: 0; }
    10% { opacity: 0.25; }
    90% { opacity: 0.25; }
    100% { transform: translateX(240px); opacity: 0; }
}

/* Works Section & Glowing Dividers */
.works-section, .about-section, .contact-section, .footer {
    position: relative;
}

.star-divider {
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.star-divider svg {
    width: 100%;
    height: auto;
}

.star-outline {
    transform-origin: 300px 25px;
    opacity: 0.6; /* Static opacity to save GPU render/rasterization cycles */
}

/* glowPulse keyframes removed */

.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

/* UPDATE EFEK HOVER (Super Ringan & Clean) */
.filter-btn:hover, .filter-btn.active {
    color: var(--text-main);
    background: rgba(var(--color-primary-rgb), 0.15);
    border-color: rgba(var(--color-primary-rgb), 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Single dark shadow */
}

/* Portfolio Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 32px;
}

.work-card {
    position: relative;
    background: #0f1017;
    border-radius: 12px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.work-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ffffff 100%);
    border-radius: 12px;
    z-index: 2;
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.3s ease;
    pointer-events: none;

    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* UPDATE EFEK HOVER (Apple-style Elevate) - Wrapped with hover media query to prevent sticky hover on touch screens */
@media (hover: hover) {
    .work-card:hover {
        background: #14161f; /* Warna latar sedikit lebih terang */
        border-color: transparent; /* Sembunyikan border asli */
        transform: translateY(-8px) scale(1.01); /* Elevasi halus hardware-accelerated */
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); /* Deep shadow hitam murni, no lag */
    }
    .work-card:hover::before {
        opacity: 1;
    }
}

.work-card.portrait {
    grid-column: span 2;
}

.work-card.landscape {
    grid-column: span 3;
}

.card-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0d0e15; /* Dark placeholder base */
    border-top-left-radius: 11px; /* Matches card corner curve */
    border-top-right-radius: 11px;
}

/* Image Shimmer Skeleton Effect */
.card-media.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.04) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.04) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmerSlide 1.5s infinite linear;
    z-index: 2;
}

@keyframes shimmerSlide {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.work-card.portrait .card-media {
    aspect-ratio: 9/16;
}

.work-card.landscape .card-media {
    aspect-ratio: 16/9;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-img.loaded {
    opacity: 1;
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.work-card:hover .card-img,
.work-card:hover .card-video {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 8, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
    cursor: url('assets/custom-cursor-hover.svg') 6 4, pointer;
}

.work-card:hover .card-overlay {
    opacity: 1;
}

.play-icon-wrap {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--text-main);
    color: var(--bg-base);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.play-icon-wrap svg {
    width: 24px;
    height: 24px;
}

.work-card:hover .play-icon-wrap {
    transform: translateY(0);
}

.card-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    border-bottom-left-radius: 11px; /* Retains card corner curve with overflow:visible */
    border-bottom-right-radius: 11px;
}

.card-info-main {
    flex: 1;
    min-width: 0; /* Prevents long text from blowing out flex items */
    display: flex;
    flex-direction: column;
    gap: 6px; /* Spacing between title and description */
}

.card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
    line-height: 1.25;
}

.card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

/* Detail Trigger Button style */
.btn-detail-trigger {
    position: relative; /* Required for pseudo-element positioning */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: url('assets/custom-cursor-hover.svg') 6 4, pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.btn-detail-trigger::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ffffff 100%);
    border-radius: 6px;
    z-index: 2;
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.3s ease;
    pointer-events: none;

    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.btn-detail-trigger svg {
    width: 13.5px;
    height: 13.5px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-detail-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: transparent; /* Hide solid borders to show gradient border */
    color: var(--text-main);
}

@media (hover: hover) {
    .btn-detail-trigger:hover::before {
        opacity: 1;
    }
}

.btn-detail-trigger:hover svg {
    transform: translateX(3px);
}

/* ==========================================
   FLOATING OVERLAY LIGHTBOX MODAL STYLING
   ========================================== */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Anchors content to top for comfortable vertical scrolling */
    padding: 60px 24px;
    opacity: 0;
    pointer-events: none;
    overflow-y: auto; /* Scrollable if modal height exceeds screen viewport height */
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-modal.show {
    opacity: 1;
    pointer-events: auto;
}

/* Blur Backdrop Overlay */
.modal-backdrop {
    position: fixed; /* Locked to viewport */
    inset: 0;
    background: rgba(6, 7, 10, 0.95); /* Deeper opacity to compensate for blur removal */
    z-index: 1;
}

/* Content Panel Box */
.modal-content-wrapper {
    position: relative;
    width: 100%;
    background: rgba(15, 16, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(var(--color-primary-rgb), 0.15);
    z-index: 2;
    overflow: hidden;
    margin: auto; /* Centered in the scrollable viewport */
    
    /* Smooth entrance animation */
    transform: scale(0.96) translateY(15px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

/* Custom width configurations based on content format */
.project-modal.portrait .modal-content-wrapper {
    max-width: 900px; /* Wider wrapper to host side-by-side media and details columns */
}

.project-modal.landscape .modal-content-wrapper {
    max-width: 750px; /* Ramped down width for the stacked layout */
}

.project-modal.show .modal-content-wrapper {
    transform: scale(1) translateY(0);
}

/* Modal Inner Body Layout (Dynamic Hybrid: Grid for Portrait, Flex column for Landscape) */
.project-modal.portrait .modal-body {
    display: grid !important;
    grid-template-columns: auto 1fr;
    align-items: stretch;
}

.project-modal.landscape .modal-body {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
}

/* Top/Left: Media Column styling */
.project-modal.portrait .modal-media-col {
    background: #090a0f;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 350px; /* Locked width for vertical reels */
    aspect-ratio: 9/16;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: none;
}

.project-modal.landscape .modal-media-col {
    background: #090a0f;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-video-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Strict aspect ratio mapping on video container for landscape stacked model */
.project-modal.landscape .modal-video-container {
    aspect-ratio: 16/9;
}

.modal-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bottom/Right: Details Column styling */
.project-modal.portrait .modal-details-col {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    max-height: 100%;
    overflow-y: auto; /* Allow internal scrolling if detail text overflows portrait video height */
}

.project-modal.landscape .modal-details-col {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

/* Close Button (X) */
.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: url('assets/custom-cursor-hover.svg') 6 4, pointer !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.modal-close-btn svg {
    width: 15px;
    height: 15px;
}

.modal-close-btn:hover {
    background: rgba(255, 85, 85, 0.15);
    border-color: rgba(255, 85, 85, 0.4);
    color: #ff5555;
    transform: rotate(90deg);
}

/* Header typography */
.modal-header {
    margin-bottom: 4px; /* Reduced from 10px to bring Title and Description even closer */
}

/* Category badge with rounded rectangle & gradient border */
.modal-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 50px;
    color: var(--text-main);
    background: rgba(13, 14, 21, 0.8);
    position: relative;
    margin-bottom: 16px;
    z-index: 1;
}

.modal-category-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1.2px; /* Border thickness */
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

/* Dynamic Adobe badges in modal specifications */
.modal-adobe-suite {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.modal-adobe-badge-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px 10px 4px 4px;
    border-radius: 6px; /* semi-square radius matching Adobe's logo style */
    transition: border-color 0.3s ease;
}

.modal-adobe-badge-wrap:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.modal-adobe-badge-wrap .software-badge {
    margin: 0 !important;
    transform: none !important;
}

.modal-adobe-percent {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    line-height: 1.15; /* Reduced from 1.25 to bring lines closer on wrap */
    letter-spacing: -0.8px; /* Premium tight letter spacing */
}

.modal-desc {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 20px 0; /* Standardized to 20px for symmetry */
}

/* Specs layout (now full width for Creative Pipeline Breakdown) */
.modal-specs {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px; /* Standardized to 20px for symmetry */
    margin-bottom: 0; /* Controlled by meta bottom wrapper instead */
}

.modal-spec-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Header layout containing Category Badge and Tags side-by-side */
.modal-header-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px; /* Further increased to 32px to push Category & Tags further from Title */
}

.modal-category-badge {
    margin: 0 !important; /* Reset layout margins */
}

/* Dynamic Pipeline Breakdown CSS styling */
.modal-pipeline-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}

/* Dynamic Segmented Bar for Creative Pipeline Breakdown */
.modal-pipeline-bar-wrapper {
    margin-top: 8px; /* Reduced to 8px to raise Software Allocation closer to pipeline rows */
}

.project-modal.landscape .modal-pipeline-bar-wrapper {
    grid-column: 1 / -1; /* Stretch across both columns in landscape grid */
}

.modal-pipeline-bar-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modal-pipeline-bar-label svg {
    margin-top: -1.5px; /* Vertical micro-alignment tweak for uppercase text */
    flex-shrink: 0;
}

.modal-pipeline-bar {
    display: flex;
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: visible; /* Changed from hidden to show child tooltips */
    gap: 1px; /* Subtle gap between segments */
}

.pipeline-bar-segment {
    height: 100%;
    position: relative;
    cursor: url('assets/custom-cursor.svg') 6 4, auto; /* Keep default custom cursor instead of expanding hover dot */
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Tooltip styling for the pipeline bar segments */
.pipeline-bar-segment::after {
    content: attr(data-percentage);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-3px);
    background: rgba(15, 16, 22, 0.98);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    z-index: 20;
}

.pipeline-bar-segment::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(3px);
    border-width: 4px 4px 0 4px;
    border-style: solid;
    border-color: rgba(15, 16, 22, 0.98) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 20;
}

.pipeline-bar-segment:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-8px);
}

.pipeline-bar-segment:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Specific software branding colors for segments */
.pipeline-bar-segment.ae {
    background: #9999FF; /* AE Purple */
}

.pipeline-bar-segment.pr {
    background: #CC7AFF; /* PR Pinkish Purple */
}

.pipeline-bar-segment.ai {
    background: #FF9A00; /* AI Orange */
}

.pipeline-bar-segment.ps {
    background: #31A8FF; /* PS Blue */
}

/* Landscape mode: Split the 4 badges into 2 rows of 2 columns */
.project-modal.landscape .modal-pipeline-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 28px;
}

.modal-pipeline-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-pipeline-software-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-pipeline-software-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
}

/* Disable tooltips entirely on software badges inside details modal (tooltips only active on front cards) */
.modal-pipeline-software-info .software-badge::after,
.modal-pipeline-software-info .software-badge::before {
    display: none !important;
    content: none !important;
}

.modal-pipeline-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted);
    padding-left: 27px; /* Align text under title, shifting past the badge width */
}

.modal-spec-label {
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.modal-spec-label svg {
    margin-top: -1.5px; /* Visual micro-alignment shift to perfectly center the icon with uppercase text cap-height */
    flex-shrink: 0;
}

.modal-spec-value {
    font-size: 14.5px;
    color: var(--text-main);
    font-weight: 500;
}

/* Bottom Metadata Row (Moved from top specifications) */
.modal-meta-bottom {
    display: flex;
    justify-content: flex-start; /* Changed from space-between to group them closer */
    align-items: center;
    gap: 35px; /* Compact distance between items adjusted to 35px */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px; /* Standardized to 20px for symmetry */
    margin-top: 28px; /* Increased from 20px to push bottom border further down from the progress bar */
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    width: 14.5px;
    height: 14.5px;
    color: var(--text-muted);
    stroke-width: 2.2px; /* Slightly thicker line weight for high contrast */
    flex-shrink: 0;
}

.modal-meta-value {
    font-size: 13.5px;
    color: var(--text-main);
    font-weight: 500;
}

/* Modal tags style (now next to category, clean without border lines) */
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.modal-tag-badge {
    font-size: 13px; /* Enlarged from 11px */
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px 10px; /* Expanded padding from 3px 8px */
    border-radius: 4px;
    text-transform: lowercase; /* Lowercase letters for aesthetic tags */
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.modal-tag-badge:hover {
    color: var(--color-secondary);
    background: rgba(var(--color-primary-rgb), 0.1);
    border-color: rgba(var(--color-primary-rgb), 0.3);
}

/* Tablet & Mobile Layout Stacking */
@media (max-width: 992px) {
    .modal-body {
        grid-template-columns: 1fr !important; /* Stack columns vertically */
    }
    
    .project-modal.portrait .modal-media-col,
    .project-modal.landscape .modal-media-col {
        width: 100% !important; /* Take full width on stack */
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .modal-details-col {
        padding: 32px;
    }
    
    .modal-content-wrapper {
        max-height: 90vh;
        overflow-y: auto; /* Allow scroll if height spills over */
    }

    .modal-specs {
        margin-bottom: 20px;
    }

    .modal-meta-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .project-modal.landscape .modal-pipeline-list {
        grid-template-columns: 1fr !important; /* Stack landscape pipeline columns back to single column on mobile */
        gap: 12px;
    }

    .project-modal.landscape .modal-pipeline-bar-wrapper {
        grid-column: span 1 !important; /* Reset layout span on mobile viewports */
    }
}

.card-cat {
    font-size: 11px;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

.card-software-suite {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.software-badge {
    position: relative;
    width: 19px;
    height: 19px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1.2px solid;
    transition: var(--transition-fast);
    padding-bottom: 0.5px;
}

.software-badge.ae {
    color: #9999FF;
    border-color: rgba(153, 153, 255, 0.4);
    background: rgba(0, 0, 91, 0.45);
}

.software-badge.pr {
    color: #9999FF;
    border-color: rgba(153, 153, 255, 0.4);
    background: rgba(0, 0, 91, 0.45);
}

.software-badge.ai {
    color: #FF9A00;
    border-color: rgba(255, 154, 0, 0.4);
    background: rgba(51, 0, 0, 0.45);
}

.software-badge.ps {
    color: #31A8FF;
    border-color: rgba(49, 168, 255, 0.4);
    background: rgba(0, 30, 54, 0.45);
}

/* Hover glow effect */
.software-badge:hover {
    transform: translateY(-1.5px);
}
.software-badge.ae:hover, .software-badge.pr:hover {
    box-shadow: 0 0 8px rgba(153, 153, 255, 0.5);
    border-color: rgba(153, 153, 255, 0.95);
}
.software-badge.ai:hover {
    box-shadow: 0 0 8px rgba(255, 154, 0, 0.5);
    border-color: rgba(255, 154, 0, 0.95);
}
.software-badge.ps:hover {
    box-shadow: 0 0 8px rgba(49, 168, 255, 0.5);
    border-color: rgba(49, 168, 255, 0.95);
}

/* Pure CSS Tooltip (Positioned left of the badge, vertically centered for cards) */
.software-badge::after {
    content: attr(data-percentage);
    position: absolute;
    top: 50%;
    bottom: auto;
    right: 100%;
    left: auto;
    transform: translateY(-50%) translateX(-6px);
    background: rgba(15, 16, 22, 0.98);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.software-badge::before {
    content: "";
    position: absolute;
    top: 50%;
    bottom: auto;
    right: 100%;
    left: auto;
    transform: translateY(-50%) translateX(2px);
    border-width: 4px 0 4px 4px; /* Points right */
    border-style: solid;
    border-color: transparent transparent transparent rgba(15, 16, 22, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 10;
}

.software-badge:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-12px); /* Shift left on hover */
}

.software-badge:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-4px); /* Shift left on hover */
}


.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
    text-align: left;
}

/* About & Skills Section */
.about-section {
}

.about-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.about-info {
    display: flex;
    flex-direction: column;
}

.about-info .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-text {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
    font-weight: 300;
}

/* About Profile Layout with 3x4 Avatar */
.about-profile-wrap {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 8px;
}

.profile-avatar-box {
    width: 145px; /* Enlarged width for 3x4 ratio */
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid transparent;
    background-image: linear-gradient(#0c0d10, #0c0d10), linear-gradient(135deg, rgba(var(--color-primary-rgb), 0.4), rgba(255, 255, 255, 0.6));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-avatar-box:hover {
    transform: translateY(-4px) scale(1.02);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-bio-text {
    display: flex;
    flex-direction: column;
}

.profile-bio-text .about-text {
    margin-bottom: 14px; /* Reduced gap between paragraph 1 and paragraph 2 */
}

.profile-bio-text .about-text:last-child {
    margin-bottom: 0;
}

/* Responsif Mobile (max-width: 640px) */
@media (max-width: 640px) {
    .about-profile-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .profile-avatar-box {
        width: 155px; /* Adjusted size for mobile screens */
    }
}

.about-skills {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.skills-title {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.skills-title svg {
    color: var(--color-secondary);
    flex-shrink: 0;
}

.about-skills .skills-title {
    width: 100%;
    max-width: 240px;
    text-align: center;
}

.specialty-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.specialty-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.specialty-header {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    box-shadow: 0 0 5px rgba(var(--color-primary-rgb), 0.25);
}

/* Software Stack Grid */
.software-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px; /* Diperkecil dari 16px */
    width: 100%;
    max-width: 240px;
}

.software-card {
    position: relative;
    background: #0f1017;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 12px 14px; /* Diperkecil dari 16px */
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px; /* Diperkecil dari 16px */
    transition: var(--transition-smooth);
    z-index: 1;
}

.software-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ffffff 100%);
    border-radius: 10px;
    z-index: 2;
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.3s ease;
    pointer-events: none;

    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* UPDATE EFEK HOVER */
@media (hover: hover) {
    .software-card:hover {
        background: #14161f;
        border-color: transparent;
        transform: translateY(-6px) scale(1.02);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }
    .software-card:hover::before {
        opacity: 1;
    }
}

.soft-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 34px; /* Disesuaikan dengan tinggi ikon baru */
    flex-grow: 1;
}

.soft-name {
    font-size: 14px; /* Diperkecil dari 15px */
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Styling baru untuk tag (Design) di Figma */
.soft-tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dark);
    margin-left: 4px;
    vertical-align: middle;
}

.soft-level {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transform: translateY(4px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
}

.level-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
    height: 12px;
    vertical-align: middle;
}

.level-indicator .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
}

.level-beginner .dot-1 {
    background: currentColor;
}

.level-intermediate .dot-1,
.level-intermediate .dot-2 {
    background: currentColor;
}

.level-advanced .dot-1,
.level-advanced .dot-2,
.level-advanced .dot-3 {
    background: currentColor;
}

.level-expert .dot-1,
.level-expert .dot-2,
.level-expert .dot-3,
.level-expert .dot-4 {
    background: currentColor;
}

.soft-level.level-expert {
    color: #D946EF; /* Fuchsia / Violet (Expert) */
}

.soft-level.level-advanced {
    color: var(--color-accent);
}

.soft-level.level-intermediate {
    color: #FBBF24; /* Amber / Yellow */
}

.soft-level.level-beginner {
    color: #10B981; /* Emerald Green */
}

.software-card:hover .soft-level {
    opacity: 1;
    max-height: 16px;
    margin-top: 4px;
    transform: translateY(0);
}

.soft-icon {
    width: 34px; /* Diperkecil dari 40px */
    height: 34px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 14px; /* Diperkecil dari 16px */
    filter: grayscale(100%);
    opacity: 0.55;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Kembalikan warna aslinya saat kartu di-hover */
.software-card:hover .soft-icon {
    filter: grayscale(0%);
    opacity: 1;
}

.ae-color {
    background: rgba(0, 0, 91, 0.6);
    color: #9999FF;
    border: 1px solid #9999FF;
}

.ai-color {
    background: rgba(51, 0, 0, 0.6);
    color: #FF9A00;
    border: 1px solid #FF9A00;
}

.ps-color {
    background: rgba(0, 30, 54, 0.6);
    color: #31A8FF;
    border: 1px solid #31A8FF;
}

.pr-color {
    background: rgba(0, 0, 91, 0.6);
    color: #9999FF;
    border: 1px solid #9999FF;
}

/* Styling khusus agar SVG Figma tampil pas tanpa border/background sisa */
.figma-icon {
    background: transparent !important;
    border: none !important;
}

.software-logo {
    width: 22px; /* Ukuran disesuaikan agar proporsional dengan teks inisial Adobe */
    height: 22px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.software-card:hover .software-logo {
    transform: scale(1.15); /* Efek pop-up khusus untuk logo Figma */
}

.soft-name {
    font-weight: 500;
    font-size: 15px;
}

/* Contact Section */
.contact-section {
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Balanced 2-column layout after removing YouTube */
    gap: 20px;
    margin-top: 48px;
    max-width: 720px; /* Reduced width to prevent cards from over-stretching horizontally */
    margin-left: auto;
    margin-right: auto;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    position: relative;
    background: #0f1017;
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition-smooth);
    z-index: 1;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #ffffff 100%);
    border-radius: 12px;
    z-index: 2;
    opacity: 0;
    will-change: opacity;
    transition: opacity 0.3s ease;
    pointer-events: none;

    padding: 1px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* UPDATE EFEK HOVER */
@media (hover: hover) {
    .contact-card:hover {
        background: #14161f;
        border-color: transparent;
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }
    .contact-card:hover::before {
        opacity: 1;
    }
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(var(--color-secondary-rgb), 0.08);
    color: var(--color-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.card-youtube .contact-icon-box {
    transition: var(--transition-smooth);
}

.card-youtube:hover .contact-icon-box {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.25);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.contact-svg {
    width: 24px;
    height: 24px;
}

.contact-card-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.email-copy-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

#email-address {
    font-size: 14px;
    color: var(--text-muted);
}

.btn-copy {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-copy:hover {
    color: var(--text-main);
}

.icon-copy {
    width: 18px;
    height: 18px;
}

/* Tooltip copy info */
.tooltip {
    visibility: hidden;
    background-color: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-align: center;
    border-radius: 4px;
    padding: 4px 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 11px;
}

.btn-copy:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 20px; /* Increased from 12px to give more visual distance between Instagram and Discord */
    flex-wrap: nowrap;
    margin-top: 4px;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social-link:hover {
    color: var(--color-primary);
}

.social-svg-icon {
    width: 18px;
    height: 18px;
}


/* Footer Section */
.footer {
    background: var(--bg-base);
    padding: 40px 24px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copy {
    color: var(--text-dark);
    font-size: 14px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* Lightbox Modal Styles */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(6, 6, 8, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 32px;
    right: 32px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 48px;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

.lightbox-content {
    width: 90%;
    max-width: 1000px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: max-width 0.4s ease;
}

.lightbox-content.portrait-mode {
    max-width: 380px;
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
    outline: none;
}

/* Mobile Responsiveness Rules */
@media (max-width: 1024px) {
    section {
        padding: 80px 24px;
    }
    
    .hero-section {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 80px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
        width: 100%;
    }
    
    .hero-visual {
        justify-content: center;
        transform: translateX(0);
    }
    
    .visual-card-wrapper {
        max-width: 90vw;
        width: 90vw;
        transform: scale(0.9);
        transform-origin: center center;
    }

    .carousel-card.card-left {
        transform: translateX(-50%) translateZ(-150px) scale(0.85);
    }

    .carousel-card.card-right {
        transform: translateX(50%) translateZ(-150px) scale(0.85);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-info .section-title {
        text-align: center;
    }
    
    .about-skills {
        align-items: flex-start;
    }
    
    .about-skills .skills-title {
        text-align: left;
        max-width: 100%;
    }
    
    .software-grid {
        max-width: 100%;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        background-position: 80% top; /* Fallback sebelum JS memperbarui parallax */
    }

    .menu-toggle {
        display: flex;
    }
    
    .visual-card-wrapper {
        max-width: 100%;
        width: 100%;
        transform: scale(0.85);
        transform-origin: center center;
    }
    
    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background: var(--bg-surface);
        flex-direction: column;
        align-items: center;
        padding: 60px 0;
        gap: 40px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .work-card.portrait, .work-card.landscape {
        grid-column: span 1;
    }
    
    br.desktop-only {
        display: none;
    }

}

/* Mobile nav-toggle transition animation */
.menu-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Scroll Reveal Animations */
.reveal .reveal-child {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active .reveal-child {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delay Classes */
.reveal.active .reveal-child.delay-1 { transition-delay: 0.1s; }
.reveal.active .reveal-child.delay-2 { transition-delay: 0.22s; }
.reveal.active .reveal-child.delay-3 { transition-delay: 0.34s; }
.reveal.active .reveal-child.delay-4 { transition-delay: 0.46s; }
.reveal.active .reveal-child.delay-5 { transition-delay: 0.58s; }
.reveal.active .reveal-child.delay-6 { transition-delay: 0.7s; }

/* Reset delays on hover for instant interactions */
.reveal-child:hover {
    transition-delay: 0s !important;
}

/* Text Sparkle Effect */
.serif-italic.gradient-text {
    position: relative;
    display: inline-block;
    padding-right: 0.15em;
    padding-bottom: 0.15em;
    margin-right: -0.15em;
    margin-bottom: -0.15em;
    
    /* Clean theme color gradient (no texture noise) */
    background-image: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}





/* Premium Toast Notification */
/* Premium Toast Notification (Aligned to top-right on desktop to avoid back-to-top overlap) */
.toast-notification {
    position: fixed;
    top: 28px;
    right: 28px;
    background: rgba(10, 10, 15, 0.96); /* Solid dark translucent instead of glassmorphism */
    border: 1px solid rgba(0, 102, 255, 0.35);
    border-radius: 12px;
    padding: 14px 20px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 102, 255, 0.15);
    transform: translateY(-40px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10000;
    pointer-events: none; /* Let clicks pass through */
}

.toast-notification.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.toast-icon {
    color: #00FF66; /* Glowing success green */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

/* Premium Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.95); /* Solid dark translucent instead of glassmorphism */
    border: 1px solid rgba(0, 102, 255, 0.35);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
}

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

.back-to-top-btn:hover {
    background: rgba(15, 15, 25, 0.90);
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.back-to-top-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover .back-to-top-icon {
    transform: translateY(-2px);
}

/* Responsive adjustment for Mobile */
@media (max-width: 480px) {
    /* Paksa tombol tetap sejajar horizontal dan rata tengah */
    .hero-actions {
        display: flex;
        flex-direction: row !important; /* Paksa menyamping */
        justify-content: center;
        flex-wrap: nowrap !important; /* Cegah tombol jatuh ke bawah */
        gap: 12px; /* Sedikit rapatkan celah antar tombol */
        width: 100%;
    }

    /* Sesuaikan skala tombol agar muat bersebelahan di layar HP sempit */
    .hero-actions .btn {
        padding: 12px 18px; /* Kurangi padding bawaan agar tidak kepanjangan */
        font-size: 14px; /* Kecilkan teks sedikit */
        width: auto;
        max-width: none;
        white-space: nowrap; /* Cegah teks tombol terbelah dua baris */
    }
    
    /* Kecilkan juga ikon di dalam tombol utama agar proporsional */
    .hero-actions .btn-primary svg {
        width: 16px !important;
        height: 16px !important;
    }

    .visual-card-wrapper {
        max-width: 100%;
        width: 100%;
        transform: scale(0.72);
        transform-origin: center center;
        margin-top: -15px;
        margin-bottom: -15px;
    }

    /* Shift toast to top center on mobile to avoid covering buttons */
    .toast-notification {
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: auto;
        justify-content: center;
        transform: translateY(-30px) scale(0.95);
    }
    
    /* Responsive card info layout for small screens */
    .card-info {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .work-card .card-title {
        font-size: clamp(14px, 4vw, 16px);
        line-height: 1.3;
    }

    .work-card .card-desc {
        font-size: 12px;
        line-height: 1.4;
    }

    .card-meta {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        margin-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding-top: 10px;
    }

    .card-software-suite {
        grid-template-columns: repeat(4, 19px); /* Arrange badges horizontally (1 row of 4) for mobile space efficiency */
        gap: 4px;
    }


    
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* Media Query Penyelamat: otomatis mematikan efek blur pada device yang mengaktifkan mode hemat daya/performa */
@media (prefers-reduced-transparency: reduce) {
    .work-card, .software-card, .contact-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 16, 22, 0.9) !important; /* Warna fallback lebih solid */
    }
}

/* Matikan animasi melayang bola cahaya latar belakang pada layar HP/Tablet agar hemat baterai & CPU */
@media (max-width: 768px) {
    .glow-orb {
        animation: none !important;
        transform: translateZ(0) !important;
    }
}

/* Sembunyikan tombol download spesifik di kontrol media browser */
video::-internal-media-controls-download-button {
    display: none !important;
}



