/* ========================================
   Portfolio Website - Saepul Rohman
   Modern, Professional CSS
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --accent: #06b6d4;
    --accent-light: #22d3ee;

    --bg-primary: #0a0a1a;
    --bg-secondary: #111127;
    --bg-card: #16162e;
    --bg-card-hover: #1e1e3a;

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(99, 102, 241, 0.3);

    --gradient-primary: linear-gradient(135deg, #6366f1, #06b6d4);
    --gradient-accent: linear-gradient(135deg, #818cf8, #22d3ee);
    --gradient-dark: linear-gradient(180deg, #0a0a1a, #111127);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --nav-height: 72px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Remove blue flash on tap (Android/mobile) */
}

#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -10;
    pointer-events: none;
    opacity: 0.6; /* Slight transparency so content stands out clearly */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.no-scroll {
    overflow: hidden;
}

::selection {
    background: var(--primary);
    color: white;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Preloader ---------- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--accent);
    animation: spin 1s linear infinite;
}

.loader-text {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- Custom Cursor ---------- */
.cursor-dot,
.cursor-ring {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transition: transform 0.15s ease;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    transform: translate(-50%, -50%);
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(99, 102, 241, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.hover {
    width: 50px;
    height: 50px;
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    height: var(--nav-height);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(10, 10, 26, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar.scrolled {
    top: 16px;
    width: 95%;
    max-width: 1200px;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.15);
}

/* Prevent scrolling when menu is open */
body.no-scroll {
    overflow: hidden !important;
    touch-action: none;
}

/* When sidebar is open: float the navbar ABOVE the overlay so hamburger→X is always accessible */
body.no-scroll .navbar {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    z-index: 1050; /* above nav-menu (1001) */
    
    /* Reset layout so .nav-menu can be truly full screen */
    transform: none;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;

    /* Make layout transition instant on open */
    transition: 
        background 0.3s, 
        backdrop-filter 0.3s,
        -webkit-backdrop-filter 0.3s,
        border 0.3s,
        box-shadow 0.3s,
        width 0s, max-width 0s, top 0s, left 0s, transform 0s, border-radius 0s !important;
}

/* Make the hamburger lines bright white when sidebar is open */
body.no-scroll .hamburger-line {
    background: #ffffff;
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-bracket {
    color: var(--primary);
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Desktop: hide sidebar-specific elements */
.sidebar-header,
.sidebar-divider,
.sidebar-footer,
.sidebar-overlay,
.sidebar-close-btn,
.sidebar-profile,
.sidebar-avatar,
.sidebar-profile-info,
.sidebar-status-badge,
.nav-link-icon,
.nav-link-arrow {
    display: none;
}

.sidebar-nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Icons inside .nav-link-icon are hidden via .nav-link-icon { display:none } on desktop.
   Do NOT globally hide all <i> inside nav links here — that breaks mobile icon display. */

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-light);
}

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

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Language Switcher & Controls */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Shared style for theme toggle and lang switcher */
.theme-toggle, .lang-switcher {
    height: 38px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Theme toggle - dark mode (default) */
.theme-toggle {
    width: 38px;
    min-width: 38px;
    border-radius: 50%;
    padding: 0;
    color: var(--text-primary);
}

.theme-toggle i {
    font-size: 1rem;
    transition: transform 0.3s ease, color 0.2s ease;
    line-height: 1;
}

.theme-toggle i.fa-sun {
    display: none;
    color: #f59e0b;
}

.theme-toggle i.fa-moon {
    display: inline-block;
    color: #a5b4fc;
}

.theme-toggle:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.15);
}

.theme-toggle:hover i.fa-moon {
    transform: rotate(-15deg) scale(1.1);
}

.theme-toggle:active {
    transform: scale(0.92);
}

/* Light mode overrides handled in neo-brutalism section below */
body.light-mode .theme-toggle,
body.light-mode .lang-switcher {
    background: #FFF8F0;
    border: 2px solid #1A1A2E;
    box-shadow: 2px 2px 0px #1A1A2E;
    transition: all 0.15s ease;
    border-radius: 10px;
}

.lang-switcher:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

body.light-mode .theme-toggle:hover,
body.light-mode .lang-switcher:hover {
    background: #FFE0B2;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #1A1A2E;
}

.lang-switcher {
    gap: 2px;
    padding: 0 4px;
    border-radius: 100px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0 14px;
    border-radius: 100px;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
}

body.light-mode .lang-btn {
    color: #64748b;
    border-radius: 8px;
}

body.light-mode .lang-btn:hover {
    color: #334155;
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: white !important;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.lang-divider {
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.4;
    margin: 0 2px;
}

body.light-mode .lang-divider {
    color: #cbd5e1;
    opacity: 1;
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: calc(var(--nav-height) + 40px) 24px 60px;
    overflow: hidden;
}

.hero-bg-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-name {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.name-first {
    display: block;
    color: var(--text-primary);
}

.name-last {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hero-title-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.hero-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-light);
    font-family: var(--font-mono);
}

.typing-cursor {
    font-family: var(--font-mono);
    font-weight: 300;
    color: var(--primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Socials */
.hero-socials {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.social-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle white border */
    background: rgba(255, 255, 255, 0.03); /* Very subtle transparent background */
    color: var(--text-secondary); /* Greyish icon color */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-circle:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-light);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 360px;
    height: 360px;
}

.hero-image-border {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.6;
    animation: rotateBorder 8s linear infinite;
}

@keyframes rotateBorder {
    to { transform: rotate(360deg); }
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-card);
    z-index: 1;
}

.hero-img-base,
.hero-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.hero-img-base {
    z-index: 1;
}

.hero-img-top {
    z-index: 2;
    cursor: crosshair;
    pointer-events: auto; /* Allow interactions for erasing */
}

.hero-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
}

.hero-avatar i {
    font-size: 6rem;
    color: var(--primary-light);
    opacity: 0.3;
}

.hero-avatar span {
    font-family: var(--font-mono);
    font-size: 5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: -10px;
}

.floating-badge {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
    box-shadow: var(--shadow-md);
}

.floating-badge i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.badge-1 {
    top: 10%;
    right: -10px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 15%;
    right: -20px;
    animation-delay: 1s;
}

.badge-3 {
    bottom: 10%;
    left: -10px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1;
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    animation: bounce 2s ease-in-out infinite;
    color: var(--primary-light);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ---------- Section Common ---------- */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.section-tag i {
    font-size: 0.8rem;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 0 auto;
}

/* ---------- About Section ---------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-width: 380px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid var(--border);
}

.about-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-icon i {
    font-size: 3rem;
    color: white;
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 26, 0.8));
}

.about-image {
    position: relative;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.exp-number {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
}

.exp-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    line-height: 1.2;
}

.about-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-primary);
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.detail-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.detail-item i {
    font-size: 1.1rem;
    color: var(--primary-light);
    width: 20px;
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ---------- Experience / Timeline ---------- */
.experience {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-company-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.company-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-icon i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.timeline-company {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.timeline-location i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.timeline-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-freelance {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-light);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-magang {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-parttime {
    background: rgba(253, 203, 110, 0.15);
    color: #fdcb6e;
    border: 1px solid rgba(253, 203, 110, 0.3);
}

.badge-fulltime {
    background: rgba(0, 184, 148, 0.15);
    color: #55efc4;
    border: 1px solid rgba(0, 184, 148, 0.3);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.timeline-date i {
    margin-right: 4px;
}

.timeline-tasks {
    margin-bottom: 16px;
}

.timeline-tasks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-tasks li i {
    color: var(--accent);
    font-size: 0.7rem;
    margin-top: 6px;
    flex-shrink: 0;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tags span {
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--primary-light);
}

/* ---------- Skills Section ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    align-items: stretch; /* Makes it "persisi" (precise) by equalizing height in rows */
    width: 100%;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skill-category:last-child {
    grid-column: span 2;
    width: 100%;
}

.skill-category:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.skill-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon-wrapper i {
    font-size: 1.2rem;
    color: white;
}

.skill-category-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.skill-item {
    margin-bottom: 18px;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.skill-percent {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-light);
    font-family: var(--font-mono);
}

.skill-bar {
    height: 6px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Soft Skills */
.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.soft-skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.soft-skill-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.soft-skill-item i {
    font-size: 1rem;
    color: var(--accent);
}

.soft-skill-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---------- Portfolio Section ---------- */
.portfolio {
    background: var(--bg-secondary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.portfolio-card.hidden {
    display: none;
}

.portfolio-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-placeholder i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.4);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 26, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

body.light-mode .portfolio-overlay {
    background: rgba(255, 255, 255, 0.2);
}

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

.portfolio-actions {
    display: flex;
    gap: 12px;
}

.portfolio-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(20px) scale(0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.portfolio-card:hover .portfolio-btn {
    transform: translateY(0) scale(1);
}

.portfolio-btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tech span {
    padding: 4px 10px;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 100px;
    font-size: 0.72rem;
    color: var(--accent-light);
    font-weight: 500;
}

/* ---------- Education Section ---------- */
.education-card {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.education-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.edu-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.edu-icon i {
    font-size: 2rem;
    color: white;
}

.edu-info {
    flex: 1;
}

.edu-degree {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.edu-school {
    font-size: 0.95rem;
    color: var(--primary-light);
    margin-bottom: 6px;
}

.edu-location {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.edu-location i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.edu-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.edu-meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.edu-meta-item i {
    width: 18px;
    text-align: center;
    color: var(--primary-light);
    font-size: 0.85rem;
}

.edu-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.edu-badge i {
    font-size: 1.5rem;
    color: var(--accent);
}

.edu-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-light);
}

/* ---------- Contact Section ---------- */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.8;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card-icon i {
    font-size: 1.1rem;
    color: var(--primary-light);
}

.contact-card-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

a.contact-card-value:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 1;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 14px 14px 14px 42px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.textarea-wrapper {
    align-items: flex-start;
}

.textarea-wrapper i {
    top: 14px;
}

.textarea-wrapper textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 12px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links h4,
.footer-contact-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-contact-info p i {
    margin-right: 8px;
    color: var(--primary-light);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-made i {
    color: #e74c3c;
    margin: 0 3px;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

body.no-scroll .back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

/* ---------- Animations ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-right"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate].animated {
    opacity: 1;
    transform: translate(0);
}

/* ---------- Responsive Design ---------- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    /* Center the typing text row */
    .hero-title-wrapper {
        justify-content: center;
    }

    .hero-cta,
    .hero-socials {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 280px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .about-image-card {
        max-width: 300px;
    }

    .about-details {
        text-align: left;
    }

    .about-info .btn {
        margin: 0 auto;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Override desktop display:none for sidebar elements */
    .sidebar-header { display: flex; }
    .sidebar-divider { display: flex; }
    .sidebar-footer { display: flex; }
    .sidebar-overlay { display: none !important; } /* nav-menu IS the overlay */
    .nav-link-icon { display: inline-flex; }
    .nav-link-arrow { display: inline-flex; }

    /* Ensure icons inside nav-link-icon are visible */
    .nav-link-icon i { display: inline-block !important; }

    /* ===== FULL-SCREEN OVERLAY SIDEBAR ===== */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: #08081a;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        padding: 0;
        z-index: 1001;
        overflow: hidden;
        display: flex;

        /* Hidden state: scale + fade + clip from top */
        opacity: 0;
        visibility: hidden;
        transform: scale(1.03);
        transition:
            opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0s linear 0.35s;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        transition:
            opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
            visibility 0s linear 0s;
    }

    /* ---- accent line at very top ---- */
    .nav-menu::before {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
        flex-shrink: 0;
    }

    /* Stagger animation for nav items */
    .nav-menu.active .sidebar-nav-list li {
        animation: sidebarItemIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    .nav-menu.active .sidebar-nav-list li:nth-child(1) { animation-delay: 0.06s; }
    .nav-menu.active .sidebar-nav-list li:nth-child(2) { animation-delay: 0.12s; }
    .nav-menu.active .sidebar-nav-list li:nth-child(3) { animation-delay: 0.18s; }
    .nav-menu.active .sidebar-nav-list li:nth-child(4) { animation-delay: 0.24s; }
    .nav-menu.active .sidebar-nav-list li:nth-child(5) { animation-delay: 0.30s; }
    .nav-menu.active .sidebar-nav-list li:nth-child(6) { animation-delay: 0.36s; }

    .nav-menu.active .sidebar-header {
        animation: sidebarItemIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both 0.01s;
    }
    .nav-menu.active .sidebar-footer {
        animation: sidebarItemIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both 0.38s;
    }

    @keyframes sidebarItemIn {
        from { opacity: 0; transform: translateY(14px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* ===== SIDEBAR HEADER ===== */
    .sidebar-header {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px 16px;
        background: rgba(99, 102, 241, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        flex-shrink: 0;
        gap: 12px;
    }

    .sidebar-profile {
        display: flex;
        align-items: center;
        gap: 14px;
        flex: 1;
        min-width: 0;
    }

    .sidebar-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 2px solid rgba(99, 102, 241, 0.5);
        overflow: hidden;
        flex-shrink: 0;
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
    }

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

    .sidebar-profile-info {
        display: flex;
        flex-direction: column;
        gap: 3px;
        min-width: 0;
    }

    .sidebar-name {
        font-size: 1rem;
        font-weight: 700;
        color: #f1f5f9;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sidebar-role {
        font-size: 0.75rem;
        color: var(--text-muted);
        font-family: var(--font-mono);
        white-space: nowrap;
    }

    .sidebar-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 2px 9px;
        background: rgba(16, 185, 129, 0.12);
        border: 1px solid rgba(16, 185, 129, 0.28);
        border-radius: 100px;
        font-size: 0.68rem;
        color: #34d399;
        font-weight: 600;
        margin-top: 3px;
        width: fit-content;
    }

    .status-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #34d399;
        box-shadow: 0 0 6px rgba(52, 211, 153, 0.8);
        flex-shrink: 0;
        animation: pulseDot 2.2s ease-in-out infinite;
    }

    @keyframes pulseDot {
        0%, 100% { transform: scale(1); opacity: 1; }
        50%       { transform: scale(0.75); opacity: 0.5; }
    }

    /* ---- Close Button ---- */
    .sidebar-close-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #94a3b8;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 1rem;
        transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.3s;
        flex-shrink: 0;
    }

    .sidebar-close-btn:active {
        background: rgba(99, 102, 241, 0.2);
        border-color: rgba(99, 102, 241, 0.5);
        color: #fff;
        transform: rotate(90deg);
    }

    /* ===== SECTION LABEL ===== */
    .sidebar-divider {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 18px 24px 8px;
        flex-shrink: 0;
    }

    .sidebar-divider span {
        font-size: 0.65rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.2);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-family: var(--font-mono);
        white-space: nowrap;
    }

    .sidebar-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: rgba(255, 255, 255, 0.05);
    }

    /* ===== NAV LIST ===== */
    .sidebar-nav-list {
        list-style: none;
        margin: 0;
        padding: 10px 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 100%;
        flex: 1;
    }

    .sidebar-nav-list li {
        width: 100%;
    }

    .sidebar-nav-list .nav-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        font-size: 1rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.55);
        border-radius: 14px;
        transition: background 0.2s ease, color 0.2s ease;
        width: 100%;
        text-decoration: none;
        position: relative;
    }

    .sidebar-nav-list .nav-link:active {
        background: rgba(99, 102, 241, 0.12);
        color: rgba(255, 255, 255, 0.9);
    }

    .sidebar-nav-list .nav-link.active {
        background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.2) 0%,
            rgba(6, 182, 212, 0.1) 100%);
        color: #ffffff;
        box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.22);
    }

    /* Icon box */
    .nav-link-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.07);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.35);
        flex-shrink: 0;
        transition: background 0.2s, border-color 0.2s, color 0.2s;
    }

    .sidebar-nav-list .nav-link.active .nav-link-icon {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(6, 182, 212, 0.25));
        border-color: rgba(99, 102, 241, 0.45);
        color: #a5b4fc;
        box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
    }

    /* Text */
    .nav-link-text {
        flex: 1;
    }

    .sidebar-nav-list .nav-link.active .nav-link-text {
        font-weight: 600;
    }

    /* Arrow */
    .nav-link-arrow {
        display: inline-flex;
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.18);
        transition: color 0.2s, transform 0.2s;
    }

    .sidebar-nav-list .nav-link.active .nav-link-arrow {
        color: #818cf8;
        transform: translateX(2px);
    }

    /* ===== FOOTER ===== */
    .sidebar-footer {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 16px 24px 32px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        flex-shrink: 0;
    }

    .sidebar-footer-label {
        font-size: 0.65rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.2);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-family: var(--font-mono);
    }

    .sidebar-social-links {
        display: flex;
        gap: 12px;
    }

    .sidebar-social-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
        text-decoration: none;
    }

    .sidebar-social-btn:active {
        background: var(--gradient-primary);
        border-color: transparent;
        color: #fff;
        transform: scale(0.92);
        box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
    }

    /* ===== REST OF MOBILE STYLES ===== */
    .navbar {
        width: 96%;
        top: 12px;
        border-radius: 50px;
        /* Delay layout transitions when closing so the menu can fade out smoothly first */
        transition: 
            background 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
            backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            -webkit-backdrop-filter 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
            width 0s 0.35s, 
            max-width 0s 0.35s, 
            top 0s 0.35s, 
            left 0s 0.35s, 
            transform 0s 0.35s, 
            border-radius 0s 0.35s;
    }
    
    .navbar.scrolled {
        width: 96%;
        top: 10px;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 14px 20px;
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 30px);
        padding-bottom: 80px;
    }

    .hero-name { font-size: 2.2rem; }
    .hero-stats { gap: 24px; }
    .stat-number { font-size: 1.6rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .skill-category:last-child { grid-column: auto; }
    .portfolio-grid { grid-template-columns: 1fr; }

    .education-card {
        flex-direction: column;
        text-align: center;
    }

    .edu-meta {
        align-items: center;
    }

    .timeline { padding-left: 30px; }
    .timeline::before { left: 10px; }
    .timeline-marker { left: -30px; }
    .timeline-header { flex-direction: column; }
    .timeline-meta { align-items: flex-start; }
    .footer-content { grid-template-columns: 1fr; }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .about-details { grid-template-columns: 1fr; }
    .soft-skills-grid { grid-template-columns: 1fr; }
    .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 1.8rem;
    }


    .hero-image-wrapper {
        width: 220px;
        height: 220px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .portfolio-filters {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .section {
        padding: 70px 0;
    }

    .timeline-card {
        padding: 20px;
    }
}

/* ---------- Gallery Modal ---------- */
.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: visibility 0.4s, opacity 0.4s ease;
}

.gallery-modal.active {
    opacity: 1;
    visibility: visible;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.light-mode .gallery-overlay {
    background: rgba(255, 255, 255, 0.85);
}

.gallery-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.gallery-modal.active .gallery-content {
    transform: scale(1);
    opacity: 1;
}

.gallery-img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

body.light-mode .gallery-img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-nav:hover {
    background: var(--gradient-primary);
    border-color: transparent;
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-caption {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 16px;
    text-align: center;
}

.gallery-counter {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 6px;
    font-family: var(--font-mono);
}

@media (max-width: 768px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }
}

/* ====== NEO BRUTALISM LIGHT THEME ====== */
body.light-mode {
    --primary: #3D5AFE;
    --primary-light: #304FFE;
    --primary-dark: #2941CB;
    --primary-glow: rgba(61,90,254,0.15);
    --accent: #FF6D00;
    --accent-light: #FF8F00;
    --bg-primary: #FFF8F0;
    --bg-secondary: #FFF2E5;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFF8F0;
    --text-primary: #1A1A2E;
    --text-secondary: #3D3D5C;
    --text-muted: #6B6B8D;
    --border: #1A1A2E;
    --border-hover: #3D5AFE;
    --gradient-primary: #3D5AFE;
    --gradient-accent: #FF6D00;
    --gradient-dark: #FFF8F0;
    --shadow-sm: 3px 3px 0px #1A1A2E;
    --shadow-md: 4px 4px 0px #1A1A2E;
    --shadow-lg: 6px 6px 0px #1A1A2E;
    --shadow-glow: 4px 4px 0px #1A1A2E;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
}

/* ----- Base ----- */
body.light-mode ::selection {
    background: #3D5AFE;
    color: #fff;
}

body.light-mode #matrix-bg { opacity: 0.7; }

body.light-mode #preloader {
    background: #FFF8F0;
}

body.light-mode .loader-ring {
    border-top-color: #3D5AFE;
    border-right-color: #FF6D00;
}

body.light-mode .loader-text {
    background: none;
    -webkit-text-fill-color: #1A1A2E;
    color: #1A1A2E;
}

/* ----- Cursor ----- */
body.light-mode .cursor-dot { background: #1A1A2E; }
body.light-mode .cursor-ring { border: 2px solid #1A1A2E; }

/* ----- Navbar ----- */
body.light-mode .navbar {
    background: #FFF8F0;
    border: 2px solid #1A1A2E;
    box-shadow: 4px 4px 0px #1A1A2E;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.light-mode .navbar.scrolled {
    background: #FFF8F0;
    border: 2px solid #1A1A2E;
    box-shadow: 4px 4px 0px #1A1A2E;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.light-mode .nav-logo .logo-bracket { color: #FF6D00; }
body.light-mode .nav-logo .logo-text {
    background: none;
    -webkit-text-fill-color: #1A1A2E;
    color: #1A1A2E;
}

body.light-mode .nav-link {
    color: #3D3D5C;
    border-radius: 4px;
}

body.light-mode .nav-link:hover { color: #1A1A2E; }

body.light-mode .nav-link.active {
    background: #3D5AFE;
    color: #fff;
    border: 2px solid #1A1A2E;
    box-shadow: 2px 2px 0px #1A1A2E;
}

body.light-mode .theme-toggle,
body.light-mode .lang-switcher {
    background: #FFF8F0;
    border: 2px solid #1A1A2E;
    box-shadow: 2px 2px 0px #1A1A2E;
    border-radius: 6px;
    transition: all 0.15s ease;
    height: 38px;
}

body.light-mode .theme-toggle {
    width: 40px;
    min-width: 40px;
    padding: 0;
}

body.light-mode .theme-toggle:hover,
body.light-mode .lang-switcher:hover {
    background: #FFE0B2;
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0px #1A1A2E;
}

body.light-mode .theme-toggle:active,
body.light-mode .lang-switcher:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #1A1A2E;
}

body.light-mode .theme-toggle i {
    font-size: 1.05rem;
    line-height: 1;
}

body.light-mode .lang-switcher {
    border-radius: 6px;
    gap: 0;
    padding: 0 4px;
}

body.light-mode .lang-btn {
    color: #6B6B8D;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.15s ease;
}

body.light-mode .lang-btn:hover {
    color: #1A1A2E;
    background: rgba(26, 26, 46, 0.05);
}

body.light-mode .lang-btn.active {
    background: #FF6D00;
    color: #fff !important;
    border: 1.5px solid #1A1A2E;
    box-shadow: 1px 1px 0px #1A1A2E;
}

body.light-mode .lang-divider { color: #1A1A2E; opacity: 0.3; }
body.light-mode .hamburger-line { background: #1A1A2E; }

/* ----- Hero ----- */
body.light-mode .hero-greeting {
    color: #FF6D00;
    font-weight: 700;
    text-transform: uppercase;
}

body.light-mode .name-first { color: #1A1A2E; }
body.light-mode .name-last {
    background: none;
    -webkit-text-fill-color: #3D5AFE;
    color: #3D5AFE;
}

body.light-mode .hero-title-label { color: #3D3D5C; }
body.light-mode .hero-title {
    color: #FF6D00;
    background: none;
    -webkit-text-fill-color: #FF6D00;
}

body.light-mode .typing-cursor { color: #FF6D00; }
body.light-mode .hero-description { color: #3D3D5C; }

/* Hero Image */
body.light-mode .hero-image-border {
    background: #3D5AFE;
    opacity: 1;
    animation: none;
    border: 3px solid #1A1A2E;
}

body.light-mode .hero-image-container {
    border: 3px solid #1A1A2E;
    box-shadow: 6px 6px 0px #1A1A2E;
    background: #FFF8F0;
}

body.light-mode .floating-badge {
    background: #FFF8F0;
    border: 2px solid #1A1A2E;
    box-shadow: 3px 3px 0px #1A1A2E;
    border-radius: 8px;
}

body.light-mode .floating-badge i { color: #3D5AFE; }

/* Social Circles */
body.light-mode .social-circle {
    border: 2px solid #1A1A2E;
    background: #FFF8F0;
    color: #1A1A2E;
    box-shadow: 2px 2px 0px #1A1A2E;
    border-radius: 8px;
}

body.light-mode .social-circle:hover {
    background: #3D5AFE;
    color: #fff;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #1A1A2E;
    border-color: #1A1A2E;
}

/* Stats */
body.light-mode .stat-number {
    background: none;
    -webkit-text-fill-color: #3D5AFE;
    color: #3D5AFE;
}

body.light-mode .stat-suffix { color: #FF6D00; }
body.light-mode .stat-label { color: #6B6B8D; }

/* Scroll Indicator */
body.light-mode .scroll-indicator span { color: #6B6B8D; }
body.light-mode .scroll-arrow { color: #3D5AFE; }

/* ----- Buttons ----- */
body.light-mode .btn {
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.light-mode .btn-primary {
    background: #3D5AFE;
    color: #fff;
    border: 2px solid #1A1A2E;
    box-shadow: 4px 4px 0px #1A1A2E;
}

body.light-mode .btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #1A1A2E;
}

body.light-mode .btn-outline {
    background: #FFF8F0;
    color: #1A1A2E;
    border: 2px solid #1A1A2E;
    box-shadow: 4px 4px 0px #1A1A2E;
}

body.light-mode .btn-outline:hover {
    background: #FFE0B2;
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #1A1A2E;
    border-color: #1A1A2E;
}
/* ----- Section Common ----- */
body.light-mode .section-title { color: #1A1A2E; }
body.light-mode .section-line { background: #1A1A2E; height: 4px; border-radius: 0; }
body.light-mode .section-tag { background: #FFE0B2; border: 2px solid #1A1A2E; color: #1A1A2E; box-shadow: 2px 2px 0px #1A1A2E; border-radius: 4px; }

/* ----- About ----- */
body.light-mode .about-image-card { border: 3px solid #1A1A2E; box-shadow: 6px 6px 0px #1A1A2E; border-radius: 8px; background: #FFF8F0; }
body.light-mode .about-image-overlay { background: none; }
body.light-mode .experience-badge { background: #FF6D00; border: 3px solid #1A1A2E; box-shadow: 3px 3px 0px #1A1A2E; }
body.light-mode .about-subtitle { color: #3D5AFE; }
body.light-mode .about-text { color: #3D3D5C; }
body.light-mode .about-text strong { color: #1A1A2E; }
body.light-mode .detail-item { background: #FFF8F0; border: 2px solid #1A1A2E; box-shadow: 3px 3px 0px #1A1A2E; border-radius: 6px; }
body.light-mode .detail-item:hover { background: #FFE0B2; transform: translate(-2px,-2px); box-shadow: 5px 5px 0px #1A1A2E; border-color: #1A1A2E; }
body.light-mode .detail-item i { color: #3D5AFE; }
body.light-mode .detail-label { color: #6B6B8D; }
body.light-mode .detail-value { color: #1A1A2E; }

/* ----- Timeline ----- */
body.light-mode .experience { background: #FFF2E5; }
body.light-mode .timeline::before { background: #1A1A2E; width: 3px; }
body.light-mode .timeline-dot { background: #3D5AFE; border: 3px solid #1A1A2E; box-shadow: none; width: 16px; height: 16px; }
body.light-mode .timeline-card { background: #fff; border: 2px solid #1A1A2E; box-shadow: 4px 4px 0px #1A1A2E; border-radius: 8px; }
body.light-mode .timeline-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0px #1A1A2E; border-color: #1A1A2E; }
body.light-mode .company-icon { background: #E8EAF6; border: 2px solid #1A1A2E; border-radius: 6px; }
body.light-mode .company-icon i { color: #3D5AFE; }
body.light-mode .timeline-company { color: #1A1A2E; }
body.light-mode .timeline-location { color: #6B6B8D; }
body.light-mode .timeline-badge { border: 2px solid #1A1A2E; border-radius: 4px; font-weight: 700; }
body.light-mode .badge-freelance { background: #E0F7FA; color: #006064; border: 2px solid #1A1A2E; }
body.light-mode .badge-magang { background: #EDE7F6; color: #4527A0; border: 2px solid #1A1A2E; }
body.light-mode .badge-parttime { background: #FFF3E0; color: #E65100; border: 2px solid #1A1A2E; }
body.light-mode .badge-fulltime { background: #E8F5E9; color: #2E7D32; border: 2px solid #1A1A2E; }
body.light-mode .timeline-date { color: #6B6B8D; }
body.light-mode .timeline-tasks li { color: #3D3D5C; }
body.light-mode .timeline-tasks li i {
    color: #fff !important;
    width: 18px;
    height: 18px;
    min-width: 18px;
    background: #00897B;
    border: 2px solid #1A1A2E;
    border-radius: 3px;
    font-size: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
    box-shadow: none;
    outline: none;
    overflow: hidden;
    text-shadow: none;
    -webkit-text-stroke: 0;
}
body.light-mode .timeline-tags span { background: #FFF8F0; border: 1.5px solid #1A1A2E; color: #1A1A2E; border-radius: 4px; font-weight: 600; }

/* ----- Skills ----- */
body.light-mode .skill-category { background: #fff; border: 2px solid #1A1A2E; box-shadow: 4px 4px 0px #1A1A2E; border-radius: 8px; }
body.light-mode .skill-category:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0px #1A1A2E; border-color: #1A1A2E; }
body.light-mode .skill-icon-wrapper { background: #3D5AFE; border: 2px solid #1A1A2E; border-radius: 6px; }
body.light-mode .skill-category-header h3 { color: #1A1A2E; }
body.light-mode .skill-name { color: #3D3D5C; }
body.light-mode .skill-percent { color: #3D5AFE; }
body.light-mode .skill-bar { background: #E8EAF6; border: 1.5px solid #1A1A2E; border-radius: 2px; height: 10px; }
body.light-mode .skill-progress { background: #3D5AFE; border-radius: 1px; }
body.light-mode .soft-skill-item { background: #FFF8F0; border: 2px solid #1A1A2E; box-shadow: 3px 3px 0px #1A1A2E; border-radius: 6px; }
body.light-mode .soft-skill-item:hover { background: #FFE0B2; transform: translate(-2px,-2px); box-shadow: 5px 5px 0px #1A1A2E; }
body.light-mode .soft-skill-item i { color: #FF6D00; }
body.light-mode .soft-skill-item span { color: #1A1A2E; font-weight: 600; }

/* ----- Portfolio ----- */
body.light-mode .portfolio { background: #FFF2E5; }
body.light-mode .filter-btn { background: #fff; border: 2px solid #1A1A2E; box-shadow: 3px 3px 0px #1A1A2E; border-radius: 4px; color: #3D3D5C; font-weight: 600; }
body.light-mode .filter-btn:hover { background: #FFE0B2; color: #1A1A2E; transform: translate(-1px,-1px); box-shadow: 4px 4px 0px #1A1A2E; }
body.light-mode .filter-btn.active { background: #3D5AFE; color: #fff; border-color: #1A1A2E; box-shadow: 2px 2px 0px #1A1A2E; }
body.light-mode .portfolio-card { background: #fff; border: 2px solid #1A1A2E; box-shadow: 4px 4px 0px #1A1A2E; border-radius: 8px; }
body.light-mode .portfolio-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0px #1A1A2E; border-color: #1A1A2E; }
body.light-mode .portfolio-overlay { background: rgba(26,26,46,0.7); }
body.light-mode .portfolio-btn { background: #FF6D00; border: 2px solid #1A1A2E; box-shadow: 2px 2px 0px #1A1A2E; border-radius: 6px; }
body.light-mode .portfolio-btn:hover { background: #3D5AFE !important; }
body.light-mode .portfolio-category-tag { background: #E8EAF6; border: 1.5px solid #1A1A2E; color: #3D5AFE; border-radius: 4px; font-weight: 700; }
body.light-mode .portfolio-title { color: #1A1A2E; }
body.light-mode .portfolio-desc { color: #3D3D5C; }
body.light-mode .portfolio-tech span { background: #FFF3E0; border: 1.5px solid #1A1A2E; color: #E65100; border-radius: 4px; font-weight: 600; }

/* ----- Education ----- */
body.light-mode .education-card { background: #fff; border: 2px solid #1A1A2E; box-shadow: 4px 4px 0px #1A1A2E; border-radius: 8px; }
body.light-mode .education-card:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0px #1A1A2E; border-color: #1A1A2E; }
body.light-mode .edu-icon { background: #3D5AFE; border: 2px solid #1A1A2E; border-radius: 6px; }
body.light-mode .edu-degree { color: #1A1A2E; }
body.light-mode .edu-school { color: #3D5AFE; }
body.light-mode .edu-location { color: #6B6B8D; }
body.light-mode .edu-meta-item { color: #6B6B8D; }
body.light-mode .edu-meta-item i { color: #3D5AFE; }
body.light-mode .edu-badge { background: #FFF3E0; border: 2px solid #1A1A2E; border-radius: 6px; }
body.light-mode .edu-badge i { color: #FF6D00; }
body.light-mode .edu-badge span { color: #1A1A2E; }

/* ----- Contact ----- */
body.light-mode .contact { background: #FFF2E5; }
body.light-mode .contact-subtitle { color: #1A1A2E; }
body.light-mode .contact-text { color: #3D3D5C; }
body.light-mode .contact-card { background: #fff; border: 2px solid #1A1A2E; box-shadow: 3px 3px 0px #1A1A2E; border-radius: 6px; }
body.light-mode .contact-card:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0px #1A1A2E; border-color: #1A1A2E; }
body.light-mode .contact-card-icon { background: #E8EAF6; border: 2px solid #1A1A2E; border-radius: 6px; }
body.light-mode .contact-card-icon i { color: #3D5AFE; }
body.light-mode .contact-card-label { color: #6B6B8D; }
body.light-mode .contact-card-value { color: #1A1A2E; }
body.light-mode a.contact-card-value:hover { color: #3D5AFE; }
body.light-mode .social-link { background: #FFF8F0; border: 2px solid #1A1A2E; box-shadow: 2px 2px 0px #1A1A2E; color: #1A1A2E; border-radius: 6px; }
body.light-mode .social-link:hover { background: #3D5AFE; color: #fff; transform: translate(-2px,-2px); box-shadow: 4px 4px 0px #1A1A2E; }

/* Contact Form */
body.light-mode .contact-form-wrapper { background: #fff; border: 2px solid #1A1A2E; box-shadow: 4px 4px 0px #1A1A2E; border-radius: 8px; }
body.light-mode .form-label { color: #1A1A2E; font-weight: 700; }
body.light-mode .input-wrapper i { color: #6B6B8D; }
body.light-mode .input-wrapper input,
body.light-mode .input-wrapper textarea { background: #FFF8F0; border: 2px solid #1A1A2E; border-radius: 4px; color: #1A1A2E; }
body.light-mode .input-wrapper input::placeholder,
body.light-mode .input-wrapper textarea::placeholder { color: #6B6B8D; }
body.light-mode .input-wrapper input:focus,
body.light-mode .input-wrapper textarea:focus { border-color: #3D5AFE; box-shadow: 3px 3px 0px #3D5AFE; }
body.light-mode .btn-submit { background: #FF6D00; color: #fff; border: 2px solid #1A1A2E; box-shadow: 4px 4px 0px #1A1A2E; }
body.light-mode .btn-submit:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0px #1A1A2E; }

/* ----- Footer ----- */
body.light-mode .footer { background: #FFF8F0; border-top: 3px solid #1A1A2E; }
body.light-mode .footer-logo .logo-bracket { color: #FF6D00; }
body.light-mode .footer-logo .logo-text { -webkit-text-fill-color: #1A1A2E; color: #1A1A2E; background: none; }
body.light-mode .footer-desc { color: #6B6B8D; }
body.light-mode .footer-links h4,
body.light-mode .footer-contact-info h4 { color: #1A1A2E; }
body.light-mode .footer-links ul li a { color: #6B6B8D; }
body.light-mode .footer-links ul li a:hover { color: #3D5AFE; }
body.light-mode .footer-contact-info p { color: #6B6B8D; }
body.light-mode .footer-contact-info p i { color: #3D5AFE; }
body.light-mode .footer-bottom { border-top: 2px solid #1A1A2E; }
body.light-mode .footer-bottom p { color: #6B6B8D; }

/* ----- Back to Top ----- */
body.light-mode .back-to-top { background: #FF6D00; border: 2px solid #1A1A2E; box-shadow: 3px 3px 0px #1A1A2E; border-radius: 6px; }
body.light-mode .back-to-top:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0px #1A1A2E; }

/* ----- Gallery Modal ----- */
body.light-mode .gallery-overlay { background: rgba(255,248,240,0.92); }
body.light-mode .gallery-img { border: 3px solid #1A1A2E; box-shadow: 6px 6px 0px #1A1A2E; border-radius: 8px; }
body.light-mode .gallery-caption { color: #1A1A2E; font-weight: 700; }
body.light-mode .gallery-counter { color: #6B6B8D; }
body.light-mode .gallery-close,
body.light-mode .gallery-nav { background: #FFF8F0; border: 2px solid #1A1A2E; box-shadow: 2px 2px 0px #1A1A2E; color: #1A1A2E; border-radius: 6px; }
body.light-mode .gallery-close:hover { background: #FF6D00; color: #fff; transform: rotate(90deg); }
body.light-mode .gallery-nav:hover { background: #3D5AFE; color: #fff; }

/* Theme Toggle specifics */
body.light-mode .theme-toggle i.fa-moon { display: none; }
body.light-mode .theme-toggle i.fa-sun { display: inline-block; color: #FF6D00; }
/* ----- Mobile Sidebar Light Mode ----- */
@media (max-width: 768px) {
    body.light-mode .nav-menu {
        background: #FFF8F0;
    }

    body.light-mode .nav-menu::before {
        background: #1A1A2E;
        height: 3px;
    }

    body.light-mode .sidebar-header {
        background: #FFF2E5;
        border-bottom: 2px solid #1A1A2E;
    }

    body.light-mode .sidebar-name { color: #1A1A2E; }
    body.light-mode .sidebar-role { color: #6B6B8D; }

    body.light-mode .sidebar-avatar {
        border: 2px solid #1A1A2E;
        box-shadow: 2px 2px 0px #1A1A2E;
    }

    body.light-mode .sidebar-status-badge {
        background: #E8F5E9;
        border: 1.5px solid #1A1A2E;
        color: #2E7D32;
    }

    body.light-mode .sidebar-close-btn {
        background: #FFF8F0;
        border: 2px solid #1A1A2E;
        box-shadow: 2px 2px 0px #1A1A2E;
        color: #1A1A2E;
        border-radius: 6px;
    }

    body.light-mode .sidebar-close-btn:active {
        background: #3D5AFE;
        color: #fff;
        transform: translate(1px, 1px);
        box-shadow: 1px 1px 0px #1A1A2E;
    }

    body.light-mode .sidebar-divider span {
        color: #6B6B8D;
    }

    body.light-mode .sidebar-divider::after {
        background: #1A1A2E;
        height: 2px;
    }

    body.light-mode .sidebar-nav-list .nav-link {
        color: #3D3D5C;
        border-radius: 6px;
    }

    body.light-mode .sidebar-nav-list .nav-link:active {
        background: #FFE0B2;
        color: #1A1A2E;
    }

    body.light-mode .sidebar-nav-list .nav-link.active {
        background: #3D5AFE;
        color: #fff;
        border: 2px solid #1A1A2E;
        box-shadow: 3px 3px 0px #1A1A2E;
    }

    body.light-mode .nav-link-icon {
        background: #FFF2E5;
        border: 2px solid #1A1A2E;
        border-radius: 6px;
        color: #3D3D5C;
    }

    body.light-mode .sidebar-nav-list .nav-link.active .nav-link-icon {
        background: #fff;
        border-color: #1A1A2E;
        color: #3D5AFE;
    }

    body.light-mode .nav-link-arrow { color: #6B6B8D; }
    body.light-mode .sidebar-nav-list .nav-link.active .nav-link-arrow { color: #fff; }

    body.light-mode .sidebar-footer {
        border-top: 2px solid #1A1A2E;
    }

    body.light-mode .sidebar-footer-label { color: #6B6B8D; }

    body.light-mode .sidebar-social-btn {
        background: #FFF8F0;
        border: 2px solid #1A1A2E;
        box-shadow: 2px 2px 0px #1A1A2E;
        color: #1A1A2E;
        border-radius: 6px;
    }

    body.light-mode .sidebar-social-btn:active {
        background: #3D5AFE;
        color: #fff;
        transform: translate(1px, 1px);
        box-shadow: 1px 1px 0px #1A1A2E;
    }

    body.light-mode .hamburger-line { background: #1A1A2E; }
    body.light-mode.no-scroll .hamburger-line { background: #1A1A2E; }
}

/* Theme Image Toggles */
.img-light-mode { display: none; }
.img-dark-mode { display: block; }
body.light-mode .img-light-mode { display: block; }
body.light-mode .img-dark-mode { display: none; }
