:root {
    --bg: #0b1220;
    --bg-soft: #0f172a;
    --card: #111827;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --accent: #22d3ee;
    --accent-2: #a78bfa;
    --ring: rgba(34, 211, 238, .35);
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.7);
    --radius: 16px;
    --header-h: 80px;
}

/* Themes */
.theme--ocean {}

.theme--plum {
    --bg: #120814;
    --bg-soft: #1a0b1d;
    --card: #1e1022;
    --text: #f3e8ff;
    --muted: #c4b5fd;
    --accent: #f472b6;
    --accent-2: #60a5fa;
    --ring: rgba(244, 114, 182, .35);
}

.theme--light {
    --bg: #f8fafc;
    --bg-soft: #fff;
    --card: #fff;
    --text: #0f172a;
    --muted: #475569;
    --accent: #0ea5e9;
    --accent-2: #22c55e;
    --ring: rgba(14, 165, 233, .35);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.theme--light header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e2e8f0;
}

.theme--light .nav a,
.theme--light h1,
.theme--light h2,
.theme--light h3,
.theme--light .section-title,
.theme--light .badge {
    color: #0f172a;
}

.theme--light .btn {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
}

.theme--light .subtitle,
.theme--light p,
.theme--light li {
    color: #1e293b;
}

.theme--light .chip {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #0f172a;
}

/* Base */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    scroll-padding-top: var(--header-h);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    background: radial-gradient(1200px 600px at 10% 0%, rgba(34, 211, 238, .12), transparent 60%),
        radial-gradient(1200px 600px at 90% 10%, rgba(167, 139, 250, .15), transparent 60%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    background: rgba(11, 18, 32, 0.85);
    border-bottom: 1px solid color-mix(in oklab, var(--muted) 25%, transparent);
    padding: 10px 0;
}

header .row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.nav ul {
    display: flex;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: .2px;
}

.brand-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: var(--shadow);
    object-fit: cover;
}

header .row .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 14px;
}

/* Buttons */
.btn {
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    font-weight: 600;
}

.btn.alt {
    background: transparent;
    border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
    color: var(--text);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 6px var(--ring);
}

/* Hero */
.hero {
    padding-top: calc(var(--header-h) + 10px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 28px;
    align-items: center;
}

.hero-grid>div:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Badge Fix */
.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 22px;
    margin: 12px 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--accent);
    font-weight: 500;
    max-width: 100%;
    line-height: 1.4;
}

.badge::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f5fc";
    font-size: 1.4em;
    display: inline-block;
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}

.badge-text::before {
    content: attr(data-role) " • " attr(data-exp);
}

/* Typography */
.title {
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.1;
    margin: 14px 0;
    letter-spacing: .3px;
}

.subtitle {
    font-size: clamp(16px, 2.2vw, 20px);
    color: var(--muted);
}

/* Sections / Cards */
section {
    padding: 20px 0;
}

main,
.hero,
section {
    padding-top: calc(var(--header-h) + 5px);
}

#experience,
#skills,
#certs,
#education,
#contact {
    margin-top: 20px;
    padding-top: 0;
}

.section-title {
    font-size: 22px;
    margin: 0 0 18px;
    letter-spacing: .2px;
}

.card {
    background: linear-gradient(180deg,
            color-mix(in oklab, var(--card) 86%, transparent),
            color-mix(in oklab, var(--bg-soft) 70%, transparent));
    border: 1px solid color-mix(in oklab, var(--muted) 22%, transparent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.grid .card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.grid .card p,
.grid .meta {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.grid .meta {
    margin-top: 10px;
    font-size: 12px;
}

/* Lists */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 6px 10px;
    background: color-mix(in oklab, var(--card) 70%, transparent);
    border: 1px solid color-mix(in oklab, var(--muted) 25%, transparent);
    border-radius: 999px;
    font-size: 13px;
    color: var(--text);
}

#skills .chips {
    padding: 0 18px;
    justify-content: flex-start;
}

.kp-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kp {
    font-size: 13px;
}

/* Timeline */
.timeline {
    position: relative;
    margin-left: 10px;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: color-mix(in oklab, var(--accent) 25%, var(--muted));
}

.tl-item {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
}

.tl-item:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 6px var(--ring);
}

.tl-item h3 {
    margin: 0;
    font-size: 16px;
}

.tl-item .h4,
.tl-item .when {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.tl-item .when {
    font-size: 13px;
}

/* Contact / Footer */
footer {
    padding: 32px 0 60px;
    color: var(--muted);
}

.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hidden {
    display: none !important;
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    width: 100%;
}

.contact-actions a.btn.alt {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
}

#emailBtn {
    grid-column: 1;
}

#linkedinBtn {
    grid-column: 2;
}

#cvBtn {
    grid-column: 3;
}


/* Certification layout desktop */
@media (min-width: 981px) {
    .hero-grid {
        align-items: start;
    }

    .badge {
        margin-top: 17px;
    }

    #certs .grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px;
    }
}

/* Menu (mobile) */
.menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-soft);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
	font-family: inherit;
}

.menu.active {
    display: flex;
}

.menu ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.menu ul li {
    margin: 20px 0;
    font-size: 24px;
    color: var(--accent);
}

.menu button {
    background: none;
    color: var(--text);
    font-size: 20px;
    position: absolute;
    top: 22px;
    right: 22px;
    border: none;
    cursor: pointer;
	font-family: inherit;
}
.theme--light .menu button {
    color: #0f172a; 
}

/* Responsive */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: 1fr 1fr;
    }

    .kp-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 22px;
    }

    .grid,
    .kp-list {
        grid-template-columns: 1fr;
    }

    .kp-list {
        grid-template-columns: 1fr 1fr;
    }

    .nav ul,
    nav {
        display: none;
    }

    #menuToggle {
        display: block;
    }

    .nav {
        justify-content: flex-start;
        gap: 8px;
    }

    .brand {
        order: 1;
    }

    .row {
        order: 2;
        margin-left: auto;
        justify-content: flex-end;
    }

    #menuToggle {
        order: 3;
    }

    #downloadBtn {
        display: none;
    }

    .contact-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
    }

    .contact-actions a.btn.alt {
        flex: 1 1 180px;
        text-align: center;
    }

    .hero .badge {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero .badge-text {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero .badge-text::before {
        content: attr(data-role);
    }

    .hero .badge-text::after {
        content: attr(data-exp);
    }
}

/* Mobile menu content color overrides */
.theme--light .menu ul li,
.theme--light .menu ul li a {
    color: #000 !important; /* Black for light theme */
}

.theme--ocean .menu ul li,
.theme--ocean .menu ul li a {
    color: #fff !important; /* White for ocean theme */
}