/* ============================================================
   VIKASH KUMAWAT — PORTFOLIO DESIGN SYSTEM
   Light vibrant theme (default) + Dark mode toggle
   ============================================================ */

   :root {
    /* ---- Light theme (default) ---- */
    --bg: #FFF4EC;
    --bg-soft: #FFE9DA;
    --bg-card: #FFFFFF;
    --bg-card-tint: #FFEFE3;
    --ink: #14110E;
    --ink-soft: #5B5550;
    --ink-faint: #948C85;
    --line: #F0DFD0;
    --orange: #FF6B35;
    --pink: #F72585;
    --grad-1: #FF6B35;
    --grad-2: #FF3D7F;
    --grad-3: #B5179E;
    --accent-mint: #0EA572;
    --accent-blue: #3A6FF7;
    --shadow-soft: 0 4px 20px rgba(20, 17, 14, 0.05);
    --shadow-card: 0 8px 30px rgba(247, 37, 133, 0.08);
    --shadow-hover: 0 20px 50px rgba(255, 107, 53, 0.18);
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.7);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg: #120D14;
    --bg-soft: #1B1420;
    --bg-card: #1E1620;
    --bg-card-tint: #261B2C;
    --ink: #FBF4F0;
    --ink-soft: #C9BFC4;
    --ink-faint: #8A7F87;
    --line: #332A38;
    --orange: #FF7A4D;
    --pink: #FF4D9E;
    --grad-1: #FF7A4D;
    --grad-2: #FF4D9E;
    --grad-3: #C13FD6;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 8px 30px rgba(247, 37, 133, 0.15);
    --shadow-hover: 0 20px 50px rgba(255, 122, 77, 0.25);
    --glass-bg: rgba(30, 22, 32, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background 0.5s var(--ease-soft), color 0.5s var(--ease-soft);
}

::selection { background: var(--pink); color: white; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.mono { font-family: var(--font-mono); }

/* ---- Gradient text ---- */
.grad-text {
    background: linear-gradient(100deg, var(--grad-1) 0%, var(--grad-2) 55%, var(--grad-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- Eyebrow / pill badge ---- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 12px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--orange);
    box-shadow: var(--shadow-soft);
}
.eyebrow .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.18);
    flex-shrink: 0;
}
.eyebrow .dot.pulse { animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255,107,53,0.18); }
    50% { box-shadow: 0 0 0 6px rgba(255,107,53,0.08); }
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-mark {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--ink-faint);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}
.loader-mark span { color: var(--orange); }
.loader-bar {
    width: 180px; height: 3px; border-radius: 10px;
    background: var(--line);
    overflow: hidden;
    margin: 0 auto;
}
.loader-bar-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
    border-radius: 10px;
    animation: loadbar 1.1s var(--ease) forwards;
}
@keyframes loadbar { to { width: 100%; } }

/* ============================================================
   NAV
   ============================================================ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 0;
    transition: all 0.4s var(--ease-soft);
}
nav.scrolled {
    padding: 12px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid var(--glass-border);
}
.nav-content {
    max-width: 1200px; margin: 0 auto; padding: 0 28px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.logo-mark {
    width: 32px; height: 32px; border-radius: 9px;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.95rem; font-weight: 700;
    box-shadow: 0 4px 14px rgba(255, 61, 127, 0.35);
}
.nav-links {
    display: flex; align-items: center; gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 5px;
    box-shadow: var(--shadow-soft);
}
.nav-link {
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.88rem; font-weight: 500;
    color: var(--ink-soft);
    transition: all 0.3s var(--ease-soft);
    position: relative;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active {
    background: linear-gradient(100deg, var(--grad-1), var(--grad-2));
    color: white;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink); font-size: 1rem;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s var(--ease-soft);
    position: relative; overflow: hidden;
}
.theme-toggle:hover { transform: rotate(15deg) scale(1.05); border-color: var(--orange); }
.theme-toggle i { position: absolute; transition: all 0.4s var(--ease); }
.theme-toggle .fa-sun { opacity: 0; transform: translateY(20px) rotate(-90deg); }
.theme-toggle .fa-moon { opacity: 1; transform: translateY(0) rotate(0); }
[data-theme="dark"] .theme-toggle .fa-sun { opacity: 1; transform: translateY(0) rotate(0); }
[data-theme="dark"] .theme-toggle .fa-moon { opacity: 0; transform: translateY(-20px) rotate(90deg); }

.hamburger {
    display: none;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--line);
    align-items: center; justify-content: center;
    font-size: 1.1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 26px;
    border-radius: 100px;
    font-weight: 600; font-size: 0.92rem;
    transition: all 0.35s var(--ease-soft);
    white-space: nowrap;
    position: relative;
}
.btn-primary {
    background: linear-gradient(100deg, var(--grad-1), var(--grad-2));
    color: white;
    box-shadow: 0 8px 24px rgba(255, 61, 127, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(255, 61, 127, 0.42);
}
.btn-outline {
    background: var(--bg-card);
    color: var(--ink);
    border: 1.5px solid var(--line);
}
.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
}
[data-theme="dark"] .blob { opacity: 0.3; }
.blob-1 { width: 480px; height: 480px; background: var(--orange); top: -120px; right: -100px; }
.blob-2 { width: 380px; height: 380px; background: var(--pink); bottom: -100px; left: -80px; }
.blob-3 { width: 280px; height: 280px; background: var(--accent-blue); top: 40%; right: 20%; opacity: 0.2; }

.hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 56px; align-items: center;
}
.hero-text .eyebrow { margin-bottom: 22px; }
.hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    margin-bottom: 18px;
}
.hero h1 .line { display: block; }
.hero-role {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: var(--ink-soft);
    margin-bottom: 22px;
    display: flex; align-items: center; gap: 10px;
    min-height: 1.5em;
}
.hero-role .cursor {
    width: 2px; height: 1.1em; background: var(--pink);
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-summary {
    font-size: 1.05rem;
    color: var(--ink-soft);
    max-width: 540px;
    margin-bottom: 34px;
}
.hero-buttons { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 32px; }
.hero-stat-num {
    font-family: var(--font-display);
    font-size: 1.8rem; font-weight: 700;
    background: linear-gradient(100deg, var(--grad-1), var(--grad-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stat-label { font-size: 0.8rem; color: var(--ink-faint); margin-top: 2px; }

/* ---- Hero visual: signature terminal/pipeline card ---- */
.hero-visual { position: relative; }
.float-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: var(--shadow-card);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    z-index: 3;
    animation: floaty 5s ease-in-out infinite;
}
.float-card-1 { top: -18px; right: 10px; animation-delay: 0s; }
.float-card-2 { bottom: 30px; left: -28px; animation-delay: 1.2s; }
.float-card-3 { bottom: -10px; right: -16px; animation-delay: 2.4s; }
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.float-card .fc-label { color: var(--ink-faint); font-size: 0.68rem; margin-bottom: 3px; }
.float-card .fc-value { color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.float-card .fc-value i { color: var(--accent-mint); }

.profile-frame {
    position: relative;
    width: 100%; max-width: 420px; margin: 0 auto;
}
.profile-ring {
    position: relative;
    border-radius: 32px;
    padding: 6px;
    background: linear-gradient(140deg, var(--grad-1), var(--grad-2), var(--grad-3));
    box-shadow: var(--shadow-hover);
}
.profile-img-wrap {
    border-radius: 28px;
    overflow: hidden;
    background: var(--bg-card);
}
.profile-img {
    width: 100%; aspect-ratio: 1/1.08; object-fit: cover;
    display: block;
}

.bg-light { background: var(--bg-soft); }

code.mono {
    background: var(--bg-card-tint);
    color: var(--orange);
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 0.85em;
}

/* ============================================================
   SECTIONS — general
   ============================================================ */
.section { padding: 110px 0; scroll-margin-top: 90px; position: relative; }
.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    margin: 14px 0 12px;
}
.section-sub { color: var(--ink-soft); font-size: 1.02rem; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: start;
}
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.02rem; }
.about-copy strong { color: var(--ink); font-weight: 600; }

.objective-card {
    margin-top: 24px;
    background: var(--bg-card-tint);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px 24px;
}
.objective-card .ob-label {
    font-family: var(--font-mono); font-size: 0.74rem;
    color: var(--orange); text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 8px; display: block;
}

.edu-stack { display: flex; flex-direction: column; gap: 18px; }
.edu-item {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s var(--ease-soft);
}
.edu-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--orange); }
.edu-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.edu-icon {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    display: flex; align-items: center; justify-content: center; color: white; font-size: 1.05rem;
}
.edu-period {
    font-family: var(--font-mono); font-size: 0.74rem;
    color: var(--ink-faint); white-space: nowrap;
    background: var(--bg-soft); padding: 4px 10px; border-radius: 100px;
}
.edu-item h4 { font-size: 1.08rem; margin: 10px 0 4px; }
.edu-item .edu-school { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 8px; }
.edu-item .edu-extra { font-size: 0.86rem; color: var(--ink-faint); }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-tabs {
    display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap;
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 100px; padding: 6px; width: fit-content;
}
.skills-tab {
    padding: 10px 20px; border-radius: 100px;
    font-size: 0.86rem; font-weight: 600; color: var(--ink-soft);
    transition: all 0.3s var(--ease-soft);
}
.skills-tab.active {
    background: linear-gradient(100deg, var(--grad-1), var(--grad-2));
    color: white;
}
.skills-panel { display: none; }
.skills-panel.active { display: block; }

.skill-bars { display: flex; flex-direction: column; gap: 22px; }
.skill-bar-row { display: flex; flex-direction: column; gap: 8px; }
.skill-bar-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.92rem; }
.skill-bar-top .sb-name { font-weight: 600; display: flex; align-items: center; gap: 9px; }
.skill-bar-top .sb-pct { font-family: var(--font-mono); color: var(--ink-faint); font-size: 0.82rem; }
.skill-bar-track {
    height: 9px; border-radius: 10px;
    background: var(--bg-soft);
    overflow: hidden;
    position: relative;
}
.skill-bar-fill {
    height: 100%; border-radius: 10px; width: 0%;
    background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
    transition: width 1.4s var(--ease);
}

.skills-grid-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
}
.skill-pill-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 18px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s var(--ease-soft);
}
.skill-pill-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
    background: linear-gradient(160deg, var(--bg-card), var(--bg-card-tint));
}
.skill-pill-card i {
    font-size: 1.7rem;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: 12px; display: block;
}
.skill-pill-card span { font-weight: 600; font-size: 0.88rem; }

/* ============================================================
   PROJECTS
   ============================================================ */
.project-filters {
    display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap;
}
.pf-btn {
    padding: 9px 18px; border-radius: 100px;
    border: 1px solid var(--line); background: var(--bg-card);
    font-size: 0.84rem; font-weight: 600; color: var(--ink-soft);
    transition: all 0.3s var(--ease-soft);
}
.pf-btn.active, .pf-btn:hover {
    background: linear-gradient(100deg, var(--grad-1), var(--grad-2));
    color: white; border-color: transparent;
}

.projects-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 26px;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft), border-color 0.45s;
    display: flex; flex-direction: column;
    position: relative;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}
.project-top {
    padding: 26px 26px 0;
    display: flex; justify-content: space-between; align-items: flex-start;
}
.project-glyph {
    width: 46px; height: 46px; border-radius: 13px;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.15rem;
    box-shadow: 0 6px 16px rgba(255,61,127,0.28);
}
.project-links { display: flex; gap: 8px; }
.project-links a {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
    font-size: 0.92rem; color: var(--ink-soft);
    transition: all 0.3s var(--ease-soft);
}
.project-links a:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }

.project-content { padding: 20px 26px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.project-cat {
    font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--pink); margin-bottom: 8px; font-weight: 600;
}
.project-content h3 { font-size: 1.22rem; margin-bottom: 10px; }
.project-content p { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 20px; flex-grow: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags span {
    background: var(--bg-card-tint); color: var(--ink-soft);
    padding: 5px 12px; border-radius: 100px; font-size: 0.76rem; font-weight: 600;
    border: 1px solid var(--line);
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
    content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
    background: linear-gradient(180deg, var(--grad-1), var(--grad-3));
    border-radius: 2px;
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute; left: -36px; top: 6px;
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--orange);
    box-shadow: 0 0 0 5px var(--bg-soft);
}
.timeline-content {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 18px; padding: 28px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s var(--ease-soft);
}
.timeline-content:hover { box-shadow: var(--shadow-card); border-color: var(--orange); }
.timeline-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.timeline-content h3 { font-size: 1.3rem; }
.timeline-meta { color: var(--orange); font-weight: 600; font-size: 0.95rem; margin-top: 4px; }
.timeline-meta span { color: var(--ink-faint); font-weight: 400; font-size: 0.85rem; }
.timeline-period {
    font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-faint);
    background: var(--bg-soft); padding: 5px 12px; border-radius: 100px; white-space: nowrap;
}
.job-description li {
    position: relative; padding-left: 22px; margin-bottom: 11px;
    color: var(--ink-soft); font-size: 0.95rem;
}
.job-description li::before {
    content: '▸'; position: absolute; left: 0; color: var(--pink); font-weight: 700;
}
.job-description strong { color: var(--ink); }

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.cert-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.cert-card {
    background: var(--bg-card); border: 1px solid var(--line);
    border-radius: 16px; padding: 20px;
    display: flex; gap: 16px; align-items: flex-start;
    box-shadow: var(--shadow-soft);
    transition: all 0.35s var(--ease-soft);
}
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: var(--orange); }
.cert-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: var(--bg-card-tint); color: var(--orange);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.cert-card h4 { font-size: 0.98rem; margin-bottom: 4px; line-height: 1.35; }
.cert-card .cert-meta { font-size: 0.82rem; color: var(--ink-faint); }
.cert-status {
    display: inline-block; margin-top: 8px;
    font-family: var(--font-mono); font-size: 0.68rem;
    padding: 3px 9px; border-radius: 100px;
    background: rgba(14,165,114,0.12); color: var(--accent-mint); font-weight: 600;
}
.cert-status.progress { background: rgba(255,107,53,0.12); color: var(--orange); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { position: relative; }
.contact-wrap {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 56px;
    box-shadow: var(--shadow-card);
    position: relative; overflow: hidden;
}
.contact-wrap::before {
    content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-3));
    opacity: 0.12; top: -120px; right: -100px; filter: blur(40px);
}
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 14px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 28px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-list a {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.95rem; font-weight: 500; color: var(--ink);
    transition: all 0.3s var(--ease-soft);
}
.contact-list a:hover { color: var(--pink); transform: translateX(4px); }
.contact-list .ci-icon {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    background: var(--bg-card-tint); display: flex; align-items: center; justify-content: center;
    color: var(--orange);
}

.form-group { margin-bottom: 18px; position: relative; }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 16px;
    background: var(--bg-soft);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    font-family: var(--font-body); font-size: 0.94rem; color: var(--ink);
    transition: all 0.3s var(--ease-soft);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--orange);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(255,107,53,0.1);
}
.form-group label {
    position: absolute; left: 16px; top: 14px;
    color: var(--ink-faint); font-size: 0.94rem;
    pointer-events: none; transition: all 0.25s var(--ease-soft);
    background: transparent; padding: 0 4px;
}
.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: -9px; font-size: 0.74rem; color: var(--orange);
    background: var(--bg-card); font-weight: 600;
}
.form-error {
    font-size: 0.78rem; color: var(--pink); margin-top: 6px;
    display: none; align-items: center; gap: 6px;
}
.form-error.show { display: flex; }
.form-group.invalid input, .form-group.invalid textarea { border-color: var(--pink); }

.form-status {
    margin-top: 16px; padding: 12px 16px; border-radius: 10px;
    font-size: 0.88rem; display: none; align-items: center; gap: 8px;
    background: rgba(14,165,114,0.1); color: var(--accent-mint); font-weight: 600;
}
.form-status.show { display: flex; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { padding: 40px 0 30px; border-top: 1px solid var(--line); }
.footer-content {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-content p { color: var(--ink-faint); font-size: 0.88rem; }
.footer-links { display: flex; gap: 10px; }
.footer-links a {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-soft); transition: all 0.3s var(--ease-soft);
}
.footer-links a:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 500;
    width: 48px; height: 48px; border-radius: 50%;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    color: white; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 26px rgba(255,61,127,0.35);
    opacity: 0; visibility: hidden; transform: translateY(16px);
    transition: all 0.4s var(--ease-soft);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px) scale(1.06); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
    .hero-text { text-align: center; }
    .hero-summary { margin: 0 auto 34px; }
    .hero-buttons, .hero-stats { justify-content: center; }
    .hero-visual { order: -1; max-width: 380px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; gap: 44px; }
    .contact-wrap { grid-template-columns: 1fr; padding: 40px 28px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-links.mobile-open {
        display: flex; flex-direction: column;
        position: fixed; top: 76px; left: 16px; right: 16px;
        background: var(--bg-card); border: 1px solid var(--line);
        border-radius: 20px; padding: 14px; gap: 4px;
        box-shadow: var(--shadow-hover);
    }
    .nav-links.mobile-open .nav-link { text-align: center; padding: 12px; }
    .section { padding: 80px 0; }
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2.5rem; }
    .float-card { display: none; }
    .skills-tabs { width: 100%; overflow-x: auto; }
    .contact-wrap { padding: 30px 22px; border-radius: 22px; }
    .timeline { padding-left: 28px; }
    .timeline-dot { left: -28px; }
}

@media (max-width: 480px) {
    .hero-stats { gap: 22px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
}