/* Minimalistic Red & Black Design */
:root {
    --primary-color: #dc2626;
    --secondary-color: #374151;
    --accent-color: #ef4444;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --text-inverse: #ffffff;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-dark: #111827;
    --bg-accent: #fef2f2;
    --border-color: #e5e7eb;
    --border-accent: #fecaca;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-100: #f3f4f6;
    --shadow-minimal: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    --shadow-clean: 0 2px 4px 0 rgb(0 0 0 / 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    font-weight: 400;
}

/* Typography - Minimalistic */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 2rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    position: relative;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Header - Minimalistic */
header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    letter-spacing: -0.025em;
}

/* Navigation - Clean */
.nav-menu {
    display: flex;
    gap: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    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-color: var(--text-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding-top: 2rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu a {
        width: 90%;
        text-align: center;
        padding: 1rem 0;
        margin: 0.5rem 0;
        border-bottom: 1px solid var(--border-color);
        border-radius: 8px;
        font-size: 1.1rem;
    }
    
    .nav-menu a:hover {
        background-color: var(--bg-secondary);
    }
    
    .nav-menu a.active {
        background-color: var(--bg-accent);
        color: var(--primary-color);
        border-bottom-color: transparent;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

/* Main Content - Minimalistic */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: calc(100vh - 200px);
}

/* Hero Section - Clean */
.hero {
    text-align: center;
    padding: 4rem 0 5rem;
    margin: -3rem -2rem 4rem;
    background: var(--bg-primary);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
    font-weight: 700;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-inverse);
    padding: 0.875rem 2rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: var(--red-700);
    transform: translateY(-1px);
}

/* Content Sections - Minimalistic */
.content-section {
    margin-bottom: 4rem;
}

.section-header {
    margin-bottom: 2.5rem;
    position: relative;
}

.section-header h1,
.section-header h2 {
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-header h1::after,
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: var(--primary-color);
}

/* Article Lists - Clean */
.article-list {
    display: grid;
    gap: 2.5rem;
}

.article-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    transform: translateX(0.5rem);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.article-tag {
    background: var(--red-50);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.article-title a {
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-title a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.read-more:hover {
    color: var(--red-700);
}

/* About Page - Minimalistic */
.profile-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

.profile-image {
    width: 100%;
    max-width: 250px;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-clean);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-category {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

.skill-category h3 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-list li {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    font-weight: 500;
}

/* Social Media Links - Minimalistic */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2.5rem 0;
    max-width: 400px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--gray-900);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.social-link:hover {
    transform: translateX(0.5rem);
    border-left-color: var(--primary-color);
    background: var(--bg-primary);
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: all 0.2s ease;
}

.social-link.github:hover {
    border-left-color: #333;
}

.social-link.github:hover svg {
    color: #333;
}

.social-link.x-twitter:hover {
    border-left-color: #000;
}

.social-link.x-twitter:hover svg {
    color: #000;
}

.social-link.linkedin:hover {
    border-left-color: #0077b5;
}

.social-link.linkedin:hover svg {
    color: #0077b5;
}

.connect-description {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.connect-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Footer - Minimalistic */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
    text-align: center;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    nav {
        gap: 1rem;
    }
    
    nav a {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    .hero {
        margin: -2rem -1rem 2rem;
        padding: 3rem 1rem 4rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .profile-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem 1rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .article-item:hover {
        padding-left: 0.5rem;
    }
}

/* Projects Page - Minimalistic */
.projects-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-item {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-color);
    transition: all 0.2s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-clean);
}

.project-item.featured {
    border-left-width: 4px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
}

.project-header {
    margin-bottom: 1rem;
}

.project-header h2,
.project-header h3 {
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    font-weight: 600;
}

.project-header h2 {
    font-size: 1.5rem;
}

.project-header h3 {
    font-size: 1.25rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    background: var(--red-50);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.project-features {
    margin-bottom: 1.25rem;
}

.project-features h4 {
    color: var(--gray-900);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-features ul {
    list-style: none;
    padding-left: 0;
}

.project-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.project-features li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 0.25rem;
}

.project-link:hover {
    background: var(--primary-color);
    color: var(--text-inverse);
}

/* Technical Stack Section */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-category {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary-color);
}

.tech-category h4 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.tech-tag {
    background: var(--bg-primary);
    color: var(--text-secondary);
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: var(--red-50);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Blog Post Styles */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.post-date,
.post-category,
.read-time {
    padding: 0.25rem 0.5rem;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.terminal-prompt {
    background-color: var(--bg-dark);
    color: var(--text-inverse);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.prompt {
    color: #10b981;
}

.post-content {
    line-height: 1.8;
    margin-bottom: 3rem;
}

.post-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.code-block {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.code-header {
    background-color: var(--bg-secondary);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.code-lang {
    font-weight: 500;
    color: var(--primary-color);
}

.code-block pre {
    background-color: var(--bg-dark);
    color: var(--text-inverse);
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.image-container,
.video-container {
    margin: 2rem 0;
    text-align: center;
}

.post-image,
.post-video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-clean);
}

.image-caption,
.video-caption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

.terminal-output {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.terminal-header {
    background-color: var(--bg-dark);
    color: var(--text-inverse);
    padding: 0.5rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.terminal-header span {
    color: #10b981;
}

.output {
    background-color: var(--bg-secondary);
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    white-space: pre-wrap;
}

.post-tags {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.post-tags h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tag {
    display: inline-block;
    background-color: var(--bg-accent);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-accent);
}

.related-posts {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.related-posts h3 {
    margin-bottom: 1rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-accent);
    border-radius: 4px;
    transition: all 0.2s;
    max-width: 45%;
}

.nav-link:hover {
    background-color: var(--bg-accent);
    border-color: var(--primary-color);
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
}

/* 404 Error Page Styles */
.error-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    text-align: center;
}

.error-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.terminal-window {
    background-color: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-clean);
    max-width: 600px;
    margin: 0 auto;
}

.terminal-header {
    background-color: var(--gray-800);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-header::before {
    content: '● ● ●';
    color: #ff5f56;
    font-size: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.terminal-title {
    color: var(--text-inverse);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    margin-left: auto;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    text-align: left;
}

.terminal-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.terminal-line:nth-child(1) { animation-delay: 0.5s; }
.terminal-line:nth-child(3) { animation-delay: 1.5s; }

.prompt {
    color: #10b981;
    margin-right: 0.5rem;
}

.terminal-output {
    color: var(--text-inverse);
    margin-left: 1rem;
    margin-bottom: 1rem;
}

.error-output {
    color: #ef4444;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.error-message {
    max-width: 600px;
    margin: 0 auto;
}

.error-message h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.error-message p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.error-actions {
    margin: 3rem 0;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.action-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.15);
    border-color: var(--primary-color);
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.action-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.action-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.search-suggestion {
    background-color: var(--bg-accent);
    border: 1px solid var(--border-accent);
    border-radius: 8px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-suggestion h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.search-suggestion p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.search-suggestion a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.search-suggestion a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness for 404 page */
@media (max-width: 768px) {
    .error-container {
        padding: 1rem;
    }
    
    .error-message h1 {
        font-size: 2rem;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-card {
        padding: 1.5rem 1rem;
    }
    
    .terminal-window {
        margin: 0 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* WakaTime Stats Carousel */
.stats-carousel {
    position: relative;
    max-width: 100%;
    margin: 2rem 0;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.stats-carousel-header {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.stats-carousel-header::before {
    content: '● ● ●';
    color: #ff5f56;
    font-size: 0.75rem;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-primary);
}

.carousel-slide img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: var(--text-inverse);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: var(--accent-color);
}

.stats-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.stats-description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Mobile responsiveness for carousel */
@media (max-width: 768px) {
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-nav.prev {
        left: 5px;
    }
    
    .carousel-nav.next {
        right: 5px;
    }
    
    .carousel-slide {
        padding: 1rem;
    }
    
    .stats-title {
        font-size: 1.25rem;
    }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--text-inverse);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    min-width: 140px;
    justify-content: center;
}

.cta-button:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}


@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 200px;
    }
}

/* Gallery Styles */
.gallery-carousel {
    position: relative;
    max-width: 100%;
    margin: 2rem 0;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.gallery-item img {
    max-width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.gallery-caption {
    padding: 0 1rem;
    max-width: 600px;
}

.gallery-caption h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Books Styles */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.book-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.book-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-card.current {
    border-color: var(--accent-color);
    background: var(--red-50);
}

.book-card.completed {
    opacity: 0.9;
}

.book-cover {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.book-placeholder {
    font-size: 0.75rem;
    font-weight: 600;
    width: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.book-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.book-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.reading-progress {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.completion-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.book-notes {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    font-style: italic;
}

.reading-queue {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.queue-item:last-child {
    border-bottom: none;
}

.queue-number {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 20px;
}

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

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

@media (max-width: 768px) {
    .gallery-item img {
        height: 250px;
    }
    
    .books-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .queue-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .queue-number {
        align-self: flex-start;
    }
}

/* CV Download Section */
.cv-download-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.download-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--text-inverse);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

.cv-download-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.cv-download-btn svg {
    flex-shrink: 0;
}

.download-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Download Notification */
.download-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--text-inverse);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.download-notification.show {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 768px) {
    .cv-download-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .cv-download-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    
    .download-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .download-notification.show {
        transform: translateY(0);
    }
}
