/* Wina Rahmalia Portfolio - Final Aesthetic Version 
    Target: Perfect UI on Web & Mobile
*/

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --bg: #06090f;
    --surface: #0d1117;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --teal: #00e5c9;
    --teal-dim: rgba(0, 229, 201, 0.1);
    --violet: #8b5cf6;
    --pink: #f472b6;
    --text: #e8eaf0;
    --muted: #94a3b8;
    --radius: 24px;
}

/* --- 1. RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { 
    scroll-behavior: smooth; 
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Menghapus gaya link default browser */
a { 
    text-decoration: none !important; 
    color: inherit !important; 
    transition: 0.3s ease;
}

ul { list-style: none; }

/* --- 2. GLASS EFFECT --- */
.glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(12px); 
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
}

/* --- 3. AURORA BACKGROUND --- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 60vw;
    height: 60vw;
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.blob-1 { background: var(--teal); top: -10%; left: -10%; }
.blob-2 { background: var(--violet); bottom: -10%; right: -10%; animation-delay: -5s; }

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(10%, 10%); }
}

/* --- 4. NAVIGATION --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(6, 9, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 30px;
}

/* --- 5. HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--teal), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Avatar Frame */
.avatar-frame {
    position: relative;
    width: 300px;
    height: 340px;
    margin: 0 auto;
}

.avatar-border {
    position: absolute;
    inset: -5px;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--teal), var(--violet), var(--pink));
    z-index: -1;
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    background: var(--surface);
}

.avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- 6. COMPONENTS & BUTTONS --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 80px 0; }

.section-header { margin-bottom: 40px; }

.eyebrow {
    color: var(--teal);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
}

.rule {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), transparent);
    margin-top: 10px;
    border-radius: 2px;
}

.hero-btns { display: flex; gap: 15px; margin-top: 30px; }

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border: none;
}

.btn-p { background: var(--teal); color: #000 !important; }
.btn-p:hover { transform: translateY(-3px); box-shadow: 0 10px 20px var(--teal-dim); }
.btn-o { border: 1px solid var(--glass-border); background: transparent; color: #fff !important; }

/* --- 7. GRID SYSTEMS & CARDS --- */
.stats-grid, .skills-grid, .projects-grid, .certs-grid { 
    display: grid; 
    gap: 24px; 
    margin-top: 30px;
}

.stats-grid, .skills-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }

.stat-item, .skill-group, .project-card, .cert-card {
    padding: 30px;
    transition: 0.3s ease;
}

.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--teal);
    display: block;
}

/* Skills Tags Fix */
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.skill-tag { 
    background: rgba(255,255,255,0.05); 
    padding: 6px 14px; 
    border-radius: 8px; 
    font-size: 0.85rem; 
    border: 1px solid var(--glass-border);
}

/* Projects Header Fix */
.project-header { margin-bottom: 12px; font-size: 0.9rem; color: var(--muted); }
.cert-icon { color: var(--teal); font-weight: bold; margin-top: 10px; display: inline-block; }

/* --- 8. CONTACT SECTION (WEB & MOBILE OPTIMIZED) --- */
.contact-card {
    width: 100%;
    max-width: 900px;
    padding: 80px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin: 40px auto;
}

.contact-card .hero-btns {
    justify-content: center;
    margin-top: 10px;
}

/* --- 9. FOOTER --- */
footer {
    padding: 60px 0 40px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

footer p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* --- 10. MOBILE OPTIMIZATION --- */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-btns { justify-content: center; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .nav-links { display: none; }
    
    /* Menumpuk kartu dengan jarak (gap) yang pas */
    .hero-grid, .stats-grid, .skills-grid, .projects-grid, .certs-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }

    .hero-grid { display: flex; flex-direction: column-reverse; }
    .avatar-frame { width: 240px; height: 280px; }
    
    .cert-card { flex-direction: column; text-align: center; gap: 15px; }
    .cert-meta { text-align: center; }
    
    .section-header { text-align: center; }
    .rule { margin: 10px auto 0; }
    
    /* Tombol jadi full-width di HP */
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }

    .contact-card { padding: 50px 20px; }
}

/* --- 11. UTILS --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

#progress-bar { 
    position: fixed; top: 0; z-index: 9998; height: 2px; 
    background: linear-gradient(90deg, var(--teal), var(--violet), var(--pink)); 
}

#cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }
.cursor-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.cursor-ring { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(0, 229, 201, 0.5); }