:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --navbar-bg: #212529;
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #404040;
    --card-bg: #2d2d2d;
    --navbar-bg: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background-color: var(--navbar-bg) !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

.navbar-scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section - FIXED */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-buttons {
    position: relative;
    z-index: 20;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    z-index: 25;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-links {
    display: flex;
    gap: 15px;
    position: relative;
    z-index: 20;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 25;
    pointer-events: auto !important;
    cursor: pointer !important;
    text-decoration: none;
}

.social-link:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.profile-wrapper {
    position: relative;
    display: inline-block;
    z-index: 5;
}

.profile-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
}

.profile-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--gradient);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 6;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none; /* KEY FIX: Prevents wave from blocking clicks */
}

/* Section Styles */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* About Section */
.about-image {
    position: relative;
    display: inline-block;
}

.experience-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--gradient);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.experience-badge h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.experience-badge p {
    margin: 0;
    font-size: 0.8rem;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    margin-bottom: 10px;
}

.info-list i {
    width: 25px;
    color: var(--primary-color);
    margin-right: 10px;
}

/* Skills Section */
.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    font-weight: 500;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--border-color);
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient);
    width: 0;
    transition: width 1.5s ease;
}

.tool-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tool-card i {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Services Section */
.service-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--secondary-color);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Projects Section */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.search-box {
    max-width: 400px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links .btn {
    padding: 8px 20px;
    border-radius: 25px;
}

.project-content {
    padding: 20px;
}

.project-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.project-content h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonial-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: #ffc107;
    font-size: 1rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-info h6 {
    margin: 0;
    font-weight: 600;
}

.author-info small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.testimonial-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Contact Section */
.contact-info {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-details h5 {
    margin: 0 0 5px;
    font-weight: 600;
}

.contact-details p {
    margin: 0;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-control {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}

/* Footer */
.footer {
    background: var(--navbar-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer h5 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact li i {
    width: 25px;
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease;
}

/* Dark mode toggle button */
#darkModeToggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#darkModeToggle:hover {
    background: white;
    color: var(--navbar-bg);
}

/* Hero Divider */
.hero-divider {
    width: 60px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

/* Utility Classes */
.object-fit-cover {
    object-fit: cover;
}

.rounded-pill {
    border-radius: 50px !important;
}

.bg-white-10 {
    border-color: rgba(255,255,255,0.1);
}

.text-white-50 {
    color: rgba(255,255,255,0.7) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        text-align: center;
        margin-bottom: 30px;
        z-index: 15;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .profile-img {
        width: 220px !important;
        height: 220px !important;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .filter-buttons {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    .contact-info,
    .contact-form,
    .testimonial-form {
        padding: 20px;
    }
    
    .testimonial-card {
        padding: 1.5rem !important;
    }
    
    .contact-card {
        padding: 1.5rem !important;
    }
    
    .social-media-link {
        padding: 10px 15px !important;
    }
    
    .hero-wave {
        bottom: -2px;
    }
}

/* Animation for scroll reveal */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Additional fix untuk memastikan semua tombol bisa diklik */
a, 
button,
.btn,
.social-link,
[role="button"] {
    cursor: pointer;
    pointer-events: auto;
}

/* Memastikan tidak ada elemen yang menghalangi klik di hero section */
.hero * {
    pointer-events: auto;
}

.hero-wave,
.hero-wave * {
    pointer-events: none;
}