/* =========================================
   V2 — Project Management Theme
   Light / Dark Mode Toggle
   ========================================= */

/* ---------- LIGHT THEME (default) ---------- */
:root,
[data-theme="light"] {
    --bg: #F7F8FA;
    --bg-alt: #EDEEF2;
    --surface: #FFFFFF;
    --surface-hover: #F0F1F5;
    --text: #1B1F27;
    --text-muted: #5F6672;
    --accent: #2563EB;
    --accent-soft: rgba(37, 99, 235, 0.08);
    --accent-hover: #1D4ED8;
    --green: #16A34A;
    --green-soft: rgba(22, 163, 74, 0.1);
    --yellow: #CA8A04;
    --yellow-soft: rgba(202, 138, 4, 0.1);
    --purple: #7C3AED;
    --purple-soft: rgba(124, 58, 237, 0.1);
    --orange: #EA580C;
    --orange-soft: rgba(234, 88, 12, 0.1);
    --border: #E2E4EA;
    --border-hover: #C8CBD4;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.06);
    --nav-bg: rgba(247, 248, 250, 0.85);
    --glow: rgba(37, 99, 235, 0.08);
}

/* ---------- DARK THEME ---------- */
[data-theme="dark"] {
    --bg: #0F1117;
    --bg-alt: #161922;
    --surface: #1C1F2A;
    --surface-hover: #252836;
    --text: #E4E6EB;
    --text-muted: #8B8F9A;
    --accent: #5B8DEF;
    --accent-soft: rgba(91, 141, 239, 0.1);
    --accent-hover: #7BA4F7;
    --green: #4ADE80;
    --green-soft: rgba(74, 222, 128, 0.1);
    --yellow: #FACC15;
    --yellow-soft: rgba(250, 204, 21, 0.1);
    --purple: #A78BFA;
    --purple-soft: rgba(167, 139, 250, 0.1);
    --orange: #FB923C;
    --orange-soft: rgba(251, 146, 60, 0.1);
    --border: #2A2D3A;
    --border-hover: #3A3E4E;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.3);
    --nav-bg: rgba(15, 17, 23, 0.85);
    --glow: rgba(91, 141, 239, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s, color 0.4s;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ---------- LAYOUT ---------- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.alt-bg {
    background: var(--bg-alt);
}

/* ---------- TYPOGRAPHY ---------- */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 6px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.section-heading {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2.5rem;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-ghost {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ===========================
   NAVBAR
   =========================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.35s;
}

#navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text);
}

.nav-cta {
    padding: 8px 20px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 8px;
}

.nav-cta:hover {
    background: var(--accent-hover);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    transition: all 0.3s;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===========================
   HERO
   =========================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 7px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 14px;
    letter-spacing: -1px;
}

.hero-role {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 18px;
}

.hero-role .accent {
    color: var(--text-muted);
}

.hero-desc {
    font-size: 1.02rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-desc strong {
    color: var(--text);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hero Chips */
.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
}

.hero-chip:hover {
    border-color: var(--accent);
    color: var(--text);
}

.hero-chip i {
    color: var(--green);
}

.chip-value {
    font-weight: 800;
    color: var(--accent);
    font-size: 0.95rem;
}

/* ===========================
   HERO RIGHT — Floating Cards
   =========================== */
.hero-right {
    position: relative;
    min-height: 420px;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 420px;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    min-width: 240px;
}

.float-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--border-hover);
}

.fc-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.fc-icon.blue {
    background: var(--accent-soft);
    color: var(--accent);
}

.fc-icon.green {
    background: var(--green-soft);
    color: var(--green);
}

.fc-icon.purple {
    background: var(--purple-soft);
    color: var(--purple);
}

.fc-icon.orange {
    background: var(--orange-soft);
    color: var(--orange);
}

.fc-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.fc-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Card positions — staggered layout */
.fc-1 {
    top: 10px;
    left: 20px;
    animation: floatA 6s ease-in-out infinite;
}

.fc-2 {
    top: 110px;
    right: 0;
    animation: floatB 7s ease-in-out infinite;
}

.fc-3 {
    top: 220px;
    left: 40px;
    animation: floatA 8s ease-in-out infinite;
}

.fc-4 {
    top: 320px;
    right: 20px;
    animation: floatB 6.5s ease-in-out infinite;
}

@keyframes floatA {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatB {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

.hero-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* ===========================
   ABOUT
   =========================== */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-right p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.about-right strong {
    color: var(--text);
}

/* ===========================
   TIMELINE
   =========================== */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.tl-item {
    position: relative;
    margin-bottom: 32px;
}

.tl-item:last-child {
    margin-bottom: 0;
}

.tl-marker {
    position: absolute;
    left: -40px;
    top: 20px;
}

.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: 3px solid var(--bg-alt);
    position: relative;
    z-index: 2;
}

.tl-dot.active {
    background: var(--accent);
    border-color: var(--accent-soft);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.tl-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 32px;
    transition: all 0.35s;
    box-shadow: var(--shadow);
}

.tl-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.tl-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 12px;
}

.tl-card-top h3 {
    font-size: 1.35rem;
    font-weight: 700;
}

.tl-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.tl-status {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tl-status.active {
    background: var(--green-soft);
    color: var(--green);
}

.tl-status.past {
    background: var(--bg);
    color: var(--text-muted);
}

.tl-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.tl-date i {
    color: var(--accent);
    margin-right: 4px;
}

.tl-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.tl-achievement {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--yellow-soft);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    align-items: flex-start;
}

.tl-achievement i {
    color: var(--yellow);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.tl-achievement strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.tl-achievement p {
    color: var(--text-muted);
    margin: 0;
}

.tl-list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.tl-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.tl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tl-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 12px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 6px;
    transition: all 0.2s;
}

.tl-tags span:hover {
    background: var(--accent);
    color: #fff;
}

/* ===========================
   STRENGTHS
   =========================== */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.str-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px 24px;
    transition: all 0.35s;
    box-shadow: var(--shadow);
}

.str-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.str-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 12px;
    font-size: 1.2rem;
    margin-bottom: 18px;
}

.str-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.str-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===========================
   CONTACT
   =========================== */
.contact-box {
    max-width: 540px;
}

.contact-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.contact-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===========================
   FOOTER
   =========================== */
footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-brand i {
    color: var(--accent);
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ===========================
   ANIMATIONS
   =========================== */
.anim-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.d1 {
    animation-delay: 0.12s;
}

.d2 {
    animation-delay: 0.24s;
}

.d3 {
    animation-delay: 0.36s;
}

.d4 {
    animation-delay: 0.48s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.d1 {
    transition-delay: 0.1s;
}

.reveal.d2 {
    transition-delay: 0.2s;
}

/* ===========================
   RESPONSIVE — TABLET
   =========================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-name {
        font-size: 3.2rem;
    }

    .hero-right {
        min-height: auto;
    }

    .hero-visual {
        height: auto;
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .float-card {
        position: static;
        animation: none !important;
        min-width: 0;
    }

    .hero-glow {
        display: none;
    }

    .about-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 768px) {
    section {
        padding: 72px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: right 0.35s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        font-size: 1.05rem;
    }

    #hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-name {
        font-size: 2.5rem;
        letter-spacing: -0.5px;
    }

    .hero-role {
        font-size: 1rem;
        margin-bottom: 14px;
    }

    .hero-desc {
        font-size: 0.92rem;
        margin-bottom: 24px;
        line-height: 1.7;
    }

    .section-heading {
        font-size: 1.7rem;
        margin-bottom: 1.8rem;
    }

    .hero-actions {
        gap: 10px;
    }

    .btn {
        padding: 11px 22px;
        font-size: 0.85rem;
    }

    .hero-chips {
        margin-top: 24px;
        padding-top: 18px;
        gap: 8px;
    }

    .hero-chip {
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    /* Floating cards — compact 2x2 grid on mobile */
    .hero-visual {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .float-card {
        padding: 14px 14px;
        border-radius: 12px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .fc-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .fc-text strong {
        font-size: 0.8rem;
    }

    .fc-text span {
        font-size: 0.72rem;
    }

    /* Timeline */
    .timeline {
        padding-left: 24px;
    }

    .timeline::before {
        left: 4px;
    }

    .tl-marker {
        left: -24px;
    }

    .tl-dot {
        width: 10px;
        height: 10px;
    }

    .tl-card {
        padding: 20px 18px;
        border-radius: 12px;
    }

    .tl-card:hover {
        transform: none;
    }

    .tl-card-top {
        flex-direction: column;
        gap: 8px;
    }

    .tl-card-top h3 {
        font-size: 1.15rem;
    }

    .tl-meta {
        font-size: 0.78rem;
    }

    .tl-date {
        font-size: 0.78rem;
        margin-bottom: 12px;
    }

    .tl-desc {
        font-size: 0.88rem;
        margin-bottom: 14px;
    }

    .tl-list li {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .tl-tags {
        gap: 6px;
        margin-top: 12px;
    }

    .tl-tags span {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    .tl-achievement {
        padding: 12px;
        font-size: 0.85rem;
        gap: 10px;
        margin-bottom: 14px;
    }

    /* Strengths — 2 columns on mobile */
    .strength-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .str-card {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .str-card:hover {
        transform: none;
    }

    .str-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 14px;
    }

    .str-card h3 {
        font-size: 0.92rem;
    }

    .str-card p {
        font-size: 0.8rem;
    }

    .contact-box p {
        font-size: 0.95rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 18px;
    }

    section {
        padding: 56px 0;
    }

    #hero {
        padding: 90px 0 48px;
    }

    .hero-name {
        font-size: 2.1rem;
    }

    .hero-grid {
        gap: 24px;
    }

    .hero-desc {
        font-size: 0.88rem;
    }

    .float-card {
        padding: 12px;
        gap: 8px;
    }

    .fc-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .fc-text strong {
        font-size: 0.75rem;
    }

    .fc-text span {
        font-size: 0.68rem;
    }

    .strength-grid {
        gap: 8px;
    }

    .str-card {
        padding: 18px 14px;
    }
}