/* ========================================
   CSS Variables & Theme Setup
   ======================================== */
:root {
    /* Dark theme (default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-glass: rgba(18, 18, 26, 0.7);
    --bg-glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --accent-primary: #00d4aa;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #00d4aa 0%, #7c3aed 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(0, 212, 170, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light theme */
[data-theme="light"] {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-border: rgba(0, 0, 0, 0.08);
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    --accent-primary: #059669;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #059669 0%, #7c3aed 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(5, 150, 105, 0.15);
}

/* ========================================
   Base & Reset
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.5s ease, color 0.5s ease;
}

/* ========================================
   Animated Canvas Background
   ======================================== */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* ========================================
   Theme Toggle Button
   ======================================== */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--bg-glass-border);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.pdf-download {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow-sm), 0 0 20px rgba(0, 212, 170, 0.4);
}

.pdf-download:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: var(--shadow-glow), 0 0 30px rgba(0, 212, 170, 0.6);
    background: var(--accent-primary);
}

.pdf-download:hover svg {
    color: white;
}

.pdf-download svg {
    width: 26px;
    height: 26px;
    color: var(--accent-primary);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
    position: absolute;
    transition: var(--transition);
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* ========================================
   Glassmorphism Cards
   ======================================== */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass:hover {
    box-shadow: var(--shadow-glow), var(--shadow-md);
    border-color: rgba(0, 212, 170, 0.2);
    transform: translateY(-2px);
}

/* ========================================
   Header Section
   ======================================== */
header {
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.header-content {
    position: relative;
    z-index: 1;
}

.name-section {
    margin-bottom: 1.5rem;
}

/* Glitch Effect on Name */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

.glitch {
    position: relative;
    color: var(--text-primary);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.3s infinite linear alternate-reverse;
    color: var(--accent-primary);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.3s infinite linear alternate-reverse;
    color: var(--accent-secondary);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { clip-path: inset(0 0 95% 0); transform: translate(-2px, 0); }
    20% { clip-path: inset(0 0 60% 0); transform: translate(2px, 0); }
    40% { clip-path: inset(40% 0 20% 0); transform: translate(-2px, 0); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, 0); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 0); }
}

@keyframes glitch-2 {
    0%, 100% { clip-path: inset(95% 0 0 0); transform: translate(2px, 0); }
    20% { clip-path: inset(60% 0 0 0); transform: translate(-2px, 0); }
    40% { clip-path: inset(20% 0 40% 0); transform: translate(2px, 0); }
    60% { clip-path: inset(5% 0 80% 0); transform: translate(-2px, 0); }
    80% { clip-path: inset(70% 0 10% 0); transform: translate(1px, 0); }
}

/* Typing Animation Container */
.typing-container {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    color: var(--accent-primary);
    height: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent-primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Contact Section */
.contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.contact-link,
.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link svg,
.location svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent-primary);
}

.contact-link:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.separator {
    color: var(--text-muted);
}

/* ========================================
   Section Styling
   ======================================== */
section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.section-icon {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 1.25rem;
}

/* ========================================
   Skills Section
   ======================================== */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.skill-card {
    background: rgba(0, 212, 170, 0.05);
    border: 1px solid rgba(0, 212, 170, 0.1);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    transition: var(--transition);
}

.skill-card:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-4px);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.skill-icon {
    font-family: var(--font-mono);
    color: var(--accent-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.skill-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    padding: 0.35rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1rem;
}

.skill-card li::before {
    content: "~";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-family: var(--font-mono);
}

/* ========================================
   Experience Timeline
   ======================================== */
.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    padding-bottom: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    background: var(--bg-secondary);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 170, 0.4);
}

.timeline-content {
    background: rgba(0, 212, 170, 0.03);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.job-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.company {
    display: block;
    font-weight: 500;
    color: var(--accent-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.timeline-content ul {
    list-style: none;
    margin-top: 0.75rem;
}

.timeline-content li {
    padding: 0.3rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.timeline-content li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-family: var(--font-mono);
}

/* ========================================
   Projects Section
   ======================================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.project-card {
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    transition: var(--transition);
}

.project-card:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.project-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-links a {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    transition: var(--transition);
}

.project-links a:hover {
    background: var(--accent-secondary);
    color: white;
    transform: scale(1.1);
}

.project-links svg {
    width: 16px;
    height: 16px;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 212, 170, 0.1);
    color: var(--accent-primary);
    border-radius: 4px;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

/* ========================================
   Education Section
   ======================================== */
.edu-item {
    background: rgba(0, 212, 170, 0.03);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.edu-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.edu-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-primary);
    background: rgba(0, 212, 170, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.edu-school {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Certifications Section
   ======================================== */
.cert-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(124, 58, 237, 0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: var(--transition);
}

.cert-item:hover {
    background: rgba(124, 58, 237, 0.1);
    transform: translateX(8px);
}

.cert-icon {
    font-family: var(--font-mono);
    color: var(--accent-secondary);
    font-size: 1.1rem;
}

.cert-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.cert-org {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cert-year {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================================
   Footer
   ======================================== */
footer {
    text-align: center;
    margin-top: 1rem;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animation */
section {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease-out forwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .glitch::before,
    .glitch::after {
        display: none;
    }

    .typing-container {
        font-size: 1rem;
    }

    .contact {
        flex-direction: column;
        gap: 0.75rem;
    }

    .separator {
        display: none;
    }

    .glass {
        padding: 1.5rem;
    }

    .skill-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .cert-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cert-name {
        width: 100%;
    }

    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .pdf-download {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.25rem;
    }

    .edu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ========================================
   Print Styles
/* Print Styles */
@media print {
    @page {
        size: letter;
        margin: 0.4in 0.5in;
    }

    #bgCanvas,
    .theme-toggle,
    .pdf-download,
    .loading,
    .typing-container,
    .cursor,
    footer {
        display: none !important;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-sizing: border-box;
    }

    /* Force ALL elements to have no background/borders in print */
    *, *::before, *::after {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    html {
        font-size: 8pt;
    }

    body {
        background: white !important;
        background-color: white !important;
        color: #1a1a2e !important;
        font-size: 8pt;
        line-height: 1.2;
        margin: 0;
        padding: 0;
    }

    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .glass,
    .skill-card,
    .project-card,
    .timeline-content,
    .edu-item,
    .cert-item {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 0 0.3rem 0 !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    header.glass {
        margin-bottom: 0.4rem !important;
        padding-bottom: 0.3rem !important;
        border-bottom: 1.5px solid #1a1a2e !important;
        background: transparent !important;
    }

    .glitch,
    .glitch::before,
    .glitch::after {
        display: block;
        position: static;
        animation: none;
        clip: none;
        clip-path: none;
        transform: none;
        text-shadow: none;
    }

    .glitch::before,
    .glitch::after {
        display: none !important;
    }

    h1 {
        color: #1a1a2e !important;
        font-size: 18pt;
        margin: 0 0 0.15rem 0;
        font-weight: 700;
        background: transparent !important;
        border: none !important;
    }

    h2 {
        color: #1a1a2e !important;
        font-size: 10pt;
        font-weight: 600;
        border-bottom: 1px solid #1a1a2e;
        padding-bottom: 0.1rem;
        margin: 0.35rem 0 0.25rem 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    h3 {
        color: #1a1a2e !important;
        font-size: 9pt;
        font-weight: 600;
        margin: 0.2rem 0 0.1rem 0;
    }

    p, li {
        font-size: 8pt;
        margin: 0.08rem 0;
        line-height: 1.25;
    }

    section {
        opacity: 1;
        animation: none;
        margin-bottom: 0.3rem;
        padding: 0;
    }

    section.summary {
        margin-bottom: 0.3rem;
    }

    section.summary p {
        margin: 0;
        text-align: left;
    }

    /* Contact info inline - single line */
    .contact {
        font-size: 8pt;
        margin-top: 0.1rem;
    }

    .contact a, .contact span {
        color: #1a1a2e !important;
    }

    .contact svg, .location svg {
        display: none;
    }

    .separator {
        color: #1a1a2e;
        margin: 0 0.3rem;
    }

    /* Skills - inline comma separated */
    .skill-grid {
        display: block;
        column-count: 2;
        column-gap: 1rem;
    }

    .skill-card {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        padding: 0;
        margin: 0 0 0.15rem 0;
        break-inside: avoid;
    }

    .skill-card h3 {
        font-size: 8pt;
        font-weight: 600;
        margin: 0;
        display: inline;
    }

    .skill-card h3::after {
        content: ": ";
    }

    .skill-card ul {
        display: inline;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .skill-card li {
        display: inline;
        font-size: 8pt;
    }

    .skill-card li::after {
        content: ", ";
    }

    .skill-card li:last-child::after {
        content: "";
    }

    .skill-icon {
        display: none;
    }

    .section-icon {
        display: none;
    }

    /* Experience - ultra compact */
    .timeline {
        margin: 0;
    }

    .timeline-item {
        margin-bottom: 0.3rem;
        padding-left: 0;
        border-left: none;
    }

    .timeline-marker {
        display: none;
    }

    .job-header {
        display: flex;
        flex-wrap: nowrap;
        align-items: baseline;
        gap: 0.3rem;
        margin-bottom: 0.1rem;
    }

    .job-header h3 {
        font-size: 9pt;
        margin: 0;
        flex: 0 0 auto;
    }

    .company {
        font-size: 8pt;
        font-weight: 500;
        color: #333;
    }

    .company::before {
        content: "| ";
    }

    .date {
        font-size: 8pt;
        color: #666;
        font-style: italic;
        margin-left: auto;
    }

    .timeline-item ul {
        margin: 0;
        padding-left: 1rem;
    }

    .timeline-item li {
        font-size: 8pt;
        margin: 0.05rem 0;
        line-height: 1.2;
    }

    /* Projects - ultra compact inline */
    .project-grid {
        display: block;
    }

    .project-card {
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        padding: 0;
        margin: 0 0 0.15rem 0;
    }

    .project-card h3 {
        font-size: 8pt;
        margin: 0;
        display: inline;
    }

    .project-card h3::after {
        content: " — ";
        font-weight: normal;
    }

    .project-card p {
        font-size: 8pt;
        margin: 0;
        display: inline;
    }

    .project-links {
        display: none;
    }

    .tech-tags {
        display: inline;
        margin-left: 0.3rem;
    }

    .tech-tag {
        font-size: 7.5pt;
        padding: 0;
        background: transparent !important;
        background-color: transparent !important;
        color: #666 !important;
        border: none !important;
    }

    .tech-tag::before {
        content: "[";
    }

    .tech-tag::after {
        content: "]";
    }

    /* Education - single line */
    .edu-item {
        margin-bottom: 0.1rem;
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
    }

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

    .edu-header h3 {
        font-size: 8pt;
        margin: 0;
    }

    .institution {
        font-size: 8pt;
        color: #555;
        margin-left: 0.3rem;
    }

    .institution::before {
        content: "— ";
    }

    .edu-year {
        font-size: 8pt;
        color: #666;
        margin-left: auto;
    }

    /* Certifications - inline comma separated */
    .cert-list {
        display: block;
    }

    .cert-item {
        font-size: 8pt;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        padding: 0;
        display: inline;
    }

    .cert-item::after {
        content: ", ";
    }

    .cert-item:last-child::after {
        content: "";
    }

    .cert-year {
        color: #666;
        font-size: 7.5pt;
    }

    .cert-year::before {
        content: " (";
    }

    .cert-year::after {
        content: ")";
    }

    /* Links */
    a {
        color: #1a1a2e !important;
        text-decoration: none;
    }

    a[href^="http"]::after {
        content: "";
        display: none;
    }
}

/* Empty State */
.empty-state {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

/* Loading State */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    z-index: 1000;
    gap: 1rem;
}

.loading.hidden {
    display: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 212, 170, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

#content.hidden {
    display: none;
}
