/* ============================================================================ */
/* ROOT VARIABLES: Definisi Warna dan Transisi Global */
/* ============================================================================ */
:root {
    /* Dark Mode (Default) */
    --bg-dark: #050816;
    --bg-alt: rgba(10, 16, 32, 0.76);
    --section-bg: rgba(5, 8, 22, 0.28);
    --section-band: rgba(5, 8, 22, 0.72);
    --surface: rgba(10, 16, 32, 0.78);
    --surface-strong: rgba(15, 23, 42, 0.9);
    --accent: #a7f3d0;
    --accent-2: #93c5fd;
    --accent-strong: #34d399;
    --accent-glow: rgba(52, 211, 153, 0.22);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-soft: #94a3b8;
    --card-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --nav-bg: rgba(5, 8, 22, 0.74);
    --video-overlay-color: rgba(5, 8, 22, 0.72);
    --glass-border: rgba(255, 255, 255, 0.14);
    --input-bg: rgba(255, 255, 255, 0.08);
    --input-placeholder: rgba(226, 232, 240, 0.68);
    --radius-lg: 28px;
    --radius-md: 16px;
    /* Transisi umum untuk hover/focus */
    --transition: all 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    /* Transisi khusus untuk perubahan tema (background, color, backdrop-filter) */
    --theme-transition: background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1), color 0.45s ease, border-color 0.45s ease;
}

/* Light Mode Variables */
body.light-mode {
    --bg-dark: #f8fafc;
    --bg-alt: rgba(255, 255, 255, 0.88);
    --section-bg: rgba(248, 250, 252, 0.34);
    --section-band: rgba(255, 255, 255, 0.82);
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --accent: #047857;
    --accent-2: #2563eb;
    --accent-strong: #059669;
    --text-main: #0f172a;
    --text-muted: #334155;
    --text-soft: #475569;
    --card-shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
    --nav-bg: rgba(255, 255, 255, 0.84);
    --accent-glow: rgba(5, 150, 105, 0.15);
    --video-overlay-color: rgba(248, 250, 252, 0.76);
    --glass-border: rgba(15, 23, 42, 0.12);
    --input-bg: rgba(255, 255, 255, 0.82);
    --input-placeholder: rgba(51, 65, 85, 0.66);
}

/* Reset CSS Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* ============================================================================ */
/* GLOBAL STYLES & CUSTOM SCROLLBAR */
/* ============================================================================ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-alt); border-radius: 5px; border: 2px solid var(--bg-dark); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Gaya untuk teks yang dipilih */
::selection { background: var(--accent); color: white; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-width: 320px;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transition: var(--theme-transition);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 1001;
}

/* ============================================================================ */
/* GLOBAL VIDEO BACKGROUND */
/* Menampilkan video sebagai latar belakang utama halaman */
/* ============================================================================ */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}
/* Gaya video agar memenuhi seluruh area */
.global-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.02);
}
/* Overlay di atas video untuk meningkatkan keterbacaan teks */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 24% 18%, rgba(147, 197, 253, 0.16), transparent 30%),
        radial-gradient(circle at 80% 12%, rgba(167, 243, 208, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(5, 8, 22, 0.46) 0%, var(--video-overlay-color) 48%, var(--bg-dark) 100%);
    z-index: 1;
    transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1); /* Only transition background */
}

body.light-mode .video-overlay {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.78) 0%, var(--video-overlay-color) 48%, var(--bg-dark) 100%),
        radial-gradient(circle at 25% 15%, rgba(14, 165, 233, 0.14), transparent 28%);
}

/* Container umum untuk membatasi lebar konten */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ============================================================================ */
/* NAVBAR */
/* Gaya untuk bilah navigasi atas */
/* ============================================================================ */
.navbar {
    padding: 1rem 0;
    position: fixed;
    width: min(1120px, calc(100% - 32px));
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nav-bg);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    z-index: 1000;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    transition: var(--transition);
}

/* Gaya navbar saat halaman di-scroll ke bawah */
.navbar.scrolled {
    padding: 0.8rem 0;
    width: min(1080px, calc(100% - 24px));
    top: 10px;
    border-radius: 999px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--nav-bg);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Gaya Logo */
.logo {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.logo span { 
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo:hover { transform: scale(1.05); }

/* Gaya Link Navigasi Utama */
.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 2.2vw, 2.25rem);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    /* Underline animasi yang muncul saat hover */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

/* Active State for ScrollSpy */
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-links a:hover { color: var(--accent); }

/* Tombol toggle untuk menu mobile (hanya terlihat di layar kecil) */
.menu-toggle {
    display: none; 
    cursor: pointer; 
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
}

/* Accessibility: Focus indicators for better keyboard navigation */
a:focus-visible, 
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* ============================================================================ */
/* THEME TOGGLE BUTTON */
/* Tombol untuk mengganti antara mode terang dan gelap */
/* ============================================================================ */
.theme-btn {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    width: 42px;
    height: 42px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.theme-btn:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg-dark);
    border-color: transparent;
}

/* ============================================================================ */
/* HERO SECTION */
/* Bagian pembuka halaman dengan perkenalan dan gambar profil */
/* ============================================================================ */
.hero {
    min-height: 100vh; /* Memberi ruang cukup tanpa berlebihan */
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: clamp(118px, 16vh, 160px) 0 90px;
    position: relative;
}

/* Tata letak flexbox untuk mengatur posisi teks dan gambar di hero */
.hero-flex {
    display: flex;
    align-items: center;
    gap: clamp(2.25rem, 6vw, 5rem);
    width: 100%;
}
.hero-text { flex: 1; min-width: 0; }
.hero-image { flex: 0 1 400px; display: flex; justify-content: flex-end; } /* Gambar profil di sisi kanan */

/* Gaya wrapper teks hero dengan latar belakang blur dan bayangan */
.hero-text-wrapper {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 38%),
        var(--surface);
    padding: clamp(2rem, 5vw, 4rem);
    max-width: 720px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--card-shadow), inset 0 0 20px rgba(255, 255, 255, 0.04);
    transition: var(--theme-transition);
}
/* Penyesuaian shadow untuk light mode */
body.light-mode .hero-text-wrapper { border-color: var(--glass-border); }

/* Bingkai foto profil dengan animasi morph dan floating */
/* Bingkai foto profil dengan animasi morph dan floating */
.photo-frame {
    width: min(380px, 32vw);
    height: min(380px, 32vw);
    min-width: 280px;
    min-height: 280px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    animation: morph 8s ease-in-out infinite, floating 4s ease-in-out infinite;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.38), 0 0 54px var(--accent-glow);
}

/* Gambar di dalam bingkai foto */
.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

/* Keyframes untuk animasi morph */
@keyframes morph { /* Mengubah bentuk border-radius secara berulang */
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes floating {
    /* Keyframes untuk animasi floating */
    0%, 100% { transform: translateY(0); } /* Menggerakkan elemen naik turun */
    50% { transform: translateY(-20px); }
}

/* Gaya teks sapaan */
.greeting { color: var(--accent); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }

/* Gaya nama yang diketik */
.hero-name { 
    font-size: clamp(2.75rem, 7vw, 5rem);
    margin: 0.5rem 0; 
    font-weight: 800;
    letter-spacing: 0;
    min-height: 1.2em;
    line-height: 1.02;
    /* Efek teks gradien */
    background: linear-gradient(135deg, var(--text-main) 36%, var(--accent) 72%, var(--accent-2) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    color: var(--accent);
    /* Animasi kursor berkedip */
    animation: blink 0.7s infinite; /* Membuat kursor berkedip */
    -webkit-text-fill-color: var(--accent);
}

@keyframes blink {
    /* Keyframes untuk kursor berkedip */
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero .description { 
    max-width: 620px; 
    color: var(--text-muted);
    font-size: clamp(1rem, 1.8vw, 1.12rem);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero span { color: var(--text-main); font-weight: 600; }

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.4rem;
}

.stat-card {
    padding: 0.95rem;
    border-radius: 16px;
    background: var(--surface-strong);
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.stat-card strong {
    display: block;
    font-size: 1.05rem;
    color: var(--accent);
}

.stat-card span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
}
.hero-btns .btn {
    min-width: 170px;
}
.hero-socials {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    font-size: 1.2rem;
}
.hero-socials a {
    color: var(--text-main);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}
.hero-socials a:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg-dark);
    border-color: transparent;
}

.form-status {
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.video-controls {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gaya dasar untuk tombol utama (btn) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.95rem 1.55rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: 999px;
    font-weight: 800;
    transition: var(--transition);
    border: 1px solid transparent;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16), 0 0 32px var(--accent-glow);
}

.btn:focus-visible,
.btn-sm:focus-visible,
.mute-btn:focus-visible,
.accordion-header:focus-visible {
    outline: 3px solid rgba(129, 140, 248, 0.7);
    outline-offset: 3px;
}

/* Efek hover untuk tombol utama */
.btn:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 18px 44px var(--accent-glow);
    background: var(--text-main);
    color: var(--bg-dark);
    border-color: transparent;
}

.btn-outline {
    /* Gaya untuk tombol dengan border (outline) */
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--accent);
    margin-left: 1rem;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover {
    background: var(--surface-strong);
    border-color: var(--accent);
    color: var(--text-main);
}

/* Efek Khusus Tombol Download CV */
.btn-cv i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.btn-cv:hover i {
    animation: bounceIcon 0.6s infinite alternate;
}

@keyframes bounceIcon {
    from { transform: translateY(0); }
    to { transform: translateY(3px); }
}

/* ============================================================================ */
/* GENERAL SECTION STYLES */
/* Gaya umum yang diterapkan pada semua bagian (section) halaman */
/* ============================================================================ */
.section { 
    padding: clamp(72px, 10vw, 120px) 0;
    background: var(--section-bg); /* Latar belakang solid untuk section */
    position: relative;
    z-index: 1; /* Memastikan konten section di atas video overlay */
}
.section:nth-of-type(even) {
    background: var(--section-band);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.section-title {
    text-align: center;
}
.section-title::after {
    margin: 1rem auto 0;
}

/* Gaya untuk judul setiap section */
.section-title { 
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: 0;
    position: relative; 
    color: var(--text-main);
}
.section-title::after { /* Garis bawah pada judul section */
    content: ''; display: block; width: 64px; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); margin-top: 10px; border-radius: 999px;
}

/* ============================================================================ */
/* ABOUT SECTION */
/* Gaya untuk bagian "Tentang Saya" */
/* ============================================================================ */
.about-text { 
    max-width: 860px;
    margin: 0 auto;
    font-size: 1.1rem; 
    color: var(--text-muted); 
    background: var(--surface);
    padding: clamp(1.5rem, 4vw, 2.4rem);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.about-text strong { color: var(--text-main); }

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.35rem 0 1.25rem;
}

.fact-card {
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: color-mix(in srgb, var(--surface-strong) 85%, transparent);
}

.fact-card h3 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}

.fact-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Gaya untuk informasi tambahan (lokasi, pendidikan) di about section */
.about-info {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

/* ============================================================================ */
/* SKILLS SECTION */
/* Gaya untuk bagian "Skills" dengan kartu dan progress bar */
/* ============================================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    /* Gaya dasar untuk setiap kartu skill */
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.6rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Efek hover yang menarik pada kartu skill */
.skill-card:hover {
    transform: translateY(-8px);
    border-color: color-mix(in srgb, var(--accent) 48%, transparent);
    box-shadow: 0 22px 48px var(--accent-glow);
}

.skill-card .skill-name {
    display: block; /* Make skill name take full width */
    margin-top: 10px; /* Space between icon and name */
    margin-bottom: 15px; /* Space between name and progress bar */
    font-weight: 600;
    color: var(--text-main); /* Ensure it's visible */
}

/* Container untuk progress bar skill */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: color-mix(in srgb, var(--text-main) 12%, transparent);
    border-radius: 5px;
    overflow: hidden; /* Ensure progress bar stays within container */
    margin-top: 15px; /* Space from skill name */
}

/* Gaya visual progress bar itu sendiri */
.progress-bar {
    height: 100%;
    width: 0; /* Initial state for animation */
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 5px;
    transition: width 1.5s ease-out; /* Animation duration */
}

.skill-card i { font-size: 2rem; color: var(--accent); margin-bottom: 10px; display: block; }

/* =====================================
   Projects Section
   ===================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.project-card {
    /* Gaya kartu proyek */
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.project-card:hover {
    /* Efek hover pada kartu proyek */
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.project-img {
    overflow: hidden;
    background: var(--surface-strong);
    aspect-ratio: 16 / 10;
}

.project-img img {
    /* Gambar proyek */
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
    /* Efek zoom gambar proyek pada hover */
    transform: scale(1.05);
}

.project-info {
    padding: 1.6rem;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-info h3 { margin-bottom: 0.5rem; color: var(--text-main); font-size: 1.18rem; }
.project-info p {
    min-height: 3.6rem;
}
.project-info p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1rem; }

/* Tag teknologi pada proyek */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.project-tags span {
    /* Gaya tag */
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
    padding: 0.2rem 0.8rem;
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-sm {
    /* Gaya tombol kecil */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.58rem 1rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-sm:hover {
    /* Efek hover tombol kecil */
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg-dark);
    border-color: transparent;
}

/* =====================================
   Contact Form
   ===================================== */
.contact-intro {
    max-width: 680px;
    margin: -1rem auto 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    padding: clamp(1.35rem, 4vw, 2.3rem);
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.contact-form button {
    width: 100%;
    margin-top: 0.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    /* Gaya input dan textarea */
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 16px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--input-placeholder);
}
.contact-form label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-main);
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    /* Efek focus pada input */
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* =====================================
   Accordion Styles (Services/FAQ)
   ===================================== */
.accordion {
    max-width: 820px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.accordion-item { border-bottom: 1px solid var(--glass-border); }
.accordion-item:last-child { border-bottom: 0; }
.accordion-header {
    /* Gaya header accordion */
    width: 100%; padding: 1.35rem 1.5rem; background: none; border: none;
    color: var(--text-main); font-size: 1.1rem; font-weight: 600;
    text-align: left; cursor: pointer; display: flex; justify-content: space-between;
    align-items: center; gap: 1rem; transition: var(--transition);
}
.accordion-header i { transition: var(--transition); }
.accordion-header:hover { color: var(--accent); }
.accordion-content { 
    /* Konten accordion yang tersembunyi */
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1); 
}
.accordion-content p { padding: 0 1.5rem 1.5rem; color: var(--text-muted); line-height: 1.8; }
.accordion-item.active .accordion-content { 
    /* Konten accordion saat aktif */
    max-height: 1000px; 
    transition: max-height 1s ease-in-out; 
}
.accordion-item.active .accordion-header i { 
    /* Rotasi ikon saat accordion aktif */
    transform: rotate(45deg); 
    color: var(--accent);
}

/* =====================================
   Back to Top Button
   ===================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg-dark);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    /* Default tersembunyi */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

#back-to-top.show {
    /* Tampilkan tombol saat kelas 'show' ditambahkan */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#back-to-top:hover { transform: translateY(-3px); }

/* =====================================
   Mute Button Styles
   ===================================== */
.mute-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--surface-strong);
    color: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.mute-btn:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--bg-dark); transform: translateY(-3px); }

/* =====================================
   Click Ripple Effect
   ===================================== */
.click-ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(99, 102, 241, 0.4);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    animation: ripple-animation 0.6s ease-out forwards;
    z-index: 10000;
}
@keyframes ripple-animation {
    from { width: 0; height: 0; opacity: 1; }
    to { width: 100px; height: 100px; opacity: 0; }
}

/* =====================================
   Footer
   ===================================== */
footer {
    padding: 6rem 0 3rem;
    background: var(--section-band);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-main);
    font-size: 1.4rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--card-shadow);
}

.social-links a:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg-dark);
    box-shadow: 0 18px 40px var(--accent-glow);
    border-color: transparent;
}

.footer-bottom {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-bottom i {
    color: #ef4444; /* Warna merah hati */
    margin: 0 4px;
}

/* =====================================
   Preloader
   ===================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a; /* Same as --bg-dark */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================
   Reveal Animations
   ===================================== */
.reveal-top,
.reveal-bottom,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-top { transform: translateY(-28px); }
.reveal-bottom { transform: translateY(34px); }
.reveal-left { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }

.reveal-top.active,
.reveal-bottom.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* =====================================
   Responsive Design (Mobile)
   ===================================== */
@media (max-width: 980px) {
    .navbar {
        border-radius: 24px;
    }

    .navbar.scrolled {
        border-radius: 22px;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-flex {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-image {
        justify-content: center;
        flex-basis: auto;
    }

    .hero-text-wrapper {
        margin: 0 auto;
    }

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

    .hero-highlights,
    .about-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        line-height: 1.65;
    }

    .navbar,
    .navbar.scrolled {
        width: calc(100% - 24px);
        top: 12px;
        border-radius: 22px;
    }

    .navbar .container {
        gap: 0.65rem;
    }

    .nav-links { 
        flex-direction: column;
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        transform: translateX(-50%) translateY(-8px);
        width: 100%;
        background: var(--nav-bg);
        padding: 1rem;
        text-align: center;
        box-shadow: var(--card-shadow);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links a {
        display: block;
        padding: 0.75rem;
    }

    .nav-links.active { 
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .menu-toggle { display: inline-flex; font-size: 1.2rem; }
    .theme-btn {
        margin-left: auto;
    }

    .hero {
        padding: 112px 0 56px;
        min-height: auto;
    }

    .hero-name { font-size: clamp(2.35rem, 13vw, 3.5rem); }
    .section { padding: 60px 0; }
    .hero-flex { flex-direction: column-reverse; text-align: center; gap: 2rem; }
    .photo-frame { width: min(280px, 76vw); height: min(280px, 76vw); min-width: 220px; min-height: 220px; }
    .hero .description { margin: 0 auto 2rem; }
    .about-info { flex-direction: column; gap: 1rem; } /* Stack info vertically */

    .hero-text-wrapper {
        padding: 1.65rem;
        border-radius: 22px;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }

    .btn { margin-top: 0; width: 100%; text-align: center; }
    .btn-outline { margin-left: 0; width: 100%; text-align: center; }

    .projects-grid,
    .skills-grid {
        gap: 1rem;
    }

    .project-info p {
        min-height: auto;
    }

    .accordion-header {
        font-size: 1rem;
        padding: 1.15rem;
    }

    .accordion-content p {
        padding: 0 1.15rem 1.15rem;
    }

    #back-to-top,
    .mute-btn {
        bottom: 18px;
        width: 42px;
        height: 42px;
    }

    #back-to-top { right: 18px; }
    .mute-btn { left: 18px; }
}

@media (max-width: 420px) {
    .container {
        padding: 0 0.9rem;
    }

    .logo {
        font-size: 1.08rem;
    }

    .theme-btn,
    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .hero-text-wrapper,
    .about-text,
    .contact-form,
    .accordion,
    .project-card {
        border-radius: 18px;
    }

    .hero-socials {
        gap: 0.75rem;
    }

    .hero-socials a {
        width: 42px;
        height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-top,
    .reveal-bottom,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}
