/* ===========================
   RESET & BASE
   =========================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #0a0a0a;
    --bg-card: #141414;
    --bg-card2: #1a1a1a;
    --accent: #ffffff;
    --accent-hover: #cccccc;
    --text: #f0f0f0;
    --text-muted: #888;
    --border: #2a2a2a;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    background-color: var(--bg);
    animation: fadeInUp 0.6s ease both;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ===========================
   STICKY TOPBAR
   =========================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.topbar-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    transition: color 0.2s;
    white-space: nowrap;
}

.topbar-link svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    fill: currentColor;
}

.topbar-link:hover {
    color: var(--text);
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin-top: 14px;
}

.btn-pdf svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.btn-pdf:hover {
    background: var(--accent);
    color: #000;
}

@media print {

    .topbar,
    .btn-pdf {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
        animation: none;
    }

    .hero {
        background: none;
        border: none;
    }

    .section-title {
        color: #000;
        border-bottom-color: #ccc;
    }

    .company,
    .tagline {
        color: #333;
    }

    .job-title,
    .ref-name {
        color: #000;
    }

    .timeline-item {
        border-left-color: #ccc;
    }

    .skill-item {
        border-color: #ddd;
        background: #f9f9f9;
    }

    .skill-label {
        color: #000;
    }

    .intro-text,
    .timeline-item p,
    .timeline-item li {
        color: #222;
    }
}

/* ===========================
   HERO / HEADER
   =========================== */
.hero {
    background: linear-gradient(160deg, #111 0%, #0a0a0a 100%);
    border-bottom: 1px solid var(--border);
    padding: 64px 24px 56px;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* Profile picture */
.profile-pic-wrapper {
    flex-shrink: 0;
}

.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease, border-color 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.06);
    filter: brightness(1.12);
    border-color: #aaa;
}

.profile-pic-placeholder {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--bg-card2);
    border: 3px solid var(--accent);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

.name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}

.badge-open {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid #2a7a2a;
    background: rgba(34, 197, 94, 0.08);
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-text h1 {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.tagline {
    font-size: 1.05rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.contact-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===========================
   MAIN CONTAINER
   =========================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* ===========================
   TWO COLUMN LAYOUT
   =========================== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}

.col-left,
.col-right {
    min-width: 0;
}

/* ===========================
   SECTIONS
   =========================== */
.section {
    margin-bottom: 52px;
}

.section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.intro-text {
    color: #ccc;
    font-size: 0.93rem;
    line-height: 1.8;
}

/* ===========================
   TIMELINE ITEMS
   =========================== */
.timeline-item {
    margin-bottom: 32px;
    padding-left: 16px;
    border-left: 2px solid var(--border);
    transition: border-color 0.2s;
}

.timeline-item:hover {
    border-left-color: var(--accent);
}

.timeline-header {
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.job-title {
    font-weight: 600;
    font-size: 0.97rem;
    color: #fff;
}

.company {
    font-size: 0.88rem;
    color: var(--accent);
    font-weight: 500;
}

.period {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
}

.timeline-item ul {
    list-style: none;
    padding: 0;
    margin-top: 4px;
}

.timeline-item ul li {
    font-size: 0.88rem;
    color: #bbb;
    padding-left: 12px;
    position: relative;
    margin-bottom: 3px;
}

.timeline-item ul li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.timeline-item p {
    font-size: 0.88rem;
    color: #bbb;
    margin-top: 4px;
}

/* ===========================
   SKILLS
   =========================== */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: border-color 0.2s;
}

.skill-item:hover {
    border-color: var(--accent);
}

.skill-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.skill-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===========================
   REFERENCES
   =========================== */
.ref-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 2px solid var(--border);
}

.ref-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.ref-title {
    font-size: 0.82rem;
    color: var(--accent);
}

.ref-phone {
    font-size: 0.82rem;
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.ref-phone:hover {
    color: var(--accent);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 680px) {
    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .topbar-name {
        display: none;
    }

    .topbar-link span,
    .topbar-link {
        font-size: 0;
    }

    .topbar-link svg {
        width: 18px;
        height: 18px;
        font-size: initial;
    }

    .topbar-links {
        gap: 16px;
    }
}