/* ═══════════════════════════════════════
   THEME TOKENS
═══════════════════════════════════════ */
:root {
    --accent: #2563eb;
    --accent-light: rgba(37, 99, 235, 0.09);
    --accent-glow: rgba(37, 99, 235, 0.22);
    --accent-dark: #1d4ed8;
    --radius-card: 16px;
    --radius-btn: 10px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg:
        0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg: #f5f7fb;
    --bg2: #ffffff;
    --surface: #eceef5;
    --card: #ffffff;
    --border: #dde1ee;
    --text: #0f172a;
    --text2: #334155;
    --muted: #64748b;
    --nav-bg: rgba(245, 247, 251, 0.92);
    --pill-bg: #eceef5;
    --tag-bg: #f1f4fb;
    --input-bg: #f5f7fb;
}

[data-theme="dark"] {
    --bg: #060c18;
    --bg2: #0b1221;
    --surface: #101828;
    --card: #0e1726;
    --border: rgba(255, 255, 255, 0.07);
    --text: #e2e8f0;
    --text2: #cbd5e1;
    --muted: #64748b;
    --nav-bg: rgba(6, 12, 24, 0.94);
    --pill-bg: #101828;
    --tag-bg: #101828;
    --input-bg: #0e1726;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
}

/* ═══════════════════════════════════════
   RESET
═══════════════════════════════════════ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    transition:
        background 0.35s,
        color 0.35s;
}
::selection {
    background: var(--accent);
    color: #fff;
}
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}
img {
    display: block;
    max-width: 100%;
}
a {
    text-decoration: none;
    color: inherit;
}

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}
.section {
    padding: 96px 0;
}
.alt {
    background: var(--bg2);
}

/* Fixed header offset for in-page section links */
section[id] {
    scroll-margin-top: 80px;
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Syne", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}
.heading {
    font-family: "Syne", sans-serif;
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text);
}
.heading span {
    color: var(--accent);
}
.sub {
    color: var(--muted);
    font-size: 1rem;
    margin-top: 12px;
    max-width: 540px;
    line-height: 1.75;
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-btn);
    font-family: "Syne", sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}
.btn-white {
    background: #fff;
    color: var(--accent);
    border-color: #fff;
}
.btn-white:hover {
    background: #eff4ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.btn-white-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-white-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition:
        background 0.35s,
        border-color 0.35s;
}
.nav-in {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}
.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: var(--accent);
    color: #fff;
    font-family: "Syne", sans-serif;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-text {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.02em;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}
.nav-links a {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: var(--surface);
}
.nav-r {
    display: flex;
    align-items: center;
    gap: 10px;
}
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.ham {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
}
.ham span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
.mob-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 199;
    padding: 20px 28px;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
}
.mob-nav.open {
    display: flex;
}
.mob-nav a {
    color: var(--text2);
    font-size: 15px;
    font-weight: 500;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.mob-nav a:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-light);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}
.blob {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(72px);
}
.blob-1 {
    width: 480px;
    height: 480px;
    top: -80px;
    right: -60px;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.1),
        transparent 65%
    );
}
.blob-2 {
    width: 340px;
    height: 340px;
    bottom: 40px;
    left: -80px;
    background: radial-gradient(
        circle,
        rgba(249, 115, 22, 0.07),
        transparent 65%
    );
}
[data-theme="dark"] .blob-1 {
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.15),
        transparent 65%
    );
}
[data-theme="dark"] .blob-2 {
    background: radial-gradient(
        circle,
        rgba(249, 115, 22, 0.1),
        transparent 65%
    );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}
.avail-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
    background: var(--accent-light);
    border: 1px solid rgba(37, 99, 235, 0.2);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.03em;
}
.avail-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: blink 2s infinite;
}
@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}
.hero-name {
    font-family: "Syne", sans-serif;
    font-size: clamp(3rem, 6.5vw, 4.8rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text);
}
.hero-name em {
    font-style: normal;
    color: var(--accent);
}
.hero-role {
    margin: 18px 0 10px;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--muted);
}
.hero-role strong {
    color: var(--text);
    font-weight: 600;
}
.hero-desc {
    font-size: 15px;
    color: var(--muted);
    max-width: 460px;
    margin-bottom: 36px;
    line-height: 1.78;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    margin-top: 52px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 28px;
    border-right: 1px solid var(--border);
    margin-right: 28px;
}
.stat:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}
.stat-n {
    font-family: "Syne", sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text);
}
.stat-n sup {
    font-size: 0.9rem;
    color: var(--accent);
}
.stat-k {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Hero photo */
.hero-photo-wrap {
    position: relative;
}
.photo-card {
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
    position: relative;
}
.photo-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top center;
}
.photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        rgba(15, 23, 42, 0.38)
    );
}
.photo-badge {
    position: absolute;
    bottom: 22px;
    left: 18px;
    right: 18px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
[data-theme="dark"] .photo-badge {
    background: rgba(14, 23, 38, 0.96);
    color: var(--text);
}
.photo-badge i {
    color: var(--accent);
    font-size: 17px;
}
.photo-socials {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ps-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 14px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.ps-ico:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateX(-3px);
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.a-photo-wrap {
    position: relative;
}
.a-photo {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.a-photo img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: top;
}
.exp-badge {
    position: absolute;
    bottom: -18px;
    right: -18px;
    background: var(--accent);
    color: #fff;
    border-radius: 16px;
    padding: 20px 22px;
    text-align: center;
    font-family: "Syne", sans-serif;
    box-shadow: 0 8px 24px var(--accent-glow);
}
.exp-badge strong {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}
.exp-badge span {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
}
.about-text {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 14px;
    line-height: 1.78;
}
.about-mini {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 28px 0;
}
.am-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.am-item:hover {
    border-color: var(--accent);
}
.am-ico {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}
.am-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.am-sub {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 1px;
}
.info-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 24px;
}
.info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--muted);
    transition: var(--transition);
}
.info-row:hover {
    color: var(--accent);
}
.info-row i {
    color: var(--accent);
    width: 14px;
    font-size: 13px;
}

/* ═══════════════════════════════════════
   STACK
═══════════════════════════════════════ */
.stack-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 52px;
}
.stack-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}
.sg-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sg-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 9px;
    background: var(--pill-bg);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text2);
    transition: var(--transition);
    cursor: default;
}
.pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-2px);
}
.pill i {
    font-size: 14px;
}
.c-php {
    color: #8892bf;
}
.c-la {
    color: #ff2d20;
}
.c-vue {
    color: #42b883;
}
.c-js {
    color: #d97706;
}
.c-html {
    color: #e34f26;
}
.c-css {
    color: #1572b6;
}
.c-tw {
    color: #0ea5e9;
}
.c-db {
    color: #00758f;
}
.c-aws {
    color: #f59e0b;
}
.c-git {
    color: #f05032;
}
.c-wp {
    color: #21759b;
}

/* ═══════════════════════════════════════
   EXPERIENCE
═══════════════════════════════════════ */
.exp-head {
    margin-bottom: 52px;
}
.tl {
    position: relative;
    padding-left: 32px;
}
.tl::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
}
.ti {
    position: relative;
    margin-bottom: 30px;
}
.ti:last-child {
    margin-bottom: 0;
}
.ti-dot {
    position: absolute;
    left: -31px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    transition: var(--transition);
}
.ti:hover .ti-dot {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}
.ti-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.ti:hover .ti-card {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}
.ti-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.ti-role {
    font-family: "Syne", sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text);
}
.ti-co {
    font-size: 13px;
    color: var(--accent);
    font-weight: 600;
    margin-top: 3px;
}
.ti-date {
    font-size: 11.5px;
    color: var(--muted);
    padding: 4px 12px;
    background: var(--surface);
    border-radius: 100px;
    border: 1px solid var(--border);
    white-space: nowrap;
    flex-shrink: 0;
}
.ti-ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ti-ul li {
    font-size: 14px;
    color: var(--muted);
    padding-left: 16px;
    position: relative;
}
.ti-ul li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
.ti-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}
.ti-tag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--tag-bg);
    color: var(--muted);
    border: 1px solid var(--border);
}

/* ═══════════════════════════════════════
   PROJECTS
═══════════════════════════════════════ */
.proj-head {
    margin-bottom: 48px;
}
.proj-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.pc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.pc:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}
.pc-thumb {
    height: 176px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.7rem;
    position: relative;
    overflow: hidden;
}
.pc-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pc-ov {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: rgba(37, 99, 235, 0.1);
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    justify-content: center;
}
.pc:hover .pc-ov {
    opacity: 1;
}
.pc-ov-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pc-lnk {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transform: scale(0);
    transition: transform 0.25s;
}
.pc:hover .pc-lnk {
    transform: scale(1);
}
.pc-case-btn {
    border-radius: 999px;
    padding: 10px 16px;
    background: #0f1e45;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transform: translateY(10px);
    opacity: 0;
    transition: var(--transition);
}
.pc:hover .pc-case-btn {
    transform: translateY(0);
    opacity: 1;
}
.pc-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.pc-mobile-actions {
    display: none;
}
.pc-mobile-btn {
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--tag-bg);
    color: var(--text);
    font-size: 12px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pc-mobile-icon {
    width: 36px;
    padding: 0;
}
.pc-cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 7px;
}
.pc-title {
    font-family: "Syne", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 9px;
}
.pc-desc {
    font-size: 13px;
    color: var(--muted);
    flex: 1;
    margin-bottom: 15px;
    line-height: 1.68;
}
.pc-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.pc-tech {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 5px;
    background: var(--tag-bg);
    color: var(--muted);
    border: 1px solid var(--border);
}
.proj-load-wrap {
    margin-top: 26px;
    display: flex;
    justify-content: center;
}
.proj-load-more {
    min-width: 210px;
    height: 46px;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 999px;
    background: linear-gradient(135deg, #f8fbff, #ebf1ff);
    color: #1d4ed8;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition);
}
.proj-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.18);
}
.proj-load-more:disabled {
    opacity: 0.75;
    cursor: wait;
}

/* ═══════════════════════════════════════
   CASE STUDY
═══════════════════════════════════════ */
.cs-hero {
    padding-top: 112px;
}
.cs-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 18px;
}
.cs-back:hover {
    color: var(--accent);
}
.cs-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.cs-cover {
    width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    margin-top: 16px;
    margin-bottom: 30px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.cs-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.cs-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}
.cs-card h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}
.cs-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}
.cs-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

/* ═══════════════════════════════════════
   PROCESS
═══════════════════════════════════════ */
.proc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.proc-left {
    position: sticky;
    top: 90px;
}
.proc-text {
    color: var(--muted);
    margin: 16px 0 32px;
    font-size: 15px;
    line-height: 1.78;
}
.proc-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.pstep {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: default;
}
.pstep:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: var(--shadow-md);
}
.pstep-n {
    font-family: "Syne", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
    min-width: 38px;
    transition: var(--transition);
}
.pstep:hover .pstep-n {
    color: var(--accent);
}
.pstep-ico {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--transition);
}
.pstep:hover .pstep-ico {
    background: var(--accent);
    color: #fff;
}
.pstep-title {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 5px;
}
.pstep-desc {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.65;
}

/* ═══════════════════════════════════════
   SERVICES
═══════════════════════════════════════ */
.svc-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}
.svc-txt {
    color: var(--muted);
    margin: 16px 0 32px;
    font-size: 15px;
    line-height: 1.78;
}
.svc-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.svc-item {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    background: var(--card);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: var(--radius-card);
    transition: var(--transition);
    cursor: default;
    box-shadow: var(--shadow-sm);
}
.svc-item:hover {
    border-left-color: var(--accent);
    box-shadow: var(--shadow-md);
}
.svc-ico {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: var(--transition);
}
.svc-item:hover .svc-ico {
    background: var(--accent);
    color: #fff;
}
.svc-name {
    font-family: "Syne", sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text);
}
.svc-desc {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.65;
}

/* ═══════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════ */
.cta-box {
    border-radius: 22px;
    padding: 72px 48px;
    text-align: center;
    background: var(--accent);
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.cta-in {
    position: relative;
    z-index: 1;
}
.cta-h {
    font-family: "Syne", sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
}
.cta-p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 34px;
    font-size: 15px;
}
.cta-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.con-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
}
.con-items {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.ci {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.ci-ico {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--accent-light);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: var(--accent);
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ci-lbl {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 2px;
}
.ci-val {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
}
.ci-val a {
    color: var(--text);
    transition: var(--transition);
}
.ci-val a:hover {
    color: var(--accent);
}
.socials {
    display: flex;
    gap: 9px;
    margin-top: 30px;
}
.soc {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.soc:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-md);
}
.form-ttl {
    font-family: "Syne", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}
.fg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field.wide {
    grid-column: 1/-1;
}
.lbl {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.inp,
.ta {
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 12px 14px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    color: var(--text);
    outline: none;
    transition: var(--transition);
    width: 100%;
}
.inp:focus,
.ta:focus {
    border-color: var(--accent);
    background: var(--card);
}
.inp::placeholder,
.ta::placeholder {
    color: var(--muted);
    opacity: 0.55;
}
.ta {
    min-height: 120px;
    resize: none;
}
.f-btn {
    width: 100%;
    margin-top: 18px;
    border: 0;
    border-radius: 10px;
    padding: 14px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.f-btn:hover {
    filter: brightness(0.95);
}
.f-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}
.f-btn .btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}
.f-btn.is-loading .btn-spinner {
    display: inline-block;
}
.f-btn.is-loading .btn-label {
    opacity: 0.85;
}
.f-captcha {
    margin-top: 4px;
}
.f-msg {
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    display: none;
}
.f-msg.success {
    background: rgba(40, 167, 69, 0.12);
    color: #2d8a47;
    border: 1px solid rgba(40, 167, 69, 0.25);
}
.f-msg.error {
    background: rgba(220, 53, 69, 0.12);
    color: #b32636;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 36px 0;
}
.ft-in {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.ft-copy {
    font-size: 13px;
    color: var(--muted);
}
.ft-copy a {
    color: var(--accent);
}
.ft-nav {
    display: flex;
    gap: 20px;
}
.ft-nav a {
    font-size: 13px;
    color: var(--muted);
    transition: var(--transition);
}
.ft-nav a:hover {
    color: var(--accent);
}

/* Prevent footer nav from inheriting header positioning */
footer .ft-nav {
    position: static;
    background: transparent;
    border: none;
}

/* ═══════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════ */
.btt {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 100;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
}
.btt.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.btt:hover {
    background: var(--accent-dark);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* ═══════════════════════════════════════
   REVEAL ANIMATION
═══════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.reveal.in {
    opacity: 1;
    transform: none;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-photo-wrap {
        display: none;
    }
    .about-grid,
    .proc-grid,
    .svc-grid,
    .con-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .proc-left {
        position: static;
    }
    .proj-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stack-body {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .section {
        padding: 68px 0;
    }
    .nav-links,
    .nav-r > .btn-primary {
        display: none;
    }
    .ham {
        display: flex;
    }
    .proj-grid {
        grid-template-columns: 1fr;
    }
    .pc-ov {
        display: none;
    }
    .pc-mobile-actions {
        margin-top: 14px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .proj-load-more {
        width: 100%;
        max-width: 320px;
    }
    .cs-grid {
        grid-template-columns: 1fr;
    }
    .cs-cover {
        max-height: 380px;
        margin-bottom: 22px;
    }
    .fg {
        grid-template-columns: 1fr;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    .about-mini {
        grid-template-columns: 1fr;
    }
    .cta-box {
        padding: 48px 24px;
    }
    .form-card {
        padding: 24px;
    }
    .ft-in {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .wrap {
        padding: 0 18px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .stat-n {
        font-size: 1.65rem;
    }
    .cta-btns {
        flex-direction: column;
        align-items: center;
    }
    .cs-cover {
        max-height: 300px;
    }
}
