* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Efek bintang berjatuhan */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    animation: fall linear infinite;
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Header/Navigasi */
.header {
    padding: 1.3rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 0.8rem 2rem;
    background-color: rgba(15, 23, 42, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f8fafc;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin-bottom: 0;
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #f8fafc;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #6366f1;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Section umum */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Home/Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    position: relative;
    z-index: 1;
}

/* Foto profil bulat */
.profile-container {
    text-align: center;
    position: relative;
}

.profile-img {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid rgba(99, 102, 241, 0.25);
    box-shadow: 
        0 0 60px rgba(99, 102, 241, 0.5),
        inset 0 0 40px rgba(255, 255, 255, 0.15);
    transition: all 0.5s ease;
}

.profile-img:hover {
    transform: scale(1.03);
    box-shadow: 
        0 0 90px rgba(99, 102, 241, 0.7),
        inset 0 0 50px rgba(255, 255, 255, 0.2);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(99, 102, 241, 0) 70%);
    z-index: -1;
    filter: blur(20px);
}

/* Konten teks hero */
.hero-content {
    padding-right: 4rem;
}

.greeting {
    font-size: 1.1rem;
    color: #6366f1;
    font-weight: 500;
    margin-bottom: 0.4rem;
    letter-spacing: 1.5px;
}

.name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    line-height: 1.1;
    background: linear-gradient(to right, #f8fafc, #cbd5e1, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title-text {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: #cbd5e1;
}

.description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #94a3b8;
    max-width: 550px;
}

/* Tombol */
.btn-primary-custom {
    background-color: #6366f1;
    border: none;
    color: white;
    padding: 0.75rem 2.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    font-size: 1rem;
}

.btn-primary-custom:hover {
    background-color: #4f46e5;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-outline-custom {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    padding: 0.75rem 2.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-outline-custom:hover {
    border-color: #6366f1;
    color: #6366f1;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.button-group {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

/* Bagian bawah hero */
.bottom-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-label {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 1.2rem;
    letter-spacing: 1.5px;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-icon:hover {
    background-color: rgba(99, 102, 241, 0.15);
    color: #f8fafc;
    transform: translateY(-4px) scale(1.05);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

/* About Section */
.about-section {
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-content-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image-container {
    flex: 0 0 45%;
    position: relative;
}

.about-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(99, 102, 241, 0.2);
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.about-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(99, 102, 241, 0.3);
}

.about-image-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    z-index: 1;
    transition: all 0.5s ease;
}

.about-image-container:hover .about-image-frame {
    top: 30px;
    left: 30px;
}

.about-text-content {
    flex: 1;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 1.8rem;
}

.highlight-text {
    color: #6366f1;
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 1.8rem;
}

.stat-label {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
}

.about-quote {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border-left: 4px solid #6366f1;
    border-radius: 8px;
    font-style: italic;
    color: #cbd5e1;
}

.quote-author {
    margin-top: 1rem;
    text-align: right;
    color: #94a3b8;
    font-weight: 500;
}

/* Skills Section */
.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.3);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    font-size: 2.5rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

.skill-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #f8fafc;
}

.skill-description {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Projects Section */
.projects-section {
    overflow: hidden;
}

.swiper {
    width: 100%;
    padding: 2rem 0 4rem;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.project-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    overflow: hidden;
    width: 100%;
    max-width: 380px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-content {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #f8fafc;
}

.project-description {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #f8fafc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #6366f1;
}

.swiper-button-next, .swiper-button-prev {
    color: #6366f1;
    background: rgba(30, 41, 59, 0.8);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: #94a3b8;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: #6366f1;
    opacity: 1;
}

/* Contact Section */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 15px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #f8fafc;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: #6366f1;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: #4f46e5;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.contact-info {
    margin-top: 3rem;
    text-align: center;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin: 0 1.5rem;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.contact-item i {
    color: #6366f1;
    font-size: 1.3rem;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #6366f1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #4f46e5;
    transform: translateY(-5px);
}

/* Animasi fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Certificates Section */
.certificates-section {
    background: linear-gradient(135deg, #0a0e17 0%, #131823 100%);
    position: relative;
    overflow: hidden;
}

.certificates-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.certificates-section .container {
    position: relative;
    z-index: 2;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certificate-card {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    cursor: pointer;
    position: relative;
}

.certificate-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: rgba(30, 41, 59, 0.95);
}

.certificate-card:hover .certificate-content {
    background: rgba(15, 23, 42, 0.9);
}

.certificate-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #1e293b;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.certificate-content {
    padding: 20px;
    background: rgba(15, 23, 42, 0.8);
    transition: background 0.3s ease;
}

.certificate-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 5px;
}

.certificate-issuer {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.certificate-date {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Modal for certificate image preview */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.certificate-modal.active {
    display: flex;
}

.certificate-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    background: #0f172a;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.certificate-modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

.close-certificate-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-certificate-modal:hover {
    background: rgba(239, 68, 68, 0.9);
    transform: rotate(90deg);
    border-color: rgba(239, 68, 68, 0.5);
}

/* View Certificate Button */
.view-certificate-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.certificate-card:hover .view-certificate-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1200px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .certificate-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .certificate-image {
        height: 200px;
    }
    
    .certificate-modal-content {
        max-width: 95%;
        max-height: 95%;
    }
}