/* ==========================================================================
   SYAIFULLAH ZUHRI — PROFESSIONAL PORTFOLIO
   Premium Dark Theme · Modern Design System
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS & RESET
   ========================================================================== */
:root {
    /* Backgrounds */
    --bg-primary: #08080d;
    --bg-secondary: #0e0e16;
    --bg-tertiary: #14141f;
    --bg-card: #181825;
    --bg-card-hover: #1e1e2e;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);

    /* Accent */
    --accent: #818cf8;
    --accent-light: #a78bfa;
    --accent-soft: rgba(129, 140, 248, 0.1);
    --accent-glow: rgba(129, 140, 248, 0.25);

    /* Text */
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-heading: #f1f5f9;

    /* Effects */
    --glass-bg: rgba(14, 14, 22, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 4px 20px rgba(129, 140, 248, 0.15);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.8, 0.25, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 0.2s;
    --t-base: 0.35s;
    --t-slow: 0.5s;

    /* Layout */
    --container-max: 1200px;
    --section-pad: 7rem 0;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --navbar-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. BASE TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 65ch;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--t-fast) ease;
}
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ==========================================================================
   3. UTILITIES
   ========================================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-title {
    color: var(--text-heading);
    margin-bottom: 0;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border: 1.5px solid transparent;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--t-base) var(--ease-out);
    text-align: center;
    letter-spacing: 0.02em;
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}
.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.82rem;
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-medium);
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

/* Social Links */
.social-links a {
    color: var(--text-muted);
    font-size: 1.3rem;
    margin: 0 0.6rem;
    transition: color var(--t-fast) ease, transform var(--t-fast) ease;
    display: inline-block;
}
.social-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* ==========================================================================
   4. NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 8, 13, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: background var(--t-base) ease, border-color var(--t-base) ease, box-shadow var(--t-base) ease;
}
.navbar.scrolled {
    background: rgba(8, 8, 13, 0.92);
    border-bottom-color: var(--border-subtle);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}
.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--navbar-h);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-heading);
    transition: color var(--t-fast) ease;
}
.logo:hover { color: var(--accent); }
.custom-logo {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-shape {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    transition: all var(--t-base) cubic-bezier(0.4, 0, 0.2, 1);
}
.logo-shape-1 {
    top: 4px;
    left: 4px;
    border: 2.5px solid var(--accent);
    background: transparent;
    z-index: 2;
}
.logo-shape-2 {
    bottom: 4px;
    right: 4px;
    background: linear-gradient(135deg, var(--accent), #c084fc);
    opacity: 0.8;
    z-index: 1;
}
.logo:hover .logo-shape-1 {
    transform: translate(6px, 6px);
    border-color: #c084fc;
}
.logo:hover .logo-shape-2 {
    transform: translate(-6px, -6px);
    opacity: 1;
}
.logo-text {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

/* Desktop Nav */
.nav-links ul { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
    position: relative;
    color: var(--text-secondary);
    padding: 0.5rem 0.9rem;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: color var(--t-fast) ease, background var(--t-fast) ease;
}
.nav-link:hover,
.nav-link.active {
    color: var(--text-heading);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: width var(--t-base) var(--ease-out);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 20px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}
.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--t-base) var(--ease-out);
    transform-origin: center;
}
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   5. MOBILE NAVIGATION OVERLAY
   ========================================================================== */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(8, 8, 13, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) ease, visibility var(--t-base) ease;
}
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-overlay nav {
    text-align: center;
}
.mobile-nav-overlay ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mobile-link {
    display: block;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: color var(--t-fast) ease, transform var(--t-fast) ease;
    letter-spacing: -0.01em;
}
.mobile-link:hover {
    color: var(--accent);
    transform: translateX(4px);
}
.mobile-nav-socials {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.mobile-nav-socials a {
    color: var(--text-muted);
    font-size: 1.4rem;
    transition: color var(--t-fast) ease;
}
.mobile-nav-socials a:hover { color: var(--accent); }

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: var(--navbar-h);
    overflow: hidden;
    background: var(--bg-primary);
}

/* Ambient gradient orbs */
.hero-bg-effects {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.12), transparent 70%);
    top: 10%;
    left: 15%;
    animation: float-orb 20s ease-in-out infinite;
}
.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.08), transparent 70%);
    top: 50%;
    right: 10%;
    animation: float-orb 25s ease-in-out infinite reverse;
}
.hero-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.06), transparent 70%);
    bottom: 10%;
    left: 40%;
    animation: float-orb 22s ease-in-out infinite 3s;
}
@keyframes float-orb {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -20px); }
    66% { transform: translate(-20px, 15px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
}
.hero-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1.25rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent-soft);
    border-radius: 50px;
    background: var(--accent-soft);
}
.hero-title {
    font-weight: 800;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
}
.hero-title .highlight {
    color: var(--accent);
    position: relative;
}
.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 60ch;
    margin: 0 auto 2rem;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.hero-socials { margin-top: 2.5rem; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--t-fast) ease;
}
.scroll-indicator:hover { color: var(--accent); }
.scroll-indicator-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.scroll-indicator-line {
    width: 1px;
    height: 40px;
    background: var(--text-muted);
    position: relative;
    overflow: hidden;
}
.scroll-indicator-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}

/* ==========================================================================
   7. ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: var(--section-pad);
    background: var(--bg-secondary);
}
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}
.about-text h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.about-text p {
    max-width: none;
    color: var(--text-secondary);
    line-height: 1.85;
}
.about-text .btn { margin-top: 1.5rem; }

.about-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.profile-picture-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}
.profile-picture-wrapper::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light), transparent 60%);
    opacity: 0.3;
    z-index: 0;
}
.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    position: relative;
    z-index: 1;
    transition: transform var(--t-base) var(--ease-out);
}
.profile-picture:hover { transform: scale(1.03); }

/* ==========================================================================
   8. SKILLS SECTION
   ========================================================================== */
.skills-section {
    padding: var(--section-pad);
    background: var(--bg-primary);
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--t-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--t-base) var(--ease-out);
}
.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
    background: var(--bg-card-hover);
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform var(--t-base) var(--ease-out), background var(--t-base) ease;
}
.skill-card:hover .skill-icon-wrap {
    transform: scale(1.08);
    background: rgba(129, 140, 248, 0.15);
}
.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
}
.skill-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
    max-width: none;
}
.skill-cert-badge {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    transition: color var(--t-fast) ease;
}
.skill-cert-badge:hover { color: var(--accent-light); }
.skill-cert-badge i { margin-right: 0.3rem; font-size: 0.7rem; }

/* ==========================================================================
   9. PORTFOLIO SECTION
   ========================================================================== */
.portfolio-section {
    padding: var(--section-pad);
    background: var(--bg-secondary);
    overflow: hidden;
}
.portfolio-slider-container {
    position: relative;
    width: 100%;
    padding: 0 60px;
}
.portfolio-slider {
    width: 100%;
    overflow: hidden;
}
.portfolio-track {
    display: flex;
    transition: transform 0.6s var(--ease-out);
    will-change: transform;
}
.portfolio-item {
    flex: 0 0 calc(100% / 3);
    padding: 0 0.75rem;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}
.portfolio-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform 0.6s var(--ease-out);
}
.portfolio-overlay {
    position: absolute;
    inset: 0;
    margin: 0 0.75rem;
    background: linear-gradient(to top, rgba(8, 8, 13, 0.95) 0%, rgba(8, 8, 13, 0.4) 50%, transparent 100%);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--t-base) ease;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-item:hover .portfolio-image { transform: scale(1.05); }

.portfolio-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.portfolio-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    color: var(--text-heading);
    transform: translateY(8px);
    transition: transform var(--t-base) ease;
}
.portfolio-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: none;
    line-height: 1.5;
    transform: translateY(8px);
    transition: transform var(--t-base) ease 0.05s;
}
.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

.btn-overlay {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--t-fast) ease;
    width: fit-content;
    transform: translateY(8px);
    opacity: 0;
}
.portfolio-item:hover .btn-overlay {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
}
.btn-overlay:hover {
    background: var(--accent-light);
    color: var(--bg-primary);
}

/* Slider Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast) ease;
}
.slider-btn:hover:not(:disabled) {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}
.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.prev-btn { left: 0; }
.next-btn { right: 0; }

/* ==========================================================================
   10. CERTIFICATES SECTION
   ========================================================================== */
.certificates-section {
    padding: var(--section-pad);
    background: var(--bg-primary);
}

/* Stats Dashboard */
.cert-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}
.cert-stat-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: border-color var(--t-fast) ease;
}
.cert-stat-card:hover { border-color: var(--border-medium); }
.cert-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.cert-stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

/* Category Cards */
.cert-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.cert-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    cursor: pointer;
    transition: all var(--t-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.cert-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 2px 2px 0 0;
    transition: opacity var(--t-base) ease;
    opacity: 0;
}
.cert-category-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
    background: var(--bg-card-hover);
}
.cert-category-card:hover::before { opacity: 1; }

.cert-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    transition: transform var(--t-base) var(--ease-out);
}
.cert-category-card:hover .cert-cat-icon { transform: scale(1.08); }
.cert-cat-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}
.cert-cat-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 1.25rem;
    max-width: none;
}
.cert-cat-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}
.cert-cat-count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.cert-cat-arrow {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform var(--t-fast) ease, color var(--t-fast) ease;
}
.cert-category-card:hover .cert-cat-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* View All */
.cert-view-all {
    text-align: center;
    margin-top: 1rem;
}

/* ==========================================================================
   11. CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: var(--section-pad);
    background: var(--bg-secondary);
}
.contact-subtitle {
    text-align: center;
    max-width: 550px;
    margin: -2rem auto 3rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--t-base) var(--ease-out);
}
.contact-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
}
.contact-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.3rem;
    color: var(--accent);
}
.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.contact-card a,
.contact-card span {
    color: var(--text-secondary);
    font-size: 0.95rem;
    word-break: break-word;
    display: block;
}
.contact-card a:hover { color: var(--accent); }

/* ==========================================================================
   12. FOOTER
   ========================================================================== */
.footer-section {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    padding: 2.5rem 0;
}
.footer-social-links {
    margin-bottom: 1rem;
}
.footer-social-links a {
    color: var(--text-muted);
    font-size: 1.3rem;
    margin: 0 0.7rem;
    transition: color var(--t-fast) ease;
    display: inline-block;
}
.footer-social-links a:hover { color: var(--accent); }
.footer-section p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
    max-width: none;
}
.footer-section p i { margin: 0 0.15rem; }
.pulse { animation: pulse-heart 1.5s infinite ease-in-out; }
@keyframes pulse-heart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ==========================================================================
   13. SCROLL TO TOP
   ========================================================================== */
#scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    color: var(--accent);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--t-base) var(--ease-out);
    box-shadow: var(--shadow-sm);
}
#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
#scroll-to-top:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* ==========================================================================
   14. CERTIFICATE OVERLAY
   ========================================================================== */
.cert-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--bg-primary);
    overflow-y: auto;
    transform: translateY(100%);
    opacity: 0;
    transition: transform var(--t-slow) var(--ease-out), opacity var(--t-base) ease;
}
.cert-overlay.active {
    transform: translateY(0);
    opacity: 1;
}

.cert-overlay-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(8, 8, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 0 1.5rem;
}
.cert-overlay-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.cert-overlay-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.4rem 0;
    transition: color var(--t-fast) ease;
}
.cert-overlay-back:hover { color: var(--accent); }

.cert-overlay-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.cert-overlay-breadcrumb i { font-size: 0.6rem; }
.cert-overlay-breadcrumb span:last-child { color: var(--text-secondary); }

.cert-overlay-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
    color: var(--text-heading);
}
.cert-overlay-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    max-width: 60ch;
}

.cert-overlay-search-wrap {
    position: relative;
    max-width: 400px;
}
.cert-overlay-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}
#cert-overlay-search {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    outline: none;
    transition: border-color var(--t-fast) ease;
}
#cert-overlay-search:focus { border-color: var(--accent); }
#cert-overlay-search::placeholder { color: var(--text-muted); }

.cert-overlay-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.cert-filter-btn {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--border-medium);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--t-fast) ease;
}
.cert-filter-btn:hover,
.cert-filter-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.cert-overlay-body {
    padding: 2rem 0 4rem;
    min-height: 50vh;
}
.cert-overlay-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cert-overlay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.cert-overlay-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}
.cert-overlay-empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.4;
}

/* Certificate Card (inside overlay) */
.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--t-base) var(--ease-out);
}
.cert-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
}

.cert-card-preview {
    width: 100%;
    height: 160px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.cert-card-preview img,
.cert-card-preview canvas,
.cert-card-preview iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-base) ease;
}
.cert-card:hover .cert-card-preview img,
.cert-card:hover .cert-card-preview canvas,
.cert-card:hover .cert-card-preview iframe { transform: scale(1.04); }

.cert-card-pdf-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}
.cert-card-pdf-icon i { font-size: 2.5rem; opacity: 0.5; }
.cert-card-pdf-icon span { font-size: 0.75rem; font-weight: 500; }

.cert-card-body {
    padding: 1.25rem;
}
.cert-card-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 0.6rem;
}
.cert-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cert-card-issuer {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.cert-card-issuer i { font-size: 0.7rem; }
.cert-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    max-width: none;
}
.cert-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
}
.cert-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.cert-card-date i { font-size: 0.65rem; }
.cert-card-action {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap var(--t-fast) ease;
}
.cert-card:hover .cert-card-action { gap: 0.5rem; }

/* ==========================================================================
   15. CERTIFICATE DETAIL MODAL
   ========================================================================== */
.cert-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) ease, visibility var(--t-base) ease;
}
.cert-modal.active {
    opacity: 1;
    visibility: visible;
}

.cert-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cert-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--t-base) var(--ease-out);
    display: flex;
    flex-direction: column;
}
.cert-modal.active .cert-modal-content {
    transform: scale(1) translateY(0);
}

.cert-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast) ease;
}
.cert-modal-close:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.cert-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow-y: auto;
    max-height: 90vh;
}

.cert-modal-preview {
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 1.5rem;
}
.cert-modal-preview img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: var(--radius);
}
.cert-modal-preview iframe {
    width: 100%;
    height: 60vh;
    border: none;
    border-radius: var(--radius);
}
.cert-modal-preview .cert-pdf-placeholder {
    text-align: center;
    color: var(--text-muted);
}
.cert-pdf-placeholder i {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    opacity: 0.4;
}

.cert-modal-info {
    padding: 2rem;
    overflow-y: auto;
}
.cert-modal-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: var(--text-heading);
    line-height: 1.35;
}

.cert-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.cert-meta-row {
    display: flex;
    gap: 0.75rem;
}
.cert-meta-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.cert-meta-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}
.cert-meta-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.cert-modal-desc {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.cert-modal-desc-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.cert-modal-desc p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
    max-width: none;
}

.cert-modal-skills {
    margin-bottom: 1.5rem;
}
.cert-modal-skills-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}
.cert-modal-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.cert-skill-tag {
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 500;
}

.cert-modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   16. ANIMATIONS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal-hero { transform: translateY(16px); transition-delay: 0.15s; }

.reveal-left.visible,
.reveal-right.visible {
    transform: translate(0, 0);
}

/* Staggered children */
.skills-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.skills-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.skills-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.skills-grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.skills-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.skills-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

.cert-categories-grid .cert-category-card { opacity: 0; transform: translateY(20px); }
.cert-categories-grid .cert-category-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out),
                background var(--t-base) ease, border-color var(--t-base) ease,
                box-shadow var(--t-base) ease;
}

/* Card stagger in overlay */
.cert-overlay-grid .cert-card {
    animation: card-fade-in 0.4s var(--ease-out) both;
}
@keyframes card-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */

/* <= 1024px (Tablet) */
@media (max-width: 1024px) {
    :root { --section-pad: 5.5rem 0; }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .about-content .about-text { order: 2; }
    .about-content .about-image-container { order: 1; }
    .about-text p { text-align: justify; }

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

    .portfolio-slider-container { padding: 0 50px; }
    .portfolio-item { flex: 0 0 50%; }
    .portfolio-image { height: 260px; }

    .cert-modal-body { grid-template-columns: 1fr; }
    .cert-modal-preview { min-height: 200px; max-height: 40vh; }
}

/* <= 768px (Mobile Large) */
@media (max-width: 768px) {
    :root {
        --section-pad: 4.5rem 0;
        --navbar-h: 64px;
    }

    .nav-links { display: none; }
    .hamburger { display: flex; }
    .mobile-nav-overlay { display: flex; }

    .hero-title { font-size: clamp(2rem, 6vw, 2.8rem); }

    .about-content { gap: 2.5rem; }
    .profile-picture-wrapper { width: 240px; height: 240px; }
    .about-text .btn { display: block; margin: 1.5rem auto 0; width: fit-content; }

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

    .portfolio-slider-container { padding: 0 44px; }

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

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

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

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

    .cert-modal-content { width: 95%; max-height: 95vh; border-radius: var(--radius-lg); }
    .cert-modal-body { grid-template-columns: 1fr; }
    .cert-modal-preview { min-height: 180px; max-height: 35vh; }
    .cert-modal-info { padding: 1.5rem; }
    .cert-modal-info h3 { font-size: 1.2rem; }
}

/* <= 480px (Mobile Small) */
@media (max-width: 480px) {
    :root {
        --section-pad: 4rem 0;
    }
    .container { padding: 0 1rem; }

    .logo-text { display: none; }

    .hero-title { font-size: 2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 80%; justify-content: center; }
    .hero-socials a { font-size: 1.1rem; margin: 0 0.5rem; }
    .hero-label { font-size: 0.75rem; padding: 0.35rem 0.85rem; }

    .skills-grid { grid-template-columns: 1fr; }
    .skill-card { padding: 1.5rem 1.25rem; }

    .portfolio-slider-container { padding: 0 36px; }
    .portfolio-item { flex: 0 0 100%; }
    .portfolio-image { height: 220px; }
    .slider-btn { width: 36px; height: 36px; font-size: 0.85rem; }

    .cert-stat-card { padding: 1rem 0.75rem; }
    .cert-stat-number { font-size: 1.6rem; }

    .cert-overlay-header { padding: 1rem 0 1.25rem; }
    .cert-overlay-title { font-size: 1.3rem; }

    .cert-modal-info { padding: 1.25rem; }

    .mobile-link { font-size: 1.4rem; }

    #scroll-to-top { width: 40px; height: 40px; bottom: 16px; right: 16px; font-size: 1rem; }
}

/* >= 1440px (Large Desktop) */
@media (min-width: 1440px) {
    :root {
        --container-max: 1280px;
        --section-pad: 8rem 0;
    }
}