:root {
    --bg: #121212;
    --surface: #1a1a1a;
    --border: #2a2a2a;
    --text: #e5e5e5;
    --muted: #a1a1a1;
}

body.light {
    --bg: #f5f5f5;
    --surface: #ffffff;
    --border: #e0e0e0;
    --text: #1a1a1a;
    --muted: #555555;
}

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

body {
    font-family: 'Google Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

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

.container {
    max-width: 1000px;
    margin: auto;
    padding: 24px;
}

/* ---------- TOP BAR ---------- */
.top-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.theme-toggle {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle i {
    color: var(--text);
    transition: color 0.3s;
}


/* ---------- ANIMATION ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

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

/* ---------- HEADER ---------- */
.header {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.profile-img {
    width: 140px;
    height: 140px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
}

/* ---------- status pill (home highlight) ---------- */
.status-pill {
    display: inline-block;
    margin: 10px 0 14px 0;
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--muted);
}

@media (max-width: 480px) {
    .status-pill {
        font-size: 12px;
    }
}


.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.intro h1 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 6px;
}

.tagline {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

.intro p {
    max-width: 560px;
    color: var(--muted);
    margin-bottom: 12px;
}

.social-icons {
    display: flex;
    gap: 16px;
    font-size: 18px;
    color: var(--muted);
}

.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tooltip-text {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 4px 8px;
    font-size: 11px;
    color: var(--text);
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.tooltip:hover .tooltip-text {
    opacity: 1;
}


/* ---------- SECTIONS ---------- */
.section {
    margin-top: 56px;
}

.section h2 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 16px;
}

.section p {
    max-width: 850px;
    color: var(--muted);
}

/* ---------- TECH STACK ---------- */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skills span,
.tags span {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
}

/* ---------- skills section (boxed style) ---------- */
.skill-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-top: 24px;
}

.skill-title {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 14px;
}

.skill-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.skill-tags span {
    border: 1px solid var(--border);
    background: transparent;
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text);
}


/* ---------- PROJECTS ---------- */
.project {
    display: flex;
    gap: 24px;
    margin-top: 32px;
    align-items: flex-start;
}

.project-img {
    width: 240px;
    height: 150px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 13px;
    flex-shrink: 0;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.project-info h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
}

.project-info p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 10px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.project-links {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--muted);
}

/* ---------- FOOTER ---------- */
footer {
    margin-top: 64px;
    font-size: 14px;
    color: var(--muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project {
        flex-direction: column;
    }

    .project-img {
        width: 100%;
    }
}

/* ---------- scroll to top button ---------- */
#scrollTopBtn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 42px;
    height: 42px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}

#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}


/* ---------- subtle terminal accents ---------- */
.mono {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--muted);
}

.prompt {
    color: var(--muted);
    margin-right: 6px;
}

/* ---------- section divider ---------- */
.section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0 24px 0;
}