/* ============================================
   PORTFOLIO - Dark Glassmorphism Theme
   Color: Purple Aura + Mint Accent
   ============================================ */

/* ===========================================
   1. IMPORTS & VARIABLES
   =========================================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");
/* ================= 1. VARIABLES & RESET ================= */
/* @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap"); */

:root,
html[data-theme="dark"],
[data-theme="dark"] {
    /* Color Palette - Dark Default */
    --bg-color: #08080b;       /* Dark Background */
    --clr-bg: #08080b;
    --clr-bg-light: #12121a;
    --accent-purple: #8B5CF6;  /* Ungu */
    --clr-purple: #8B5CF6;
    --clr-purple-dark: #6D28D9;
    --clr-purple-light: rgba(139, 92, 246, 0.15);
    --clr-purple-glow: rgba(139, 92, 246, 0.4);
    --accent-mint: #3EF4A2;    /* Hijau Mint */
    --clr-primary: #3EF4A2;
    --clr-primary-light: rgba(62, 244, 162, 0.15);
    --clr-primary-glow: rgba(62, 244, 162, 0.4);
    --text-white: #ffffff;
    --clr-text: #ffffff;
    --text-gray: #a1a1aa;
    --clr-text-muted: rgba(255, 255, 255, 0.5);
    --clr-text-subtle: rgba(255, 255, 255, 0.75);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.035);
    --glass-bg-hover: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-hover: rgba(62, 244, 162, 0.4);
    --glass-blur: blur(16px);
    --glass-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.35);
    --header-bg: rgba(8, 8, 11, 0.75);
    --header-bg-scroll: rgba(8, 8, 11, 0.92);
    
    /* Aurora Blur */
    --aurora-1: rgba(139, 92, 246, 0.15);
    --aurora-2: rgba(62, 244, 162, 0.12);
    
    /* Font & Layout */
    --font-main: 'Poppins', sans-serif;
    --font-family: 'Poppins', sans-serif;
    --fs-xl: clamp(2.5rem, 6vw, 4.5rem);
    --fs-lg: clamp(1.5rem, 3vw, 2rem);
    --fs-md: clamp(1rem, 2vw, 1.25rem);
    --fs-sm: 0.938rem;
    --fs-xs: 0.813rem;
    --header-height: 4.5rem;
    --section-padding: 6rem 0 3rem;
    --z-fixed: 100;
    --z-modal: 1000;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s ease;
}

html[data-theme="light"],
[data-theme="light"] {
    /* Color Palette - Light Mode */
    --bg-color: #f4f6fb;
    --clr-bg: #f4f6fb;
    --clr-bg-light: #ffffff;
    --accent-purple: #7C3AED;
    --clr-purple: #7C3AED;
    --clr-purple-dark: #5B21B6;
    --clr-purple-light: rgba(124, 58, 237, 0.12);
    --clr-purple-glow: rgba(124, 58, 237, 0.25);
    --accent-mint: #059669;
    --clr-primary: #059669;
    --clr-primary-light: rgba(5, 150, 105, 0.12);
    --clr-primary-glow: rgba(5, 150, 105, 0.25);
    --text-white: #0f172a;
    --clr-text: #0f172a;
    --text-gray: #475569;
    --clr-text-muted: #64748b;
    --clr-text-subtle: #334155;
    
    /* Glass Effects Light */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-hover: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-border-hover: rgba(124, 58, 237, 0.35);
    --glass-blur: blur(16px);
    --glass-shadow: 0 10px 30px 0 rgba(15, 23, 42, 0.06);
    --header-bg: rgba(244, 246, 251, 0.85);
    --header-bg-scroll: rgba(255, 255, 255, 0.95);
    
    /* Aurora Blur Light */
    --aurora-1: rgba(124, 58, 237, 0.12);
    --aurora-2: rgba(5, 150, 105, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-white);
    overflow-x: hidden; /* Mencegah scroll horizontal */
    transition: background-color var(--transition), color var(--transition);
}

/* ================= AMBIENT AURORA GLOW ================= */
.aurora-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
    transition: background var(--transition);
}

.aurora-blob-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -100px;
    background: var(--aurora-1);
}

.aurora-blob-2 {
    width: 450px;
    height: 450px;
    bottom: 15%;
    left: -100px;
    background: var(--aurora-2);
}

/* ================= GLASSMORPHISM BASE ================= */
.glass,
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition);
}

.glass:hover,
.glass-panel:hover {
    border-color: var(--glass-border-hover);
}

a { text-decoration: none; }

/* ================= 2. UTILITIES ================= */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Efek Teks Gradasi (Ungu ke Mint) */
.gradient-text {
  background: linear-gradient(to right, var(--accent-mint), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  
  /* Efek Glow Halus */
  filter: drop-shadow(0 0 15px rgba(120, 255, 200, 0.3)); /* Sesuaikan warna mint/ungu */
}

/* ================= VISITOR COUNTER ================= */
.visitor-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.5rem;
    margin: 2rem 0; /* Jarak atas bawah */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.visitor-badge:hover {
    border-color: var(--accent-mint);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(62, 244, 162, 0.1);
}

.badge-icon {
    width: 40px; height: 40px;
    background: rgba(62, 244, 162, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-mint);
    font-size: 1.2rem;
    animation: pulse-radar 2s infinite;
}

.badge-text {
    text-align: left;
    display: flex; flex-direction: column;
}

.badge-text span {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-text h4 {
    font-size: 1.2rem;
    color: var(--text-white);
    margin: 0;
    font-family: monospace; /* Font ala coding */
}

@keyframes pulse-radar {
    0% { box-shadow: 0 0 0 0 rgba(62, 244, 162, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(62, 244, 162, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 244, 162, 0); }
}
/* Efek Glow di belakang teks */
.glow-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}

.home-glow {
    background: var(--accent-purple);
    top: -100px;
    right: -100px; /* Posisi glow di pojok kanan atas */
}

/* Animasi Muncul Perlahan */
.fade-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ================= BENTO GRID LAYOUT ================= */
.skill-bento {
    display: grid;
    /* Grid 3 Kolom, tinggi baris otomatis */
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 240px); 
    gap: 1.5rem;
    margin-bottom: 3rem;
    
    /* Mendefinisikan Area Puzzle */
    grid-template-areas: 
        "soft soft net"
        "hard des net";
}

/* Assign Area ke Class HTML */
.area-soft { grid-area: soft; }
.area-net  { grid-area: net; }
.area-hard { grid-area: hard; }
.area-des  { grid-area: des; }

/* Styling Kartu Bento */
.bento-item {
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Teks di bawah */
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px; /* Sudut lebih bulat = lebih modern */
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Efek Hover Kartu */
.bento-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.25), 0 0 20px rgba(62, 244, 162, 0.15);
}

/* Icon Raksasa di Background (Hiasan) */
.bento-bg-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 10rem;
    opacity: 0.04;
    color: var(--text-white);
    transition: 0.4s;
    pointer-events: none;
}
.bento-item:hover .bento-bg-icon {
    transform: rotate(15deg) scale(1.1);
    opacity: 0.12;
    color: var(--accent-mint); /* Berubah warna saat hover */
}

/* Konten dalam Kartu */
.bento-content { position: relative; z-index: 2; }

.icon-box {
    width: 50px; height: 50px;
    background: var(--clr-primary-light);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--accent-mint);
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
}

.bento-item h3 {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.bento-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Khusus Kartu Network (Vertical) */
.area-net {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

/* ================= INFINITE MARQUEE (RUNNING TECH STACK) ================= */
.tech-marquee-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0 2.5rem;
    z-index: 5;
}

.tech-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0.75rem 0;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: marquee-scroll 42s linear infinite;
    will-change: transform;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.tech-item {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1.15rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--clr-text);
    white-space: nowrap;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.tech-item i {
    font-size: 1.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-3px) scale(1.04);
    border-color: var(--glass-border-hover);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.tech-item:hover i {
    transform: scale(1.15);
}

/* Authentic Tech Brand Colors */
.tech-laravel i { color: #FF2D20; }
.tech-postgres i { color: #4169E1; }
.tech-k8s i { color: #326CE5; }
.tech-redis i { color: #DC382D; }
.tech-mongodb i { color: #47A248; }
.tech-go i { color: #00ADD8; }
.tech-python i { color: #3776AB; }
.tech-graphql i { color: #E10098; }
.tech-rabbitmq i { color: #FF6600; }
.tech-nestjs i { color: #E0234E; }
.tech-bash i { color: #4EAA25; }
.tech-grafana i { color: #F46800; }
.tech-prometheus i { color: #E6522C; }
.tech-docker i { color: #2496ED; }
.tech-bun i { color: #F472B6; }
.tech-git i { color: #F05032; }
.tech-figma i { color: #A259FF; }
.tech-tailwind i { color: #06B6D4; }
.tech-linux i { color: #FCC624; }
.tech-ubuntu i { color: #E95420; }
.tech-php i { color: #777BB4; }
.tech-nodejs i { color: #5FA04E; }
.tech-vue i { color: #4FC08D; }
.tech-mysql i { color: #4479A1; }
.tech-nginx i { color: #009639; }

/* Subtle Glow on Hover according to brand */
.tech-laravel:hover { border-color: #FF2D20; box-shadow: 0 0 20px rgba(255, 45, 32, 0.25); }
.tech-postgres:hover { border-color: #4169E1; box-shadow: 0 0 20px rgba(65, 105, 225, 0.25); }
.tech-k8s:hover { border-color: #326CE5; box-shadow: 0 0 20px rgba(50, 108, 229, 0.25); }
.tech-redis:hover { border-color: #DC382D; box-shadow: 0 0 20px rgba(220, 56, 45, 0.25); }
.tech-mongodb:hover { border-color: #47A248; box-shadow: 0 0 20px rgba(71, 162, 72, 0.25); }
.tech-go:hover { border-color: #00ADD8; box-shadow: 0 0 20px rgba(0, 173, 216, 0.25); }
.tech-python:hover { border-color: #3776AB; box-shadow: 0 0 20px rgba(55, 118, 171, 0.25); }
.tech-graphql:hover { border-color: #E10098; box-shadow: 0 0 20px rgba(225, 0, 152, 0.25); }
.tech-rabbitmq:hover { border-color: #FF6600; box-shadow: 0 0 20px rgba(255, 102, 0, 0.25); }
.tech-nestjs:hover { border-color: #E0234E; box-shadow: 0 0 20px rgba(224, 35, 78, 0.25); }
.tech-bash:hover { border-color: #4EAA25; box-shadow: 0 0 20px rgba(78, 170, 37, 0.25); }
.tech-grafana:hover { border-color: #F46800; box-shadow: 0 0 20px rgba(244, 104, 0, 0.25); }
.tech-prometheus:hover { border-color: #E6522C; box-shadow: 0 0 20px rgba(230, 82, 44, 0.25); }
.tech-docker:hover { border-color: #2496ED; box-shadow: 0 0 20px rgba(36, 150, 237, 0.25); }
.tech-bun:hover { border-color: #F472B6; box-shadow: 0 0 20px rgba(244, 114, 182, 0.25); }
.tech-git:hover { border-color: #F05032; box-shadow: 0 0 20px rgba(240, 80, 50, 0.25); }
.tech-figma:hover { border-color: #A259FF; box-shadow: 0 0 20px rgba(162, 89, 255, 0.25); }
.tech-tailwind:hover { border-color: #06B6D4; box-shadow: 0 0 20px rgba(6, 182, 212, 0.25); }
.tech-linux:hover { border-color: #FCC624; box-shadow: 0 0 20px rgba(252, 198, 36, 0.25); }
.tech-ubuntu:hover { border-color: #E95420; box-shadow: 0 0 20px rgba(233, 84, 32, 0.25); }
.tech-php:hover { border-color: #777BB4; box-shadow: 0 0 20px rgba(119, 123, 180, 0.25); }
.tech-nodejs:hover { border-color: #5FA04E; box-shadow: 0 0 20px rgba(95, 160, 78, 0.25); }
.tech-vue:hover { border-color: #4FC08D; box-shadow: 0 0 20px rgba(79, 192, 141, 0.25); }
.tech-mysql:hover { border-color: #4479A1; box-shadow: 0 0 20px rgba(68, 121, 161, 0.25); }
.tech-nginx:hover { border-color: #009639; box-shadow: 0 0 20px rgba(0, 150, 57, 0.25); }

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ================= ABOUT BENTO LAYOUT ================= */
.about-bento-grid {
    display: grid;
    /* Grid Desktop: Kolom Kiri (Foto) 350px, Kolom Kanan sisa ruang */
    grid-template-columns: 350px 1fr 1fr;
    grid-template-rows: auto 120px auto;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* --- Shared Card Style (Sama dengan Skills) --- */
.bento-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    overflow: hidden;
    transition: 0.4s ease;
}

.bento-card:hover {
    border-color: var(--glass-border-hover);
    background: var(--glass-bg-hover);
    box-shadow: 0 10px 30px -5px rgba(0,0,0,0.25);
}

/* Background Icon Hiasan */
.bento-bg-icon {
    position: absolute;
    top: -10px; right: -10px;
    font-size: 8rem;
    color: var(--text-white);
    opacity: 0.03;
    pointer-events: none;
    transition: 0.4s;
    z-index: 0;
}
.bento-card:hover .bento-bg-icon {
    transform: rotate(10deg) scale(1.1);
    opacity: 0.08;
    color: var(--accent-mint);
}

/* --- 1. PHOTO ZONE (Carousel) --- */
.photo-zone {
    grid-column: 1 / 2;
    grid-row: 1 / 4; /* Memanjang dari atas ke bawah */
    min-height: 450px;
    padding: 0; /* Foto full tanpa padding */
}

.carousel-wrapper {
    width: 100%; height: 100%;
    position: relative;
}

.c-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.c-slide.active { opacity: 1; z-index: 2; }

.c-img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.c-caption {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
    z-index: 3;
}

.c-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent-mint);
    background: rgba(62, 244, 162, 0.1);
    border: 1px solid rgba(62, 244, 162, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.c-caption h3 { font-size: 1.5rem; color: #fff; }

/* Dots Navigation */
.c-dots {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    z-index: 10;
    display: flex; gap: 0.5rem;
}

.c-dot {
    width: 30px; height: 4px; /* Garis pipih modern */
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.c-dot.active { background: var(--accent-mint); width: 40px; }

/* --- 2. BIO ZONE --- */
.bio-zone {
    grid-column: 2 / 4;
    padding: 2rem;
    display: flex;
    align-items: center;
}

.card-content { position: relative; z-index: 2; }
.card-content h3 { color: var(--clr-text); font-size: 1.3rem; margin-bottom: 0.5rem; }
.card-content p { color: var(--text-gray); line-height: 1.7; font-size: 0.95rem; }
.highlight { color: var(--accent-mint); font-weight: 600; }

/* --- 3. STAT ZONE --- */
.stat-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.stat-content h3 { font-size: 2rem; color: var(--accent-purple); margin: 0; }
.stat-content span { font-size: 0.8rem; color: var(--text-gray); text-transform: uppercase; }

/* --- 4. MUSIC ZONE --- */
.music-zone {
    grid-column: 2 / 4;
    padding: 1.5rem;
    display: flex;
    align-items: center;
}
.music-inner { width: 100%; position: relative; z-index: 2; }
.music-label { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; color: #1DB954; font-weight: 600; font-size: 0.9rem; }}
/* ================= 5. MODERN BALANCED HERO SECTION ================= */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 7rem 0 4rem;
}

.home__container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

/* --- Kolom Kiri: Teks & Identitas --- */
.home__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.15rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-mint);
    margin-bottom: 1.5rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.status-badge:hover {
    border-color: var(--accent-mint);
    transform: translateY(-2px);
}

.status-light {
    width: 8px;
    height: 8px;
    background: var(--accent-mint);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-mint);
    animation: blink 2s infinite;
}

.home__title {
    font-size: clamp(2.4rem, 4.2vw, 3.6rem);
    line-height: 1.22;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--clr-text);
    letter-spacing: -0.5px;
}

.home__desc {
    color: var(--clr-text-subtle);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2.25rem;
    max-width: 520px;
}

.home__buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-mini {
    display: flex;
    gap: 0.85rem;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 1.3rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--glass-bg-hover);
    border-color: var(--accent-mint);
    color: var(--accent-mint);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(62, 244, 162, 0.25);
}

/* --- Kolom Kanan: Glassmorphic Portrait Frame --- */
.home__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-portrait-card {
    position: relative;
    width: 320px;
    height: 410px;
}

/* Soft Ambient Backdrop Glow */
.portrait-glow {
    position: absolute;
    inset: -20px;
    border-radius: 40px;
    background: radial-gradient(circle, var(--clr-purple-glow) 10%, var(--clr-primary-glow) 60%, transparent 75%);
    filter: blur(30px);
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
    animation: pulse-glow 6s ease-in-out infinite alternate;
}

[data-theme="light"] .portrait-glow {
    opacity: 0.22;
    filter: blur(25px);
}

@keyframes pulse-glow {
    0% { transform: scale(0.96); opacity: 0.35; }
    100% { transform: scale(1.04); opacity: 0.55; }
}

/* Modern Rounded Portrait Frame */
.portrait-frame {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 3px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.7), rgba(255, 255, 255, 0.2), rgba(62, 244, 162, 0.7));
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.hero-portrait-card:hover .portrait-frame {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.3);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 25px;
    filter: brightness(0.96);
    background: var(--bg-color);
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-portrait-card:hover .portrait-img {
    transform: scale(1.04);
}

/* Floating Dynamic Badges */
.portrait-badge {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
    z-index: 5;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.portrait-badge:hover {
    border-color: var(--accent-mint);
    box-shadow: 0 10px 25px rgba(62, 244, 162, 0.3);
}

.badge-top {
    top: 25px;
    left: -25px;
    padding: 0.55rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2496ED;
    animation: float-badge-1 5s ease-in-out infinite alternate;
}

.badge-top i {
    font-size: 1.4rem;
}

.badge-top span {
    color: var(--clr-text);
    font-size: 0.82rem;
}

.badge-bottom {
    bottom: 30px;
    right: -25px;
    padding: 0.6rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    animation: float-badge-2 6s ease-in-out infinite alternate;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-mint);
    box-shadow: 0 0 10px var(--accent-mint);
}

.badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.badge-text span {
    font-size: 0.68rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-text strong {
    font-size: 0.9rem;
    color: var(--accent-mint);
    font-weight: 700;
}

@keyframes float-badge-1 {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

@keyframes float-badge-2 {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}


/* ================= 3. BUTTONS ================= */
.home__btns {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
}

/* Tombol Utama (Putih) */
.button--primary {
    background: var(--text-white);
    color: var(--bg-color);
}

.button--primary:hover {
    background: var(--accent-mint);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(62, 244, 162, 0.2);
}

/* Tombol Link (Teks saja) */
.button--link {
    color: var(--text-gray);
    position: relative;
}

.button--link:hover {
    color: var(--text-white);
}

.button--link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: 0.3s;
}

.button--link:hover::after {
    width: 100%;
}


/* ================= 4. HOME SECTION LAYOUT ================= */
.home {
    position: relative;
    min-height: 100vh; /* Full layar */
    display: flex;
    align-items: center;
    padding-top: 2rem;
}

.home__container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Kolom: Kiri Teks, Kanan Gambar */
    align-items: center;
    gap: 4rem;
    width: 100%;
}

/* --- Typografi --- */
.home__subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-mint);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.home__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.home__description {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 450px;
}

/* ================= 5. HOME VISUAL (ORBIT & IMAGE) ================= */
.home__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Gambar Utama Profile */
.home__img-main {
    width: 320px;
    height: 380px;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    /* Masking agar bagian bawah foto transparan menyatu dengan bg */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Lingkaran Orbit */
.circle-orbit {
    position: absolute;
    width: 500px;
    height: 500px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    z-index: 1; /* Di belakang foto */
    
    /* Animasi Putar Terus Menerus */
    animation: rotateOrbit 20s linear infinite;
}

/* Planet Kecil di Orbit */
.planet {
    position: absolute;
    border-radius: 50%;
}

.planet-1 {
    width: 20px;
    height: 20px;
    background: var(--accent-purple);
    top: 50px;
    left: 80px;
    box-shadow: 0 0 15px var(--accent-purple);
}

.planet-2 {
    width: 10px;
    height: 10px;
    background: var(--accent-mint);
    bottom: 80px;
    right: 60px;
    box-shadow: 0 0 10px var(--accent-mint);
}

/* Keyframes untuk Animasi Putar */
@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ================= 6. RESPONSIVE (MOBILE) ================= */
@media screen and (max-width: 768px) {
    .home__container {
        grid-template-columns: 1fr; /* Jadi 1 kolom vertikal */
        text-align: center;
        gap: 3rem;
        padding-top: 4rem; /* Jarak dari atas */
    }

    .home__title {
        font-size: 2.5rem;
    }

    .home__description {
        margin: 0 auto 2rem; /* Tengahkan deskripsi */
    }

    .home__btns {
        justify-content: center; /* Tengahkan tombol */
    }

    /* Sesuaikan ukuran visual di HP */
    .home__img-main {
        width: 280px;
        height: 320px;
    }

    .circle-orbit {
        width: 350px;
        height: 350px;
    }
}


/* ===========================================
   2. BASE & RESET
   =========================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition), color var(--transition);
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }

/* ===========================================
   3. REUSABLE CLASSES
   =========================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section__title {
  font-size: var(--fs-lg);
  color: var(--clr-text);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section__subtitle {
  display: block;
  font-size: var(--fs-xs);
  color: var(--clr-purple);
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.highlight {
  color: var(--clr-primary);
  position: relative;
}

/* Glass Effect */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* Button */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--clr-purple), var(--clr-purple-dark));
  color: var(--clr-text);
  font-weight: 600;
  border-radius: 12px;
  transition: var(--transition);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--clr-purple-glow);
}

/* ===========================================
   4. HEADER & NAVIGATION
   =========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  background: var(--header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}

.header.scroll-header {
  background: var(--header-bg-scroll);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo img {
  transition: var(--transition);
}

.nav__logo:hover img {
  filter: drop-shadow(0 0 10px var(--clr-purple-glow));
}

.nav__list {
  display: flex;
  gap: 2.5rem;
}

.nav__link {
  position: relative;
  color: var(--clr-text-subtle);
  font-weight: 500;
  transition: var(--transition);
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--clr-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-purple));
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active-link::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  color: var(--clr-text);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--glass-shadow);
}

.nav__action-btn i {
  font-size: 1.15rem;
  color: var(--clr-primary);
  transition: transform var(--transition);
}

.nav__action-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--clr-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(62, 244, 162, 0.2);
}

.nav__action-btn:active {
  transform: translateY(0);
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.5rem;
  color: var(--clr-text);
  cursor: pointer;
  transition: var(--transition);
}

.nav__toggle:hover,
.nav__close:hover {
  color: var(--clr-primary);
}

/* ===========================================
   5. HOME SECTION
   =========================================== */
.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: transparent;
  position: relative;
  overflow: hidden;
}

/* Floating Orbs */
.home__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 15s ease-in-out infinite;
}

.home__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--clr-purple-glow);
  top: -10%;
  right: -10%;
}

.home__orb--2 {
  width: 400px;
  height: 400px;
  background: var(--clr-primary-glow);
  bottom: -15%;
  left: -10%;
  animation-delay: -7s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.home__container {
  position: relative;
  z-index: 10;
  width: 100%;
}

.home__card {
  max-width: 550px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.home__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-purple), transparent);
}

.home__greeting {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.home__name {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px var(--clr-purple-glow);
}

/* .home__title {
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--clr-purple);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
} */

.home__title::before,
.home__title::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--clr-purple), transparent);
}

.home__title::after {
  background: linear-gradient(90deg, transparent, var(--clr-purple));
}

.home__location {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.home__location i {
  color: var(--clr-primary);
}

.home__social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.home__social-link {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  font-size: 1.4rem;
  color: var(--clr-text-subtle);
  transition: var(--transition);
}

.home__social-link:hover {
  color: var(--clr-primary);
  border-color: var(--clr-primary);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--clr-primary-light);
}

.home__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.6rem 1.2rem;
  background: var(--clr-purple-light);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 30px;
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

.status__dot {
  width: 8px;
  height: 8px;
  background: var(--clr-primary);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===========================================
   6. PROJECT SECTION
   =========================================== */
.project__container {
  display: grid;
  gap: 2rem;
}

.project__card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.project__media {
  border-radius: 16px;
  overflow: hidden;
}

.project__img,
.project__video {
width: 100%;
  /* Gunakan tinggi relatif terhadap layar (vh) atau pixel tetap */
  height: 500px; /* Atau bisa ganti: 70vh (70% tinggi layar) */
  
  /* KUNCI UTAMA: */
  object-fit: cover;    /* Memotong kelebihan gambar agar pas di height yg ditentukan */
  object-position: top; /* Fokus crop tetap di bagian atas (wajah) */
  border-radius: 1rem;
}

.project__media:hover .project__img,
.project__media:hover .project__video {
  transform: scale(1.05);
}

.project__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project__title {
  font-size: var(--fs-md);
  margin-bottom: 1rem;
}

.project__description {
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.project__spotify {
  padding: 1.5rem;
  border-radius: 16px;
}

/* ===========================================
   7. ABOUT SECTION
   =========================================== */
.about__container {
  display: grid;
  gap: 2rem;
}

.about__content {
  display: flex;        /* Menggunakan Flexbox agar sejajar */
  align-items: stretch; /* PENTING: Memaksa tinggi foto & teks SAMA rata */
  overflow: hidden;     /* Agar sudut gambar tidak keluar dari border-radius */
  margin-bottom: 2rem;  /* Jarak antar kartu */
  
  /* Style Glass/Background Anda */
  border-radius: 1.5rem;
  /* background: rgba(255, 255, 255, 0.1); hapus comment ini jika class glass belum ada bg */
}

.about__info {
  flex: 1;              /* Mengambil sisa ruang yang ada */
  padding: 2.5rem;      /* Memberi napas pada tulisan */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Tulisan selalu di tengah vertikal (atas-bawah) */
}

.about__content--reverse {
  direction: rtl;
}

.about__content--reverse > * {
  direction: ltr;
}

.about__title {
  font-size: var(--fs-md);
  margin-bottom: 1rem;
}

.about__description {
  color: var(--clr-text-muted);
  line-height: 1.8;
}

.about__img {
  flex: 0 0 40%;        /* Lebar gambar KUNCI (40% dari lebar kartu) */
  position: relative;   /* Agar gambar di dalamnya patuh */
  min-height: 300px;    /* Tinggi minimal agar tidak terlalu pendek */
}
.about__img img {
  width: 100%;
  height: 100%;         /* Memaksa tinggi mengikuti parent (kartu) */
  object-fit: cover;    /* Crop otomatis agar rapi & tidak gepeng */
  object-position: center top; /* Fokus crop di tengah agak atas (wajah) */
  display: block;       /* Menghapus gap di bawah gambar */
  border-radius: 0;     /* Reset radius di gambar, kita pakai radius container */
}

.about__img:hover img {
  transform: scale(1.05);
}



/* ===========================================
   8. ACCORDION (Qualifications)
   =========================================== */
.accordion__container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.accordion__item {
  overflow: hidden;
}

.accordion__header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: transparent;
  color: var(--clr-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: var(--transition);
}

.accordion__header span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accordion__header i {
  font-size: 1.3rem;
  color: var(--clr-purple);
}

.accordion__icon {
  font-size: 1.5rem;
  transition: var(--transition);
}

.accordion__header.active {
  color: var(--clr-primary);
}

.accordion__header.active .accordion__icon {
  transform: rotate(180deg);
  color: var(--clr-primary);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion__content.show {
  max-height: 500px;
}

.accordion__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1rem 1.5rem 1.5rem;
}

.accordion__card {
  padding: 1.25rem;
  background: var(--clr-bg-light);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.accordion__card h4 {
  font-size: var(--fs-xs);
  color: var(--clr-text);
  margin-bottom: 0.5rem;
}

.accordion__card p {
  font-size: 0.75rem;
  color: var(--clr-text-muted);
}

.accordion__year {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--clr-purple-light);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--clr-purple);
}

/* Language Bars */
.language__list {
  padding: 1rem 1.5rem 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.language__info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: var(--fs-xs);
}

.language__level {
  color: var(--clr-purple);
  font-weight: 500;
}

.language__bar {
  height: 8px;
  background: var(--clr-bg-light);
  border-radius: 10px;
  overflow: hidden;
}

.language__progress {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-purple), var(--clr-primary));
  border-radius: 10px;
  transition: width 1s ease;
}

/* ===========================================
   9. SKILLS SECTION
   =========================================== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.skills__item {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: var(--transition);
}

.skills__item:hover {
  transform: translateY(-5px);
  border-color: var(--clr-purple);
  box-shadow: 0 15px 40px var(--clr-purple-light);
}

.skills__item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: var(--transition);
}

.skills__item:hover img {
  filter: grayscale(0);
  transform: scale(1.1);
}

.skills__more {
  text-align: center;
  margin-top: 2rem;
  color: var(--clr-text-muted);
  font-style: italic;
}

/* ===========================================
   10. WORK / PROJECTS SECTION
   =========================================== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.project-item {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-item:hover {
  transform: translateY(-8px);
  border-color: var(--glass-border-hover);
  background: var(--glass-bg-hover);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(139, 92, 246, 0.15);
}

.project-item__preview {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.project-item__img-box {
  width: 100%;
  height: 100%;
  position: relative;
}

.project-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter var(--transition);
  filter: brightness(0.92);
}

.project-item:hover .project-item__img {
  transform: scale(1.06);
  filter: brightness(1.02);
}

.project-item__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.8rem;
  background: rgba(8, 8, 11, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-mint);
  letter-spacing: 0.5px;
}

[data-theme="light"] .project-item__badge {
  background: rgba(255, 255, 255, 0.85);
  color: var(--clr-primary);
  border-color: rgba(0, 0, 0, 0.1);
}

.project-item__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-purple);
  background: var(--clr-purple-light);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
}

.project-item__title {
  font-size: 1.25rem;
  color: var(--clr-text);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
}

.project-item__desc {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.project-item__link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--clr-text-subtle);
  font-size: 1.25rem;
  transition: all var(--transition);
}

.project-item__link:hover {
  background: var(--clr-purple);
  border-color: var(--clr-purple);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* ===========================================
   11. CONTACT SECTION
   =========================================== */
.contact__container {
  max-width: 600px;
  margin: 0 auto;
}

.contact__form {
  padding: 2.5rem;
}

.contact__group {
  margin-bottom: 1.5rem;
}

.contact__input {
  width: 100%;
  padding: 1.25rem;
  background: var(--clr-bg-light);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--clr-text);
  font-family: inherit;
  font-size: var(--fs-sm);
  resize: none;
  transition: var(--transition);
}

.contact__input::placeholder {
  color: var(--clr-text-muted);
}

.contact__input:focus {
  outline: none;
  border-color: var(--clr-purple);
  box-shadow: 0 0 20px var(--clr-purple-light);
}

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

/* ===========================================
   12. FOOTER
   =========================================== */
.footer {
  background: var(--clr-bg-light);
  padding: 4rem 0 2rem;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer__title {
  font-size: var(--fs-lg);
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.footer__social-link {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  font-size: 1.3rem;
  color: var(--clr-text-subtle);
  transition: var(--transition);
}

.footer__social-link:hover {
  background: var(--clr-purple);
  border-color: var(--clr-purple);
  color: var(--clr-text);
  transform: translateY(-3px);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

/* ===========================================
   13. SCROLL UP
   =========================================== */
.scrollup {
  position: fixed;
  right: 1.5rem;
  bottom: -50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-purple), var(--clr-purple-dark));
  border-radius: 10px;
  font-size: 1.5rem;
  color: var(--clr-text);
  z-index: var(--z-fixed);
  transition: var(--transition);
}

.scrollup:hover {
  transform: translateY(-5px);
}

.scrollup.show-scroll {
  bottom: 2rem;
}

/* ===========================================
   13. BOOK SECTION (BASE)
   =========================================== */
.book__content {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding: 3.5rem;
  border-radius: 2rem;
  overflow: visible;
  transition: var(--transition);
}

.book__visual {
  flex: 0 0 260px;
  position: relative;
  display: flex;
  justify-content: center;
}

.book__img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 4px 8px 8px 4px;
  box-shadow: -12px 12px 28px rgba(0, 0, 0, 0.35), -2px 2px 5px rgba(255, 255, 255, 0.1) inset;
  transform: perspective(1000px) rotateY(-10deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.book__content:hover .book__img {
  transform: perspective(1000px) rotateY(0deg) scale(1.04);
  box-shadow: -15px 18px 35px rgba(0, 0, 0, 0.45);
}

.book__info {
  flex: 1;
}

.book__header {
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.85rem;
}

.book__tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-mint);
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: block;
}

.book__title {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  line-height: 1.2;
  color: var(--clr-text);
  font-weight: 800;
}

.book__author {
  font-size: 0.95rem;
  color: var(--text-gray);
  font-style: italic;
}

.book__description {
  line-height: 1.75;
  color: var(--clr-text-subtle);
  font-size: 0.98rem;
}

/* ===========================================
   14. UNIFIED RESPONSIVE MEDIA QUERIES
   =========================================== */

/* --- TABLET (<= 1024px) --- */
@media screen and (max-width: 1024px) {
  .home {
    padding: 6rem 0 3.5rem;
    min-height: auto;
  }

  .home__container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
  }

  .home__title {
    font-size: clamp(2rem, 3.8vw, 3rem);
  }

  .hero-portrait-card {
    width: 270px;
    height: 350px;
  }

  .badge-top {
    left: -15px;
    top: 15px;
    padding: 0.45rem 0.85rem;
  }

  .badge-bottom {
    right: -15px;
    bottom: 20px;
    padding: 0.5rem 0.9rem;
  }

  .about-bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .photo-zone {
    grid-column: 1 / 3;
    height: 380px;
  }

  .bio-zone {
    grid-column: 1 / 3;
  }

  .stat-zone {
    grid-column: span 1;
  }

  .music-zone {
    grid-column: 1 / 3;
  }

  .skill-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "soft soft"
      "net hard"
      "des des";
  }

  .book__content {
    gap: 2.5rem;
    padding: 2.5rem;
  }
}

/* --- MOBILE & TABLET PORTRAIT (<= 768px) --- */
@media screen and (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .section {
    padding: 4.5rem 0 2.5rem;
  }

  .section__title {
    font-size: 1.85rem;
  }

  .section__subtitle {
    font-size: 0.85rem;
    margin-bottom: 2rem;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  /* Header & Mobile Menu */
  .nav {
    height: var(--header-height);
  }

  .nav__actions {
    gap: 0.45rem;
  }

  .nav__action-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }

  .nav__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    font-size: 1.4rem;
    color: var(--clr-text);
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    padding: 5.5rem 2rem 2.5rem;
    background: var(--header-bg-scroll);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.4);
    transition: right var(--transition-slow);
    z-index: var(--z-fixed);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .nav__menu.show-menu {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 1.75rem;
  }

  .nav__link {
    font-size: 1.15rem;
    font-weight: 600;
  }

  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: 1.6rem;
    color: var(--clr-text);
    cursor: pointer;
  }

  /* Home / Hero Section (Mobile Stack) */
  .home {
    min-height: auto;
    padding: 5.5rem 0 2.5rem;
  }

  .home__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    padding-top: 0.5rem;
  }

  .home__content {
    align-items: center;
  }

  .status-badge {
    margin-bottom: 1.25rem;
  }

  .home__title {
    font-size: clamp(1.85rem, 6.5vw, 2.5rem);
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .home__desc {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 auto 1.75rem;
    max-width: 480px;
    padding: 0 0.5rem;
  }

  .home__buttons {
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
  }

  .home__visual {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-portrait-card {
    width: 250px;
    height: 320px;
  }

  .portrait-glow {
    inset: -12px;
    filter: blur(20px);
  }

  .badge-top {
    top: 15px;
    left: -10px;
    padding: 0.45rem 0.8rem;
    font-size: 0.78rem;
  }

  .badge-bottom {
    bottom: 20px;
    right: -10px;
    padding: 0.45rem 0.85rem;
  }

  .badge-text strong {
    font-size: 0.82rem;
  }

  /* Side Project Section */
  .project__card {
    grid-template-columns: 1fr;
    padding: 1.35rem;
    border-radius: 20px;
    gap: 1.5rem;
  }

  .project__media {
    border-radius: 14px;
  }

  .project__img,
  .project__video {
    height: 220px;
    border-radius: 14px;
    object-position: center;
  }

  .project__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }

  .project__description {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  /* Featured Projects Section */
  .projects__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-item {
    border-radius: 20px;
  }

  .project-item__preview {
    height: 190px;
  }

  .project-item__body {
    padding: 1.35rem;
  }

  .project-item__title {
    font-size: 1.25rem;
  }

  .project-item__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .project-item__footer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .project-item__btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
  }

  /* About Bento Grid */
  .about-bento-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .bento-card {
    border-radius: 20px;
    padding: 1.35rem;
  }

  .photo-zone {
    grid-column: 1 / 3;
    height: 320px;
    border-radius: 20px;
  }

  .photo-zone .carousel-slide {
    border-radius: 20px;
  }

  .bio-zone {
    grid-column: 1 / 3;
    padding: 1.5rem;
  }

  .bio-zone h3 {
    font-size: 1.35rem;
  }

  .bio-zone p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .stat-zone {
    grid-column: span 1;
    padding: 1.25rem;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .stat-content h3 {
    font-size: 1.85rem;
    margin-bottom: 0.2rem;
  }

  .stat-content span {
    font-size: 0.75rem;
  }

  .music-zone {
    grid-column: 1 / 3;
    padding: 1.25rem;
  }

  /* Book Section */
  .book__content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
  }

  .book__visual {
    flex: none;
    width: 100%;
  }

  .book__img {
    max-width: 150px;
    margin: 0 auto;
    transform: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  }

  .book__content:hover .book__img {
    transform: scale(1.03);
  }

  .book__header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
  }

  .book__title {
    font-size: 1.55rem;
  }

  .book__description {
    font-size: 0.92rem;
    line-height: 1.7;
    text-align: left;
  }

  /* Skills Section */
  .skill-bento {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    grid-template-rows: auto;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .bento-item {
    min-height: auto;
    padding: 1.5rem;
    border-radius: 20px;
  }

  .bento-item h3 {
    font-size: 1.3rem;
  }

  .bento-item p {
    font-size: 0.9rem;
  }

  .tech-marquee-section {
    padding: 0.5rem 0 1.5rem;
  }

  .tech-marquee {
    padding: 0.5rem 0;
  }

  .tech-item {
    font-size: 1.05rem;
    gap: 0.4rem;
  }

  .tech-item i {
    font-size: 1.5rem;
  }

  /* Contact Section */
  .contact__form {
    padding: 1.5rem;
    border-radius: 20px;
    gap: 1.25rem;
  }

  .contact__input {
    padding: 0.95rem 1.15rem;
    font-size: 1rem; /* 1rem prevents iOS input zoom */
    border-radius: 12px;
  }

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

  /* Footer */
  .footer {
    padding: 2.5rem 0 1.5rem;
  }

  .footer__social {
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
}

/* --- SMALL MOBILE (<= 400px) --- */
@media screen and (max-width: 400px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home__title {
    font-size: 1.7rem;
  }

  .tech-frame {
    width: 220px;
    height: 280px;
  }

  .chip-1 {
    left: -8px;
    top: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }

  .chip-3 {
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
  }

  .stat-content h3 {
    font-size: 1.55rem;
  }

  .stat-content span {
    font-size: 0.7rem;
  }

  .nav__menu {
    width: 90%;
  }
}

/* --- DESKTOP ENHANCEMENT (>= 1024px) --- */
@media screen and (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }
}