/*====================================================================
 * FILE: style.css - Styling Utama CV Online dengan Animasi
 *====================================================================*/

/* 
 ********************************************************************
 * I. ANIMASI & KEYFRAMES BARU ✨
 ********************************************************************
*/

/* Animasi Fade In */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animasi Zoom */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomInUp {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Animasi Bounce */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    60% {
        opacity: 1;
        transform: translateX(10px);
    }
    80% {
        transform: translateX(-5px);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes bounceInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    60% {
        opacity: 1;
        transform: translateX(-10px);
    }
    80% {
        transform: translateX(5px);
    }
    to {
        transform: translateX(0);
    }
}

/* Animasi Pulse */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulseSoft {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Animasi Slide */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Animasi Flip */
@keyframes flipInX {
    from {
        transform: perspective(400px) rotateX(90deg);
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotateX(-10deg);
    }
    70% {
        transform: perspective(400px) rotateX(10deg);
    }
    to {
        transform: perspective(400px) rotateX(0deg);
        opacity: 1;
    }
}

@keyframes flipInY {
    from {
        transform: perspective(400px) rotateY(90deg);
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotateY(-10deg);
    }
    70% {
        transform: perspective(400px) rotateY(10deg);
    }
    to {
        transform: perspective(400px) rotateY(0deg);
        opacity: 1;
    }
}

/* Animasi Shimmer untuk Progress Bars */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Animasi Float */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animasi Typewriter */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Animasi Blink */
@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Animasi Wobble */
@keyframes wobble {
    0%, 100% {
        transform: translateX(0%);
    }
    15% {
        transform: translateX(-5%) rotate(-5deg);
    }
    30% {
        transform: translateX(4%) rotate(3deg);
    }
    45% {
        transform: translateX(-3%) rotate(-3deg);
    }
    60% {
        transform: translateX(2%) rotate(2deg);
    }
    75% {
        transform: translateX(-1%) rotate(-1deg);
    }
}

/* Animasi Tada */
@keyframes tada {
    0% {
        transform: scale(1);
    }
    10%, 20% {
        transform: scale(0.9) rotate(-3deg);
    }
    30%, 50%, 70%, 90% {
        transform: scale(1.1) rotate(3deg);
    }
    40%, 60%, 80% {
        transform: scale(1.1) rotate(-3deg);
    }
    100% {
        transform: scale(1);
    }
}

/* Animasi Heart Beat */
@keyframes heartBeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

/* Animasi Jello */
@keyframes jello {
    0%, 100% {
        transform: scale3d(1, 1, 1);
    }
    30% {
        transform: scale3d(1.25, 0.75, 1);
    }
    40% {
        transform: scale3d(0.75, 1.25, 1);
    }
    50% {
        transform: scale3d(1.15, 0.85, 1);
    }
    65% {
        transform: scale3d(0.95, 1.05, 1);
    }
    75% {
        transform: scale3d(1.05, 0.95, 1);
    }
}

/* Animasi Rubber Band */
@keyframes rubberBand {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.25);
    }
    40% {
        transform: scale(0.75);
    }
    50% {
        transform: scale(1.15);
    }
    65% {
        transform: scale(0.95);
    }
    75% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Animasi Swing */
@keyframes swing {
    20% {
        transform: rotate(15deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(5deg);
    }
    80% {
        transform: rotate(-5deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Animasi untuk Background Hero */
@keyframes flow-animate {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    }
    50% {
        transform: translate(100px, -50px) rotate(180deg) scale(1.1);
        border-radius: 60% 40% 30% 70% / 60% 50% 50% 40%;
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    }
}



/*
 ********************************************************************
 * I. GLOBAL VARIABLES & THEME SETUP 🎨
 ********************************************************************
*/
:root {
    /* --- COLOR PALETTE --- */
    --primary-color: #f33d2d; 
    --secondary-color: #2b6cb0; 
    --accent-color: #ed8936; 

    /* --- LIGHT MODE VARIABLES --- */
    --bg-color: #f3effb; 
    --text-color: #3b3b3c; 
    --text-secondary: #4a5568; /* Tetap gelap di Light Mode */
    --header-bg: #ffffff; 
    --card-bg: #ffffff; 
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.08); 
    --shadow-hover: 0 15px 40px rgba(243, 61, 45, 0.2); 
    --footer-bg: #3c4352;
    --border-color: #e2e8f0;
}

[data-theme="dark"] {
    /* --- DARK MODE VARIABLES --- */
    --primary-color: #6b23f0; /* Ungu */
    --secondary-color: #63b3ed; 
    --accent-color: #f6ad55;
    --bg-color: #1a202c; 
    --text-color: #e2e8f0; 
    --text-secondary: #ffffff; /* DIPERBAIKI: Lebih terang dari #a0aec0 */
    --header-bg: #2d3748; 
    --card-bg: #2d3748; 
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.4); 
    --shadow-hover: 0 15px 40px rgba(107, 35, 240, 0.2);
    --footer-bg: #111827;
    --border-color: #4a5568; 
}

.list-group-item small.text-muted {
    color: var(--text-secondary) !important;
}

/* ... (kode sebelum EXPERIENCE & EDUCATION SECTION) ... */


/* --- EXPERIENCE & EDUCATION SECTION (WORK_SECTION) - Timeline List Group --- */
.list-group-item {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-light) !important;
}

/* 1. Teks Kecil/Tahun (Riwayat Pendidikan) */
.list-group-item small.text-muted {
    color: var(--text-secondary) !important;
}

/* 2. PERBAIKAN: Teks Deskripsi (Riwayat Pengalaman) */
.list-group-item p:not(.badge) { 
    /* Memaksa warna terang untuk semua paragraf kecuali badge */
    color: var(--text-secondary) !important;
}

/* PERBAIKAN: Memastikan Teks Deskripsi di Portofolio berwarna terang */
.portfolio-box p.text-muted,
.portfolio-box .text-muted {
    /* Gunakan variabel sekunder yang sudah kita set ke warna hampir putih */
    color: var(--text-secondary) !important;
}

.portfolio-box .link-project {
    /* Pastikan link Proyek (walaupun primary) terlihat kontras */
    font-weight: 600;
}

/* 
 ********************************************************************
 * III. BASE & LAYOUT STYLES 🏗️ DENGAN ANIMASI
 ********************************************************************
*/
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.5s ease-in-out;
    min-height: 100vh;
    scroll-behavior: smooth;
    padding-top: 75px;
    animation: fadeIn 1s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Override Bootstrap dengan Animasi */
/* Override Bootstrap text/bg colors menggunakan variabel kustom */
.bg-light { background-color: var(--bg-color) !important; }
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--text-secondary) !important; }

/* PERBAIKAN: text-white-50 & text-white-75 harus menjadi putih saat di atas BG gelap */
.text-white-50 { 
    /* Gunakan warna teks yang kontras dengan latar belakang gelap */
    color: #ffffff !important; 
    opacity: 0.75; /* White 75% opacity */
}
.text-white-75 { 
    color: #ffffff !important; 
    opacity: 0.9; /* White 90% opacity */
}

/* Padding Sections dengan Animasi */
.layout_padding { 
    padding: 100px 0;
    transition: padding 0.3s ease;
}

.layout_padding2 { 
    padding: 70px 0;
    transition: padding 0.3s ease;
}

/* Heading & Typography dengan Animasi */
.heading_container { 
    margin-bottom: 50px;
    animation: fadeInUp 0.8s ease-out;
}

.heading_container h2 {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    animation: fadeInDown 0.8s ease-out;
}

.heading_container h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    animation: slideInRight 1s ease-out 0.5s forwards;
}

.heading_container p {
    color: var(--text-secondary);
    opacity: 1;
    margin-top: 10px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

/* Custom Button dengan Animasi */
.btn-cv {
    display: inline-block;
    padding: 14px 35px;
    background-color: var(--primary-color);
    color: #ffffff;
    border-radius: 30px;
    transition: all 0.4s ease;
    border: 1px solid var(--primary-color);
    text-transform: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(243, 61, 45, 0.3);
    animation: bounceIn 0.8s ease-out;
}

.btn-cv:hover {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(243, 61, 45, 0.4);
    transform: translateY(-3px);
    animation: pulse 0.5s ease;
}

.btn_on-hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transition: all 0.4s ease;
}

.btn_on-hover:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(43, 108, 176, 0.4);
    transform: translateY(-2px);
}

/* 
 ********************************************************************
 * IV. HEADER & NAVBAR STYLES DENGAN ANIMASI 🧭
 ********************************************************************
*/
.header_section {
    background-color: var(--header-bg);
    box-shadow: var(--shadow-light);
    transition: all 0.4s ease;
    z-index: 1020;
    width: 100%;
    animation: slideInUp 0.6s ease-out;
}

.header_section.header-hidden {
    transform: translateY(-100%);
}

.header_section.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Navbar Brand dengan Animasi */
.navbar-brand span {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.8rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.navbar-brand:hover span {
    animation: pulse 0.6s ease;
    color: var(--secondary-color);
}

/* Navbar Links dengan Animasi */
.custom_nav-container .navbar-nav .nav-item .nav-link {
    color: var(--text-color) !important;
    font-weight: 600;
    padding: 10px 15px;
    position: relative;
    transition: all 0.3s ease;
    opacity: 0.9;
    text-transform: none;
    animation: fadeInDown 0.6s ease-out;
    font-size: 1.2rem !important;   /* ← ukuran teks navbar */
}


.custom_nav-container .navbar-nav .nav-item .nav-link:hover,
.custom_nav-container .navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color) !important;
    opacity: 1;
    transform: translateY(-2px);
}

/* Underline Animation */
.custom_nav-container .navbar-nav .nav-item .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom_nav-container .navbar-nav .nav-item .nav-link:hover::after,
.custom_nav-container .navbar-nav .nav-item.active .nav-link::after {
    width: 80%;
}

/* Theme Toggle Button dengan Animasi */
#theme-toggle {
    background: none;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    margin-left: 15px;
    animation: fadeIn 0.8s ease-out;
}

#theme-toggle:hover {
    background-color: var(--primary-color);
    color: var(--header-bg);
    box-shadow: 0 0 15px var(--primary-color);
    transform: rotate(180deg) scale(1.1);
}

/* 
 ********************************************************************
 * V. SECTIONS STYLES DENGAN ANIMASI 📄
 ********************************************************************
*/

/* --- HERO SECTION DENGAN ANIMASI --- */
.slider_section {
    background-color: var(--footer-bg);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 180px 0 150px;
    color: #ffffff;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

.slider_section .hero-content {
    position: relative;
    z-index: 2;
    animation: zoomIn 1s ease-out;
}

.slider_section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.slider_section h2 {
    font-size: 1.5rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.slider_section p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 20px auto 30px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Social Icons dengan Animasi */
.slider_section .social_box {
    justify-content: center;
    margin-top: 30px !important;
    margin-bottom: 50px !important;
}

.slider_section .social_box a {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-size: 1.4rem;
    color: #ffffff;
    transition: all 0.4s ease;
    animation: bounceIn 0.8s ease-out;
}

.slider_section .social_box a:nth-child(1) { animation-delay: 0.1s; }
.slider_section .social_box a:nth-child(2) { animation-delay: 0.2s; }
.slider_section .social_box a:nth-child(3) { animation-delay: 0.3s; }
.slider_section .social_box a:nth-child(4) { animation-delay: 0.4s; }

.slider_section .social_box a:hover {
    background-color: var(--primary-color);
    color: var(--footer-bg);
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px rgba(6, 182, 212, 0.5);
    transform: translateY(-8px) scale(1.15);
    border-color: var(--primary-color);
    animation: wobble 0.8s ease;
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
}

.hero-background::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -50%;
    left: -50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 60%);
    filter: blur(150px);
    opacity: 0.2;
    animation: flow-animate 40s linear infinite alternate;
}

.hero-background::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    bottom: -30%;
    right: -30%;
    background: linear-gradient(-45deg, var(--secondary-color) 0%, transparent 60%);
    filter: blur(100px);
    opacity: 0.15;
    animation: flow-animate 35s linear infinite alternate reverse;
}

/* --- ABOUT SECTION DENGAN ANIMASI --- */
.who_section .img-box img {
    max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 15px;
    transition: all 0.5s ease;
    animation: fadeInLeft 1s ease-out;
}

.who_section .img-box img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    animation: pulse 1s ease;
}

.who_section .detail-box {
    animation: fadeInRight 1s ease-out;
}

/* --- SKILLS SECTION DENGAN ANIMASI --- */

/* Skill Cards */
.skill-card {
    background-color: var(--card-bg);
    border-radius: 15px !important;
    box-shadow: var(--shadow-light);
    border: none !important;
    padding: 20px;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Skill Bar Items */
.skill-bar-item {
    padding: 10px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    animation: fadeInUp 0.8s ease-out forwards;
}

.skill-bar-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.skill-bar-item:nth-child(1) { animation-delay: 0.1s; }
.skill-bar-item:nth-child(2) { animation-delay: 0.2s; }
.skill-bar-item:nth-child(3) { animation-delay: 0.3s; }
.skill-bar-item:nth-child(4) { animation-delay: 0.4s; }
.skill-bar-item:nth-child(5) { animation-delay: 0.5s; }
.skill-bar-item:nth-child(6) { animation-delay: 0.6s; }
.skill-bar-item:nth-child(7) { animation-delay: 0.7s; }
.skill-bar-item:nth-child(8) { animation-delay: 0.8s; }

/* Progress Bars */
.custom-progress-bar {
    height: 8px;
    border-radius: 4px;
    background-color: var(--border-color);
    overflow: hidden;
    box-shadow: none;
    transition: background-color 0.4s ease;
    position: relative;
}

.custom-progress-bar .progress-bar {
    background-color: var(--primary-color) !important;
    transition: width 1.5s cubic-bezier(0.25, 0.8, 0.5, 1);
    border-radius: 4px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.custom-progress-bar .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

/* Circular Progress Bars */
.circle-progress {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
    animation: zoomIn 0.8s ease-out;
}

.circle-progress-svg {
    transform: rotate(-90deg);
    overflow: visible;
}

.circle-progress-track {
    cx: 50;
    cy: 50;
    r: 40;
    stroke-width: 10;
    fill: none;
    stroke: var(--text-secondary);
    opacity: 0.3;
}

.circle-progress-bar {
    cx: 50;
    cy: 50;
    r: 40;
    stroke-width: 10;
    fill: none;
    stroke: var(--primary-color);
    stroke-linecap: round;
    transition: stroke-dashoffset 2s ease-out;
}

.percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: color 0.4s ease;
    animation: bounceIn 0.8s ease-out;
}

/* Hover effects untuk circular progress */
.col-6.col-md-3:hover .circle-progress-bar {
    stroke: var(--secondary-color);
}

.col-6.col-md-3:hover .percentage-text {
    color: var(--secondary-color);
    transform: translate(-50%, -50%) scale(1.1);
}

.col-6.col-md-3:hover .text-sm {
    color: var(--primary-color);
}

/* 
 ********************************************************************
 * VI. PORTFOLIO SECTION DENGAN ANIMASI KHUSUS 🎨
 ********************************************************************
*/
.work_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-box {
    background-color: var(--card-bg);
    border-radius: 15px !important;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: zoomInUp 0.8s ease-out forwards;
}

/* Staggered animation untuk portfolio items */
.portfolio-box:nth-child(1) { animation-delay: 0.1s; }
.portfolio-box:nth-child(2) { animation-delay: 0.2s; }
.portfolio-box:nth-child(3) { animation-delay: 0.3s; }
.portfolio-box:nth-child(4) { animation-delay: 0.4s; }
.portfolio-box:nth-child(5) { animation-delay: 0.5s; }
.portfolio-box:nth-child(6) { animation-delay: 0.6s; }

.portfolio-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.portfolio-box:hover::before {
    left: 100%;
}

.portfolio-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover) !important;
    animation: float 3s ease-in-out infinite;
}

.portfolio-box img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.portfolio-box:hover img {
    transform: scale(1.1);
    animation: pulseSoft 2s ease-in-out infinite;
}

.portfolio-content {
    padding: 20px;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.portfolio-title {
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.portfolio-box:hover .portfolio-title {
    color: var(--primary-color);
    transform: translateX(5px);
    animation: tada 0.8s ease;
}

.portfolio-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.portfolio-box:hover .portfolio-description {
    color: var(--text-color);
    transform: translateX(3px);
}

.link-project {
    font-weight: 600;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.portfolio-box:hover .link-project {
    color: var(--secondary-color);
    transform: translateX(8px);
    animation: rubberBand 0.8s ease;
}

/* 
 ********************************************************************
 * VII. PENDIDIKAN & PENGALAMAN DENGAN ANIMASI KHUSUS 📚
 ********************************************************************
*/
.timeline-item {
    background-color: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-50px);
    animation: bounceInLeft 0.8s ease-out forwards;
}

/* Staggered animation untuk timeline items */
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

/* Alternating animation untuk pengalaman */
.timeline-item.alternate {
    transform: translateX(50px);
    animation: bounceInRight 0.8s ease-out forwards;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    border-radius: 2px;
}

.timeline-item:hover::before {
    transform: scaleY(1);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(243, 61, 45, 0.05), transparent);
    transition: left 0.6s ease;
}

.timeline-item:hover::after {
    left: 100%;
}

.timeline-item:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: var(--shadow-hover) !important;
    animation: wobble 0.8s ease;
}

.timeline-item.alternate:hover {
    transform: translateX(-8px) scale(1.02);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    animation: fadeInDown 0.6s ease-out 0.2s both;
}

.timeline-title {
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-title {
    color: var(--secondary-color);
    transform: translateX(5px);
    animation: heartBeat 0.8s ease;
}

.timeline-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--bg-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.timeline-item:hover .timeline-period {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.timeline-subtitle {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.timeline-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
    animation: bounceIn 0.6s ease-out 0.1s both;
}

.timeline-item:hover .timeline-badge {
    background: var(--secondary-color);
    transform: scale(1.1);
    animation: jello 0.8s ease;
}

/* 
 ********************************************************************
 * VIII. STATS SECTION DENGAN ANIMASI 📊
 ********************************************************************
*/
.target_section .detail-box {
    background-color: var(--card-bg);
    padding: 30px 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.target_section .detail-box:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
}

.target_section .detail-box:hover h2,
.target_section .detail-box:hover h5 {
    color: #ffffff !important;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    animation: zoomIn 0.8s ease-out;
}

/* 
 ********************************************************************
 * IX. CONTACT SECTION DENGAN ANIMASI 📞
 ********************************************************************
/* Paksa kecilkan teks bagian statistik */
.target_section .detail-box h2.stat-number {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
}

.target_section .detail-box h5 {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

/* Mobile */
@media (max-width: 575.98px) {
    .target_section .detail-box h2.stat-number {
        font-size: 1.4rem !important;
    }

    .target_section .detail-box h5 {
        font-size: 0.85rem !important;
    }
}

 
*/
.contact-form {
    background-color: var(--card-bg) !important;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    animation: fadeInUp 0.8s ease-out;
}

.contact-form .form-control {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(243, 61, 45, 0.25);
    background-color: var(--card-bg);
    transform: scale(1.02);
}

/* 
 ********************************************************************
 * X. FOOTER STYLES DENGAN ANIMASI ⬇️
 ********************************************************************
*/
.info_section {
    background-color: var(--footer-bg);
    color: #ffffff;
    padding: 80px 0 50px;
    animation: fadeInUp 0.8s ease-out;
}

.info_section h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 25px;
    animation: fadeInDown 0.8s ease-out;
}

.info_section p {
    color: var(--text-secondary);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.info_section .social_box a {
    color: #ffffff;
    font-size: 1.5rem;
    margin-right: 15px;
    transition: all 0.3s ease;
    animation: bounceIn 0.8s ease-out;
}

.info_section .social_box a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer_section {
    background-color: var(--footer-bg);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out;
}

.footer_section p {
    color: var(--text-color);
    opacity: 0.7;
    margin: 0;
}

.footer_section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 600;
}

.footer_section a:hover {
    color: #ffffff;
}

/* 
 ********************************************************************
 * XI. REVEAL ANIMATIONS ✨
 ********************************************************************
*/
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-element.from-left {
    transform: translateX(-50px);
}

.reveal-element.from-left.visible {
    transform: translateX(0);
}

.reveal-element.from-right {
    transform: translateX(50px);
}

.reveal-element.from-right.visible {
    transform: translateX(0);
}

.reveal-element.zoom-in {
    transform: scale(0.8);
}

.reveal-element.zoom-in.visible {
    transform: scale(1);
}

/* Animation Delays */
.delay-1 { transition-delay: 0.1s; animation-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; animation-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; animation-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; animation-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; animation-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; animation-delay: 0.6s; }
.delay-7 { transition-delay: 0.7s; animation-delay: 0.7s; }
.delay-8 { transition-delay: 0.8s; animation-delay: 0.8s; }

/* 
 ********************************************************************
 * XII. RESPONSIVENESS DENGAN ANIMASI 📱
 ********************************************************************
*/
@media (max-width: 991.98px) {
    body {
        padding-top: 65px;
    }

    .layout_padding {
        padding: 60px 0;
    }
    
    .layout_padding2 {
        padding: 40px 0;
    }
    
    .slider_section {
        padding: 120px 0 80px;
    }

    .slider_section h1 {
        font-size: 2.5rem;
    }

    /* Navbar Mobile */
    .header_section {
        padding: 5px 0;
    }
    
    .navbar-collapse {
        background-color: var(--card-bg);
        padding: 10px 0;
        margin-top: 10px;
        border-radius: 8px;
        box-shadow: var(--shadow-light);
        z-index: 10;
    }
    
    .custom_nav-container .navbar-nav {
        margin-left: 0 !important;
        align-items: flex-start;
        padding-left: 15px;
    }
    
    .user_option {
        margin: 15px 0 5px 15px !important;
    }
    
    .who_section .img-box {
        margin-bottom: 30px;
    }

    .heading_container h2 {
        font-size: 2rem;
    }
    
    .work_container {
        grid-template-columns: 1fr;
    }
    
    /* Portfolio Mobile */
    .portfolio-box {
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    /* Timeline Mobile */
    .timeline-item {
        animation: fadeInUp 0.8s ease-out forwards;
        transform: none !important;
    }
    
    .timeline-item.alternate {
        animation: fadeInUp 0.8s ease-out forwards;
        transform: none !important;
    }
    
    /* ————————————————————————
    MOBILE (≤ 575px)
———————————————————————— */
@media (max-width: 575.98px) {

    /* Slider Section */
    .slider_section h1 {
        font-size: 2rem;
    }

    .slider_section {
        padding: 100px 0 60px;
    }

    .heading_container h2 {
        font-size: 1.8rem;
    }

    .btn-cv {
        padding: 12px 25px;
        font-size: 0.85rem;
    }

    .portfolio-box {
        margin-bottom: 20px;
    }

    /* Timeline Mobile */
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-period {
        margin-top: 0.5rem;
    }

    /* Circular Progress Small Mobile */
    .circle-progress {
        width: 70px !important;
        height: 70px !important;
    }

    .circle-progress-svg {
        width: 70px !important;
        height: 70px !important;
    }

    .percentage-text {
        font-size: 0.9rem;
    }
}

/* ————————————————————————
    Small Devices (576px – 767px)
———————————————————————— */
@media (min-width: 576px) and (max-width: 767.98px) {

    /* Portfolio grid */
    .work_container {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Circular Progress medium size */
    .circle-progress {
        width: 80px;
        height: 80px;
    }

    .circle-progress-svg {
        width: 80px;
        height: 80px;
    }

    .percentage-text {
        font-size: 1rem;
    }
}

    
    .percentage-text {
        font-size: 0.9rem;
    }
}

/* 
 ********************************************************************
 * XIII. ACCESSIBILITY ♿
 ********************************************************************
*/

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    
    .reveal-element {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .portfolio-box,
    .timeline-item {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Focus Styles */
button:focus,
.btn:focus,
.nav-link:focus,
.form-control:focus,
#theme-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}



/* ====================================================================
 * END OF FILE: style.css
 * ====================================================================*/