/* Dark Mode Terminal-Style Portfolio CSS */
/* Modern minimalist design with developer aesthetic */



/* CSS Variables for Dark Theme */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent-primary: #ff8c42;
    --accent-secondary: #ff6b1a;
    --accent-tertiary: #ff9500;
    --border-primary: #333333;
    --border-secondary: #404040;
    --shadow-primary: rgba(255, 140, 66, 0.1);
    --shadow-secondary: rgba(0, 0, 0, 0.5);
    --mono-font: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', 'Menlo', 'Consolas', monospace;
    --sans-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--sans-font);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-bottom: 1rem;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Hyperlink Styles */
a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent-primary);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

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

/* More specific hyperlink styles for work items */
.work-item p a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-decoration-color: var(--accent-primary);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.work-item p a:hover {
    color: var(--text-primary);
    text-decoration-color: var(--text-primary);
}

/* Navigation */
nav {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-primary);
    backdrop-filter: blur(12px);
}

.nav-logo {
    font-family: var(--mono-font);
    font-weight: 600;
    color: var(--accent-primary);
    font-size: 1.125rem;
    text-decoration: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.github-nav-icon {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.github-nav-icon:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.github-nav-icon svg {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.03) 0%, transparent 50%),
        var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 0 40px var(--shadow-primary);
    position: relative;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

/* Avatar Easter egg styles */
.avatar-checkbox {
    display: none;
}

.avatar-label {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.avatar-label::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/avatar_alternative.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar-checkbox:checked + .avatar-label::after {
    opacity: 1;
}

.avatar-checkbox:checked + .avatar-label .avatar-img {
    opacity: 0;
}

.hero-avatar::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.1; }
}

.hero-greeting {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-greeting .name {
    color: var(--accent-primary);
    font-weight: 600;
}

.hero-typing {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 2rem;
}

.typing-text {
    color: var(--accent-primary);
    font-weight: 500;
    font-family: var(--mono-font);
    border-right: 2px solid var(--accent-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--accent-primary); }
    51%, 100% { border-color: transparent; }
}

.hero-description {
    max-width: 600px;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-description .role {
    color: var(--accent-secondary);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: var(--sans-font);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-1px);
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-bg-secondary {
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Work Items */
.work-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.work-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.tree-nav {
    flex-shrink: 0;
    width: 180px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* Sticky navigation only on desktop */
@media (min-width: 768px) {
    .tree-nav {
        position: sticky;
        top: 4rem;
        align-self: flex-start;
    }
}

.tree-root {
    position: relative;
}

.tree-item {
    display: block;
    padding: 2px 0;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    user-select: none;
    position: relative;
    padding-left: 20px;
}

.tree-item:hover {
    color: var(--accent-primary);
}

.tree-item.root {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    padding-left: 0;
}

.tree-children {
    position: relative;
}

/* Main continuous vertical line */
.tree-children::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-primary);
}

/* Horizontal connectors for each item */
.tree-children .tree-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 16px;
    height: 1px;
    background: var(--border-primary);
}

/* Truncate vertical line at last item */
.tree-children .tree-item:last-child::after {
    content: '';
    position: absolute;
    left: 0;
    top: calc(50% + 1px);
    bottom: 0;
    width: 1px;
    background: var(--bg-secondary);
}

/* Highlight selected items */
#filter-all:checked ~ .work-layout .tree-item.root,
#filter-courses:checked ~ .work-layout label[for="filter-courses"],
#filter-webpages:checked ~ .work-layout label[for="filter-webpages"],
#filter-programming:checked ~ .work-layout label[for="filter-programming"],
#filter-articles:checked ~ .work-layout label[for="filter-articles"],
#filter-case-studies:checked ~ .work-layout label[for="filter-case-studies"] {
    color: var(--accent-primary);
}

/* Light up vertical line and branch when courses is selected */
#filter-courses:checked ~ .work-layout .tree-children::before {
    background: var(--accent-primary);
}
#filter-courses:checked ~ .work-layout label[for="filter-courses"]::before {
    background: var(--accent-primary);
}
/* Truncate highlighting after courses branch */
#filter-courses:checked ~ .work-layout label[for="filter-courses"] ~ .tree-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: calc(-50% + 1px);
    bottom: -50%;
    width: 1px;
    background: var(--bg-secondary);
}

/* Light up vertical line and branch when webpages is selected */
#filter-webpages:checked ~ .work-layout .tree-children::before {
    background: var(--accent-primary);
}
#filter-webpages:checked ~ .work-layout label[for="filter-webpages"]::before {
    background: var(--accent-primary);
}
/* Patch connection point for courses when webpages is selected */
#filter-webpages:checked ~ .work-layout label[for="filter-courses"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1px;
    background: var(--accent-primary);
    z-index: 2;
}
/* Truncate highlighting after webpages branch */
#filter-webpages:checked ~ .work-layout label[for="filter-webpages"] ~ .tree-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: calc(-50% + 1px);
    bottom: -50%;
    width: 1px;
    background: var(--bg-secondary);
}

/* Light up vertical line and branch when programming is selected */
#filter-programming:checked ~ .work-layout .tree-children::before {
    background: var(--accent-primary);
}
#filter-programming:checked ~ .work-layout label[for="filter-programming"]::before {
    background: var(--accent-primary);
}
/* Patch connection points when programming is selected */
#filter-programming:checked ~ .work-layout label[for="filter-courses"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1px;
    background: var(--accent-primary);
    z-index: 2;
}
#filter-programming:checked ~ .work-layout label[for="filter-webpages"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1px;
    background: var(--accent-primary);
    z-index: 2;
}
/* Truncate highlighting after programming branch */
#filter-programming:checked ~ .work-layout label[for="filter-programming"] ~ .tree-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: calc(-50% + 1px);
    bottom: -50%;
    width: 1px;
    background: var(--bg-secondary);
}

/* Light up vertical line and branch when articles is selected */
#filter-articles:checked ~ .work-layout .tree-children::before {
    background: var(--accent-primary);
}
#filter-articles:checked ~ .work-layout label[for="filter-articles"]::before {
    background: var(--accent-primary);
}
/* Patch connection points when articles is selected */
#filter-articles:checked ~ .work-layout label[for="filter-courses"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1px;
    background: var(--accent-primary);
    z-index: 2;
}
#filter-articles:checked ~ .work-layout label[for="filter-webpages"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1px;
    background: var(--accent-primary);
    z-index: 2;
}
#filter-articles:checked ~ .work-layout label[for="filter-programming"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1px;
    background: var(--accent-primary);
    z-index: 2;
}
/* Truncate highlighting after articles branch */
#filter-articles:checked ~ .work-layout label[for="filter-articles"] ~ .tree-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: calc(-50% + 1px);
    bottom: -50%;
    width: 1px;
    background: var(--bg-secondary);
}

/* Light up vertical line and branch when case-studies is selected */
#filter-case-studies:checked ~ .work-layout .tree-children::before {
    background: var(--accent-primary);
}
#filter-case-studies:checked ~ .work-layout label[for="filter-case-studies"]::before {
    background: var(--accent-primary);
}
/* Patch connection points when case-studies is selected */
#filter-case-studies:checked ~ .work-layout label[for="filter-courses"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1px;
    background: var(--accent-primary);
    z-index: 2;
}
#filter-case-studies:checked ~ .work-layout label[for="filter-webpages"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1px;
    background: var(--accent-primary);
    z-index: 2;
}
#filter-case-studies:checked ~ .work-layout label[for="filter-programming"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1px;
    background: var(--accent-primary);
    z-index: 2;
}
#filter-case-studies:checked ~ .work-layout label[for="filter-articles"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 1px;
    background: var(--accent-primary);
    z-index: 2;
}

/* Light up everything when 'all' is selected */
#filter-all:checked ~ .work-layout .tree-children::before,
#filter-all:checked ~ .work-layout .tree-children .tree-item::before {
    background: var(--accent-primary);
}



.work-section input[type="radio"] {
    display: none;
}

#work-grid {
    flex: 1;
}

.work-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

/* CSS-only filtering logic */
.work-item {
    opacity: 1;
    transform: translateY(0);
}

/* Hide all items by default when a specific filter is selected */
#filter-courses:checked ~ .work-layout #work-grid .work-item:not([data-category="courses"]),
#filter-webpages:checked ~ .work-layout #work-grid .work-item:not([data-category="webpages"]),
#filter-programming:checked ~ .work-layout #work-grid .work-item:not([data-category="programming"]),
#filter-articles:checked ~ .work-layout #work-grid .work-item:not([data-category="articles"]),
#filter-case-studies:checked ~ .work-layout #work-grid .work-item:not([data-category="case-studies"]) {
    display: none;
}

.work-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-secondary);
    border-color: var(--accent-primary);
}

.work-item .work-preview {
    height: 6rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.work-item h3 {
    height: 3.5rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.work-item p {
    height: 6rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.work-item .flex.justify-between {
    margin-top: auto;
    flex-shrink: 0;
}

.work-preview {
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.work-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.work-preview svg {
    width: 3rem;
    height: 3rem;
    opacity: 0.7;
}

.work-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.work-badge-web {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.work-badge-webinar {
    background: rgba(147, 51, 234, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(147, 51, 234, 0.2);
}
.work-badge-article {
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.2);
}
.work-badge-case {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.work-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.work-link:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Skills Section */
.skill-card {
    text-align: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 40px var(--shadow-secondary);
}

.skill-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.skill-icon svg {
    width: 2rem;
    height: 2rem;
    color: var(--accent-primary);
}

.skill-list {
    list-style: none;
    text-align: left;
}

.skill-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.875rem;
    color: var(--text-secondary);
}

.skill-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* Contact Section */
.contact-item {
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
}

.contact-icon {
    width: 4rem;
    height: 4rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.contact-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent-primary);
    transition: color 0.3s ease;
}

.contact-item:hover .contact-icon svg {
    color: var(--bg-primary);
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: var(--accent-primary);
}

/* Contact icon link styling */
a.contact-icon {
    text-decoration: none;
    color: inherit;
}

a.contact-icon:hover {
    text-decoration: none;
    color: inherit;
}

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

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

.footer-social a {
    width: 3rem;
    height: 3rem;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Code Styling */
code {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: var(--mono-font);
    font-size: 0.875em;
}

pre {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid var(--border-primary);
    margin: 1.5rem 0;
}

pre code {
    background: transparent;
    padding: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .work-item {
        aspect-ratio: 1;
    }

    .work-item .work-preview {
        height: 5rem;
    }

    .work-item h3 {
        height: 3rem;
    }

    .work-item p {
        height: 5.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .card {
        padding: 1.5rem;
    }

    .work-layout {
        flex-direction: column;
        gap: 2rem;
    }

    .tree-nav {
        width: 100%;
        font-size: 0.9rem;
    }

    .tree-children {
        margin-left: 0;
    }

    .tree-icon {
        margin-right: 0.25rem;
        font-size: 0.7rem;
    }

    .work-item {
        aspect-ratio: 1;
        padding: 1.25rem;
        width: 80%;
        margin: 0 auto;
    }

    .work-item .work-preview {
        height: 4rem;
        margin-bottom: 0.75rem;
    }

    .work-item .work-preview svg {
        width: 2rem;
        height: 2rem;
    }

    .work-item h3 {
        font-size: 1.125rem;
        line-height: 1.75rem;
        margin-bottom: 0.5rem;
        height: auto;
    }

    .work-item p {
        font-size: 0.875rem;
        line-height: 1.25rem;
        margin-bottom: 1rem;
        height: auto;
    }

    .hero-avatar {
        width: 100px;
        height: 100px;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .nav-links {
        display: none;
    }
}

/* Print Styles */
@media print {
    nav, footer, .work-filter, .btn {
        display: none !important;
    }

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

    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #ffffff;
        --border-primary: #666666;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Custom Utilities */
.text-mono {
    font-family: var(--mono-font);
}

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

.glow {
    box-shadow: 0 0 20px var(--shadow-primary);
}

.terminal-prompt::before {
    content: '$ ';
    color: var(--accent-primary);
    font-family: var(--mono-font);
    font-weight: 600;
}

/* Mobile menu link styles */
#mobile-menu a {
    text-decoration: none;
    position: relative;
    display: inline-block;
    width: fit-content;
    color: var(--text-secondary);
}

#mobile-menu .space-y-4 > * {
    display: block;
    width: 100%;
}

#mobile-menu .space-y-4 > a {
    display: block;
    width: fit-content;
}

#mobile-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

#mobile-menu a:hover::after {
    width: 100%;
}

/* Fix scroll offset for fixed navbar */
#experience, #work, #contact {
    scroll-margin-top: 60px;
}

@media (min-width: 768px) {
    #experience, #work, #contact {
        scroll-margin-top: 0;
    }
}
