/* --- Konfigurasi Variabel & Reset --- */
:root {
    /* Palet Warna "Mewah & Modern" */
    --primary-color: #00d2ff; /* Biru terang neon untuk aksen */
    --secondary-color: #3a7bd5; /* Biru gradien */
    --dark-bg: #0f172a; /* Latar belakang utama yang sangat gelap */
    --darker-bg: #0b1120; /* Untuk bagian selang-seling */
    --light-text: #e2e8f0; /* Putih tulang untuk teks agar nyaman dibaca */
    --muted-text: #94a3b8; /* Teks sekunder */
    --nav-bg-scrolled: rgba(15, 23, 42, 0.95); /* Navigasi transparan */
    
    /* Font & Ukuran */
    --body-font: 'Poppins', sans-serif;
    --section-spacing: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.7;
    overflow-x: hidden; /* Mencegah scroll horizontal */
}

/* --- Utilitas Umum --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Efek teks gradien mewah */
    display: inline-block;
}

.section-subtitle {
    color: var(--muted-text);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.text-center { text-align: center; }
.bg-dark { background-color: var(--darker-bg); }
.text-light { color: var(--light-text) !important; }

.section {
    padding: var(--section-spacing);
}

/* --- Komponen Tombol --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px; /* Tombol bulat lebih modern */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.6);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* --- Navbar Mewah --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent; /* Mulai transparan */
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    padding: 1rem 0;
    backdrop-filter: blur(10px); /* Efek kaca buram */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo span { color: var(--primary-color); }

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s;
}

/* Efek garis bawah animasi pada menu */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--primary-color); }

.btn-contact {
    background: rgba(0, 210, 255, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--primary-color) !important;
}
.btn-contact:hover::after { width: 0; } /* Hapus garis bawah untuk tombol kontak */
.btn-contact:hover {
    background: var(--primary-color);
    color: var(--dark-bg) !important;
}

/* Menu Hamburger (Akan muncul di mobile) */
.menu-toggle {
    display: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: url('https://source.unsplash.com/random/1920x1080/?technology,dark') no-repeat center center/cover;
    /* Placeholder background, ganti dengan gambar kualitas tinggi Anda */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

/* Efek kursor berkedip untuk teks ketikan JS */
.typed-text::after {
    content: '|';
    animation: blink 0.7s infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-description {
    font-size: 1.2rem;
    color: var(--muted-text);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-btns { display: flex; gap: 20px; }

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.5s;
    border-bottom: 5px solid var(--primary-color);
}
.about-img:hover img { transform: scale(1.02); }

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.skill-item {
    background: var(--darker-bg);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}
.skill-item i {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.skill-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.1);
}

/* --- Projects Section (Card Mewah) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--dark-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(0, 210, 255, 0.3);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Overlay Hover pada Gambar Proyek */
.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-overlay a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    transition: 0.3s;
}
.card-overlay a:hover { background: var(--primary-color); color: var(--dark-bg); }

.project-card:hover .card-image-wrapper img { transform: scale(1.1); }
.project-card:hover .card-overlay { opacity: 1; }

.card-content { padding: 1.5rem; }
.card-content h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: #fff; }
.tech-stack { color: var(--primary-color); font-size: 0.9rem; font-weight: 500; }

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--darker-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.social-links-big { margin-top: 2rem; }
.social-links-big a {
    display: inline-flex;
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.05);
    color: #fff;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
}
.social-links-big a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background: var(--dark-bg);
    border: 2px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 210, 255, 0.05);
}
.contact-form textarea { resize: none; }

footer {
    background: var(--darker-bg);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- RESPONSIVE DAN ANIMASI SCROLL --- */

/* Kelas Animasi (Akan dipicu oleh JS) */
.reveal-text, .reveal-left, .reveal-right, .reveal-up {
    opacity: 0;
    transition: all 0.8s ease-out;
}
.reveal-text { transform: translateY(30px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-up { transform: translateY(50px); }

.reveal-text.active, .reveal-left.active, .reveal-right.active, .reveal-up.active {
    opacity: 1;
    transform: translate(0, 0);
}


/* Media Queries untuk Responsivitas Lanjutan */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .about-container, .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .about-img { order: -1; text-align: center; }
    .about-img img { max-width: 400px; }
}

@media (max-width: 768px) {
    /* Navigasi Mobile */
    .menu-toggle { display: block; z-index: 2; }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        top: 0; right: 0;
        width: 70%;
        height: 100vh;
        background: var(--darker-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }

    .nav-links.active { transform: translateX(0); }
    .nav-link { margin: 1.5rem 0; font-size: 1.2rem; }

    /* Hero Mobile */
    .hero h1 { font-size: 2.5rem; }
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; text-align: center; }
    
    .section { padding: 60px 0; }
    .section-title { font-size: 2rem; }
    .contact-wrapper { padding: 2rem; }
}

/* --- TAMBAHAN STYLE UNTUK DATA ABDUL ROUP --- */

/* 1. Timeline Pendidikan Style */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
}

/* Garis vertikal di tengah */
.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 20px; /* Posisi garis di kiri untuk mobile friendly */
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    margin-bottom: 30px;
}

/* Titik Bulat pada Timeline */
.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    left: 11px;
    background-color: var(--dark-bg);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    transition: 0.3s;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.timeline-date {
    display: inline-block;
    background: rgba(0, 210, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content {
    padding: 20px 30px;
    background: var(--dark-bg);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    border-color: rgba(0, 210, 255, 0.3);
}

.timeline-content h3 { color: #fff; font-size: 1.3rem; }
.timeline-content h4 { color: var(--muted-text); font-weight: 400; margin-bottom: 10px; }
.timeline-content p { font-size: 0.95rem; color: var(--light-text); }


/* 2. Kartu Pengalaman Mengajar (Teaching Card) */
.teaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.teaching-card {
    background: var(--darker-bg); /* Sedikit berbeda dari bg utama */
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
}

.teaching-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(145deg, var(--darker-bg), rgba(0, 210, 255, 0.05));
    border-color: var(--primary-color);
}

.teaching-card .icon-box {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    height: 80px;
    width: 80px;
    line-height: 80px;
    background: rgba(0, 210, 255, 0.05);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    transition: 0.4s;
}

.teaching-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: rotateY(180deg);
}

.teaching-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.teaching-card p {
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* Modifikasi Footer */
.footer-custom {
    background: var(--darker-bg);
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.social-links-footer {
    margin: 20px 0;
}
.social-links-footer a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: 0.3s;
}
.social-links-footer a:hover { color: var(--primary-color); }
.copyright { color: var(--muted-text); font-size: 0.8rem; }
.project-desc { font-size: 0.9rem; color: #ccc; margin-top: 5px; line-height: 1.5; }
