:root {
    --bg: #060b10;
    --bg-soft: #0a1219;
    --panel: #0d1620;
    --panel-border: #1b2b36;
    --teal: #2dd4d0;
    --teal-2: #22c1a8;
    --cyan-text: #4fd8d4;
    --text-main: #e8edf0;
    --text-dim: #94a3ab;
    --text-dimmer: #647079;
    --green: #22c55e;
    --header-bg: rgba(6, 11, 16, 0.85);
    --input-bg: #12191f;
    --track-bg: #182129;
    --overlay-bg: rgba(255, 255, 255, 0.04);
    --toast-bg: #12241f;
    --accent-03: rgba(45, 212, 208, 0.03);
    --accent-04: rgba(45, 212, 208, 0.04);
    --accent-05: rgba(45, 212, 208, 0.05);
    --accent-08: rgba(45, 212, 208, 0.08);
    --btn-glow: 0 10px 30px -8px rgba(45, 212, 208, 0.5);
    color-scheme: dark;
}

html[data-theme="light"] {
    --bg: #f4f8f9;
    --bg-soft: #eaf1f2;
    --panel: #ffffff;
    --panel-border: #dbe6e9;
    --teal: #0d9c94;
    --teal-2: #0a8177;
    --cyan-text: #0b8a82;
    --text-main: #182a30;
    --text-dim: #56686f;
    --text-dimmer: #869499;
    --green: #16a34a;
    --header-bg: rgba(244, 248, 249, 0.85);
    --input-bg: #eef4f5;
    --track-bg: #e1eaec;
    --overlay-bg: rgba(10, 40, 45, 0.05);
    --toast-bg: #e2f7f3;
    --accent-03: rgba(13, 156, 148, 0.05);
    --accent-04: rgba(13, 156, 148, 0.06);
    --accent-05: rgba(13, 156, 148, 0.08);
    --accent-08: rgba(13, 156, 148, 0.10);
    --btn-glow: 0 10px 26px -10px rgba(13, 156, 148, 0.35);
    color-scheme: light;
}

html,
body {
    transition: background-color .35s ease, color .35s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
}

.grid-bg {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--accent-04) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--panel-border);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links {
    display: flex;
    gap: 36px;
    font-size: 15px;
    color: var(--text-dim);
}

.nav-links a:hover {
    color: var(--cyan-text);
}

.nav-icons {
    display: flex;
    gap: 12px;
    position: relative;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dim);
    background: transparent;
    transition: border-color .2s, color .2s;
}

.icon-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
}

#menuToggle {
    display: none;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 64px;
    right: 24px;
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    padding: 20px 28px;
    flex-direction: column;
    gap: 18px;
    z-index: 60;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    color: var(--text-dim);
    font-size: 15px;
}

.mobile-nav a:hover {
    color: var(--cyan-text);
}

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }

    #menuToggle {
        display: flex;
    }
}

.hero {
    padding: 90px 0 60px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--panel-border);
    background: var(--accent-05);
    color: var(--cyan-text);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 32px;
}

.badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 20px;
}

.hero h1 .accent {
    background: linear-gradient(90deg, var(--teal), #5eead4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .role {
    font-size: 22px;
    font-weight: 600;
    color: var(--cyan-text);
    margin-bottom: 24px;
    max-width: 640px;
}

.hero p.desc {
    color: var(--text-dim);
    font-size: 17px;
    max-width: 620px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 360px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    border: 1px solid var(--panel-border);
    transition: transform .15s ease, border-color .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(90deg, var(--teal), var(--teal-2));
    color: #04140f;
    border: none;
    box-shadow: var(--btn-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--teal);
    color: var(--cyan-text);
}

.stats-section {
    border-top: 1px solid var(--panel-border);
    padding: 70px 0 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 24px;
}

.stat-num {
    font-size: 42px;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-dim);
    font-size: 15px;
}

.scroll-indicator {
    text-align: center;
    margin-top: 60px;
    color: var(--text-dimmer);
    font-size: 12px;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(var(--teal), transparent);
    margin: 12px auto 0;
}

.tools-section {
    padding: 60px 0 80px;
}

.eyebrow {
    text-align: center;
    color: var(--text-dimmer);
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 28px;
}

.pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--panel-border);
    color: var(--cyan-text);
    font-size: 15px;
    font-weight: 600;
    background: var(--accent-03);
}

.section {
    padding: 90px 0;
    border-top: 1px solid var(--panel-border);
}

.section-eyebrow {
    color: var(--cyan-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.section h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.section .lede {
    color: var(--text-dim);
    font-size: 17px;
    max-width: 640px;
    margin-bottom: 50px;
}

.project-card {
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 32px;
    background: var(--panel);
    transition: border-color .25s ease, transform .25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-card.accent-cyan {
    border-color: rgba(45, 212, 208, 0.4);
}

.project-thumb {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .5s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.thumb-green {
    background: linear-gradient(160deg, #5c7a5f, #2f4a35);
}

.thumb-purple {
    background: linear-gradient(160deg, #b7abd6, #8f7fc4);
}

.thumb-olive {
    background: linear-gradient(160deg, #8a7a2e, #5c5220);
}

.project-body {
    padding: 28px 28px 30px;
}

.project-body h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 14px;
}

.project-body p {
    color: var(--text-dim);
    font-size: 15.5px;
    margin-bottom: 20px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.tag {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--panel-border);
    font-size: 13.5px;
    font-weight: 600;
}

.tag-teal {
    color: var(--cyan-text);
    border-color: rgba(45, 212, 208, 0.3);
}

.tag-purple {
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.35);
}

.tag-blue{
    color: #607E90;
    border-color: #92ccf0;
}
.tag-pink {
    color: #B759AB;
    border-color: #c58dbe;
}

.tag-green {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
}

.tag-orange {
    color: #fbbf24;
    border-color: rgba(224, 165, 48, 0.4);
}

.view-case {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan-text);
    font-weight: 700;
    font-size: 15px;
}

.view-case svg {
    transition: transform .2s;
}

.project-card:hover .view-case svg {
    transform: translateX(4px);
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--cyan-text);
}

.timeline-card {
    flex: 1;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    padding: 26px 28px;
}

.timeline-card.active {
    border-color: rgba(45, 212, 208, 0.5);
}

.year-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-08);
    color: var(--cyan-text);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

.timeline-card h3 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 6px;
}

.timeline-card .org {
    color: var(--cyan-text);
    font-size: 15px;
    margin-bottom: 2px;
}

.timeline-card .loc {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 16px;
}

.score-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--overlay-bg);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14.5px;
    margin-bottom: 16px;
}

.score-pill b {
    color: #fff;
}

.score-pill .star {
    color: #4ade80;
}

.timeline-card .focus {
    color: var(--text-dim);
    font-size: 14.5px;
    margin-bottom: 16px;
}

.skill-row {
    margin-bottom: 24px;
}

.skill-top {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 10px;
}

.skill-top .val {
    color: var(--text-dim);
}

.skill-track {
    height: 8px;
    border-radius: 999px;
    background: var(--track-bg);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 999px;
    width: 0;
    transition: width 1.1s ease;
}

.fill-cyan {
    background: linear-gradient(90deg, var(--teal), #2dd4bf);
}

.fill-purple {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.fill-orange {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.fill-green {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

.fill-pink {
    background: linear-gradient(90deg, #db2777, #f472b6);
}

.fill-gray {
    background: #4b5563;
}

.in-progress {
    display: inline-block;
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-right: 10px;
}

.cat-card {
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 24px;
}

.cat-card h4 {
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 800;
    margin-bottom: 22px;
    color: #fff;
}

.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 15.5px;
}

.cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.soft-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.soft-pill {
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--overlay-bg);
    color: var(--text-main);
    font-size: 15px;
}

.objective-card {
    border: 1px solid rgba(45, 212, 208, 0.35);
    background: var(--accent-04);
    border-radius: 20px;
    padding: 32px;
    margin-top: 30px;
}

.objective-card .label {
    color: var(--cyan-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.objective-card p {
    font-style: italic;
    color: #cfd8db;
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.objective-card .status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 14.5px;
}

.contact-info {
    margin-bottom: 36px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-main);
    font-size: 16.5px;
    margin-bottom: 22px;
}

.contact-row svg {
    color: var(--cyan-text);
    flex-shrink: 0;
}

.social-row {
    display: flex;
    gap: 14px;
    margin-bottom: 10px;
}

.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.form-card {
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 32px;
    margin-top: 40px;
}

.form-card h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 26px;
}

.field {
    margin-bottom: 22px;
}

.field label {
    display: block;
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 600;
}

.field label .req {
    color: var(--cyan-text);
}

.field input,
.field textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 16px 18px;
    color: var(--text-main);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--teal);
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(90deg, var(--teal), var(--teal-2));
    color: #04140f;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    transition: transform .15s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: .6;
    cursor: default;
    transform: none;
}

footer {
    border-top: 1px solid var(--panel-border);
    padding: 60px 0 40px;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 36px;
    color: var(--text-dim);
    font-size: 15px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-copy {
    color: var(--text-dimmer);
    font-size: 13.5px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--toast-bg);
    border: 1px solid rgba(45, 212, 208, 0.4);
    color: var(--cyan-text);
    padding: 16px 26px;
    border-radius: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
    z-index: 100;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}

[data-reveal].in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE: DESKTOP / TABLET / MOBILE ===== */

/* Desktop (>= 1000px): wider layout, multi-column grids */
@media (min-width: 1000px) {
    .hero {
        padding: 120px 0 80px;
        max-width: 760px;
    }

    .hero h1 {
        font-size: 68px;
    }

    .hero-buttons {
        flex-direction: row;
        max-width: none;
        flex-wrap: wrap;
    }

    .btn {
        flex: 0 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }

    .projects-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
        align-items: start;
    }

    .projects-grid .project-card {
        margin-bottom: 0;
    }

    .projects-grid .project-card:first-child {
        grid-column: 1 / -1;
    }

    .projects-grid .project-card:first-child .project-thumb {
        height: 320px;
    }

    .timeline-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: start;
    }

    .timeline-grid .timeline-item {
        margin-bottom: 0;
    }

    .skills-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 48px;
    }

    .cat-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        margin-top: 50px;
    }

    .cat-columns .cat-card {
        margin-bottom: 0;
    }

    .contact-grid {
        display: grid;
        grid-template-columns: 0.9fr 1.1fr;
        gap: 60px;
        align-items: start;
    }

    .contact-grid .form-card {
        margin-top: 0;
    }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 999px) {
    .hero-buttons {
        flex-direction: row;
        max-width: none;
        flex-wrap: wrap;
    }

    .btn {
        flex: 0 0 auto;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .hero {
        padding: 70px 0 50px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero .role {
        font-size: 19px;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 30px;
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        gap: 32px 20px;
    }

    .stat-num {
        font-size: 34px;
    }

    .project-thumb {
        height: 180px;
    }

    .timeline-item {
        gap: 14px;
    }

    .timeline-card {
        padding: 20px;
    }

    .form-card {
        padding: 24px 20px;
    }
}