:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #f72585;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --text-color: #333;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --light-color: #1a1a2e;
    --text-color: #f5f5f5;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    transition: var(--transition);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scroll Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 10000;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.2s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] header {
    background-color: rgba(26, 26, 46, 0.95);
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    transition: var(--transition);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.typing-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    min-height: 30px;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1.3rem;
    background-color: white;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.2s both;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Section Styling */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* About Section */
.about {
    background-color: white;
}

[data-theme="dark"] .about {
    background-color: #16213e;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 2;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.about-image img {
    max-width: 300px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.info-item {
    flex: 1;
    min-width: 200px;
}

.info-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills {
    background-color: #f8f9fa;
}

[data-theme="dark"] .skills {
    background-color: #0f3460;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .skill-category {
    background-color: #16213e;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.skill-bar {
    height: 12px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .skill-bar {
    background-color: #2a2a4e;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    position: relative;
    animation: skillLoad 2s ease-in-out;
}

@keyframes skillLoad {
    0% { width: 0; }
}

/* Projects Section */
.projects {
    background-color: white;
}

[data-theme="dark"] .projects {
    background-color: #16213e;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-color);
}

[data-theme="dark"] .filter-btn {
    background-color: #2a2a4e;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
}

[data-theme="dark"] .project-card {
    background-color: #16213e;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-description {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

[data-theme="dark"] .project-description {
    color: #aaa;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background-color: #f0f0f0;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

[data-theme="dark"] .tech-tag {
    background-color: #2a2a4e;
}

.tech-tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Learning Journey Section */
.learning-journey {
    background-color: #f8f9fa;
}

[data-theme="dark"] .learning-journey {
    background-color: #0f3460;
}

.journey-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    flex: 0 0 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-right: 2rem;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    position: relative;
}

[data-theme="dark"] .timeline-content {
    background-color: #16213e;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

[data-theme="dark"] .timeline-content .date {
    color: #aaa;
}

/* Testimonials Section */
.testimonials {
    background-color: #f8f9fa;
}

[data-theme="dark"] .testimonials {
    background-color: #0f3460;
}

.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background-color: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    text-align: center;
    position: relative;
}

[data-theme="dark"] .testimonial-card {
    background-color: #16213e;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
}

.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -20px;
    left: -20px;
    opacity: 0.3;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

[data-theme="dark"] .author-info p {
    color: #aaa;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Section */
.contact {
    background-color: white;
}

[data-theme="dark"] .contact {
    background-color: #16213e;
}

.contact-content {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: var(--transition);
}

[data-theme="dark"] .contact-item {
    background-color: #0f3460;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--card-shadow);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1.5rem;
    font-size: 1.2rem;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8f9fa;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background-color: #0f3460;
    border-color: #2a2a4e;
    color: var(--text-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-message {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-section p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #aaa;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--card-shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--card-shadow);
    }

    [data-theme="dark"] .nav-links {
        background-color: #16213e;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}
/* PERBAIKAN: Spacing untuk Project Meta */
.project-meta {
    display: flex;
    align-items: center; /* Menyelaraskan item secara vertikal */
    gap: 1.5rem; /* Jarak yang konsisten antara tahun dan kategori */
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

[data-theme="dark"] .project-meta {
    color: #aaa;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-meta i {
    color: var(--primary-color);
}

/* BARU: Call-to-Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
    display: inline-block;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-btn:hover {
    background-color: #d6286e; /* Warna aksen yang sedikit lebih gelap */
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* PERBAIKAN: Kurangi padding bawah section proyek */
.projects-page {
    padding: 80px 0 60px 0; /* Mengurangi padding bawah */
}

/* Responsive adjustments untuk CTA */
@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .project-meta {
        gap: 1rem;
    }
}
.project-card {
    transition: all 0.3s ease;
}

.project-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

.project-card.visible {
    display: block;
    opacity: 1;
    transform: scale(1);
}
/* Project Card Animation for Filtering */
.project-card {
    transition: all 0.3s ease;
    transform-origin: center;
}

.project-card.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

.project-card.visible {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* Filter Button Styles */
.filter-btn {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-color);
    margin: 0 5px;
}

[data-theme="dark"] .filter-btn {
    background-color: #2a2a4e;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}
/* --- Goals & Motivation Section (NEW & IMPROVED) --- */
.goals-section {
    background-color: #f8f9fa;
    padding: 100px 0;
    text-align: center;
}

[data-theme="dark"] .goals-section {
    background-color: #0f3460;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 4rem auto;
    font-size: 1.2rem; /* Ukuran font sedikit lebih besar */
    color: #666;
    line-height: 1.7;
}

[data-theme="dark"] .section-subtitle {
    color: #aaa;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Lebar minimum sedikit lebih besar */
    gap: 2.5rem;
    margin-top: 3rem;
}

.goal-card {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex; /* Menggunakan Flexbox untuk perataan */
    align-items: center; /* Menyelaraskan ikon dan teks di tengah */
    text-align: left;
    border-left: 5px solid transparent; /* Garis di kiri, bukan di atas */
}

[data-theme="dark"] .goal-card {
    background-color: #16213e;
}

.goal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-left-color: var(--primary-color);
}

.goal-icon {
    width: 60px; /* Ukuran sedikit lebih kecil */
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0; /* Mencegah ikon mengecil */
    margin-right: 1.5rem; /* Jarak antara ikon dan teks */
}

.goal-content {
    flex-grow: 1; /* Memungkinkan konten teks mengisi sisa ruang */
}

.goal-card h3 {
    font-size: 1.4rem; /* Ukuran font lebih besar */
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.goal-card p {
    color: #666;
    line-height: 1.7;
    font-size: 1.05rem; /* Ukuran font paragraf lebih besar */
}

[data-theme="dark"] .goal-card p {
    color: #aaa;
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    .goals-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Kembali ke tata letak vertikal di mobile */
    .goal-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .goal-icon {
        margin-right: 0; /* Hapus margin kanan */
        margin-bottom: 1.5rem; /* Tambahkan margin bawah */
        width: 70px; /* Kembalikan ukuran ikon yang lebih besar di mobile */
        height: 70px;
        font-size: 1.8rem;
    }

    .goal-card h3 {
        font-size: 1.3rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }
}
/* --- Skills Section (NEW CIRCULAR INDICATOR) --- */
.skills {
    background-color: #f8f9fa;
}

[data-theme="dark"] .skills {
    background-color: #0f3460;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .skill-category {
    background-color: #16213e;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-item {
    margin-bottom: 2rem; /* Jarak lebih longgar */
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 500;
}

.skill-bar {
    height: 12px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: visible; /* Penting agar lingkaran tidak terpotong */
    position: relative; /* Anchor untuk lingkaran */
}

[data-theme="dark"] .skill-bar {
    background-color: #2a2a4e;
}

.skill-level-bg {
    height: 100%;
    width: 100%;
    background-color: #e9ecef; /* Sama dengan bar, untuk konsistensi */
    border-radius: 10px;
}

.skill-level-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    position: absolute;
    top: 0;
    left: 0;
    animation: skillLoad 2s ease-in-out;
}

/* --- Lingkaran Indikator --- */
.skill-indicator-circle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: left 1.5s ease-out; /* Animasi pergerakan lingkaran */
    z-index: 2;
}

[data-theme="dark"] .skill-indicator-circle {
    background-color: var(--dark-color);
    border-color: var(--accent-color);
}

.skill-percent-text {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--primary-color);
}

[data-theme="dark"] .skill-percent-text {
    color: var(--accent-color);
}

@keyframes skillLoad {
    0% { width: 0; }
}
/* --- Skills Section (DYNAMIC COLOR) --- */
.skills {
    background-color: #f8f9fa;
}

[data-theme="dark"] .skills {
    background-color: #0f3460;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background-color: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .skill-category {
    background-color: #16213e;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-item {
    margin-bottom: 2rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 500;
}

.skill-bar {
    height: 12px;
    background-color: #e9ecef; /* Warna bagian yang belum dilewati */
    border-radius: 10px;
    overflow: visible;
    position: relative;
    /* Gradien akan diterapkan di sini oleh JavaScript */
}

[data-theme="dark"] .skill-bar {
    background-color: #2a2a4e;
}

/* --- Lingkaran Indikator --- */
.skill-indicator-circle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background-color: white;
    border: 3px solid var(--accent-color); /* Warna border lingkaran */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: left 1.5s ease-out;
    z-index: 2;
}

[data-theme="dark"] .skill-indicator-circle {
    background-color: var(--dark-color);
}

.skill-percent-text {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--accent-color); /* Warna teks di dalam lingkaran */
}
/* Konsistensi ukuran teks untuk halaman proyek */
.projects-page,
.projects {
    /* Memastikan ukuran font dasar konsisten */
    font-size: 16px;
}

.projects-page .container,
.projects .container {
    /* Memastikan container memiliki ukuran font yang konsisten */
    font-size: 1rem;
}

.projects-page h1,
.projects h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.projects-page h2,
.projects h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.projects-page h3,
.projects h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.projects-page p,
.projects p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.projects-page .project-title,
.projects .project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.projects-page .project-description,
.projects .project-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #666;
}

[data-theme="dark"] .projects-page .project-description,
[data-theme="dark"] .projects .project-description {
    color: #aaa;
}

.projects-page .project-meta,
.projects .project-meta {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.projects-page .project-tech,
.projects .project-tech {
    margin-bottom: 1rem;
}

.projects-page .tech-tag,
.projects .tech-tag {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}

/* Responsif untuk ukuran teks */
@media (max-width: 768px) {
    .projects-page h1,
    .projects h1 {
        font-size: 2rem;
    }
    
    .projects-page h2,
    .projects h2 {
        font-size: 1.8rem;
    }
    
    .projects-page h3,
    .projects h3 {
        font-size: 1.3rem;
    }
    
    .projects-page .project-title,
    .projects .project-title {
        font-size: 1.3rem;
    }
}
/* === ACHIEVEMENT TIMELINE (prestasi.html ONLY) === */
.achievement-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.achievement-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #e2e8f0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.achievement-timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.achievement-timeline-dot {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    left: 50%;
    margin-left: -25px;
    top: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1;
}

.achievement-timeline-content {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

@media (min-width: 768px) {
    .achievement-timeline-item:nth-child(odd) .achievement-timeline-content {
        margin-right: calc(50% + 30px);
    }
    .achievement-timeline-item:nth-child(even) .achievement-timeline-content {
        margin-left: calc(50% + 30px);
    }
}

.achievement-year {
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.achievement-event {
    color: #64748b;
    font-style: italic;
    margin: 8px 0;
}

.achievement-reflection {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    color: #475569;
}

/* Mobile Responsif */
@media (max-width: 767px) {
    .achievement-timeline::before {
        left: 24px;
    }
    .achievement-timeline-dot {
        left: 24px;
        margin-left: 0;
    }
    .achievement-timeline-content {
        margin-left: 60px !important;
    }
}
