/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #2b0a2b; /* Warna ungu tua seperti di gambar */
    color: #ffffff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #ffffff;
}

/* Header/Navigation Styles */
.navbar {
    padding: 15px 5%;
    background-color: transparent;
    text-align: right;
}

.navbar nav a {
    margin-left: 20px;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: #f1c40f;
}

/* About Container */
.about-container {
    padding: 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* About Header */
.about-header {
    background-color: #8B4E95; /* Warna ungu muda untuk box header */
    display: inline-block;
    padding: 20px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.about-header h2 {
    color: #f1c40f; /* Warna kuning */
    font-size: 28px;
    margin: 0;
}

/* About Content Layout */
.about-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

/* Left Column - Education & Info */
.left-column {
    width: 35%;
}

/* Education Title */
.education-title {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 20px;
}

/* Timeline Design */
.timeline {
    position: relative;
    padding-left: 20px;
    margin-bottom: 40px;
}

.timeline:before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 3px;
    background-color: #f1c40f; /* Garis kuning */
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #f1c40f; /* Titik kuning */
    border: 3px solid #46184F; /* Border sama dengan background */
}

.timeline-content {
    margin-left: 10px;
}

.timeline-content h4 {
    color: #f1c40f; /* Teks kuning */
    font-size: 16px;
    margin-bottom: 5px;
}

.timeline-content p {
    color: #f1c40f; /* Tahun kuning */
    font-size: 14px;
}

/* Personal Info Box */
.personal-info {
    background-color: #8B4E95; /* Ungu muda seperti header */
    padding: 20px;
    border-radius: 10px;
}

.personal-info h3 {
    color: #ffffff;
    font-size: 18px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.personal-info p {
    color: #f1c40f; /* Teks info kuning */
    font-size: 16px;
    margin-bottom: 15px;
}

/* Right Column - Profile & Bio */
.right-column {
    width: 60%;
    display: flex;
    flex-direction: column;
}

/* Profile Image */
.profile-image {
    width: 300px; /* Ukuran foto sesuai gambar */
    height: 300px;
    margin: 0 auto 30px;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
}

.profile-image:before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: #E58EE5; /* Background pink untuk foto */
    border-radius: 50%;
    z-index: -1;
}

/* Bio Section */
.bio-section {
    text-align: left;
}

.bio-section h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 20px;
}

.bio-section h2 span {
    color: #f1c40f; /* "Know" dalam warna kuning */
}

.bio-section p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Technical Skills Section */
.skills-section {
    margin-top: 40px;
    text-align: center;
}

.skills-section h2 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 40px;
}

.skills-container {
    display: flex;
    justify-content: space-between;
}

.skill-column {
    width: 48%;
}

.skill-item {
    margin-bottom: 25px;
    text-align: left;
}

.skill-item h3 {
    color: #f1c40f; /* Nama skill kuning */
    font-size: 18px;
    margin-bottom: 10px;
}

.skill-bar {
    background-color: #8B4E95; /* Background ungu muda */
    height: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
}

.skill-level {
    background-color: #E58EE5; /* Progress bar pink */
    height: 100%;
    border-radius: 5px;
    width: 0%; /* Mulai dari 0% */
}

.skill-item span {
    color: #ffffff;
    font-size: 14px;
    float: right;
}

/* Footer Styles */
footer {
    padding: 50px 5% 20px;
    text-align: center;
    background-color: #3A1242; /* Footer sedikit lebih gelap */
    margin-top: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-nav a {
    font-size: 14px;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons i {
    font-size: 20px;
    color: #fff;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    width: 40%;
    margin: 0 auto 20px;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .left-column, .right-column {
        width: 100%;
    }
    
    .left-column {
        margin-bottom: 40px;
    }
    
    .profile-image {
        margin: 0 auto 30px;
    }
    
    .bio-section {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
    }
    
    .skill-column {
        width: 100%;
    }
    
    .footer-nav nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .about-header {
        width: 100%;
        text-align: center;
    }
    
    .education-title, .skills-section h2 {
        text-align: center;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
}

/* Animasi FadeIn untuk skill section dan konten skill */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills-section h2, .skill-item {
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
}

/* Delay untuk setiap skill-item agar muncul satu-satu */
.skill-item:nth-child(1) {
    animation-delay: 0.5s;
}
.skill-item:nth-child(2) {
    animation-delay: 0.8s;
}
.skill-item:nth-child(3) {
    animation-delay: 1.1s;
}
.skill-column:nth-child(2) .skill-item:nth-child(1) {
    animation-delay: 1.4s;
}
.skill-column:nth-child(2) .skill-item:nth-child(2) {
    animation-delay: 1.7s;
}
.skill-column:nth-child(2) .skill-item:nth-child(3) {
    animation-delay: 2s;
}

/* KODE ANIMASI SKILL BAR BARU */
/* Animasi berulang untuk skill bar */
@keyframes moveSkill95 {
    0% { width: 0%; }
    100% { width: 95%; }
}

@keyframes moveSkill90 {
    0% { width: 0%; }
    100% { width: 90%; }
}

@keyframes moveSkill85 {
    0% { width: 0%; }
    100% { width: 85%; }
}

@keyframes moveSkill80 {
    0% { width: 0%; }
    100% { width: 80%; }
}

@keyframes moveSkill75 {
    0% { width: 0%; }
    100% { width: 75%; }
}

/* Terapkan animasi ke masing-masing skill level */
.skill-item:nth-child(1) .skill-level {
    animation: moveSkill95 3s infinite alternate;
}

.skill-item:nth-child(2) .skill-level {
    animation: moveSkill80 3s infinite alternate;
}

.skill-item:nth-child(3) .skill-level {
    animation: moveSkill90 3s infinite alternate;
}

.skill-column:nth-child(2) .skill-item:nth-child(1) .skill-level {
    animation: moveSkill75 3s infinite alternate;
}

.skill-column:nth-child(2) .skill-item:nth-child(2) .skill-level {
    animation: moveSkill85 3s infinite alternate;
}

.skill-column:nth-child(2) .skill-item:nth-child(3) .skill-level {
    animation: moveSkill80 3s infinite alternate;
}

/* Behavior scroll halus */
html {
    scroll-behavior: smooth;
}

/* Override untuk menghilangkan animasi yang tidak diinginkan */
.skill-column {
    animation: none !important;
}

/* Memastikan semua animasi berhenti setelah selesai */
.animate__animated:not(.animate__infinite) {
    animation-fill-mode: both !important;
}

/* Style untuk foto interaktif dengan CSS murni */
.profile-image img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
}

/* Animasi untuk foto dengan CSS :active (ketika diklik) */
.profile-image img:active {
    animation: tada 1s;
}

/* Mendefinisikan animasi tada supaya bisa digunakan tanpa class */
@keyframes tada {
    from {
        transform: scale3d(1, 1, 1);
    }

    10%, 20% {
        transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    }

    30%, 50%, 70%, 90% {
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    }

    40%, 60%, 80% {
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    }

    to {
        transform: scale3d(1, 1, 1);
    }
}

/* Kelas untuk animasi scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.animate-on-scroll.from-left {
    transform: translateX(-50px);
}

.animate-on-scroll.from-right {
    transform: translateX(50px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Animasi Hover untuk Ikon Media Sosial */
.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a:hover {
    transform: scale(1.2);
    background-color: #f1c40f;
}

/* Animasi Klik untuk Ikon Media Sosial */
.social-icons a:active {
    animation: tada 0.5s;
    background-color: #f1c40f !important;
}

/* Animasi Klik untuk Link Footer */
.footer-nav a:active {
    animation: rubberBand 0.5s;
    color: #f1c40f !important;
}

/* Animasi Klik untuk Logo Footer */
.footer-logo img:active {
    animation: heartBeat 0.7s;
}

/* Definisi Keyframes Animasi */
@keyframes rubberBand {
  from {
    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);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }

  14% {
    transform: scale(1.3);
  }

  28% {
    transform: scale(1);
  }

  42% {
    transform: scale(1.3);
  }

  70% {
    transform: scale(1);
  }
}

/* Memastikan animasi tada sudah didefinisikan di file about.css */
@keyframes tada {
  from {
    transform: scale3d(1, 1, 1);
  }

  10%, 20% {
    transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
  }

  30%, 50%, 70%, 90% {
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
  }

  40%, 60%, 80% {
    transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
  }

  to {
    transform: scale3d(1, 1, 1);
  }
}