/* Hide GitHub Pages default header/title */
.page-header,
header.page-header,
.site-header,
.site-title,
#header,
header h1,
header h1.project-name,
.project-name,
.site-name,
#site-title,
body > header,
body > .container > header,
.main-content > h1:first-child,
.markdown-body > h1:first-child,
.container-lg.markdown-body > h1:first-child {
    display: none !important;
}

/* Modern Portfolio Styles */
:root {
    --primary-color: #0073e6;
    --secondary-color: #4CAF50;
    --accent-color: #D14836;
    --dark-bg: #1a1a2e;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Light mode (default) */
    --bg-body: linear-gradient(135deg, #66b1ea 0%, #4ba299 100%);
    --bg-content: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #666;
    --border-color: #e1e4e8;
    --code-bg: #f6f8fa;
    --table-hover: #f8f9fa;
}

/* Dark mode variables - apply to both html and body for compatibility */
:root[data-theme="dark"],
body[data-theme="dark"],
[data-theme="dark"] {
    --bg-body: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-content: #1e1e2e;
    --text-primary: #ecf0f1;
    --text-secondary: #d0cfcf;
    --border-color: #3a3a4a;
    --code-bg: #2a2a3a;
    --table-hover: #2a2a3a;
    --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    line-height: 1.6;
    font-weight: 200 !important;
    color: var(--text-primary);
    background: var(--bg-body);
    background-attachment: fixed;
    margin: 0;
    padding: 20px;
    transition: var(--transition);
}

/* Paragraph and text elements - override GitHub default styles */
body p,
body div,
body span,
body li,
.markdown-body,
.markdown-body p, 
.markdown-body div,
.markdown-body span,
.markdown-body li,
.container-lg.markdown-body,
.container-lg.markdown-body p,
.container-lg.markdown-body div,
.container-lg.markdown-body span,
.container-lg.markdown-body li {
    font-weight: 300 !important;
}

/* Bold text from Markdown ** or __ syntax */
body strong,
body b,
.markdown-body strong,
.markdown-body b,
.container-lg.markdown-body strong,
.container-lg.markdown-body b {
    font-weight: 700 !important;
    color: var(--text-primary);
}

/* Container for markdown content */
article, .markdown-body {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-content);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
}   margin-bottom: 1em;
    font-weight: 700;
}

h1 {
    font-size: 2.5em;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.3em;
}

h2 {
    font-size: 2em;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.3em;
}

h3 {
    font-size: 1.5em;
    color: var(--primary-color);
}

/* Title and Subtitle for page header */
.page-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.5em;
    margin-bottom: 0.2em;
    border: none;
    padding: 0;
}

.page-subtitle {
    font-size: 1.5em;
    font-weight: 400;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1.5em;
    border: none;
    padding: 0;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

/* Profile image specific styling */
img[alt="Alexander Zimmerer"] {
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 115, 230, 0.3);
    transition: var(--transition);
}

img[alt="Alexander Zimmerer"]:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 115, 230, 0.5);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    background: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

th {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
tr:hover {
    background-color: var(--table-hover);
}

/* Buttons */
.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2em 0;
}

.contact-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
}

.contact-btn:active {
    transform: translateY(0);
}

.survey-btn {
    background: linear-gradient(135deg, var(--secondary-color), #388e3c);
}

.survey-btn:hover {
    background: linear-gradient(135deg, #388e3c, var(--secondary-color));
}

/* Badges */
img[src*="shields.io"], img[src*="badge"] {
    display: inline-block;
    margin: 5px;
    vertical-align: middle;
}
/* Code blocks */
pre {
    background: var(--code-bg);
    padding: 16px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    border-left: 4px solid var(--primary-color);
    color: var(--text-primary);
}

code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: var(--text-primary);
}

/* Horizontal rules */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin: 3em 0;
}

/* Lists */
ul, ol {
    padding-left: 2em;
}

li {
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

/* Blockquotes */
blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1em;
    margin-left: 0;
    color: var(--text-secondary);
    /* Change bold text color inside blockquotes */
    strong, b {
        color: var(--text-secondary);
    }
}

/* GitHub Stats cards */
img[src*="github-readme-stats"], 
img[src*="github-readme-streak-stats"] {
    margin: 10px;
    transition: var(--transition);
}

img[src*="github-readme-stats"]:hover,
img[src*="github-readme-streak-stats"]:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    article, .markdown-body {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-btn {
        width: 100%;
    }
    
    table {
        font-size: 0.9em;
    }
    
    th, td {
        padding: 10px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

img {
    animation: fadeIn 0.6s ease-in-out;
}

/* Dark Mode Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-content);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.theme-toggle .icon {
    font-size: 18px;
    transition: var(--transition);
}

/* Hide light icon in light mode, dark icon in dark mode */
[data-theme="light"] .theme-toggle .dark-icon,
[data-theme="dark"] .theme-toggle .light-icon,
body[data-theme="light"] .theme-toggle .dark-icon,
body[data-theme="dark"] .theme-toggle .light-icon {
    display: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--code-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    article, .markdown-body {
        box-shadow: none;
    }
    
    .contact-btn, .theme-toggle {
        display: none;
    }
}

/* Responsive dark mode toggle */
@media (max-width: 768px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .theme-toggle .icon {
        font-size: 16px;
    }
}
