/* =========================================
    GLOBALS.CSS
========================================= */
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
    
    /* BACKGROUND GRADIENT KOSMIK / NEBULA */
    background-color: #050b14;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(73, 21, 148, 0.4), transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(25, 175, 235, 0.3), transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(147, 51, 234, 0.3), transparent 50%),
        linear-gradient(135deg, #050b14 0%, #0a1128 50%, #1a0b2e 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; }

section { scroll-margin-top: 120px; }

/* =========================================
    HEADER (Glassmorphism Navbar)
========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(5, 11, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.brand-logo { font-size: 24px; font-weight: 700; color: #ffffff; letter-spacing: 1px; }
.brand-logo span { color: #32b5ff; }

.navbar { display: flex; align-items: center; gap: 40px; }
.nav-item { font-weight: 500; font-size: 16px; color: #d1d1d1; letter-spacing: 0.5px; transition: color 0.3s ease; position: relative; }
.nav-item:hover { color: #ffffff; }
.nav-item::after {
    content: ''; position: absolute; width: 0; height: 2px; display: block;
    margin-top: 5px; right: 0; background: #32b5ff; transition: width 0.3s ease;
}
.nav-item:hover::after { width: 100%; left: 0; background: #32b5ff; }

.nav-add { 
    font-size: 26px;
    color: #32b5ff; 
    font-weight: 400; 
    line-height: 0; 
    transition: transform 0.4s ease;
}
.nav-add:hover { transform: scale(1.2) rotate(90deg); color: #ffffff; }
.nav-add::after { display: none; }

/* =========================================
    MAIN CONTAINER
========================================= */
.portfolio {
    max-width: 1100px; margin: 0 auto;
    padding: 120px 20px 60px 20px;
    display: flex; flex-direction: column; gap: 100px; flex: 1;
}

/* =========================================
    HERO & INTRO SECTION
========================================= */
.hero-section { display: flex; align-items: center; justify-content: center; gap: 80px; flex-wrap: wrap; }
.hero-left { position: relative; display: flex; flex-direction: column; align-items: center; }
.hello-tag { position: absolute; top: -20px; left: -30px; font-size: 16px; white-space: nowrap; }
.gradient-text {
    font-weight: 700;
    background: linear-gradient(90deg, #32b5ff, #c480ff);
    -webkit-background-clip: text; 
    background-clip: text; /* <--- Tambahkan baris ini untuk kompatibilitas standar */
    -webkit-text-fill-color: transparent;
}
.me-container {
    width: 250px; height: 250px; display: flex; justify-content: center; align-items: center;
    background: radial-gradient(circle, rgba(50, 181, 255, 0.4) 0%, rgba(17, 7, 31, 0) 65%);
    border-radius: 50%; margin-top: 20px;
}
.me-container img { width: 140px; object-fit: cover; z-index: 2; }
.hero-right { display: flex; flex-direction: column; }
.hero-subtitle { font-size: 18px; text-decoration: underline; margin-bottom: 10px; }
.hero-title { font-size: 55px; font-weight: 600; line-height: 1.2; margin: 0 0 15px 0; }
.hero-title .highlight { color: #32b5ff; }
.hero-desc { font-size: 13px; color: #d1d1d1; }

.intro-section { text-align: left; max-width: 800px; margin: 0 auto; }
.intro-title { font-size: 40px; font-weight: 600; margin-bottom: 5px; }
.intro-subtitle { font-size: 18px; color: #32b5ff; margin-bottom: 25px; }
.intro-subtitle span { color: #ffffff; }
.intro-text { font-size: 18px; line-height: 1.7; color: #d1d1d1; }

/* =========================================
    SKILLS SECTION (GLASSMORPHISM)
========================================= */
.section-heading { font-size: 32px; font-weight: 600; margin-bottom: 30px; text-align: center; }

.dynamic-skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(50, 181, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.skill-icon { 
    width: 100px; 
    height: 100px; 
    object-fit: contain; 
    z-index: 1;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); 
}

.skill-info { z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.skill-title { font-size: 24px; font-weight: 600; }
.skill-desc { font-size: 13px; color: #d1d1d1; line-height: 1.5; }

.badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    background: rgba(39, 174, 96, 0.2);
    border: 1px solid #27ae60;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #2ecc71;
    margin-top: 5px;
}

.badge::before {
    content: '✔';
    font-size: 12px;
}

/* =========================================
    PROJECTS & CONTACT SECTION
========================================= */
.projects-section { display: flex; flex-direction: column; gap: 60px; }
.project-card { display: flex; flex-direction: column; gap: 10px; }
.project-label { color: #32b5ff; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 1px;}
.project-title { font-size: 30px; font-weight: 600; color: #ffffff; }
.project-desc { font-size: 16px; color: #d1d1d1; max-width: 600px; line-height: 1.6; }

.contact-title { font-size: 30px; font-weight: 600; margin-bottom: 15px; }
.contact-text { font-size: 16px; color: #d1d1d1; line-height: 1.8; margin-bottom: 25px; }
.social-icons { display: flex; gap: 20px; }
.social-icons img { width: 30px; height: 30px; cursor: pointer; transition: transform 0.3s, filter 0.3s; }
.social-icons img:hover { transform: translateY(-3px); filter: brightness(1.5) drop-shadow(0 0 8px rgba(50, 181, 255, 0.6)); }

.site-footer {
    width: 100%; padding: 30px 20px; text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(5, 11, 20, 0.8);
    color: #888888; font-size: 14px; margin-top: 50px;
}

/* =========================================
    RESPONSIVE TWEAKS
========================================= */
@media (max-width: 768px) {
    .site-header { padding: 15px 20px; flex-direction: column; gap: 15px; }
    .portfolio { padding-top: 160px; }
    .hero-section { flex-direction: column; text-align: center; }
    .hero-right { align-items: center; }
    .intro-section { text-align: center; }
}