/* ==========================================================================
   1. VARIABEL & GLOBAL (KUSTOMISASI TEMA ANDA DI SINI)
   ========================================================================== */
:root {
    --primary-color: #d946ef; /* Fuchsia/Magenta */
    --secondary-color: #0ea5e9; /* Sky Blue */
    --bg-color: #0a0a0a; /* Deep Space Black */
    --surface-color: #171717; /* Slightly lighter black */
    --text-color: #fafafa; /* Almost White */
    --text-muted: #a1a1aa;
    --border-color: #27272a;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. RESET & DASAR
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 120px 0;
}

.section-subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, var(--text-color) 50%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-color);
    margin: 4rem 0 2rem 0;
    text-align: center;
}

/* ==========================================================================
   3. KURSOR KUSTOM & TRAIL
   ========================================================================== */
.cursor,
.cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s;
}

.cursor {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    transition: transform 0.3s, border-color 0.3s;
}

.cursor.hover {
    transform: scale(1.5);
}

.cursor-follower.hover {
    transform: scale(2);
    border-color: var(--secondary-color);
}

/* ==========================================================================
   4. NAVIGASI
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(15px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    transition: padding 0.3s;
}

.header.scrolled .navbar {
    padding: 1rem 0;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* ==========================================================================
   5. HERO / HOME
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg-shape {
    position: absolute;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -10%;
    right: -10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--surface-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    flex: 0 0 400px;
}

.glass-frame {
    width: 350px;
    height: 350px;
    position: relative;
    margin: 0 auto;
    padding: 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.glass-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(217, 70, 239, 0.2);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.2);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 25px;
    position: relative;
}

.mouse span {
    width: 4px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-mouse 2s infinite;
}

@keyframes scroll-mouse {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 25px;
    }
}

/* ==========================================================================
   6. ABOUT
   ========================================================================== */
.about {
    background-color: var(--surface-color);
}

.about-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.about-card:hover {
    border-color: var(--primary-color);
}

.about-card-img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
}

.about-card-text {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.edu-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.edu-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.edu-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.edu-details p {
    color: var(--text-muted);
}

/* ==========================================================================
   7. SKILLS
   ========================================================================== */
.skills-container {
    margin-bottom: 3rem;
}

.skill-group {
    margin-bottom: 2rem;
}

.skill-group h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.skill-slider-wrapper {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 1.5rem 0;
    margin: 0 -1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.skill-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.skill-slider-wrapper::before,
.skill-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.skill-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--surface-color), transparent);
}

.skill-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--surface-color), transparent);
}

.soft-skills-container {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem;
    animation: marquee 30s linear infinite;
}

.skill-tag {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-color);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.hard-skills-grid {
    display: flex;
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-color);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    min-width: 120px;
    max-width: 160px;
    min-height: 130px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.skill-item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.skill-item span {
    font-size: 0.8rem;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    display: block;
    width: 100%;
    text-align: center;
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(217, 70, 239, 0.3);
    border-color: var(--primary-color);
}

.skill-item:hover img {
    filter: drop-shadow(0 0 10px var(--primary-color));
    transform: scale(1.1);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   8. SLIDER
   ========================================================================== */
.slider-section {
    position: relative;
    margin-bottom: 4rem;
}

.slider-wrapper {
    overflow: hidden;
    border-radius: 16px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--secondary-color);
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.slide-card,
.cert-card {
    min-width: 300px;
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 0 1rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.slide-card:hover,
.cert-card:hover {
    transform: scale(1.03);
    border-color: var(--primary-color);
}

.slide-card img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
}

.slide-card p {
    margin-top: 0.5rem;
    text-align: justify;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cert-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
    display: block;
}

/* ==========================================================================
   9. CONTACT
   ========================================================================== */
.contact {
    background-color: var(--bg-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-list p {
    margin-bottom: 1rem;
}

.info-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.info-list a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   10. FORM
   ========================================================================== */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.2rem 0.8rem 1.2rem;
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.2);
}

.form-group label {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
    background: transparent;
    padding: 0 4px;
}

.form-group textarea+label {
    top: 1.2rem;
    transform: none;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    background: var(--bg-color);
    padding: 0 0.5rem;
    transform: none;
}

.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -0.6rem;
}

/* ==========================================================================
   11. FORM NOTIFICATION
   ========================================================================== */
.form-notification {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 14px;
    display: none;
    animation: slideDown 0.4s ease;
}

.form-notification.show {
    display: block;
}

.form-notification.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-notification.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   12. MODAL
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-gallery {
    margin: 5% auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 90%;
    animation: zoom-in 0.3s;
}

.modal-gallery img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

@keyframes zoom-in {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 40px;
    right: 45px;
    color: var(--text-color);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.modal-close:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   14. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-image {
        flex: 0 0 auto;
    }
    .glass-frame {
        width: 300px;
        height: 300px;
    }
    .about-card,
    .edu-card {
        flex-direction: column;
        text-align: center;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--surface-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-item {
        margin: 1rem 0;
    }
    .hamburger {
        display: block;
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .container {
        padding: 0 1.5rem;
    }
    section {
        padding: 80px 0;
    }
    .section-title {
        margin-bottom: 3rem;
    }

    .glass-frame {
        width: 280px;
        height: 280px;
    }
    .hero-buttons {
        justify-content: center;
    }

    .hard-skills-grid {
        flex-wrap: wrap;
    }

    .slide-card,
    .cert-card {
        min-width: 250px;
    }
    .slider-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    section {
        padding: 60px 0;
    }
    .glass-frame {
        width: 250px;
        height: 250px;
    }
    .skill-item {
        min-width: 100px;
        height: 120px;
        font-size: 0.8rem;
    }
    .slider-btn {
        left: 0.5rem;
        right: 0.5rem;
    }
    .slide-card,
    .cert-card {
        min-width: calc(100% - 2rem);
        margin: 0 1rem;
    }
    .edu-card {
        flex-direction: column;
        text-align: center;
    }
    .about-card {
        flex-direction: column;
        text-align: center;
    }
    .about-card-img {
        width: 120px;
        height: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cursor,
    .cursor-follower {
        display: none;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}