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

:root {
    --bg:            #1B1F23;
    --surface:       #22293A;
    --surface-hover: #28344A;
    --border:        rgba(255, 255, 255, 0.08);
    --border-blue:   rgba(112, 181, 249, 0.25);
    --text:          #E7E9EB;
    --text-muted:    #A8B3C2;
    --text-dim:      #556070;
    --blue:          #0A66C2;
    --blue-light:    #70B5F9;
}

html, body { height: 100%; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 24px 72px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 500px;
    background: radial-gradient(ellipse at 50% -5%, rgba(10, 102, 194, 0.14) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* ---- HERO ---- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    animation: rise 0.55s ease-out 0.05s forwards;
}

.photo-wrap {
    position: relative;
    width: 112px;
    height: 112px;
    margin-bottom: 20px;
}

.photo-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(
        to bottom,
        rgba(112, 181, 249, 0.55) 0%,
        rgba(112, 181, 249, 0.18) 100%
    );
}

.photo-inner {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg);
}

.photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.photo-glow {
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(112, 181, 249, 0.18) 0%, transparent 68%);
    z-index: -1;
    animation: breathe 4.5s ease-in-out infinite;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    text-align: center;
    margin-bottom: 5px;
}

.role {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--blue-light);
    text-align: center;
    margin-bottom: 10px;
}

.location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.location svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--text-dim);
}

/* ---- CONNECT ROW ---- */
.connect-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.connect-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.connect-btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-blue);
    color: var(--text);
}

.connect-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--blue-light);
}

/* ---- STATS ---- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin: 28px 0 0;
    opacity: 0;
    animation: rise 0.55s ease-out 0.18s forwards;
}

.stat {
    background: var(--surface);
    padding: 18px 10px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.stat:last-child { border-right: none; }

.stat-num {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blue-light);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* ---- SECTIONS ---- */
.section {
    width: 100%;
    margin-top: 36px;
    opacity: 0;
    animation: rise 0.55s ease-out forwards;
}

.section-about      { animation-delay: 0.24s; }
.section-highlights { animation-delay: 0.30s; }
.section-experience { animation-delay: 0.36s; }

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 18px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ---- ABOUT ---- */
.about-text {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-text strong {
    color: var(--text);
    font-weight: 500;
}

/* ---- HIGHLIGHTS ---- */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.highlight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px 18px;
    transition: border-color 0.2s, background 0.2s;
}

.highlight-card:hover {
    border-color: var(--border-blue);
    background: var(--surface-hover);
}

.highlight-num {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue-light);
    line-height: 1;
    margin-bottom: 6px;
}

.highlight-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 4px;
}

.highlight-source {
    display: block;
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* ---- EXPERIENCE TIMELINE ---- */
.timeline {
    display: flex;
    flex-direction: column;
}

.job {
    display: flex;
    gap: 16px;
    padding-bottom: 28px;
}

.job:last-child { padding-bottom: 0; }

.job-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 18px;
}

.job-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 1px var(--blue);
    flex-shrink: 0;
    margin-top: 4px;
}

.job-dot.current {
    background: var(--blue-light);
    box-shadow: 0 0 0 1px var(--blue-light), 0 0 10px rgba(112, 181, 249, 0.45);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

.job-line {
    width: 1px;
    flex: 1;
    background: var(--border);
    margin-top: 6px;
}

.job-body { flex: 1; }

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 2px;
}

.job-company {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.job-dates {
    font-size: 0.7rem;
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
}

.job-title {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--blue-light);
    margin-bottom: 10px;
}

.job-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.job-bullets li {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
    padding-left: 14px;
    position: relative;
}

.job-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-dim);
}

.job-bullets li strong {
    color: var(--text);
    font-weight: 500;
}

/* ---- SKILLS ---- */
.section-skills { animation-delay: 0.42s; }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 5px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- FOOTER ---- */
.foot {
    margin-top: 48px;
    font-size: 0.68rem;
    color: var(--text-dim);
    text-align: center;
    letter-spacing: 0.06em;
    opacity: 0;
    animation: rise 0.55s ease-out 0.44s forwards;
}

/* ---- KEYFRAMES ---- */
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
    0%, 100% { opacity: 0.45; }
    50%       { opacity: 1; }
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 1px var(--blue-light), 0 0 10px rgba(112, 181, 249, 0.45); }
    50%       { box-shadow: 0 0 0 1px var(--blue-light), 0 0 18px rgba(112, 181, 249, 0.75); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 540px) {
    body { padding: 36px 16px 60px; }
    h1 { font-size: 1.75rem; }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat:nth-child(2) { border-right: none; }
    .stat:nth-child(3),
    .stat:nth-child(4) { border-top: 1px solid var(--border); }

    .highlights-grid { grid-template-columns: 1fr; }

    .job-header { flex-direction: column; gap: 1px; }
}
