/* CSS Variables for theming */
:root {
    --bg-primary: #f7f7f7;
    --bg-secondary: #ffffff;
    --text-primary: #222;
    --text-secondary: #555;
    --text-muted: #777;
    --border-color: #e0e0e0;
    --shadow: rgba(0,0,0,0.1);
    --accent: #007acc;
    --nav-bg: #ffffff;
    --sidebar-bg: #f8f9fa;
    --highlight-bg: #f0f8ff;
    --highlight-border: #007acc;
    
    /* Code-like accent colors */
    --keyword: #d73a49;
    --string: #032f62;
    --comment: #6a737d;
    --function: #6f42c1;
    --variable: #e36209;
}

[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border-color: #404040;
    --shadow: rgba(0,0,0,0.3);
    --accent: #4a9eff;
    --nav-bg: #2d2d2d;
    --sidebar-bg: #3a3a3a;
    --highlight-bg: #1e3a5f;
    --highlight-border: #4a9eff;
    
    /* Dark theme code colors */
    --keyword: #ff7b72;
    --string: #a5d6ff;
    --comment: #8b949e;
    --function: #d2a8ff;
    --variable: #ffa657;
}

/* Import coding fonts */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600&family=Fira+Code:wght@300;400;500;600&display=swap');

/* Base styles */
body {
    font-family: "JetBrains Mono", "Fira Code", "Consolas", "Monaco", "Courier New", monospace;
    color: var(--text-primary);
    background: var(--bg-primary);
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 400;
    line-height: 1.6;
}

/* Page layout */
.container {
    max-width: 1000px;
    background: var(--bg-secondary);
    margin: 40px auto;
    padding: 50px 60px;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

/* Terminal-like window chrome */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--border-color);
    border-radius: 8px 8px 0 0;
    opacity: 0.3;
}

.container::after {
    content: '● ● ●';
    position: absolute;
    top: 8px;
    left: 15px;
    font-size: 12px;
    letter-spacing: 5px;
    background: linear-gradient(to right, #ff5f57, #ffbd2e, #28ca42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.a4-container {
    width: 100%;
    min-height: 100vh;
    background: var(--bg-secondary);
    margin: 0 auto;
    padding: 20mm;
    box-sizing: border-box;
    display: none;
    transition: background-color 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

/* Show A4 container only for PDF generation */
body.pdf-mode .a4-container {
    display: block !important;
    visibility: visible !important;
    width: 100vw;
    height: 100vh;
    background: var(--bg-secondary);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    position: fixed;
    top: 0;
    left: 0;
}

/* Terminal window chrome for A4 container too */
.a4-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--border-color);
    border-radius: 8px 8px 0 0;
    opacity: 0.3;
}

.a4-container::after {
    content: '● ● ●';
    position: absolute;
    top: 8px;
    left: 15px;
    color: var(--text-muted);
    font-size: 12px;
    letter-spacing: 5px;
}

/* Main content layout */
.main-content {
    display: flex;
    gap: 40px;
}

.sidebar {
    flex: 1;
    min-width: 0;
}

.sidebar table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    opacity: 0.8;
    border: none;
}

.sidebar table td {
    border-right: 1px dashed rgba(128, 128, 128, 0.5);
    border-bottom: 1px dashed rgba(128, 128, 128, 0.5);
    padding: 8px;
    text-align: left;
}

.sidebar table td:last-child {
    border-right: none;
}

.sidebar table tr:last-child td {
    border-bottom: none;
}

.content {
    flex: 2;
    min-width: 0;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    margin: 0;
    font-size: 2em;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--keyword);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

header h2 {
    margin: 5px 0 15px;
    font-size: 1.1em;
    color: var(--string);
    font-weight: 400;
    font-style: italic;
}

/* Section styles */
section {
    margin-bottom: 30px;
}

h3 {
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 4px;
    text-transform: uppercase;
    font-size: 1.1em;
    color: var(--function);
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
}

h3::before {
    content: '## ';
    color: var(--comment);
    font-weight: 300;
}

ul {
    padding-left: 20px;
    margin: 10px 0;
    list-style: none;
}

li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

li::before {
    content: '→';
    color: var(--variable);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.contact p {
    margin: 4px 0;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.contact-link:hover {
    color: var(--keyword);
    text-decoration: underline;
    text-decoration-color: var(--keyword);
    text-decoration-thickness: 2px;
}

.contact-link:hover::after {
    content: none;
}

/* Download button */
.download {
    text-align: center;
    margin-top: 30px;
}

a.button {
    background: var(--keyword);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--keyword);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

a.button::before {
    content: '>>> ';
    opacity: 0.7;
}

a.button:hover {
    background: var(--bg-secondary);
    color: var(--keyword);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

/* Navigation styles */
.nav-header {
    background: var(--nav-bg);
    padding: 15px 0;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px var(--shadow);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

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

.nav-logo {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--keyword);
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: "JetBrains Mono", "Fira Code", monospace;
}

.nav-logo::before {
    content: '<';
    color: var(--comment);
}

.nav-logo::after {
    content: '/>';
    color: var(--comment);
}

/* Blinking cursor animation */
.cursor {
    animation: blink 1s infinite;
    color: var(--keyword);
    font-weight: bold;
}

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

/* Terminal Footer */
.footer {
    background: var(--bg-primary);
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
    font-family: "JetBrains Mono", "Fira Code", "Consolas", "Monaco", "Courier New", monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

.terminal-line {
    margin-bottom: 4px;
}

.prompt {
    color: var(--keyword);
    font-weight: bold;
    margin-right: 8px;
}

/* Different prompt styles for commands vs output */
.terminal-line:has(.command) .prompt {
    color: var(--keyword);
}

.terminal-line:has(.output) .prompt {
    color: var(--comment);
    font-weight: normal;
}

.command {
    color: var(--text-primary);
}

.heart {
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.output {
    color: var(--comment);
    font-style: italic;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.cursor-blink {
    color: var(--keyword);
    font-weight: bold;
    animation: blink 1s infinite;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
}

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

/* Hamburger menu button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: var(--border-color);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-icon {
    transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(15deg);
}

/* About Me page specific styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-top: 30px;
}

.about-sidebar {
    background: var(--sidebar-bg);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    transition: background-color 0.3s ease;
}

.about-main {
    line-height: 1.6;
}

.about-main p {
    opacity: 0.8;
}

.faq-answer {
    opacity: 0.8;
}

.profile-image {
    width: 100%;
    max-width: 200px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.quick-facts {
    list-style: none;
    padding: 0;
}

.quick-facts li::before {
    content: none;
}

.quick-facts li {
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(128, 128, 128, 0.5);
}

.quick-facts .arrow {
    color: var(--keyword);
    margin-right: 8px;
}

.quick-facts li:last-child {
    border-bottom: none;
}

.quick-facts strong {
    color: var(--text-primary);
}

.about-main h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--keyword);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.about-main h2 {
    font-size: 1.3em;
    color: var(--string);
    margin-bottom: 30px;
    font-weight: 400;
    font-style: italic;
}

.about-main h3 {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--function);
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 5px;
}

.about-main p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.highlight {
    background: var(--highlight-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--highlight-border);
    margin: 20px 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* PDF/Print specific styles */
body.pdf-mode .a4-container {
    display: block !important;
    visibility: visible !important;
    width: 100%;
    min-height: 100vh;
    background: var(--bg-secondary);
    margin: 0 auto;
    padding: 20mm;
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    position: relative;
}

body.pdf-mode .container,
body.pdf-mode .nav-header {
    display: none !important;
    visibility: hidden !important;
}

/* PDF mode specific styling to match browser view exactly */
body.pdf-mode {
    background: var(--bg-primary) !important;
    margin: 0;
    padding: 0;
}

body.pdf-mode .a4-container .main-content {
    display: flex !important;
    gap: 40px;
    height: 100%;
}

body.pdf-mode .a4-container .sidebar {
    flex: 1;
    min-width: 0;
}

body.pdf-mode .a4-container .content {
    flex: 2;
    min-width: 0;
}

/* Ensure all colors and styling match exactly */
body.pdf-mode .a4-container header h1 {
    color: var(--keyword) !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

body.pdf-mode .a4-container header h2 {
    color: var(--string) !important;
}

body.pdf-mode .a4-container h3 {
    color: var(--function) !important;
}

body.pdf-mode .a4-container h3::before {
    color: var(--comment) !important;
}

body.pdf-mode .a4-container li::before {
    color: var(--variable) !important;
}

/* Print styles - preserve exact browser appearance */
@media print {
    /* Hide navigation, screen container, and footer */
    .nav-header { display: none; }
    .container {
        display: none !important;
    }
    .footer { display: none !important; }

    /* Show and enforce full page styling */
    .a4-container {
        display: block !important;
        width: 100%;
        height: 100vh; /* Fixed height to fit exactly one page */
        margin: 0 auto;
        padding: 15mm 8mm; /* Reduced horizontal padding for tables */
        background: var(--bg-secondary) !important;
        box-sizing: border-box;
        page-break-after: avoid;
        page-break-inside: avoid;
        border: 1px solid var(--border-color) !important;
        box-shadow: none !important;
        overflow: hidden; /* Prevent content from overflowing */
    }
    
    /* Force single page layout */
    .a4-container .main-content {
        height: calc(100vh - 30mm); /* Account for padding */
        overflow: hidden;
        page-break-inside: avoid;
    }
    
    .a4-container .sidebar {
        page-break-inside: avoid;
    }
    
    .a4-container .content {
        page-break-inside: avoid;
    }
    
    /* Reduce spacing for PDF */
    .a4-container .sidebar section {
        margin-bottom: 8px !important;
    }
    
    .a4-container .content ul {
        margin: 3px 0 !important;
    }
    
    .a4-container .content ul li {
        margin-bottom: 2px !important;
        padding: 1px 0 !important;
        font-size: 0.9em !important;
    }
    
    .a4-container .content ul + p {
        margin-top: 5px !important;
        padding-top: 5px !important;
    }
    
    .a4-container .footnotes {
        margin-top: 10px !important;
        padding-top: 5px !important;
    }
    
    .a4-container .footnotes p {
        font-size: 0.75em !important;
        margin: 2px 0 !important;
    }
    
    /* Prevent text wrapping in tables for PDF */
    .a4-container .sidebar table td {
        white-space: nowrap !important;
        padding: 2px 4px !important;
    }
    
    /* Allow education table to wrap content - target by position */
    .a4-container .sidebar section:nth-child(4) table td {
        white-space: normal !important;
    }

    /* Remove terminal window chrome for print */
    .a4-container::before,
    .a4-container::after {
        display: none !important;
    }

    body {
        background: var(--bg-primary) !important;
        margin: 0;
        padding: 0;
        color: var(--text-primary) !important;
    }

    .main-content {
        display: flex !important;
        gap: 40px;
        height: 100%;
    }

    .sidebar {
        flex: 1;
        min-width: 0;
    }

    .content {
        flex: 2;
        min-width: 0;
    }

    /* Preserve exact colors from browser view */
    header h1 {
        color: var(--keyword) !important;
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;
    }

    header h2 {
        color: var(--string) !important;
        font-style: italic !important;
    }

    h3 {
        color: var(--function) !important;
    }

    h3::before {
        content: '## ' !important;
        color: var(--comment) !important;
    }

    li::before {
        content: '→' !important;
        color: var(--variable) !important;
    }

    p, li, strong {
        color: var(--text-primary) !important;
    }

    .nav-logo::before,
    .nav-logo::after {
        content: '' !important;
    }

    a.button { 
        display: none !important; 
    }

    a.button::before {
        content: '' !important;
    }

    /* Ensure proper contrast for print */
    .about-sidebar {
        background: var(--sidebar-bg) !important;
    }

    .highlight {
        background: var(--highlight-bg) !important;
        border-left-color: var(--highlight-border) !important;
    }
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .main-content {
        display: block !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .sidebar, .content {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .sidebar {
        margin-bottom: 20px !important;
        order: 1 !important;
    }
    
    .content {
        order: 2 !important;
    }
    
    .sidebar table td {
        padding: 6px 4px !important;
        font-size: 0.75em !important;
    }
    
    .content ul li {
        font-size: 0.8em !important;
        margin-bottom: 4px !important;
    }
    
    .content p strong {
        font-size: 0.9em !important;
    }
    
    .content ul + p {
        margin-top: 10px !important;
        padding-top: 10px !important;
    }
    
    .sidebar section {
        margin-bottom: 15px !important;
    }
    
    .sidebar h3 {
        font-size: 1em !important;
        margin-bottom: 8px !important;
    }
    
    .about-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .about-sidebar {
        padding: 20px !important;
        order: 1 !important;
    }
    
    .about-main {
        order: 2 !important;
    }
    
    .profile-image {
        max-width: 150px !important;
        margin: 0 auto 20px auto !important;
        display: block !important;
    }
    
    .about-main h1 {
        font-size: 2em !important;
    }
    
    .about-main h2 {
        font-size: 1.1em !important;
    }
    
    .about-main h3 {
        font-size: 1.2em !important;
        margin-top: 25px !important;
    }
    
    .about-main p {
        font-size: 1em !important;
    }
    
    .quick-facts li {
        font-size: 0.9em !important;
        margin-bottom: 8px !important;
    }
    
    .container {
        padding: 50px 20px 30px 20px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
        border: none !important;
    }
    
    .faq-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 20px 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }
    
    body {
        overflow-x: hidden !important;
    }
    
    .container {
        overflow-x: hidden !important;
    }
    
    .faq-section {
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
    }
    
    .nav-container {
        padding: 0 20px !important;
    }
    
    .nav-header {
        border-radius: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .footer {
        margin-top: 0 !important;
    }
    
    /* Remove terminal chrome on mobile */
    .container::before,
    .container::after {
        display: none !important;
    }
    
    .terminal-window::before,
    .terminal-window::after {
        display: none !important;
    }
    
    /* Mobile navigation styles */
    .hamburger {
        display: flex !important;
    }
    
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        background: var(--nav-bg) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 40px !important;
        transition: right 0.3s ease !important;
        z-index: 1000 !important;
        box-shadow: 0 0 20px rgba(0,0,0,0.1) !important;
    }
    
    .nav-links.active {
        right: 0 !important;
    }
    
    .nav-links a {
        font-size: 1.5em !important;
        padding: 15px 30px !important;
        border-radius: 10px !important;
        width: 200px !important;
        text-align: center !important;
    }
    
    .theme-toggle {
        font-size: 1.5em !important;
        padding: 15px 30px !important;
        border-radius: 10px !important;
    }
    
    /* FAQ mobile styles */
    .faq-container {
        max-width: 100% !important;
        padding: 20px 15px !important;
        margin: 0 !important;
    }
    
    .faq-section {
        padding: 20px !important;
        margin-bottom: 30px !important;
    }
    
    .faq-section h2 {
        font-size: 1.5em !important;
    }
    
    .faq-item {
        padding: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .faq-question {
        font-size: 1em !important;
    }
    
    .faq-answer {
        margin-left: 15px !important;
    }
    
    /* Landing page mobile styles */
    .landing-container {
        padding: 0 !important;
        min-height: 100vh !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .terminal-window {
        max-width: 100% !important;
        width: 100% !important;
        padding: 30px 20px !important;
        border-radius: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    .terminal-window::before {
        display: none !important;
    }
    
    .terminal-window::after {
        display: none !important;
    }
    
    .welcome-title { 
        font-size: 2em !important;
        margin-top: 20px !important;
    }
    
    .subtitle {
        font-size: 1em !important;
    }
    
    .fun-fact {
        font-size: 1em !important;
        padding: 15px !important;
    }
    
    .code-snippet {
        font-size: 0.8em !important;
        padding: 15px !important;
    }
    
    .nav-buttons { 
        flex-direction: column !important; 
        align-items: center !important;
        gap: 15px !important;
    }
    
    .nav-button { 
        width: 100% !important; 
        max-width: 300px !important;
        padding: 12px 25px !important;
    }
    
    .floating-elements {
        display: none !important;
    }
}

@media screen and (max-width: 480px) {
    .sidebar table td {
        padding: 4px 2px !important;
        font-size: 0.7em !important;
    }
    
    .content ul li {
        font-size: 0.75em !important;
    }
    
    .content p strong {
        font-size: 0.85em !important;
    }
    
    header h1 {
        font-size: 1.5em !important;
    }
    
    header h2 {
        font-size: 1em !important;
    }
    
    .container {
        padding: 50px 20px 30px 20px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
        border: none !important;
    }
    
    .faq-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px 10px !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }
    
    .faq-section {
        padding: 15px !important;
        margin-bottom: 25px !important;
    }
    
    .faq-section h2 {
        font-size: 1.3em !important;
    }
    
    .faq-item {
        padding: 12px !important;
        margin-bottom: 15px !important;
    }
    
    .faq-question {
        font-size: 0.95em !important;
    }
    
    .faq-answer {
        margin-left: 10px !important;
        font-size: 0.9em !important;
    }
    
    body {
        overflow-x: hidden !important;
    }
    
    .container {
        overflow-x: hidden !important;
    }
    
    .about-sidebar {
        padding: 15px !important;
    }
    
    .profile-image {
        max-width: 120px !important;
    }
    
    .about-main h1 {
        font-size: 1.8em !important;
    }
    
    .about-main h2 {
        font-size: 1em !important;
    }
    
    .about-main h3 {
        font-size: 1.1em !important;
        margin-top: 20px !important;
    }
    
    .about-main p {
        font-size: 0.95em !important;
    }
    
    .quick-facts li {
        font-size: 0.85em !important;
        margin-bottom: 6px !important;
    }
}

/* Footnote styles */
.footnotes {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.footnotes p {
    font-size: 0.9em;
    color: var(--text-muted);
    margin: 5px 0;
    line-height: 1.4;
}

/* Remove purple color from footnote links */
sup a {
    color: var(--keyword) !important;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

sup a:hover {
    color: var(--keyword) !important;
    text-decoration: none;
}

/* Style the superscript number */
sup {
    font-size: 0.8em;
    vertical-align: super;
    margin-left: 2px;
}

/* Style Tools & Frameworks section */
.tools-frameworks p {
    font-size: 0.8em;
    line-height: 1.8;
    letter-spacing: 0.5px;
}

/* ASCII table layout */
.tools-ascii {
    font-family: "JetBrains Mono", "Fira Code", "Consolas", "Monaco", "Courier New", monospace;
    font-size: 0.8em;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    white-space: pre;
    color: var(--comment);
}

/* Reduce spacing between job title and description */
.tools-ascii {
    margin-top: -5px;
}

/* Make cell text darker while keeping separators light */
.cell-text {
    color: var(--text-primary) !important;
}

/* Contact icons styling */
.contact-link {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.contact-link:hover {
    color: var(--keyword);
    text-decoration: underline;
    text-decoration-color: var(--keyword);
    text-decoration-thickness: 2px;
}

.contact-link:hover::after {
    content: none;
}

/* Style contact emoji icons to be consistent */
.contact p {
    margin: 4px 0;
}

/* Style emoji icons in contact links */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-link .icon {
    color: var(--variable);
    font-size: 1.1em;
    filter: grayscale(0.3) brightness(0.8);
    transition: all 0.2s ease;
}

.contact-link:hover .icon {
    filter: grayscale(0) brightness(1);
    color: var(--keyword);
}

/* FAQ Styles */
.faq-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 60px;
}

.faq-section {
    margin-bottom: 50px;
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow);
}

.faq-section h2 {
    color: var(--keyword);
    font-size: 1.8em;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--keyword);
    padding-bottom: 10px;
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--sidebar-bg);
    border-radius: 8px;
    border-left: 4px solid var(--highlight-border);
}

.faq-question {
    color: var(--function);
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 10px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--keyword);
}

.faq-question::before {
    content: 'Q: ';
    color: var(--comment);
    font-weight: 300;
}

.faq-answer {
    color: var(--text-primary);
    line-height: 1.6;
    margin-left: 20px;
}

.faq-answer::before {
    content: 'A: ';
    color: var(--comment);
    font-weight: 300;
}

.faq-answer p {
    margin: 8px 0;
}

.faq-answer ul {
    margin: 10px 0;
    padding-left: 20px;
}

.faq-answer li {
    margin: 5px 0;
}

.section-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

/* CV-specific styles */
@page {
    margin: 0;
}

/* Remove arrows from experience section list items */
.content ul li::before {
    content: none !important;
}

/* Make description text smaller and lighter */
.content ul li {
    font-size: 0.85em;
    font-weight: normal;
    opacity: 0.8;
    padding-left: 0;
    margin-left: 0;
}

/* Add spacing after arrows in job descriptions */
.content ul li span[style*="color: var(--keyword)"] {
    margin-right: 8px;
}

/* Add dashed separators between job roles */
.content ul + p {
    border-top: 1px dashed rgba(128, 128, 128, 0.5);
    margin-top: 15px;
    padding-top: 15px;
}

/* Make sidebar text same color as descriptions */
.sidebar .cell-text {
    opacity: 0.8;
}

/* Color job titles with primary text color */
.content p strong {
    color: var(--primary);
}

/* Color years bluish (like subtitle) */
.content p strong .years {
    color: var(--string);
}

/* Make footnote links always show keyword color */
.content p strong sup a {
    color: var(--keyword) !important;
    text-decoration: none;
}

.content p strong sup a:hover {
    color: var(--keyword) !important;
}

/* Make table text same size and color as job descriptions */
.sidebar table {
    font-size: 0.8em;
    color: var(--text-primary);
    opacity: 0.8;
}

/* Make education text same size and color as ASCII text */
.sidebar section h3 + p,
.sidebar section h3 + p + p {
    font-size: 0.8em;
    color: var(--text-primary);
    opacity: 0.8;
    margin: 0;
}

/* Landing page styles */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.terminal-window {
    background: var(--bg-secondary);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow);
    padding: 40px;
    max-width: 800px;
    width: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.terminal-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: var(--border-color);
    border-radius: 10px 10px 0 0;
    opacity: 0.3;
}

.terminal-window::after {
    content: '● ● ●';
    position: absolute;
    top: 8px;
    left: 15px;
    font-size: 12px;
    letter-spacing: 5px;
    background: linear-gradient(to right, #ff5f57, #ffbd2e, #28ca42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--keyword);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    animation: glow 2s ease-in-out infinite alternate;
}

.subtitle {
    font-size: 1.2em;
    color: var(--string);
    margin-bottom: 30px;
    font-style: italic;
}

.fun-fact {
    background: var(--highlight-bg);
    border-left: 4px solid var(--highlight-border);
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.6;
    animation: slideIn 1s ease-out;
}

.fun-fact::before {
    content: '💡 ';
    font-size: 1.2em;
    vertical-align: middle;
}

.typing-animation {
    white-space: nowrap;
    overflow: hidden;
    display: inline;
}

.typing-cursor {
    color: var(--keyword);
    font-weight: bold;
    animation: blink 1s infinite;
    display: inline;
    vertical-align: baseline;
}

.nav-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-button {
    background: var(--keyword);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--keyword);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 150px;
}

.nav-button::before {
    content: '>>> ';
    opacity: 0.7;
}

.nav-button:hover {
    background: var(--bg-secondary);
    color: var(--keyword);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow);
}

.nav-button:hover::before {
    content: '🚀 ';
}

.code-snippet {
    background: #1a1a1a;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 0.9em;
    text-align: left;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.code-line {
    margin: 5px 0;
}

.comment { color: #6272a4; }
.keyword { color: #ff79c6; }
.string { color: #f1fa8c; }
.function { color: #50fa7b; }
.variable { color: #8be9fd; }

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(0, 0, 0, 0.1); }
    to { text-shadow: 0 0 30px rgba(215, 58, 73, 0.3); }
}

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

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    color: var(--comment);
    font-size: 1.5em;
    animation: float 6s ease-in-out infinite;
    opacity: 0.3;
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; right: 15%; animation-delay: 2s; }
.floating-element:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; }
.floating-element:nth-child(4) { top: 40%; right: 30%; animation-delay: 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* About page styles */
.profile-image-container {
    text-align: center;
    margin: 20px 0;
}

.profile-image {
    border: 2px solid var(--keyword);
}

.dog-image-container {
    text-align: center;
    margin: 20px 0;
}

.dog-image {
    max-width: 100%;
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid var(--keyword);
}

.footnote-link {
    color: var(--keyword);
}

.footnote-symbol {
    color: var(--keyword);
}

/* CV table styles */
.cv-table {
    width: 100%;
    border-collapse: collapse;
}

.cv-table td {
    padding: 8px;
    text-align: left;
}

.cv-hash {
    color: var(--keyword);
}

.cv-arrow {
    color: var(--keyword);
}

.cv-list {
    list-style: none;
    padding-left: 0;
}

.cv-footnote-link {
    color: var(--keyword);
}
