/* ===== THEMES ===== */
:root {
    --bg: #0d1117;
    --card: #161b22;
    --text: #c9d1d9;
    --accent: #58a6ff;
    --muted: #8b949e;
}

.light {
    --bg: #f5f5f5;
    --card: #ffffff;
    --text: #111;
    --accent: #0077cc;
    --muted: #555;
}

.hacker {
    --bg: #000000;
    --card: #010409;
    --text: #00ff9c;
    --accent: #00ff9c;
    --muted: #00cc7a;
}

/* ===== GLOBAL ===== */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* ===== HEADER ===== */
header {
    text-align: center;
    padding: 40px 20px;
}

h1 {
    margin: 0;
    color: var(--accent);
}

.subtitle {
    color: var(--muted);
}

/* ===== BUTTONS ===== */
.theme-buttons {
    margin-top: 15px;
}

.theme-buttons button {
    margin: 5px;
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

/* ===== CARD ===== */
.card {
    background: var(--card);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== TERMINAL ===== */
.terminal {
    background: #000;
    padding: 20px;
    border-radius: 10px;
    font-family: monospace;
    min-height: 180px;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ===== JOB ===== */
.job-title {
    font-weight: bold;
    color: var(--accent);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px;
}

/* ===== TIMELINE (NO DOTS) ===== */
.timeline {
    position: relative;
    margin: 20px 0;
    padding-left: 20px;
    border-left: 2px solid var(--accent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-content h3 {
    margin: 0;
    color: var(--accent);
}

.company {
    font-weight: bold;
    display: block;
}

.date {
    font-size: 0.9em;
    color: var(--muted);
    margin-bottom: 10px;
    display: block;
}

.timeline-content ul {
    padding-left: 20px;
}

/* ===== LINKS (CLEAN & THEME-AWARE) ===== */
a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Default hover */
a:hover {
    text-decoration: underline;
}

/* Certification-style links */
.card ul li a {
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* Remove underline for badge-style hover */
.card ul li a:hover {
    text-decoration: none;
}

/* Theme-aware hover backgrounds */
:root .card ul li a:hover {
    background: rgba(88, 166, 255, 0.1);
}

.light .card ul li a:hover {
    background: rgba(0, 119, 204, 0.1);
}

.hacker .card ul li a:hover {
    background: rgba(0, 255, 156, 0.1);
}

/* External link icon only */
a[target="_blank"]::after {
    content: " ↗";
    font-size: 0.8em;
}