:root {
    /* VS Code Light Theme Inspired */
    --mac-bg: #ffffff;
    --mac-window-bg: rgba(255, 255, 255, 0.9);
    --mac-text-primary: #2c2c2c;
    /* VS Code Light Text */
    --mac-text-secondary: #6e6e6e;
    --mac-accent: #007acc;
    /* VS Code Blue */
    --mac-border: rgba(0, 0, 0, 0.1);
    --mac-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --mac-glass: blur(20px) saturate(180%);

    /* Typography */
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

[data-theme="dark"] {
    /* VS Code Dark Theme Inspired */
    --mac-bg: #1e1e1e;
    --mac-window-bg: #252526;
    --mac-text-primary: #ffffff;
    /* Whiter text */
    --mac-text-secondary: #cccccc;
    /* Lighter gray */
    --mac-accent: #569cd6;
    /* VS Code Keyword Blue */
    --mac-border: #333333;
    --mac-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Theme Toggle Button */
#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--mac-text-secondary);
    transition: color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    color: var(--mac-text-primary);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] #theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .section-card,
[data-theme="dark"] .pdf-item:hover {
    background: #252526;
    border-color: #333;
}

[data-theme="dark"] .pdf-item {
    background: #1e1e1e;
    border-color: #333;
}

[data-theme="dark"] nav {
    background: rgba(30, 30, 30, 0.8);
    border-bottom: 1px solid #333;
}

[data-theme="dark"] footer {
    background: #1e1e1e;
    border-top: 1px solid #333;
}

[data-theme="dark"] .btn-secondary {
    background: #3e3e42;
    /* VS Code button background */
    color: #ffffff;
    border: 1px solid #3e3e42;
}

[data-theme="dark"] .btn-secondary:hover {
    background: #4d4d52;
    border-color: #4d4d52;
}


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

body {
    font-family: var(--font-stack);
    background-color: var(--mac-bg);
    color: var(--mac-text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation Bar (Glassmorphism) */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--mac-window-bg);
    backdrop-filter: var(--mac-glass);
    -webkit-backdrop-filter: var(--mac-glass);
    border-bottom: 1px solid var(--mac-border);
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--mac-text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--mac-text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--mac-text-primary);
}

/* Main Content */
main {
    flex: 1;
    max-width: 980px;
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

/* Cards / Sections */
.section-card {
    background: #fff;
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.003em;
    margin-bottom: 16px;
    color: var(--mac-accent);
}

h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.002em;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    font-size: 17px;
    color: var(--mac-text-primary);
    margin-bottom: 16px;
}

/* Profile Section */
.profile-header {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.profile-info {
    flex: 1;
}

.subtitle {
    font-size: 21px;
    color: var(--mac-text-secondary);
    font-weight: 400;
    margin-bottom: 16px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--mac-accent);
    color: white;
    padding: 8px 16px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.1s ease, background 0.2s ease;
}

.btn:hover {
    transform: scale(1.02);
    background: #0077ed;
}

.btn-secondary {
    background: #e5e5ea;
    color: var(--mac-text-primary);
}

.btn-secondary:hover {
    background: #d1d1d6;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--mac-text-secondary);
    font-size: 12px;
    border-top: 1px solid var(--mac-border);
    background: #f5f5f7;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    h1 {
        font-size: 36px;
    }
}

/* PDF Grid Layout */
.pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.pdf-item {
    display: flex;
    align-items: center;
    background: var(--mac-bg);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--mac-border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdf-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.pdf-icon {
    width: 50px;
    height: 50px;
    background: #ff3b30;
    /* Red for PDF */
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 15px;
    flex-shrink: 0;
}

.pdf-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--mac-text-primary);
}

.pdf-info p {
    font-size: 13px;
    color: var(--mac-text-secondary);
    margin-bottom: 8px;
}

.btn-sm {
    font-size: 12px;
    padding: 4px 12px;
}