/* ==========================================================================
   1. IMPORT FONT & TEMA WARNA (VARIABEL)
   ========================================================================== */
@import url('https://googleapis.com');

:root {
    --bg-main: #0b0c10;
    --bg-card: #121318;
    --text-primary: #ffffff;
    --text-secondary: #c5c6c7;
    --text-muted: #666d7a;
    --accent-blue: #60a5fa;
    --accent-indigo: #6366f1;
    --max-width: 1150px; /* Sedikit diperlebar agar tata letak grid lebih luas */
}

/* ==========================================================================
   2. RESET DASAR & GLOBAL STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Pergerakan layar mulus saat menu diklik */
}

body {
    background-color: var(--bg-main);
    color: var(--text-secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   3. STYLING NAVIGASI BAR (NAVBAR)
   ========================================================================== */
.site-header {
    padding: 30px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.brand {
    color: var(--text-muted);
    font-size: 15px;
    font-family: 'JetBrains Mono', monospace;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-size: 15px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

/* ==========================================================================
   4. TATA LETAK UTAMA BERANDA (HERO SECTION - LEBIH PADAT & EFEK ZOOM)
   ========================================================================== */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 80px 24px; /* Padding disesuaikan agar konten seimbang */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsif kiri-kanan */
    gap: 64px;
    align-items: center;
    min-height: calc(100vh - 120px);
}

.hero-section {
    display: flex;
    flex-direction: column;
    gap: 24px; /* Jarak antar baris teks dibuat lebih padat */
}

.section-tag {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 600;
}

.hero-title {
    font-size: 72px; /* Diperbesar dari 52px untuk efek zoom-in tebal */
    color: var(--text-primary);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 24px; /* Diperbesar dari 18px */
    color: var(--text-primary);
    font-weight: 500;
}

.hero-description {
    font-size: 16px; /* Diperbesar dari 14px agar lebih terbaca jelas */
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 520px;
}

/* Tombol Aksi */
.cta-buttons {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 14px;
}

.cta-buttons a {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    font-weight: 600;
}

.btn-primary:hover {
    background: #e4e4e7;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ==========================================================================
   5. STYLING JENDELA TERMINAL MINI
   ========================================================================== */
.terminal-window {
    background-color: var(--bg-card);
    border: 1px solid rgba(63, 63, 70, 0.4);
    border-radius: 12px;
    padding: 28px; /* Dibuat sedikit lebih luas di dalam */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'JetBrains Mono', monospace;
}

.terminal-window:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 35px 70px -10px rgba(99, 102, 241, 0.2);
    transform: translateY(-6px);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 14px;
    margin-bottom: 24px;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.close { background: #ef4444; }
.minimize { background: #eab308; }
.maximize { background: #22c55e; }

.terminal-title {
    font-size: 13px;
    color: var(--text-muted);
}

.terminal-body {
    display: flex;
    flex-direction: column;
    gap: 22px;
    font-size: 14px;
}

.command {
    color: var(--accent-blue);
    display: block;
    margin-bottom: 6px;
}

.output {
    color: var(--text-secondary);
    padding-left: 12px;
}

/* Efek Kursor Mengetik */
.typing-cursor::after {
    content: '_';
    animation: blink 0.8s infinite;
    color: var(--accent-blue);
    margin-left: 3px;
    font-weight: bold;
}

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

.status-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .4; transform: scale(0.9); }
}

/* ==========================================================================
   6. STYLING BAGIAN KEAHLIAN (SKILLS SECTION)
   ========================================================================== */
.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 36px;
    color: var(--text-primary);
    font-weight: 700;
    margin-top: 8px;
}

.skills-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 80px 24px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.skill-card:hover {
    border-color: var(--accent-blue);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* ==========================================================================
   7. STYLING BAGIAN PROYEK (PROJECTS SECTION)
   ========================================================================== */
.projects-container {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    padding: 80px 24px 120px 24px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.project-name {
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 600;
}

.project-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.project-tech {
    font-size: 13px;
    color: var(--accent-blue);
    font-family: 'JetBrains Mono', monospace;
}

.project-link {
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    margin-top: 8px;
    display: inline-block;
    font-weight: 500;
}

.project-link:hover {
    text-decoration: underline;
    color: var(--accent-blue);
}

/* ==========================================================================
   8. FOOTER HINDO
   ========================================================================== */
.site-footer {
    padding: 50px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   9. RESPONSIVITAS LAYAR HP
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title { font-size: 58px; }
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        padding-top: 40px;
        gap: 48px;
    }
    .hero-title { font-size: 46px; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons a { text-align: center; }
}
