/* ================================================================
   ANDRIAN SAPUTRI — PORTFOLIO STYLESHEET
   Mempertahankan tema: Scrapbook, Hijau + Pink, Paper texture
   ================================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Playfair+Display:ital,wght@1,600;1,700&family=Poppins:wght@400;500;600;700&family=VT323&display=swap');

/* ===== VARIABLES ===== */
:root {
    --pink-light: #fad6d6;
    --pink-dark: #f0959f;
    --pink-medium: #d1788c;
    --green-dark: #2c5932;
    --green-base: #3b763b;
    --green-light: #e8f5e9;
    --bg-paper: #f9f5ed;
    --bg-paper2: #f2ece0;
    --text-main: #333;
    --text-green: #2c5932;
    --win-blue: #000080;
    --win-bg: #c0c0c0;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-card: 5px 5px 15px rgba(0,0,0,0.15);
    --radius: 14px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-paper);
    color: var(--text-main);
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(249, 245, 237, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(44, 89, 50, 0.12);
    transition: box-shadow var(--transition);
}
.navbar-header.scrolled {
    box-shadow: 0 4px 24px rgba(44,89,50,0.10);
}

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

.nav-logo {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--green-dark);
    letter-spacing: -0.5px;
    transition: opacity var(--transition);
}
.nav-logo span { color: var(--pink-dark); }
.nav-logo:hover { opacity: 0.8; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all var(--transition);
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: var(--green-dark);
    background: var(--green-light);
    font-weight: 600;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--green-dark);
    border-radius: 3px;
    transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    min-height: 100vh;
    padding-top: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background:
        radial-gradient(circle at 70% 50%, rgba(250,214,214,0.25) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(200,230,200,0.3) 0%, transparent 50%),
        url('https://www.transparenttextures.com/patterns/grass.png'),
        #3b763b;
    background-blend-mode: overlay;
    position: relative;
    overflow: hidden;
}

/* Decorative elements */
.hero-deco {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}
.deco-star {
    font-size: 2rem;
    color: rgba(255,255,255,0.4);
    top: 15%; right: 12%;
    animation: float 4s ease-in-out infinite;
}
.deco-dot {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(250,214,214,0.15);
    bottom: 15%; left: 8%;
    animation: float 5s ease-in-out infinite reverse;
}
.deco-circle {
    width: 60px; height: 60px;
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    top: 30%; left: 18%;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    width: 100%;
    padding: 0 5%;
    z-index: 2;
}

.hero-content { text-align: left; }

.title-container {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.cutout-bg {
    background-color: var(--pink-medium);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    padding: 5px 25px;
    display: inline-block;
    position: relative;
    top: -20px; left: -30px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 700;
    font-size: 8rem;
    color: #f7a6b8;
    text-shadow: 4px 4px 0px #fff, -2px -2px 0px #fff, 2px -2px 0px #fff, -2px 2px 0px #fff;
    position: relative;
    z-index: 2;
    margin-top: -60px;
    letter-spacing: -2px;
    line-height: 1;
}

.hero-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    margin-top: 0;
}

.hero-role {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    margin: 10px 0 14px;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

.hero-desc {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 400px;
    margin-bottom: 28px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: white;
    color: var(--green-dark);
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 30px;
    border: none;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.25);
    transition: all var(--transition);
    cursor: pointer;
}
.btn-hero:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    background: var(--pink-light);
}

/* Hero photo area */
.hero-photo-wrapper { flex-shrink: 0; }

.hero-photo-card {
    background: white;
    padding: 14px 14px 50px;
    box-shadow: var(--shadow-card);
    position: relative;
    width: 240px;
    transform: rotate(4deg);
    transition: transform var(--transition);
}
.hero-photo-card:hover { transform: rotate(0deg) scale(1.04); }

.hero-photo-tape {
    position: absolute;
    width: 80px; height: 24px;
    background: rgba(250,214,214,0.7);
    top: -10px; left: 50%; transform: translateX(-50%) rotate(-3deg);
    backdrop-filter: blur(2px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.hero-photo-frame {
    width: 210px;
    height: 260px;
    overflow: hidden;
    background: #f0f0f0;
    position: relative;
}
.hero-photo-frame img {
    width: 100%; height: 100%; object-fit: cover;
}

.photo-placeholder {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #fad6d6, #e8f5e9);
    color: #666;
    text-align: center;
    padding: 10px;
}
.photo-placeholder i { font-size: 3rem; color: #aaa; }
.photo-placeholder span { font-weight: 700; font-size: 0.95rem; color: #888; }
.photo-placeholder small { font-size: 0.7rem; color: #aaa; }

.hero-photo-caption {
    font-family: 'Caveat', cursive;
    font-size: 1.3rem;
    text-align: center;
    margin-top: 12px;
    color: #555;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 2;
}
.scroll-indicator span {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.scroll-arrow {
    width: 20px; height: 20px;
    border-right: 2px solid rgba(255,255,255,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.6);
    transform: rotate(45deg);
    animation: bounce 1.5s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(5px); }
}

/* ================================================================
   ABOUT
   ================================================================ */
.about {
    min-height: 100vh;
    background: url('https://www.transparenttextures.com/patterns/paper-fibers.png'), var(--bg-paper);
    padding: 100px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-container {
    display: flex;
    gap: 60px;
    max-width: 1050px;
    width: 100%;
    align-items: flex-start;
}

/* Phone Layout */
.phone-wrapper {
    position: relative;
    flex: 0 0 280px;
}

.greeting-badge {
    position: absolute;
    top: -18px; right: -30px;
    background: var(--green-dark);
    color: white;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 10px;
    transform: rotate(5deg);
    z-index: 5;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.phone-frame {
    background: #e0e0e0;
    border: 4px solid #b0b0b0;
    border-radius: 30px;
    padding: 18px 14px;
    box-shadow: inset 0 0 10px rgba(255,255,255,0.8), 10px 10px 20px rgba(0,0,0,0.2);
}

.phone-screen {
    background: #fff;
    height: 280px;
    border: 3px solid #333;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
    position: relative;
}

.phone-screen img {
    width: 100%; height: 100%; object-fit: cover;
}
.phone-screen .photo-placeholder { position: absolute; inset: 0; }

.phone-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.key {
    background: #d0d0d0;
    height: 18px;
    border-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Currently Learning card */
.learning-card {
    background: white;
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 20px;
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--green-dark);
}
.learning-card-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--green-dark);
    margin-bottom: 10px;
}
.learning-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ltag {
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(44,89,50,0.2);
}

/* About text */
.about-text { flex: 1; }

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 14px;
}

.highlight-pink {
    background: var(--pink-light);
    padding: 2px 8px;
    font-weight: 700;
    border-radius: 4px;
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.7;
    color: #444;
}

.dashed-line {
    border: none;
    border-top: 2px dashed #c0b8a8;
    margin: 22px 0;
}

.about-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-green);
}

/* Data Diri Grid */
.data-diri-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.data-item {
    background: white;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: var(--shadow-soft);
    border-left: 3px solid var(--pink-dark);
}
.data-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.data-value {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #333;
}

.alasan-rpl {
    font-style: italic;
    background: var(--pink-light);
    border-left: 3px solid var(--pink-dark);
    padding: 12px 16px;
    border-radius: 0 10px 10px 0;
    color: #555 !important;
}

/* ================================================================
   PROJECTS
   ================================================================ */
.projects {
    padding: 60px 5% 40px;
    background:
        linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0.28)),
        url('https://images.unsplash.com/photo-1448375240586-882707db888b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover;
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.clipboard-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
}

.clip {
    width: 120px; height: 38px;
    background: #c0c0c0;
    border: 2px solid #888;
    border-radius: 10px;
    position: absolute;
    top: -19px; left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}
.clip::after {
    content: '';
    position: absolute;
    width: 28px; height: 28px;
    background: #999;
    border-radius: 50%;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    border: 2px solid #888;
}

.clipboard-paper {
    background: #f7bbd0;
    padding: 40px 32px 32px;
    border-radius: 15px;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.5);
}

.clipboard-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    border: 2px solid #333;
    display: inline-block;
    padding: 4px 20px;
    border-radius: 30px;
    background: transparent;
    margin-bottom: 6px;
}
.clipboard-subtitle {
    font-size: 0.88rem;
    color: #555;
    margin-bottom: 20px;
}

/* Project card grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.project-carousel-wrapper {
    display: none;
    position: relative;
    align-items: center;
    gap: 8px;
}

.project-carousel {
    overflow: hidden;
    flex: 1;
}

.project-carousel .project-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.project-carousel .project-card {
    flex: 0 0 calc(25% - 15px);
    min-width: 200px;
}

.carousel-btn {
    background: white;
    border: 2px solid var(--green-dark);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--green-dark);
    transition: all 0.3s ease;
    flex-shrink: 0;
    z-index: 10;
}

.carousel-btn:hover:not(:disabled) {
    background: var(--green-dark);
    color: white;
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-hint {
    display: none;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 12px;
    font-style: italic;
}

.project-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 8px 12px 30px rgba(0,0,0,0.18);
}

.project-thumb {
    height: 140px;
    overflow: hidden;
    background: #e8e8e8;
    position: relative;
}
.project-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.05); }

.project-thumb-placeholder {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #fad6d6 0%, #c8e6c9 100%);
    color: #888;
    font-size: 0.8rem;
    font-weight: 600;
}
.project-thumb-placeholder i { font-size: 2.5rem; color: #bbb; }

.project-card-body {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.project-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #222;
}
.project-card-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    flex: 1;
}

.project-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}
.tech-badge {
    background: var(--green-light);
    color: var(--green-dark);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid rgba(44,89,50,0.18);
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--green-dark);
    color: white;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
}
.btn-detail:hover {
    background: var(--green-base);
    transform: translateY(-1px);
}

.project-card-actions {
    display: flex;
    gap: 8px;
}
.project-card-actions .btn-detail,
.project-card-actions .btn-github {
    flex: 1;
}
.btn-github {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 10px;
    background: white;
    color: var(--green-dark);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--green-dark);
    border-radius: 20px;
    transition: all var(--transition);
}
.btn-github:hover {
    background: var(--green-light);
    transform: translateY(-1px);
}
.btn-github.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ================================================================
   PROJECT DETAIL MODAL
   ================================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    scrollbar-width: thin;
}
.modal-overlay.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    background: #eee;
    border: none;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    z-index: 10;
    transition: background var(--transition);
}
.modal-close:hover { background: var(--pink-light); }

.modal-img-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
    border-radius: 20px 20px 0 0;
    background: #f0f0f0;
}
.modal-img-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
}
.modal-img-placeholder {
    position: absolute; inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #fad6d6, #e8f5e9);
    color: #888;
    font-weight: 600;
    font-size: 0.9rem;
}
.modal-img-placeholder i { font-size: 3rem; color: #ccc; }

.modal-body {
    padding: 24px 28px 30px;
}
.modal-project-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}
.modal-project-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.modal-section {
    margin-bottom: 18px;
}
.modal-section h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px dashed #d0d0d0;
}
.modal-section p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
}
.modal-fitur {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.modal-fitur li {
    font-size: 0.88rem;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.modal-fitur li::before {
    content: '✦';
    color: var(--pink-dark);
    flex-shrink: 0;
    margin-top: 1px;
}
.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.modal-tech-tags .tech-badge {
    font-size: 0.82rem;
    padding: 4px 12px;
}

/* ================================================================
   IMAGE LIGHTBOX
   ================================================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.lightbox-overlay.open .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.6rem;
    z-index: 10;
    transition: background 0.3s ease, transform 0.2s ease;
}
.lightbox-close:hover {
    background: white;
    transform: scale(1.1);
}

/* ================================================================
   SKILLS
   ================================================================ */
.skills {
    padding: 50px 5% 30px;
    background: #90caf9;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.window-container {
    width: 100%;
    max-width: 700px;
}

.skills-title-wrap {
    text-align: center;
    margin-bottom: 12px;
}
.skills-main-title {
    font-family: 'Caveat', cursive;
    font-size: 1.9rem;
    color: var(--win-blue);
    text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
    margin-bottom: 2px;
}
.skills-subtitle {
    font-size: 0.8rem;
    color: rgba(0,0,50,0.6);
    margin-top: 0;
}

.window {
    background: var(--win-bg);
    border: 2px solid #ffffff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.2);
}

.window-header {
    background: var(--win-blue);
    color: white;
    padding: 4px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'VT323', monospace;
    font-size: 1rem;
}

.window-controls { display: flex; gap: 3px; }
.win-btn {
    width: 18px; height: 18px;
    background: var(--win-bg);
    border: 1px solid #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    font-size: 0.7rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'VT323', monospace;
}

.window-body {
    background: white;
    padding: 10px 12px;
    margin: 3px;
    border: 2px solid #808080;
    border-right-color: #ffffff;
    border-bottom-color: #ffffff;
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

.skill-category {
    margin-bottom: 8px;
}
.skill-category:last-child {
    margin-bottom: 0;
}
.skill-cat-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--win-blue);
    margin-bottom: 5px;
    font-family: 'VT323', monospace;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2px;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 10px;
    text-align: center;
}

.folder-item {
    cursor: default;
    padding: 8px 4px;
    border-radius: 6px;
    transition: background var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.folder-item:hover { background: #f0f0f0; }

.folder-item i {
    font-size: 2.4rem;
    display: block;
}

.folder-item > span {
    display: block;
    font-size: 1.07rem;
    font-family: 'VT323', monospace;
    line-height: 1.1;
    color: #222;
}

.skill-level {
    font-size: 0.78rem;
    font-family: 'Poppins', sans-serif;
    padding: 3px 9px;
    border-radius: 10px;
    background: #eee;
    color: #777;
    font-weight: 600;
}
.skill-level.learning {
    background: #fff3cd;
    color: #856404;
}
.skill-level.beginner {
    background: #d1ecf1;
    color: #0c5460;
}

/* ================================================================
   LEARNING JOURNEY — TIMELINE
   ================================================================ */
.journey {
    padding: 60px 5% 40px;
    background: var(--bg-paper);
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.sticker-title {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    display: inline-block;
    background: #fff;
    padding: 5px 24px;
    transform: rotate(-2deg);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 8px;
}
.journey-subtitle {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 30px;
}

/* Horizontal Timeline */
.timeline {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 10px;
}

/* Horizontal line */
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    height: 2px;
    background: linear-gradient(to right, var(--pink-dark), var(--green-dark));
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 280px;
}

.timeline-item.tl-right,
.timeline-item.tl-left {
    padding: 0;
    margin: 0;
    width: auto;
    justify-content: flex-start;
}

.tl-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 72px;
    width: 16px;
    height: 16px;
    background: var(--pink-dark);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--pink-dark);
    z-index: 1;
}
.tl-dot-now {
    background: var(--green-dark);
    box-shadow: 0 0 0 2px var(--green-dark);
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--green-dark); }
    50% { box-shadow: 0 0 0 6px rgba(44,89,50,0.2); }
}
.tl-right .tl-dot,
.tl-left .tl-dot {
    right: auto;
    left: 50%;
}

.timeline-item .photo-card {
    width: 100%;
    max-width: 100%;
    padding: 16px 16px 20px;
    margin-top: 30px;
}
.photo-card {
    background: white;
    box-shadow: var(--shadow-card);
    position: relative;
    transform: rotate(2deg);
    transition: transform var(--transition);
}
.card-alt { transform: rotate(-2deg); }
.photo-card:hover { transform: scale(1.03) rotate(0deg); z-index: 10; }

.tape {
    position: absolute;
    width: 70px; height: 22px;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(2px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tape-1 { transform: translateX(-50%) rotate(-5deg); background: rgba(250,214,214,0.75); }
.tape-2 { transform: translateX(-50%) rotate(3deg); background: rgba(200,230,200,0.75); }
.tape-3 { transform: translateX(-50%) rotate(-2deg); background: rgba(200,200,230,0.75); }

.tl-year-badge {
    display: inline-block;
    background: var(--pink-dark);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    padding: 5px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}
.badge-green { background: var(--green-dark); }
.badge-pink { background: var(--pink-medium); }

.tl-content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.5;
    display: block;
    word-break: break-word;
    overflow-wrap: break-word;
}
.tl-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}
.tl-content ul {
    margin-top: 6px;
    padding-left: 16px;
    text-align: left;
}
.tl-content li {
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.65;
    margin-bottom: 5px;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact-footer {
    padding: 80px 5% 0;
    background: #e8dcc6;
    border-top: 2px dashed #bba;
    text-align: center;
}

.contact-box h2 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.contact-tagline {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 40px;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: var(--radius);
    padding: 16px 22px;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
    transition: all var(--transition);
    min-width: 220px;
    text-align: left;
}
.contact-card:hover {
    border-color: var(--pink-dark);
    transform: translateY(-3px);
    box-shadow: 4px 6px 20px rgba(0,0,0,0.1);
}

.contact-card-icon {
    width: 44px; height: 44px;
    background: var(--pink-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--pink-dark);
    flex-shrink: 0;
}
.contact-card-icon.ig { background: #fce4ec; color: #e91e63; }
.contact-card-icon.wa { background: #e8f5e9; color: #2e7d32; }

.contact-card-label {
    display: block;
    font-size: 0.72rem;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.contact-card-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-top: 2px;
}

.btn-email-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--green-dark);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 30px;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.2);
    transition: all var(--transition);
    margin-bottom: 50px;
}
.btn-email-me:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.15);
    background: #1e4224;
}

/* Desktop Carousel */
@media (min-width: 1024px) {
    .project-carousel-wrapper {
        display: flex;
    }
    .clipboard-paper > .project-grid {
        display: none;
    }
    .project-carousel .project-grid {
        gap: 24px;
    }
    .project-carousel .project-card {
        flex-basis: calc(25% - 22px);
        min-width: 260px;
    }
    .project-carousel .project-thumb {
        height: 200px;
    }
    .project-carousel .project-card-body {
        padding: 22px;
    }
    .project-carousel .project-card-name {
        font-size: 1.25rem;
    }
    .project-carousel .project-card-desc {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .project-carousel .tech-badge {
        font-size: 0.76rem;
        padding: 3px 9px;
    }
    .project-carousel .btn-detail,
    .project-carousel .btn-github {
        font-size: 0.86rem;
        padding: 10px 12px;
    }
    .carousel-hint {
        display: block;
    }
}

/* Footer */
.site-footer {
    background: #d6c9af;
    padding: 24px 5%;
    margin: 0 -5%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: #666;
}
.site-footer strong { color: #333; }
.heart { color: var(--pink-dark); font-size: 1rem; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .hero-content { text-align: center; }
    .hero-desc { margin: 0 auto 28px; }
    .hero-photo-card { transform: rotate(0); }
    .about-container { flex-direction: column; align-items: center; }
    .about-text { text-align: left; }
    .data-diri-grid { grid-template-columns: 1fr; }
    
    .journey {
        min-height: auto;
        max-height: none;
        padding: 60px 5%;
    }
    .timeline {
        flex-direction: column;
        gap: 30px;
        padding-left: 40px;
    }
    .timeline::before {
        left: 20px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
        background: linear-gradient(to bottom, var(--pink-dark), var(--green-dark));
    }
    .timeline-item {
        max-width: 100%;
        align-items: flex-start;
    }
    .tl-dot {
        left: 12px;
        top: 20px;
        transform: none;
    }
    .timeline-item .photo-card {
        margin-top: 0;
    }
}
}

@media (max-width: 768px) {
    /* Navbar mobile */
    .nav-links {
        display: none;
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: rgba(249, 245, 237, 0.97);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 4px;
        padding: 16px;
        border-bottom: 2px solid rgba(44,89,50,0.1);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }
    .nav-links.open { display: flex; }
    .hamburger { display: flex; }
    .nav-link { padding: 10px 16px; border-radius: 10px; }

    .hero-title { font-size: 5.5rem; }
    .cutout-bg { font-size: 2rem; left: -20px; }

    .clipboard-paper { padding: 50px 22px 36px; }
    
    .project-carousel-wrapper {
        display: block;
    }
    .carousel-btn,
    .carousel-hint {
        display: none;
    }

    .project-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    .project-grid::-webkit-scrollbar {
        display: none;
    }
    .project-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }

    .contact-cards { flex-direction: column; align-items: center; }
    .contact-card { width: 100%; max-width: 360px; }

    /* Journey typography override — mobile */
    .tl-content h4 {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 6px;
    }
    .tl-content p {
        font-size: 0.82rem;
        line-height: 1.55;
    }
    .tl-content li {
        font-size: 0.75rem;
        line-height: 1.55;
        margin-bottom: 4px;
    }
    .tl-year-badge {
        font-size: 0.74rem;
        margin-bottom: 10px;
    }

    .folder-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }

    .hero-photo-card { width: 200px; }
    .hero-photo-frame { width: 172px; height: 215px; }
}

@media (max-width: 480px) {
    /* About mobile: compact without changing desktop layout */
    .about {
        min-height: auto;
        padding: 72px 5% 56px;
    }
    .about-container {
        gap: 28px;
        align-items: stretch;
    }
    .phone-wrapper {
        flex: 0 1 auto;
        width: min(100%, 250px);
        margin: 0 auto;
    }
    .greeting-badge {
        top: -12px;
        right: -10px;
        font-size: 0.74rem;
        padding: 6px 10px;
    }
    .phone-frame {
        border-width: 3px;
        border-radius: 24px;
        padding: 12px 10px;
    }
    .phone-screen {
        height: 220px;
        margin-bottom: 12px;
    }
    .phone-screen img {
        object-fit: contain;
        background: #fff;
    }
    .phone-keypad { gap: 6px; }
    .key { height: 14px; }
    .learning-card {
        margin-top: 14px;
        padding: 11px 12px;
    }
    .learning-card-title {
        font-size: 0.78rem;
        margin-bottom: 8px;
    }
    .learning-tags { gap: 5px; }
    .ltag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    .about-text h2 {
        font-size: 1.65rem;
        margin-bottom: 10px;
    }
    .about-text p {
        font-size: 0.86rem;
        line-height: 1.55;
        margin-bottom: 10px;
    }
    .dashed-line { margin: 16px 0; }
    .about-text h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    .data-diri-grid { gap: 8px; }
    .data-item { padding: 9px 10px; }
    .data-label { font-size: 0.65rem; }
    .data-value {
        font-size: 0.78rem;
        overflow-wrap: anywhere;
    }
    .alasan-rpl { padding: 10px 12px; }

    .hero-title { font-size: 4rem; }
    .cutout-bg { font-size: 1.6rem; top: -15px; left: -15px; }
    .hero-subtitle { font-size: 2.2rem; }
    .sticker-title { font-size: 2.4rem; }
    .contact-box h2 { font-size: 1.9rem; }
    
    .project-carousel-wrapper {
        display: block;
    }
    .carousel-btn,
    .carousel-hint {
        display: none;
    }

    .project-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 10px;
        scrollbar-width: none;
    }
    .project-grid::-webkit-scrollbar {
        display: none;
    }
    .project-card {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }
    
    .modal-body { padding: 18px 18px 24px; }
    .site-footer { flex-direction: column; gap: 6px; }
}
