/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #0f3460;
    --accent-bright: #3a86ff;
    --text: #1a1a2e;
    --text-light: #555;
    --text-muted: #888;
    --bg: #ffffff;
    --bg-alt: #f8f9fb;
    --border: #e8e8e8;
    --card-bg: #ffffff;
    --card-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    --card-hover: 0 8px 30px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--accent-bright);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 8px;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-bright);
    background: rgba(58, 134, 255, 0.06);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
}

/* ========================================
   HERO / ABOUT
   ======================================== */
.hero {
    padding: 120px 0 60px;
}

.hero-intro {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 56px;
}

.hero-photo {
    width: 220px;
    height: 260px;
    border-radius: 16px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 3px solid var(--border);
}

.hero-greeting {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-bright);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-name {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-bright);
    color: #fff;
}

.btn-primary:hover {
    background: #2a75ee;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 134, 255, 0.3);
}

.hero-socials {
    display: flex;
    gap: 12px;
}

.hero-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: var(--transition);
}

.hero-socials a:hover {
    color: var(--accent-bright);
    border-color: var(--accent-bright);
    transform: translateY(-2px);
}

/* Biodata */
.about-biodata {
    margin-bottom: 48px;
}

.about-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-heading i {
    color: var(--accent-bright);
    font-size: 1.4rem;
}

.biodata-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.biodata-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.biodata-item:hover {
    border-color: rgba(58, 134, 255, 0.2);
    box-shadow: var(--card-shadow);
}

.biodata-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.biodata-value {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text);
}

/* About Cards — Motivation & Aspiration */
.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about-card {
    padding: 28px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.about-card:hover {
    border-color: rgba(58, 134, 255, 0.2);
    box-shadow: var(--card-shadow);
}

.about-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}

.about-card-icon.motivation {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.about-card-icon.aspiration {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ========================================
   SKILLS
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.skill-card:hover {
    border-color: var(--accent-bright);
    transform: translateY(-4px);
    box-shadow: var(--card-hover);
}

.skill-card i {
    font-size: 2rem;
    color: var(--accent-bright);
}

.skill-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

/* ========================================
   EXPERIENCE / TIMELINE
   ======================================== */
.timeline {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent-bright);
    z-index: 1;
}

.timeline-content {
    background: var(--card-bg);
    padding: 24px 28px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--card-shadow);
    border-color: rgba(58, 134, 255, 0.2);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.timeline-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
}

.timeline-badge {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(58, 134, 255, 0.1);
    color: var(--accent-bright);
}

.timeline-badge.volunteer {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.timeline-badge.freelance {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.timeline-badge.event {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.timeline-org {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.timeline-date i {
    margin-right: 4px;
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   CERTIFICATES
   ======================================== */
.cert-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.cert-filter {
    padding: 8px 20px;
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    border-radius: 24px;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.cert-filter:hover {
    border-color: var(--accent-bright);
    color: var(--accent-bright);
}

.cert-filter.active {
    background: var(--accent-bright);
    color: #fff;
    border-color: var(--accent-bright);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.cert-card.hidden {
    display: none;
}

.cert-card:hover {
    border-color: rgba(58, 134, 255, 0.25);
    box-shadow: var(--card-shadow);
}

.cert-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(58, 134, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-bright);
}

.cert-info {
    flex: 1;
    min-width: 0;
}

.cert-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}

.cert-issuer {
    font-size: 0.8rem;
    color: var(--text-light);
}

.cert-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cert-link {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.cert-link:hover {
    background: rgba(58, 134, 255, 0.08);
    color: var(--accent-bright);
}

/* ========================================
   CONTACT
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover);
    border-color: rgba(58, 134, 255, 0.2);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25d366;
}

.contact-icon.email {
    background: rgba(234, 67, 53, 0.1);
    color: #ea4335;
}

.contact-icon.instagram {
    background: rgba(225, 48, 108, 0.1);
    color: #e1306c;
}

.contact-icon.linkedin {
    background: rgba(10, 102, 194, 0.1);
    color: #0a66c2;
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 0.825rem;
    color: var(--text-muted);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform 0.35s ease;
        gap: 4px;
    }

    .nav-menu.open {
        transform: translateY(0);
    }

    .nav-link {
        display: block;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-intro {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }

    .hero-image {
        display: flex;
        justify-content: center;
    }

    .hero-photo {
        width: 160px;
        height: 200px;
    }

    .hero-name {
        font-size: 1.8rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .about-cards {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

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

    .timeline {
        padding-left: 28px;
    }

    .timeline-content {
        padding: 20px;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .skill-card {
        padding: 20px 10px;
    }

    .biodata-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cert-filters {
        gap: 6px;
    }

    .cert-filter {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
}
