@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/static/fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --text: #ffffff;
    --muted: #d0d0d0;
    --light: #aaa;
    --accent: #7eb8ff;
    --border: rgba(255, 255, 255, 0.15);
    --bg: #0c0c0cf0;
    --page-bg: #ffffff;
}

@media print {
    body {
        background: white;
        padding: 0;
    }

    .page {
        background: white;
        color: #1a1a1a;
        box-shadow: none;
        margin: 0;
        padding: 36px 32px;
        max-width: none;
        border-radius: 0;
    }

    .page .header h1 {
        color: #1a1a1a;
    }

    .page .summary {
        color: #444;
    }

    .page .section-title {
        color: #2563eb;
        border-bottom-color: #2563eb;
    }

    .page .job-company,
    .page .skills-grid .label {
        color: #444;
    }

    .page .job-meta,
    .page .job-location,
    .page .edu-item .meta {
        color: #666;
    }

    .page .project .desc {
        color: #444;
    }

    .page .header .contact {
        color: #444;
    }

    .page .header .contact a {
        color: #2563eb;
    }

    .page .bullets li {
        color: #1a1a1a;
    }

    .floating-actions {
        display: none;
    }
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--page-bg);
    line-height: 1.5;
    font-size: 14px;
    min-height: 100vh;
    padding: 32px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.floating-actions {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.print-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.print-btn:hover {
    opacity: 0.9;
}

.theme-toggle {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    padding: 0;
    line-height: 1;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.page {
    background: rgba(12, 12, 12, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 820px;
    margin: 16px auto 16px;
    padding: 40px 40px;
    border-radius: 0.75em;
    position: relative;
    z-index: 1;
}

@media (max-width: 860px) {
    .page {
        margin: 16px;
        margin-bottom: 80px;
        padding: 28px 20px;
    }

    .floating-actions {
        top: auto;
        bottom: 16px;
        right: 50%;
        transform: translateX(50%);
    }

    .print-btn {
        padding: 0;
        width: 34px;
        height: 34px;
        font-size: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
    }

    .print-btn::before {
        content: '\2913';
        font-size: 18px;
    }
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.header .contact {
    font-size: 13px;
    color: var(--muted);
}

.header .contact a {
    color: var(--accent);
    text-decoration: none;
}

.header .tagline {
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.header h1 {
    color: #ffffff;
}

.header .contact a:hover {
    text-decoration: underline;
}

.phone-reveal {
    cursor: pointer;
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 1px 8px;
    font-size: 12px;
    transition: background 0.2s;
}

.phone-reveal:hover {
    background: var(--accent);
    color: white;
    text-decoration: none;
}

.phone-revealed {
    border: none;
    padding: 0;
    cursor: default;
}

.phone-revealed:hover {
    background: none;
    color: var(--accent);
}

/* Section */
.section {
    margin-bottom: 18px;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
    margin-bottom: 12px;
}

/* Summary */
.summary {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.55;
}

/* Experience */
.job {
    margin-bottom: 14px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.job-title {
    font-weight: 700;
    font-size: 14.5px;
}

.job-company {
    font-weight: 600;
    color: var(--muted);
}

.job-meta {
    font-size: 12.5px;
    color: var(--light);
}

.job-location {
    font-size: 12.5px;
    color: var(--light);
}

.bullets {
    margin: 6px 0 0 18px;
}

.bullets li {
    margin: 3px 0;
    font-size: 13.5px;
    line-height: 1.5;
}

.bullets li strong {
    font-weight: 600;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 4px 12px;
    font-size: 13.5px;
}

.skills-grid .label {
    font-weight: 600;
    color: var(--muted);
    padding: 2px 0;
}

.skills-grid .value {
    padding: 2px 0;
}

@media (max-width: 500px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .skills-grid .label {
        margin-top: 6px;
    }

    .skills-grid .value {
        margin-left: 8px;
    }
}

/* Education & Certs */
.edu-item {
    margin-bottom: 8px;
}

.edu-item .title {
    font-weight: 600;
}

.edu-item .meta {
    font-size: 12.5px;
    color: var(--light);
}

/* Projects */
.project {
    margin-bottom: 10px;
}

.project .name {
    font-weight: 600;
}

.project .desc {
    font-size: 13px;
    color: var(--muted);
}

/* Light mode overrides */
body.light-mode {
    --text: #1a1a1a;
    --muted: #444;
    --light: #666;
    --accent: #2563eb;
    --bg: #fffffff0;
    --page-bg: #f3f4f6;
}

body.light-mode .theme-toggle {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

body.light-mode .theme-toggle:hover {
    background: #f0f0f0;
}

body.light-mode .header h1 {
    color: #1a1a1a;
}

body.light-mode .page {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.08);
}

/* Mobile: static Vanta background images with frosted glass */
@media (max-width: 768px) {
    body {
        background: url('/static/images/mobile-dark.png') center/cover no-repeat fixed;
        background-color: #ffffff;
    }

    body.light-mode {
        background-image: url('/static/images/mobile-light.png');
        background-color: #1a1a2e;
    }
}

/* Desktop: subtle fade-in on load */
@media (min-width: 769px) {
    .page {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    body.vanta-ready .page {
        opacity: 1;
        transform: translateY(0);
    }

    .floating-actions {
        opacity: 0;
        transition: opacity 0.6s ease 0.3s;
    }

    body.vanta-ready .floating-actions {
        opacity: 1;
    }
}