/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@3.4.0/base.css');
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@3.4.0/components.css');
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@3.4.0/utilities.css');

/* Professional Typography Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* CSS Variables for Theming */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0a;
    --bg-secondary: rgba(28, 28, 28, 0.8);
    --bg-tertiary: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --text-muted: #71717a;
    --accent-primary: #22c55e;
    --accent-primary2: #c52222;
    --accent-secondary: #3b82f6;
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --blur-sm: 4px;
    --blur-md: 8px;
    --blur-lg: 16px;
}

body.light-theme {
    /* Light Theme Overrides */
    --bg-primary: #ffffff;
    --bg-secondary: rgba(255, 255, 255, 0.8);
    --bg-tertiary: rgba(0, 0, 0, 0.05);
    --text-primary: #18181b;
    --text-secondary: #71717a;
    --text-muted: #a1a1a1;
    --border-primary: rgba(0, 0, 0, 0.1);
    --border-secondary: rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    box-sizing: border-box;
}

/* Visitor Counter Styles */
.visitor-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease-out;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
    cursor: pointer;
    margin-top: 0.75rem;
    backdrop-filter: blur(var(--blur-sm));
}

.visitor-counter:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.counter-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.counter-number {
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 1rem;
}

.counter-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Country Modal Styles */
.country-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.country-modal.show {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--blur-sm));
}

.modal-content {
    position: relative;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 1rem;
    padding: 0;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(var(--blur-lg));
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-secondary);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.stats-summary {
    margin-bottom: 2rem;
}

.total-visitors {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-secondary);
}

.total-visitors i {
    color: var(--accent-primary);
}

.total-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.total-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.countries-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.countries-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.country-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background-color: var(--bg-tertiary);
    border-radius: 0.5rem;
    border: 1px solid var(--border-secondary);
}

.country-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.country-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.country-bar {
    width: 100%;
    height: 0.5rem;
    background-color: var(--border-secondary);
    border-radius: 0.25rem;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 0.25rem;
    transition: width 0.3s ease;
}

/* Light theme adjustments */
body.light-theme .visitor-counter {
    background-color: var(--bg-tertiary);
    border-color: var(--border-primary);
}

body.light-theme .visitor-counter:hover {
    background-color: var(--bg-secondary);
}

body.light-theme .modal-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

body.light-theme .modal-content {
    background-color: var(--bg-secondary);
    border-color: var(--border-primary);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Reusable Component Classes */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease-out;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-theme .btn-primary:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s ease-out;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .btn-secondary:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.card {
    border-radius: 0.75rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-secondary);
    backdrop-filter: blur(var(--blur-md));
}

.nav-link {
    position: relative;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 1.25rem;
    transition: all 0.2s ease-out;
    color: var(--text-secondary);
    text-decoration: none;
    z-index: 1;
    white-space: nowrap;
}

.nav-wrapper:hover .nav-link:hover {
    color: var(--bg-primary);
}

.nav-wrapper:not(:hover) .nav-link.active,
.nav-link.active {
    color: var(--bg-primary);
    font-weight: 600;
}

.social-link {
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-out;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
    opacity: 0.8;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--accent-primary);
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
    flex-shrink: 0;
}
.status-dot2 {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--accent-primary2);
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
    flex-shrink: 0;
}

.theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-out;
    border: none;
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    opacity: 0.8;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease-out;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
    cursor: pointer;
    text-decoration: none;
}

.filter-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .filter-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.filter-btn.active {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-theme .filter-btn.active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

/* Blog Post Styles */
.blog-post.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.star-btn.starred {
    background-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.like-btn.liked {
    color: var(--accent-primary);
}

.like-btn.liked i {
    animation: heartBeat 0.6s ease-in-out;
}

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

/* Blog Reader Styles */
.blog-reader {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.blog-reader h1,
.blog-reader h2,
.blog-reader h3,
.blog-reader h4,
.blog-reader h5,
.blog-reader h6 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-reader h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

.blog-reader h2 {
    font-size: 2rem;
}

.blog-reader h3 {
    font-size: 1.5rem;
}

.blog-reader p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.blog-reader blockquote {
    border-left: 4px solid var(--accent-primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted);
}

.blog-reader code {
    background-color: var(--bg-tertiary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.blog-reader pre {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-primary);
}

.blog-reader pre code {
    background: none;
    padding: 0;
}

.blog-reader img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
}

.blog-reader ul,
.blog-reader ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-reader li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* Text Selection and Highlighting */
.blog-reader ::selection {
    background-color: rgba(34, 197, 94, 0.3);
    color: var(--text-primary);
}

.highlighted {
    background-color: rgba(255, 235, 59, 0.3);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.highlight-note {
    position: relative;
    cursor: pointer;
}

.highlight-note:hover::after {
    content: attr(data-note);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-md);
}

/* Blog Editor Styles */
.editor-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    border: 1px solid var(--border-primary);
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all 0.2s ease-out;
    cursor: pointer;
}

.editor-btn:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-secondary);
    opacity: 0.9;
}

.editor-btn:active,
.editor-btn.active {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--bg-tertiary);
    z-index: 100;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Focus States for Accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.nav-link:focus,
.theme-toggle:focus,
.filter-btn:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

input:focus,
textarea:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .nav-header,
    .theme-toggle,
    .mobile-menu-toggle,
    .btn-primary,
    .btn-secondary {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .card {
        border: 1px solid #ccc !important;
        background: white !important;
    }
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-primary);
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-secondary);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
    margin: 2rem 0;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}



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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}



/* Navigation Styles */
.nav-header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    margin-bottom: 0;
}

.nav-container {
    background-color: rgba(40, 40, 40, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    padding: 0.375rem 0.75rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.light-theme .nav-container {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.nav-highlight {
    position: absolute;
    top: 0;
    height: 100%;
    background-color: var(--text-primary);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.mobile-menu-toggle {
    display: none;
}

.hamburger {
    width: 18px;
    height: 2px;
    background-color: currentColor;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

.mobile-menu-toggle.active .hamburger {
    background-color: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.theme-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.sun-icon {
    display: none;
}

body.light-theme .moon-icon {
    display: none;
}

body.light-theme .sun-icon {
    display: block;
}

/* Page Layout */
.page-main {
    padding: 6rem 1rem 4rem;
    min-height: calc(100vh - 200px);
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.profile-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: 2rem;
    border: 3px solid var(--bg-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
}

.profile-image:hover {
    opacity: 0.9;
    border-color: var(--text-primary);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.025em;
}

.hero-bio {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-secondary);
}

.cta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

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

/* Content Sections */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Responsive Design */

/* Responsive Design */
@media (max-width: 768px) {
    .nav-header {
        position: fixed;
        top: 1rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        z-index: 1000;
    }

    .nav-container {
        width: 100%;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        background-color: rgba(40, 40, 40, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    body.light-theme .nav-container {
        background-color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .nav-wrapper {
        position: fixed;
        top: 6rem;
        left: 1rem;
        right: 1rem;
        background-color: rgba(40, 40, 40, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        z-index: 999;
    }

    body.light-theme .nav-wrapper {
        background-color: rgba(255, 255, 255, 0.95);
        border: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    .nav-wrapper.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-highlight {
        display: none;
    }

    .nav-link {
        width: 100%;
        padding: 0.875rem 1.5rem;
        justify-content: flex-start;
        border-radius: 0.75rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-link:hover,
    .nav-link:active {
        background-color: rgba(255, 255, 255, 0.1);
    }

    body.light-theme .nav-link:hover,
    body.light-theme .nav-link:active {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .nav-link.active {
        background-color: var(--text-primary);
        color: var(--bg-primary);
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 50%;
        border: none;
        background: transparent;
        color: var(--text-primary);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-toggle:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    body.light-theme .mobile-menu-toggle:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .hamburger {
        width: 18px;
        height: 2px;
        background-color: currentColor;
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        width: 18px;
        height: 2px;
        background-color: currentColor;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        left: 0;
    }

    .hamburger::before {
        top: -6px;
    }

    .hamburger::after {
        bottom: -6px;
    }

    .mobile-menu-toggle.active .hamburger {
        background-color: transparent;
    }

    .mobile-menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .mobile-menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    .profile-image {
        width: 80px;
        height: 80px;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .cta-container {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .availability-badge {
        padding: 0.5rem 1rem;
        background-color: rgba(34, 197, 94, 0.1);
        border-radius: 9999px;
    }

    .social-links {
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .content-section {
        padding: 2rem 1rem;
    }

    .hero-section {
        padding: 1rem 0;
        margin-top: 0;
    }
}

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

    .page-main {
        padding: 8rem 0.75rem 3rem;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-bio {
        margin-bottom: 2rem;
        font-size: 0.9375rem;
    }

    .availability-badge {
        font-size: 0.8125rem;
    }

    .social-link {
        padding: 0.375rem;
    }

    .content-section {
        padding: 1.5rem 0.75rem;
    }
}

/* Blog Styles - Minimal shadcn-like design */
.blog-header {
    padding: 4rem 1rem 3rem;
    text-align: left;
}

.blog-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

.blog-content {
    padding: 0 1rem 4rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 100%;
}

.blog-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.blog-card:hover {
    border-color: var(--border-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.light-theme .blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-illustration {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-title {
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.blog-card-title a:hover {
    color: var(--accent-primary);
}

.blog-card-company {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    display: block;
}

.blog-card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 2rem;
    height: 2rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Large screens */
@media (min-width: 1200px) {
    .nav-header {
        padding: 1.5rem 0;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .blog-main-title {
        font-size: 3rem;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

/* Mobile responsive for blog */
@media (max-width: 768px) {
    .blog-header {
        padding: 2rem 1rem;
        text-align: center;
    }

    .blog-main-title {
        font-size: 2rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card-content {
        padding: 1.25rem;
    }

    .blog-card-title a {
        font-size: 1.125rem;
    }
}

/* Blog Post Reading Styles */
.blog-post-container {
    padding: 2rem 1rem 4rem;
}

.blog-post-nav {
    margin-bottom: 2rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: var(--text-primary);
}

.blog-post-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-primary);
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.post-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-post-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reading-time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.blog-post-content {
    margin-bottom: 3rem;
}

.prose {
    max-width: none;
    color: var(--text-secondary);
    line-height: 1.7;
}

.prose .lead {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem 0;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose ul, .prose ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose strong {
    color: var(--text-primary);
    font-weight: 600;
}

.code-block {
    margin: 2rem 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    overflow: hidden;
}

.code-block pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'Fira Code', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.code-block code {
    color: var(--text-primary);
    background: none;
}

.blog-post-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-primary);
    margin-bottom: 3rem;
}

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.blog-post-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease-out;
    cursor: pointer;
}

.action-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--border-secondary);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .action-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.blog-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-post {
    display: block;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-post:hover {
    border-color: var(--border-secondary);
    background: var(--bg-tertiary);
}

.nav-post-direction {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.nav-post-title {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.next-post {
    text-align: right;
}

/* Mobile responsive for blog post */
@media (max-width: 768px) {
    .blog-post-title {
        font-size: 2rem;
    }

    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-post-navigation {
        grid-template-columns: 1fr;
    }

    .next-post {
        text-align: left;
    }

    .prose h2 {
        font-size: 1.5rem;
    }

    .prose h3 {
        font-size: 1.25rem;
    }

    .code-block pre {
        padding: 1rem;
        font-size: 0.8125rem;
    }
}

/* Project-specific styles */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 0.375rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease-out;
    font-size: 0.875rem;
}

.project-link:hover {
    background: var(--bg-secondary);
    border-color: var(--border-secondary);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

body.light-theme .project-link:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}