/* ============================================
   HORIZONTAL SCROLL - SKILLS & PROJECTS
   Scroll menyamping dengan fade effect di kedua sisi
   ============================================ */

/* Wrapper untuk positioning fade overlay & tombol */
.scroll-wrapper {
    position: relative;
    z-index: 10;
}

/* Container yang di-scroll horizontal */
.horizontal-scroll {
    display: flex !important;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 24px;
    padding: 20px 60px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: none !important;
}

/* Hide scrollbar di Chrome/Safari */
.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* Card lebar tetap agar konsisten saat scroll */
.horizontal-scroll .skill-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}
.horizontal-scroll .project-card {
    flex: 0 0 380px;
    scroll-snap-align: start;
}

/* Fade overlay di sisi kiri & kanan */
.scroll-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s;
}
.scroll-fade-left { left: 0; }
.scroll-fade-right { right: 0; }

/* Skills section (bg: --color-bg) */
.skills .scroll-fade-left {
    background: linear-gradient(to right, #0a0a0b 0%, rgba(10, 10, 11, 0.8) 60%, transparent 100%);
}
.skills .scroll-fade-right {
    background: linear-gradient(to left, #0a0a0b 0%, rgba(10, 10, 11, 0.8) 60%, transparent 100%);
}

/* Projects section (bg: --color-bg-secondary) */
.projects .scroll-fade-left {
    background: linear-gradient(to right, #0f0f10 0%, rgba(15, 15, 16, 0.8) 60%, transparent 100%);
}
.projects .scroll-fade-right {
    background: linear-gradient(to left, #0f0f10 0%, rgba(15, 15, 16, 0.8) 60%, transparent 100%);
}

/* Tombol Navigasi Prev/Next */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 20;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
    cursor: pointer;
}
.scroll-btn:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}
.scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.scroll-btn-prev { left: 8px; }
.scroll-btn-next { right: 8px; }
.scroll-btn [data-lucide] {
    width: 24px;
    height: 24px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto; /* Instant scroll tanpa delay */
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0b;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ============================================
   VARIABEL WARNA - Mudah diubah di sini
   ============================================ */
:root {
    --color-primary: #2563eb;      /* Warna utama biru */
    --color-primary-dark: #1e40af; /* Biru gelap untuk hover */
    --color-bg: #0a0a0b;            /* Background utama */
    --color-bg-secondary: #0f0f10;  /* Background section alternatif */
    --color-text: #ffffff;          /* Warna teks utama */
    --color-text-muted: #9ca3af;    /* Warna teks abu-abu */
    --color-border: rgba(255, 255, 255, 0.1); /* Warna border */
    --color-card-bg: rgba(255, 255, 255, 0.05); /* Background card transparan */
}

/* ============================================
   SCROLLBAR CUSTOM
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

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

/* Icon Lucide default size */
[data-lucide] {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* ============================================
   CONTAINER & UTILITY
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.accent {
    color: var(--color-primary);
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

/* Navbar berubah saat scroll (ditambahkan via JS) */
.navbar.scrolled {
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    transition: transform 0.3s;
}
.nav-logo:hover {
    transform: scale(1.05);
}

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

.nav-link {
    padding: 8px 20px;
    color: #d1d5db;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}
.nav-link:hover {
    color: white;
}
/* Efek underline saat hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s;
}
.nav-link:hover::after {
    width: calc(100% - 40px);
}

/* Hamburger button */
.nav-toggle {
    display: none;
    color: white;
    padding: 8px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg);
}

/* Background image dengan animasi */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1639322537228-f710d846310a?crop=entropy&cs=srgb&fm=jpg&ixid=M3w3NTY2NzF8MHwxfHNlYXJjaHwxfHxhYnN0cmFjdCUyMHRlY2hub2xvZ3klMjBuZXR3b3JrfGVufDB8fHxibGFja3wxNzg0Mjc2MDk0fDA&ixlib=rb-4.1.0&q=85');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    animation: slowZoom 20s ease-in-out infinite alternate;
    z-index: 0;
}

/* Overlay gradient */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.05), var(--color-bg));
    z-index: 1;
}

/* Grid pattern overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 0.2;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-greeting {
    color: var(--color-primary);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    color: white;
}

.hero-titles {
    margin-bottom: 48px;
}

.hero-title {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: #9ca3af;
    font-weight: 300;
    margin: 4px 0;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: fadeIn 1s ease 2s forwards;
    opacity: 0;
}
.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    animation: bounce 2s ease-in-out infinite;
}
.scroll-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes slowZoom {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1.1) rotate(5deg); }
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}
@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.5; }
}
@keyframes fadeIn {
    to { opacity: 1; }
}

/* ============================================
   SECTION UMUM
   ============================================ */
section {
    padding: 128px 0;
    position: relative;
    overflow: hidden;
}

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

.section-tag {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-heading {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 1.1;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ============================================
   BLUR CIRCLES (Efek background)
   ============================================ */
.blur-circle {
    position: absolute;
    width: 384px;
    height: 384px;
    background-color: var(--color-primary);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.1;
    z-index: 0;
}
.blur-tr { top: 80px; right: 80px; }
.blur-bl { bottom: 80px; left: 80px; }
.blur-tl { top: 0; left: 25%; }
.blur-br { bottom: 0; right: 25%; }
.blur-r  { top: 25%; right: 0; opacity: 0.2; }
.blur-l  { bottom: 25%; left: 0; opacity: 0.2; }

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    background: var(--color-bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start; /* Gambar sejajar ke atas dengan teks */
    position: relative;
    z-index: 10;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(37, 99, 235, 0.3);
}
.image-wrapper img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.image-wrapper:hover img {
    transform: scale(1.1);
}
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg-secondary), transparent);
}

/* Social Media di bawah gambar About */
.about-social {
    margin-top: 24px;
    padding: 24px;
    background: var(--color-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}
.about-social-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    font-weight: 500;
}
.about-social-links {
    display: flex;
    gap: 12px;
}
.about-social-icon {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.3s;
}
.about-social-icon:hover {
    transform: translateY(-5px) scale(1.08);
    border-color: rgba(37, 99, 235, 0.5);
    background: rgba(37, 99, 235, 0.12);
    color: var(--color-primary);
}
.about-social-icon [data-lucide],
.about-social-icon svg {
    width: 24px;
    height: 24px;
}

.about-content .section-tag,
.about-content .section-heading {
    text-align: left;
}
.about-content .section-heading {
    margin-bottom: 32px;
}

.about-text {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 32px;
}
.about-text p {
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.stat-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: rgba(37, 99, 235, 0.5);
}
.stat-icon {
    color: var(--color-primary);
    margin-bottom: 12px;
    width: 32px !important;
    height: 32px !important;
    transition: transform 0.3s;
}
.stat-card:hover .stat-icon {
    transform: scale(1.1);
}
.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
    background: var(--color-bg);
}

.skills-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1639066648921-82d4500abf1a?crop=entropy&cs=srgb&fm=jpg&ixid=M3w4NjAzNzl8MHwxfHNlYXJjaHwxfHxuZXR3b3JrJTIwaW5mcmFzdHJ1Y3R1cmV8ZW58MHx8fGJsYWNrfDE3ODQyNzYxMDl8MA&ixlib=rb-4.1.0&q=85');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 10;
}

.skill-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}
.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
}

.skill-icon {
    width: 64px;
    height: 64px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 24px;
    transition: transform 0.3s;
}
.skill-icon [data-lucide] {
    width: 32px;
    height: 32px;
}
.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    transition: color 0.3s;
}
.skill-card:hover .skill-title {
    color: var(--color-primary);
}

.skill-list li {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.skill-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: var(--color-bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    z-index: 10;
}

.project-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s ease;
    position: relative;
}
.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.5);
}

.project-image {
    position: relative;
    height: 256px;
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Overlay dengan icon Github & Demo */
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: opacity 0.3s;
}
.project-image:hover .project-overlay {
    opacity: 1;
}
.project-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
}
.project-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}
.project-icon [data-lucide],
.project-icon svg {
    width: 24px;
    height: 24px;
}

.project-content {
    padding: 24px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    transition: color 0.3s;
}
.project-card:hover .project-title {
    color: var(--color-primary);
}

.project-desc {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.tag {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 9999px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--color-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    position: relative;
    z-index: 10;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--color-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.3s;
}
.contact-item:hover {
    transform: translateX(10px);
    border-color: rgba(37, 99, 235, 0.5);
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: background 0.3s;
}
.contact-item:hover .contact-icon {
    background: rgba(37, 99, 235, 0.3);
}
.contact-icon [data-lucide] {
    width: 24px;
    height: 24px;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}
.contact-value {
    color: white;
    font-weight: 500;
}

.social-section {
    margin-top: 16px;
}
.social-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}
.social-links {
    display: flex;
    gap: 16px;
}
.social-icon {
    width: 56px;
    height: 56px;
    background: var(--color-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.3s;
}
.social-icon:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: rgba(37, 99, 235, 0.5);
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
}
.social-icon [data-lucide],
.social-icon svg {
    width: 24px;
    height: 24px;
}

.contact-quote {
    padding: 32px;
    background: linear-gradient(to bottom right, rgba(37, 99, 235, 0.1), transparent);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    color: #d1d5db;
    font-size: 1.125rem;
    line-height: 1.75;
    margin-top: 16px;
    position: relative;
    overflow: hidden;
}
.contact-quote::before {
    content: '';
    position: absolute;
    top: 16px;
    right: 16px;
    width: 80px;
    height: 80px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    filter: blur(30px);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 32px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
}
.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 128px;
    background: linear-gradient(to top, rgba(37, 99, 235, 0.2), transparent);
    opacity: 0.3;
    pointer-events: none;
}

.footer-grid {
    padding: 64px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    position: relative;
    z-index: 10;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.footer-made {
    font-size: 0.875rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}
.heart-icon {
    color: var(--color-primary) !important;
    fill: var(--color-primary);
    width: 16px !important;
    height: 16px !important;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    padding-left: 0;
}
.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s;
}
.footer-links a:hover {
    color: var(--color-primary);
}
.footer-links a:hover::before {
    width: 16px;
}

.footer-contact li {
    color: var(--color-text-muted);
}

.footer-bottom {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 10;
}
.footer-bottom p {
    color: #6b7280;
    font-size: 0.875rem;
}

.scroll-top-btn {
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 8px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.scroll-top-btn:hover {
    background: rgba(37, 99, 235, 0.3);
    transform: scale(1.1) translateY(-2px);
}
.scroll-top-btn:hover [data-lucide] {
    transform: translateY(-2px);
}
.scroll-top-btn [data-lucide] {
    transition: transform 0.3s;
}

.footer-line {
    height: 4px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
}

/* ============================================
   INTERSECTION OBSERVER - SCROLL REVEAL
   ============================================ */

/* State awal untuk elemen yang akan direveal */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-up { transform: translateY(30px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

/* State visible - ditambahkan via JS Intersection Observer */
.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered animation delay untuk hero */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Hero elements langsung tampil saat load */
.hero .reveal-up {
    animation: heroReveal 1s ease forwards;
    opacity: 0;
}
.hero .delay-1 { animation-delay: 0.2s; }
.hero .delay-2 { animation-delay: 0.5s; }
.hero .delay-3 { animation-delay: 0.7s; }
.hero .delay-4 { animation-delay: 0.9s; }
.hero .delay-5 { animation-delay: 1.1s; }

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

/* Stagger delay untuk skill cards & project cards */
.skills-grid .skill-card:nth-child(1) { transition-delay: 0.1s; }
.skills-grid .skill-card:nth-child(2) { transition-delay: 0.2s; }
.skills-grid .skill-card:nth-child(3) { transition-delay: 0.3s; }
.skills-grid .skill-card:nth-child(4) { transition-delay: 0.4s; }
.skills-grid .skill-card:nth-child(5) { transition-delay: 0.5s; }
.skills-grid .skill-card:nth-child(6) { transition-delay: 0.6s; }
.skills-grid .skill-card:nth-child(7) { transition-delay: 0.7s; }
.skills-grid .skill-card:nth-child(8) { transition-delay: 0.8s; }

.projects-grid .project-card:nth-child(1) { transition-delay: 0.1s; }
.projects-grid .project-card:nth-child(2) { transition-delay: 0.2s; }
.projects-grid .project-card:nth-child(3) { transition-delay: 0.3s; }
.projects-grid .project-card:nth-child(4) { transition-delay: 0.4s; }
.projects-grid .project-card:nth-child(5) { transition-delay: 0.5s; }
.projects-grid .project-card:nth-child(6) { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 11, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--color-border);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Horizontal scroll di mobile - card lebih kecil, padding minim */
    .horizontal-scroll {
        padding: 20px 20px !important;
        gap: 16px;
    }
    .horizontal-scroll .skill-card {
        flex: 0 0 260px;
    }
    .horizontal-scroll .project-card {
        flex: 0 0 300px;
    }
    /* Sembunyikan tombol prev/next di mobile - user cukup swipe */
    .scroll-btn {
        display: none;
    }
    .scroll-fade {
        width: 40px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .floating-card {
        right: 16px;
        bottom: -20px;
    }

    .section-header {
        margin-bottom: 48px;
    }
}
