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

:root {
    --red:       #e1c01d;
    --red-dark:  #DC2626;
    --red-deep:  #B91C1C;
    --red-tint:  #FEF2F2;
    --ink:       #111827;
    --muted:     #6B7280;
    --bg:        #F9FAFB;
    --white:     #FFFFFF;
    --line:      #E5E7EB;
    --shadow:    0 10px 30px rgba(17,24,39,0.06);
    --shadow-lg: 0 18px 44px rgba(225,29,46,0.14);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    background: var(--white);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg); }

/* ── TYPE HELPERS ── */
.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink);
}
.eyebrow.red { color: var(--red); }
.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 10px 0 14px;
}
.section-title em { font-style: normal; color: var(--red); }
.lede { font-size: 0.95rem; color: var(--muted); line-height: 1.75; max-width: 520px; }
.script {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    color: var(--ink);
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn i { font-size: 0.75rem; transition: transform 0.25s; }
.btn-red { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(225,29,46,0.25); }
.btn-red:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(225,29,46,0.32); }
.btn-red:hover i { transform: translateX(3px); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn-outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }
.btn-outline-red:hover i { transform: translateX(3px); }

/* ── HEADER ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229,231,235,0.7);
}
.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
    display: inline-flex;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 1;
}
.brand-mark b { color: var(--red); font-weight: 800; }
.brand-mark i { font-style: normal; color: var(--ink); margin-left: -3px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 0.9rem; font-weight: 700; }
.brand-text small { font-size: 0.68rem; color: var(--muted); font-weight: 500; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    transition: color 0.25s;
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--red);
    border-radius: 2px;
    transition: width 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta-mobile { display: none; }

.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s;
}
.nav-toggle:hover { border-color: var(--red); color: var(--red); }

/* ── HERO ── */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #F3F4F6 0%, #FFFFFF 100%);
}
.hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 24px 0;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 24px;
    align-items: end;
    min-height: 600px;
}
.hero-copy { align-self: center; padding-bottom: 56px; }
.hero-copy h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 16px 0 8px;
}
.hero-copy h1 span { color: var(--red); }
.hero-role {
    font-size: clamp(1.05rem, 1.9vw, 1.45rem);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 18px;
}
.hero-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.8; max-width: 460px; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-tag { font-size: 0.72rem; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; margin-bottom: 12px; }
.social-row { display: flex; gap: 10px; }
.social-icon {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.social-icon:hover { background: var(--red); color: var(--white); border-color: var(--red); transform: translateY(-3px); }

.hero-visual {
    position: relative;
    height: 590px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.hero-blob {
    position: absolute;
    left: 14%;
    top: 40px;
    width: 58%;
    height: 80%;
    background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
    border-radius: 56px;
    transform: rotate(-5deg);
}
.hero-photo {
    position: relative;
    z-index: 2;
    width: min(100%, 440px);
    height: 92%;
    object-fit: cover;
    object-position: top center;
    border-radius: 220px 220px 0 0;
    background: linear-gradient(135deg, #1f2937, #4b5563);
}
.hero-script {
    position: absolute;
    top: 80px; right: 0;
    z-index: 3;
    font-size: 2rem;
    line-height: 1.05;
    transform: rotate(-12deg);
    text-align: right;
}
.hero-script::after {
    content: '';
    display: block;
    width: 80%;
    height: 3px;
    margin: 8px 0 0 auto;
    border-radius: 3px;
    background: var(--red);
    transform: rotate(-4deg);
}
.scroll-down {
    position: absolute;
    right: 8px; bottom: 36px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}
.scroll-down::before { content: ''; width: 1px; height: 28px; background: var(--line); }
.scroll-down i { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ── SKILLS (HOME) ── */
.skills-intro {
    display: grid;
    grid-template-columns: 1fr 2.3fr;
    gap: 56px;
    align-items: center;
}
.skills-intro .btn { margin-top: 24px; }
.skill-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.skill-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.skill-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(225,29,46,0.35); }
.skill-icon {
    width: 46px; height: 46px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--red-tint);
    color: var(--red);
    font-size: 1.15rem;
    margin-bottom: 36px;
}
.skill-card h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 2px; }
.skill-card p { font-size: 0.75rem; color: var(--muted); margin-bottom: 18px; }
.skill-meter { display: flex; align-items: center; gap: 10px; }
.skill-meter .bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.skill-meter .bar span { display: block; height: 100%; width: var(--p); background: var(--red); border-radius: 4px; }
.skill-meter .pct { font-size: 0.7rem; color: var(--muted); font-weight: 500; }

/* ── ABOUT (HOME) ── */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
.about-visual { position: relative; padding: 0 0 30px 20px; }
.about-red {
    position: absolute;
    right: -10px; top: 50px; bottom: 50px;
    width: 40%;
    background: linear-gradient(160deg, var(--red), var(--red-deep));
    border-radius: 48px;
    transform: rotate(4deg);
}
.about-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 0.92;
    object-fit: cover;
    object-position: top center;
    border-radius: 70px 160px 70px 70px;
    background: linear-gradient(135deg, #1f2937, #4b5563);
    box-shadow: var(--shadow);
}
.about-callout {
    position: absolute;
    z-index: 3;
    top: 4px; left: -8px;
    font-size: 1.5rem;
    transform: rotate(-10deg);
    line-height: 1;
}
.about-callout i { display: block; margin: 4px 0 0 18px; font-size: 1rem; color: var(--red); transform: rotate(20deg); }
.exp-badge {
    position: absolute;
    z-index: 3;
    left: -14px; bottom: 6px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    padding: 14px 20px 14px 14px;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(17,24,39,0.12);
}
.exp-badge .ico {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
}
.exp-badge strong { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1; }
.exp-badge span { font-size: 0.72rem; color: var(--muted); }

.about-copy { position: relative; }
.dots {
    position: absolute;
    top: -12px; right: 0;
    width: 110px; height: 80px;
    background: radial-gradient(circle, rgba(225,29,46,0.4) 2px, transparent 2.6px) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(135deg, #000, transparent 85%);
            mask-image: linear-gradient(135deg, #000, transparent 85%);
}
.about-copy .section-title span { display: block; font-weight: 500; }
.about-copy p.bio { font-size: 0.92rem; color: var(--muted); line-height: 1.85; margin-bottom: 14px; max-width: 520px; }
.about-copy p.bio strong { color: var(--ink); }
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 28px 0 32px;
    max-width: 480px;
}
.stats-row strong { display: block; font-size: 1.8rem; font-weight: 800; line-height: 1.1; }
.stats-row span { font-size: 0.75rem; color: var(--muted); }

/* ── PROJECTS (HOME) ── */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.section-head .section-title { margin-bottom: 10px; }
.text-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--red);
    text-decoration: none;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}
.text-link i { font-size: 0.7rem; transition: transform 0.25s; }
.text-link:hover i { transform: translateX(4px); }

.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.work-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(225,29,46,0.35); }
.work-thumb {
    height: 170px;
    margin: 10px 10px 0;
    border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    color: rgba(255,255,255,0.9);
    font-size: 2.4rem;
    position: relative;
    overflow: hidden;
}
.work-thumb::after {
    content: '';
    position: absolute;
    right: -40px; bottom: -40px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: var(--red);
    opacity: 0.85;
}
.work-thumb i { position: relative; z-index: 1; }
.work-body { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 18px; }
.work-body h3 { font-size: 0.86rem; font-weight: 700; }
.work-body p { font-size: 0.74rem; color: var(--muted); }
.work-arrow {
    width: 30px; height: 30px;
    flex-shrink: 0;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--red-tint);
    color: var(--red);
    font-size: 0.7rem;
    transition: background 0.25s, color 0.25s;
}
.work-card:hover .work-arrow { background: var(--red); color: var(--white); }

/* ── CTA BANNER ── */
.cta-wrap { padding: 24px 0 72px; }
.cta-banner {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    border-radius: 24px;
    padding: 56px 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}
.cta-banner::before, .cta-banner::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, var(--red), #7F1D1D);
}
.cta-banner::before { left: -70px; top: -60px; width: 240px; height: 200px; border-radius: 40% 60% 60% 40%; transform: rotate(-12deg); opacity: 0.95; }
.cta-banner::after { right: -60px; bottom: -70px; width: 220px; height: 200px; border-radius: 60% 40% 40% 60%; transform: rotate(10deg); opacity: 0.9; }
.cta-copy, .cta-banner .btn { position: relative; z-index: 1; }
.cta-copy .eyebrow { color: var(--white); }
.cta-copy h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 10px 0; letter-spacing: -0.02em; }
.cta-copy p { color: rgba(255,255,255,0.7); font-size: 0.88rem; max-width: 460px; line-height: 1.7; }

/* ── FOOTER ── */
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 28px;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.8rem; }
.footer-links a { font-size: 0.74rem; font-weight: 500; text-decoration: none; color: var(--ink); transition: color 0.25s; }
.footer-links a:hover { color: var(--red); }
.footer-social { display: flex; justify-content: flex-end; gap: 10px; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 26px;
    border-top: 1px solid var(--line);
    font-size: 0.72rem;
    color: var(--muted);
}
.footer-bottom i { color: var(--red); }

/* ════════ INNER PAGES ════════ */
.page-head {
    background: linear-gradient(180deg, #F3F4F6 0%, #FFFFFF 100%);
    padding: 72px 0 56px;
}
.page-head .section-title { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 0; }
.page-head .lede { margin-top: 14px; }
.page-head-split { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: center; }
.page-head-split .about-intro { font-size: 0.95rem; line-height: 1.85; color: var(--muted); margin-bottom: 16px; }
.page-head-split .about-intro strong { color: var(--ink); }

/* about */
.highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.highlight-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 26px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(225,29,46,0.35); }
.highlight-card .ico {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: var(--red-tint);
    color: var(--red);
    font-size: 1.15rem;
    margin-bottom: 18px;
}
.highlight-media img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 18px; display: block; background: var(--bg); }
.highlight-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.highlight-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.75; }

.edu-timeline { position: relative; padding-left: 36px; max-width: 720px; margin-top: 36px; }
.edu-timeline::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--red), transparent);
}
.edu-item { position: relative; margin-bottom: 40px; }
.edu-item::before {
    content: '';
    position: absolute;
    left: -43px; top: 6px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--red);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px rgba(225,29,46,0.2);
}
.edu-degree { font-size: 1.02rem; font-weight: 700; margin-bottom: 4px; }
.edu-school { font-size: 0.88rem; color: var(--red); font-weight: 600; margin-bottom: 4px; }
.edu-detail { font-size: 0.82rem; color: var(--muted); }

/* experience */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin: 36px 0 44px; }
.exp-card {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.exp-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 4px; height: 0;
    background: var(--red);
    transition: height 0.4s;
}
.exp-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(225,29,46,0.35); }
.exp-card:hover::before { height: 100%; }
.exp-num { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--red); letter-spacing: 0.2em; margin-bottom: 14px; }
.exp-title { font-size: 1.02rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.exp-company { font-size: 0.82rem; color: var(--muted); }

/* skills page */
.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.cert-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 12px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.cert-badge:hover { transform: translateX(6px); box-shadow: var(--shadow); border-color: rgba(225,29,46,0.35); }
.cert-badge i {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--red-tint);
    color: var(--red);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.cert-badge span { font-size: 0.86rem; font-weight: 600; }

.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: default;
    transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.skill-tag i { color: var(--red); font-size: 0.75rem; transition: color 0.25s; }
.skill-tag:hover { background: var(--red); border-color: var(--red); color: var(--white); transform: translateY(-2px); }
.skill-tag:hover i { color: var(--white); }

.project-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(225,29,46,0.35); }
.project-name { font-size: 0.98rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.project-name i { color: var(--red); }
.project-description { font-size: 0.84rem; color: var(--muted); line-height: 1.7; }

/* certificates */
.certs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; margin-top: 36px; }
.cert-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.cert-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(225,29,46,0.35); }
.cert-img-wrap { position: relative; width: 100%; }
.cert-card-img { width: 100%; height: 200px; object-fit: cover; display: block; cursor: zoom-in; }
.cert-card-placeholder {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.cert-card-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.025) 10px, rgba(255,255,255,0.025) 20px);
}
.cert-upload-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 2px dashed rgba(225,29,46,0.8);
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}
.cert-upload-icon i { color: #fff; font-size: 1.1rem; }
.cert-upload-text { font-size: 0.75rem; color: rgba(255,255,255,0.65); position: relative; z-index: 1; }
.cert-file-hint {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.03em;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 12px;
}
.cert-card-body { padding: 20px; border-top: 3px solid var(--red); }
.cert-card-num { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: var(--red); letter-spacing: 0.2em; margin-bottom: 6px; }
.cert-card-title { font-size: 0.98rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.cert-card-issuer { font-size: 0.8rem; color: var(--muted); }
.cert-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red-tint);
    color: var(--red);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 999px;
    margin-top: 12px;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,0.94);
    z-index: 999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 8px; object-fit: contain; border: 1px solid rgba(225,29,46,0.5); }
.lightbox-close { position: absolute; top: 24px; right: 32px; color: #fff; font-size: 2.2rem; cursor: pointer; background: none; border: none; line-height: 1; transition: color 0.25s; }
.lightbox-close:hover { color: var(--red); }
.lightbox-caption { color: rgba(255,255,255,0.8); font-size: 0.85rem; letter-spacing: 0.04em; }

/* contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-desc { font-size: 0.95rem; color: var(--muted); line-height: 1.8; margin: 8px 0 32px; max-width: 480px; }
.contact-info { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.contact-row:hover { border-color: var(--red); box-shadow: var(--shadow); }
.contact-row i {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--red-tint);
    color: var(--red);
}
.contact-row span { font-size: 0.88rem; font-weight: 500; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.25s;
}
.social-btn:hover { border-color: var(--red); background: var(--red); color: var(--white); transform: translateY(-2px); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.form-group input, .form-group textarea {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--ink);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    outline: none;
    resize: vertical;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--red); background: var(--white); box-shadow: 0 0 0 4px rgba(225,29,46,0.1); }
.form-group textarea { min-height: 130px; }
.success-msg { display: none; margin-top: 20px; padding: 18px 20px; border: 1px solid rgba(225,29,46,0.3); background: var(--red-tint); border-radius: 14px; color: var(--red-deep); font-size: 0.9rem; font-weight: 500; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    .skills-intro { grid-template-columns: 1fr; gap: 36px; }
    .skill-cards { grid-template-columns: repeat(2, 1fr); }
    .work-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .header-inner { grid-template-columns: 1fr auto; }
    .nav-toggle { display: inline-grid; place-items: center; }
    .header-cta { display: none; }
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px rgba(17,24,39,0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        grid-column: 1 / -1;
    }
    .main-nav.open { max-height: 480px; }
    .nav-links { flex-direction: column; gap: 0; padding: 12px 24px 20px; }
    .nav-links li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav-links a::after { display: none; }
    .nav-cta-mobile { display: block; padding-top: 16px; }
    .nav-cta-mobile a { display: inline-flex !important; border-bottom: none !important; color: var(--white) !important; padding: 13px 26px !important; }

    .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
    .hero-copy { padding-bottom: 24px; }
    .hero-visual { height: 480px; }
    .hero-script { font-size: 1.6rem; top: 40px; }
    .about-split { grid-template-columns: 1fr; gap: 48px; }
    .page-head-split, .skills-layout, .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .highlight-grid { grid-template-columns: 1fr; }
    .cta-banner { flex-direction: column; align-items: flex-start; padding: 44px 36px; }
    .footer-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .footer-social { justify-content: center; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .skill-cards, .work-grid { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .hero-visual { height: 400px; }
    .hero-blob { left: 10%; width: 66%; }
    .scroll-down { display: none; }
    .stats-row { gap: 12px; }
    .stats-row strong { font-size: 1.5rem; }
    .about-visual { padding-left: 10px; }
    .exp-badge { left: 0; }
    .contact-form { padding: 24px 20px; }
    .footer-bottom { flex-direction: column; text-align: center; align-items: center; }
}