:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #2563eb;
    --border: #e5e7eb;
}

body.dark {
    --bg: #020617;
    --card: #0f172a;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: #1e293b;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

/* =======================
   THEME TOGGLE
======================= */
.theme-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    border: none;
    background: var(--card);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* =======================
   HERO
======================= */
.hero {
    text-align: center;
    padding: 80px 20px 90px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
}

.hero img {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 16px;
}

.greeting {
    font-size: 1rem;
    opacity: 0.95;
}

.hero h1 {
    font-size: 2.6rem;
    margin: 6px 0;
}

.headline {
    max-width: 760px;
    margin: 10px auto 20px;
    font-size: 1.15rem;
    opacity: 0.95;
}

/* =======================
   CTA
======================= */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.cta {
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
}

.primary {
    background: white;
    color: #1e3a8a;
}

.secondary {
    border: 1px solid white;
    color: white;
}

/* =======================
   SECTIONS (SINGLE WIDTH SOURCE)
======================= */
section {
    max-width: 1000px;
    margin: 0 auto 32px;
    padding: 0 20px;
}

section:first-of-type {
    padding-top: 0;
}

section:first-of-type {
    margin-top: 24px;
}

/* =======================
   CARD
======================= */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

h2 {
    margin-top: 0;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
}

h3 {
    margin-top: 22px;
}

.duration {
    font-size: 0.9rem;
    color: var(--muted);
}

/* =======================
   SKILLS
======================= */
.skill-group span {
    display: inline-block;
    margin: 6px 6px 0 0;
    padding: 6px 10px;
    background: #eef2ff;
    color: #1e3a8a;
    border-radius: 999px;
    font-size: 0.85rem;
}

body.dark .skill-group span {
    background: #1e293b;
    color: #93c5fd;
}

/* =======================
   ACCORDION
======================= */
.accordion {
    margin-bottom: 28px;
}

.accordion summary {
    width: 100%;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 600;
    list-style: none;
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: "＋";
    float: right;
    font-size: 1.3rem;
}

.accordion[open] summary::after {
    content: "－";
}

/* Accordion content alignment */
.accordion .card {
    width: 100%;
    margin-top: 16px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.accordion[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* =======================
   FOOTER
======================= */
footer {
    text-align: center;
    padding: 30px 20px;
    background: #020617;
    color: #94a3b8;
}

.hero {
    margin-bottom: 48px;
}
