/* --- VARIABLE & RESET --- */
:root {
    --primary-color: #0f4c75; /* Biru Profesional Gelap */
    --accent-color: #3282b8;  /* Biru Terang */
    --bg-color: #ffffff;
    --bg-light: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    
    /* Font Variables */
    --font-hero: 'Bree Serif', serif;
    --font-nav: 'Chau Philomene One', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- UTILITIES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    font-family: var(--font-hero);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --- NAVBAR (Sticky & Shrink) --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.4s ease;
    z-index: 1000;
    font-family: var(--font-nav);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar.scrolled {
    padding: 10px 0;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-top: 60px; /* Offset navbar */
    overflow: hidden; /* Penting untuk animasi gambar */
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    flex: 1;
    font-family: var(--font-hero);
}

.greeting {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 400;
}

.bio-short {
    font-family: var(--font-body);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    perspective: 1000px; /* Untuk efek 3D */
}

/* Animasi Mouse Movement Parallax (Sesuai Request) */
.cursor-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
    border: 10px solid var(--white);
    
    /* CSS dari request */
    transition: transform 0.1s ease-out;
    will-change: transform;
    transform-style: preserve-3d;
}

/* --- SKILLS (Progress Bar) --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.progress-bar-container {
    width: 100%;
    background: #e0e0e0;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    border-radius: 5px;
    position: relative;
    /* Animasi load saat scroll ditangani JS/CSS Keyframes */
    transform-origin: left;
    animation: loadBar 1.5s ease-out forwards;
}

@keyframes loadBar {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* --- TIMELINE / EXPERIENCE --- */
.timeline {
    position: relative;
    border-left: 3px solid var(--primary-color);
    margin-left: 20px;
    padding-left: 30px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -39px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--white);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-content h3 {
    color: var(--primary-color);
}

.timeline-content .date {
    display: inline-block;
    margin: 5px 0 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: bold;
}

/* --- PROJECTS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.tags span {
    display: inline-block;
    background: #e1ecf4;
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 10px;
}

.btn-sm {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- EDUCATION --- */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.edu-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.edu-card:hover {
    transform: scale(1.02);
}

.icon-edu {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cert-list {
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
}

/* --- CONTACT --- */
.footer-section {
    background: var(--primary-color);
    color: var(--white);
}

.text-white { color: var(--white) !important; }
.text-white::after { background: var(--white) !important; }

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--accent-color);
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
}

.contact-form button {
    background: var(--accent-color);
    border: none;
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* --- ANIMATION CLASSES (Slide In / Fade In) --- */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: all 1s ease;
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 60px;
        background: var(--white);
        flex-direction: column;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in;
        box-shadow: -2px 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 20px;
    }

    .hamburger {
        display: block;
        color: var(--primary-color);
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero h1 { font-size: 2.5rem; }
    
    .bio-short { margin: 0 auto 30px auto; }

    .cursor-img {
        width: 250px;
        height: 250px;
        margin-bottom: 30px;
    }
}