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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #e0f7ff 0%, #fce4ec 50%, #f3e5f5 100%);
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 5%;          /* tidak pakai padding atas-bawah */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(147, 51, 234, 0.1);

    height: 70px;           /* tinggi navbar, silakan atur 60–80px */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;           /* supaya anak-anaknya tahu tinggi navbar */
}

.logo img {
    height: 100%;           /* logo mengisi penuh tinggi navbar */
    width: auto;
    object-fit: contain;
}


.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
    }
}






.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #6b21a8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ec4899;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #60a5fa, #ec4899);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* BUTTON UNTUK PROJECT */
.project-btn {
    display: inline-block;
    margin-top: 1rem;

    padding: 0.7rem 1.6rem;
    background: linear-gradient(135deg, #60a5fa, #ec4899);
    
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;

    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.5);
}

.project-btn:active {
    transform: translateY(0);
}

/* HAMBURGER ICON */
.hamburger {
    display: none; /* default disembunyikan di desktop */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #9333ea;
    border-radius: 5px;
    transition: 0.3s ease;
}

/* MOBILE NAVIGATION */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 5%;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(147, 51, 234, 0.15);
        border-radius: 15px;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 2rem;
        display: none;      /* disembunyikan */
        animation: fadeDown 0.3s ease;
    }

    .nav-links.show {
        display: flex;      /* muncul saat hamburger ditekan */
    }

    .hamburger {
        display: flex; /* hanya muncul di mobile */
    }

    /* Hamburger berubah menjadi X saat aktif */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Animasi */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 50px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #60a5fa, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-text h2 {
    font-size: 1.8rem;
    color: #9333ea;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-text p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.4s both;
}

@media (max-width: 768px) {

    .hero-content {
        flex-direction: column;
        align-items: flex-start;  /* atau center kalau mau */
        text-align: left;         /* atau center */
        position: relative;
        z-index: 2;               /* konten tetap paling depan */
    }

    .hero-text {
        width: 100%;
    }

    .hero-visual {
        position: static; /* biar nggak mengganggu layout */
    }

    .floating-shapes {
        position: absolute;
        inset: -40px -60px auto -60px; /* shapes lebih besar dari konten */
        width: 140%;
        height: 140%;
        z-index: 1;          /* DI BELAKANG teks */
        pointer-events: none;/* nggak ganggu klik tombol */
    }

    .shape {
        opacity: 0.35;       /* lembut sebagai background */
        filter: blur(2px);   /* efek soft background */
        transform: scale(1.3);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #60a5fa, #ec4899);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(236, 72, 153, 0.3);
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.5);
}

.hero-visual {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-shapes {
    position: relative;
    width: 400px;
    height: 400px;
}

.shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 6s ease-in-out infinite;
}

.shape1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(236, 72, 153, 0.3));
    top: 50px;
    left: 50px;
}

.shape2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.3));
    top: 100px;
    left: 150px;
    animation-delay: -2s;
}

.shape3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(96, 165, 250, 0.3));
    top: 200px;
    left: 100px;
    animation-delay: -4s;
}

/* MOBILE: shapes jadi background di belakang hero content */
@media (max-width: 768px) {

    .hero {
        padding: 100px 7% 60px;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;  /* bisa diganti center kalau mau */
        text-align: left;         /* sesuaikan preferensi */
        position: relative;
        z-index: 2;               /* konten tetap paling depan */
        gap: 2rem;
    }

    .hero-text {
        width: 100%;
    }

    /* Container visualnya tidak ikut 'ngambil' ruang tinggi */
    .hero-visual {
        flex: 0;
        width: 100%;
        height: 0;
        position: static;
    }

    .floating-shapes {
        position: absolute;
        top: -80px;
        left: -80px;
        width: 180%;
        height: 180%;
        z-index: 1;           /* DI BELAKANG teks */
        pointer-events: none; /* nggak ganggu klik tombol */
    }

    .shape {
        opacity: 0.35;        /* lembut sebagai background */
        filter: blur(2px);    /* efek soft */
        transform: scale(1.2);
    }
}

/* About Section */


.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #60a5fa, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* .about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
} */

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.skill-tag {
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 25px;
    color: #9333ea;
    font-weight: 500;
    border: 2px solid rgba(147, 51, 234, 0.3);
}

/* Projects Section */
.projects {
    padding: 100px 5%;
    background: linear-gradient(135deg, rgba(224, 247, 255, 0.5) 0%, rgba(252, 228, 236, 0.5) 50%, rgba(243, 229, 245, 0.5) 100%);
}

.projects-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* MAX 2 KOLOM di layar besar */
@media (min-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.project-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(147, 51, 234, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.2);
    border-color: rgba(236, 72, 153, 0.3);
}

.project-card h3 {
    color: #9333ea;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.project-card p {
    color: #666;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(236, 72, 153, 0.1));
    border-radius: 15px;
    font-size: 0.85rem;
    color: #9333ea;
}

/* CONTACT SECTION */
.contact {
    padding: 100px 5%;
    background: #ffffff;
}

.contact-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    /* default: auto-fit, tapi nanti dibatasi max 2 kolom */
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Maksimal 2 kolom di layar besar */
@media (min-width: 900px) {
    .contact-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.contact-item {
    background: #faf5ff; /* ungu sangat soft, mirip contoh */
    border-radius: 20px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.35rem; /* jarak antar teks rapat */
}

/* Ikon di atas, ungu */
.contact-item i {
    font-size: 1.4rem;
    color: #9333ea;
    margin-bottom: 0.4rem;
}

/* Label: GitHub:, Email:, dst */
.contact-label {
    font-weight: 600;
    color: #4b0082;
}

/* Value: link atau teks */
.contact-value,
.contact-item p {
    color: #4b5563;
    font-size: 0.95rem;
    text-decoration: none;
    word-break: break-all;
}

.contact-value:hover {
    color: #ec4899;
}

/* MOBILE: 1 kolom + jarak lebih rapat */
@media (max-width: 600px) {
    .contact {
        padding: 70px 6%;
    }

    .contact-list {
        gap: 1rem;
    }

    .contact-item {
        padding: 1rem 1.1rem;
        border-radius: 18px;
        gap: 0.25rem;
    }

    .contact-item i {
        margin-bottom: 0.25rem;
    }
}

.contact-btn {
    margin-top: 0.5rem;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: none;
    outline: none;

    background: linear-gradient(135deg, #60a5fa, #ec4899);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;

    box-shadow: 0 6px 18px rgba(236, 72, 153, 0.35);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(236, 72, 153, 0.5);
}

.contact-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}

.contact-inline {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.contact-label {
    font-weight: 600;
    color: #4b0082;
}

.contact-value {
    color: #4b5563;
    text-decoration: none;
}

.contact-value:hover {
    color: #ec4899;
}

/* Footer */
.footer {
    padding: 1rem 0;
    text-align: center;
    /* background: #ffffff; */
    color: #6b21a8;
    font-size: 0.95rem;
    /* margin-top: 50px; */
    /* border-top: 1px solid rgba(147, 51, 234, 0.15); */
}

.footer p {
    margin: 0;
    opacity: 0.8;
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Responsive umum untuk hero & navbar */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .floating-shapes {
        width: 300px;
        height: 300px;
    }

    .nav-links {
        gap: 1rem;
    }
}

/* ABOUT SECTION (BERLAKU UNTUK SEMUA UKURAN) */
.about {
    padding: 100px 5%;
    background: rgba(255, 255, 255, 0.8);
}

/* Judul section tetap center */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #60a5fa, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Container kiri-kanan */
.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* KIRI: background warna */
.about-photo-bg {
    width: 360px;
    height: 460px;
    border-radius: 22px;
    background: linear-gradient(135deg, #60a5fa, #ec4899, #a855f7);
    padding: 14px;
    box-shadow: 0 10px 30px rgba(147, 51, 234, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.about-photo-bg:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(147, 51, 234, 0.2);
    border-color: rgba(236, 72, 153, 0.3);
}


/* FOTO */
.about-photo {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("fotoprofil.png"); /* ganti nama file kalau beda */
}

/* KANAN: teks */
.about-content {
    max-width: 550px;
    padding: 25px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: left;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1rem;
}

/* Skill */
.skills {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(236, 72, 153, 0.2));
    color: #9333ea;
    font-weight: 500;
    border: 2px solid rgba(147, 51, 234, 0.3);
}

/* ABOUT responsive khusus mobile */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }

    .about-photo-bg {
        width: 80%;
        height: 360px;
    }

    .about-content {
        text-align: center;
    }
}




