:root {
    --bg: #e8e4d9; /* Krem kertas tua */
    --dark: #121212;
    --accent: #d44d2e; /* Merah bata vintage */
    --border: #252525;
}

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

body {
    background-color: var(--bg);
    color: var(--dark);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.grain {
    position: fixed; inset: 0;
    background: url('https://upload.wikimedia.org/wikipedia/commons/7/76/Noise_600x600.png');
    opacity: 0.05; pointer-events: none; z-index: 100;
}

/* Teks Berjalan di Background */
.bg-text-running {
    position: fixed; top: 10%; width: 100%;
    font-family: 'Syne'; font-size: 8vw; opacity: 0.03;
    white-space: nowrap; font-weight: 900; pointer-events: none;
}

.container {
    display: flex; flex-direction: column; align-items: center;
    padding: 40px 20px; min-height: 100vh; justify-content: space-between;
}

.main-header { text-align: center; z-index: 10; }

.main-header h1 {
    font-family: 'Syne'; font-size: clamp(2.5rem, 8vw, 6rem);
    letter-spacing: -2px; line-height: 0.9;
}

.sub-name {
    font-size: 1.5rem; letter-spacing: 10px; font-weight: 300;
    margin-top: 5px; border-top: 2px solid var(--dark); display: inline-block;
}

/* Preview Utama */
.hero-preview {
    flex: 1; display: flex; align-items: center; justify-content: center;
    padding: 40px 0; width: 100%;
}

.frame-container {
    position: relative; width: 85%; max-width: 500px;
    background: white; padding: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    transform: rotate(-1deg); transition: transform 0.3s ease;
}

.cv-card {
    position: relative; overflow: hidden; border: 1px solid #ddd;
    cursor: zoom-in;
}

.cv-card img { width: 100%; height: auto; display: block; filter: contrast(1.05) sepia(5%); }

/* Tape/Solasi Effect */
.tape {
    position: absolute; width: 100px; height: 35px;
    background: rgba(212, 190, 150, 0.4); backdrop-filter: blur(2px);
    z-index: 5;
}
.top-left { top: -15px; left: -30px; transform: rotate(-45deg); }
.bottom-right { bottom: -15px; right: -30px; transform: rotate(-45deg); }

/* Tombol Download */
.download-main {
    background: var(--dark); color: var(--bg);
    border: none; padding: 20px 40px; font-family: 'Syne';
    font-size: 1.2rem; cursor: pointer; border-radius: 50px;
    display: flex; align-items: center; gap: 15px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.download-main:hover {
    background: var(--accent); transform: scale(1.05);
}

.vintage-tag { font-size: 0.7rem; margin-bottom: 10px; font-weight: bold; opacity: 0.5; text-align: center;}

/* --- TAMBAHAN BARU: Footer Style -

*/

.site-footer {
    padding: 40px 0 20px 0; /* Menambah ruang atas agar tidak menempel tombol */
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
}

.motivation {
    text-transform: none; /* Biar motivasi tidak huruf besar semua (lebih estetik) */
    font-style: italic;
    opacity: 0.6;
    margin-bottom: 15px;
    letter-spacing: 0; /* Balikin ke normal untuk kalimat panjang */
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 800;
    transition: 0.3s;
}

.footer-link:hover { 
    opacity: 0.7; 
}

.vintage-tag { 
    font-size: 0.7rem; 
    margin-bottom: 10px; 
    font-weight: bold; 
    opacity: 0.5; 
    text-align: center;
    display: block; /* Memastikan dia baris sendiri */
}


/* Preview

/* Styling Modal Fullscreen */
.modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(18, 18, 18, 0.98); /* Hitam pekat vintage */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    border: 5px solid white;
    animation: zoomAnim 0.3s ease-out;
}

@keyframes zoomAnim {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px; right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover { color: var(--accent); }

#caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-family: 'Syne';
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* Overlay Hover di Gambar Utama */
.overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: white; opacity: 0; transition: 0.3s; gap: 10px;
    font-family: 'Syne';
}
.cv-card:hover .overlay { opacity: 1; }


/* Responsive Mobile */
@media (max-width: 600px) {
    .frame-container { width: 95%; }
    .main-header h1 { font-size: 3rem; }
}
