:root {
    --bg-color: #fff;
    --text-color: #333;
    --heading-color: #222;
    --muted-text: #666;
    --link-color: #0066cc;
    --link-color-rgb: 0, 102, 204;
    --border-color: #ddd;
    --light-border: #eee;
    --card-bg: #f9f9f9;
    --status-open: #d4edda;
    --status-open-text: #155724;
    --status-closed: #f8d7da;
    --status-closed-text: #721c24;
    --status-merged: #e2e3ff;
    --status-merged-text: #383d41;
    /* Typography */
    --font-mono: 'Roboto Mono', 'Courier New', monospace;
}

[data-theme="dark"] {
    --bg-color: #0f1419;
    --text-color: #e6e9ea;
    --heading-color: #ffffff;
    --muted-text: #b0b3b6;
    --link-color: #1da1f2;
    --link-color-rgb: 29, 161, 242;
    --border-color: #2f3336;
    --light-border: #38444d;
    --card-bg: #1c1f23;
    --status-open: #1b5e20;
    --status-open-text: #81c784;
    --status-closed: #b71c1c;
    --status-closed-text: #ef5350;
    --status-merged: #311b92;
    --status-merged-text: #9575cd;
}

/* Loading skeleton animations */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, 
        var(--card-bg) 25%, 
        var(--light-border) 50%, 
        var(--card-bg) 75%
    );
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1em;
    margin: 0.5em 0;
}

.skeleton-text.short {
    width: 60%;
}

.skeleton-text.medium {
    width: 80%;
}

.skeleton-text.long {
    width: 100%;
}

.skeleton-card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
}

/* Loading state for GitHub section */
.github-loading {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.github-loading .skeleton-card {
    height: 120px;
}

/* Performance optimizations */
.horizontal-container {
    transform: translateZ(0); /* Force hardware acceleration for smooth scrolling */
}


.project-card,
.skill-item,
.social-icon,
.nav-links a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.skill-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--link-color-rgb), 0.2);
}

.social-icon:hover {
    transform: scale(1.2) rotate(10deg);
    filter: brightness(1.2);
}

.nav-links a:hover {
    transform: translateX(4px);
    color: var(--link-color);
}

/* Enhanced button effects */
.cta-button,
.mobile-menu-toggle {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

/* Smooth loading states */
.loading {
    background: linear-gradient(90deg, var(--text-color) 25%, var(--link-color) 50%, var(--text-color) 75%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth section transitions */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced progress indicators */
.buffer-indicator {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

.buffer-indicator.active {
    transform: scaleX(1.1);
    box-shadow: 0 0 20px var(--buffer-zone-color);
}

/* Subtle pulse animation for interactive elements */
@keyframes subtle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.interactive-pulse:hover {
    animation: subtle-pulse 2s infinite;
}

/* Enhanced card hover states */
.card-hover-effect {
    position: relative;
    transition: all 0.3s ease;
}

.card-hover-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(var(--link-color-rgb), 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-hover-effect:hover::after {
    opacity: 1;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
    overflow-y: hidden; /* Prevent vertical scrolling */
    height: 100vh;
    transition: all 0.3s ease;
}

/* Ensure content stays above background */
header, main, footer {
    position: relative;
    z-index: 10;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    gap: 0.5rem;
}

/* Dark mode header adjustments */
[data-theme="dark"] header {
    background: rgba(26, 26, 26, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Static name and role styles with JetBrains Mono */
.name, .role {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    white-space: nowrap;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading-color);
}

.role {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--muted-text);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.social-link {
    color: var(--muted-text);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

.social-link:hover {
    color: var(--link-color);
    transform: translateY(-2px);
}

.social-icon {
    width: 18px !important;
    height: 18px !important;
    fill: currentColor;
}

/* Navigation Menu */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--muted-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    cursor: pointer;
}

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

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

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

.nav-links a.active {
    color: var(--link-color);
}

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

/* Navigation Dots */
.nav-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--link-color);
    border-color: var(--link-color);
}

.nav-dot:hover {
    transform: scale(1.2);
}

/* Horizontal Container */
.horizontal-container {
    display: flex;
    height: 100vh;
    width: 600vw; 
    padding-top: 11rem;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0);
}

.horizontal-section {
    width: 100vw;
    height: calc(100vh - 11rem); 
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0.3;
    transition: opacity 0.6s ease;
}

.horizontal-section.active {
    opacity: 1;
}

.section-content {
    max-width: 700px;
    width: 90%;
    height: 80%; 
    overflow-y: auto;
    padding: 2rem;
    background: transparent;
    border-radius: 12px;
    box-shadow: none;
    margin-top: 2rem; 
    position: relative;
    transition: all 0.3s ease;
}

.section-content.buffer-zone-top {
    box-shadow: 0 -3px 15px rgba(var(--link-color-rgb, 0, 102, 204), calc(0.3 * var(--buffer-progress, 0))),
                0 0 0 1px var(--border-color);
}

.section-content.buffer-zone-bottom {
    box-shadow: 0 3px 15px rgba(var(--link-color-rgb, 0, 102, 204), calc(0.3 * var(--buffer-progress, 0))),
                0 0 0 1px var(--border-color);
}

.section-content.buffer-zone-top::before,
.section-content.buffer-zone-bottom::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: calc(60% * var(--buffer-progress, 0));
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--link-color) 20%,
        var(--link-color) 80%,
        transparent 100%);
    opacity: var(--buffer-progress, 0);
    transition: all 0.2s ease;
    z-index: 10;
}

.section-content.buffer-zone-top::before {
    top: -1px;
    border-radius: 0 0 4px 4px;
}

.section-content.buffer-zone-bottom::after {
    bottom: -1px;
    border-radius: 4px 4px 0 0;
}

/* Buffer zone progress indicator */
.section-content.buffer-zone-top::after,
.section-content.buffer-zone-bottom::before {
    content: '↑ Continue scrolling to previous section';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: var(--link-color);
    background: var(--bg-color);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    border: 1px solid var(--link-color);
    opacity: calc(var(--buffer-progress, 0) * 2 - 0.5);
    white-space: nowrap;
    pointer-events: none;
    z-index: 15;
    transition: opacity 0.2s ease;
}

.section-content.buffer-zone-top::after {
    top: -2.5rem;
}

.section-content.buffer-zone-bottom::before {
    content: '↓ Continue scrolling to next section';
    bottom: -2.5rem;
}

.section-content::-webkit-scrollbar {
    width: 8px;
}

.section-content::-webkit-scrollbar-track {
    background: var(--accent-color);
    border-radius: 4px;
}

.section-content::-webkit-scrollbar-thumb {
    background: var(--muted-text);
    border-radius: 4px;
}

.section-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-color);
}

/* Navigation Menu */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    text-align: center;
    padding: 0.75rem;
    font-size: 0.8rem;
    color: var(--muted-text);
    z-index: 50;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    z-index: 1000;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--link-color);
    width: 0%;
    transition: width 0.1s ease;
}

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

section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

/* Stagger animation delays for sections */
section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* Remove all decorative borders - keep only essential separators */
.horizontal-section {
    border: none !important;
}

.section-content {
    border: none !important;
}

footer {
    border-top: none !important;
}

.project-item {
    border: none !important;
}

.pr-item {
    border: none !important;
}

.skeleton-card {
    border: none !important;
}

/* Keep only essential separators */
header {
    border-bottom: 1px solid var(--border-color);
}

.section-content h2 {
    border-bottom: 1px solid var(--border-color);
}

h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--heading-color);
    line-height: 1.4;
}

h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    color: var(--heading-color);
    letter-spacing: -0.005em;
}

h5 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--link-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
}

.tech-category {
    margin-bottom: 1.5rem;
}

.tech-category:first-child {
    margin-top: 0;
}

.sub-category {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

.about-content {
    margin-bottom: 2rem;
}

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

.tech-category {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.tech-category h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
    color: var(--heading-color);
}

.tech-category .sub-category {
    margin-left: 0;
    margin-top: 0.5rem;
}

.tech-category .sub-category h5 {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: var(--link-color);
}

.tech-category .skills-list {
    margin-bottom: 0;
    list-style: none;
    padding-left: 0;
}

.tech-category .skills-list li {
    padding: 0.15rem 0 0.15rem 1rem;
    font-size: 0.85rem;
    position: relative;
    line-height: 1.4;
}

.tech-category .skills-list li:before {
    content: "•";
    color: var(--muted-text);
    position: absolute;
    left: 0;
    font-weight: normal;
}

/* Projects Section */
#projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.project-item {
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.project-title {
    font-weight: 600;
    color: var(--link-color);
    text-decoration: none;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.project-title:hover {
    text-decoration: underline;
}

.project-meta {
    font-size: 0.8rem;
    color: var(--muted-text);
    margin-bottom: 0.75rem;
}

.project-description {
    margin-bottom: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
}

.project-stats {
    font-size: 0.75rem;
    color: var(--muted-text);
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

/* Open Source Section */
.contributions-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.contributed-repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.contributed-repo-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.contributed-repo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.repo-title {
    font-weight: 600;
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.repo-title:hover {
    text-decoration: underline;
}

.repo-meta {
    font-size: 0.75rem;
    color: var(--muted-text);
    margin-bottom: 0.5rem;
}

.repo-description {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-color);
}

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

.pr-item {
    padding: 1.5rem;
    border-radius: 8px;
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.pr-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.pr-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.status-open {
    background: #d4edda;
    color: #155724;
}

.status-closed {
    background: #f8d7da;
    color: #721c24;
}

.status-merged {
    background: #e2e3ff;
    color: #383d41;
}

.pr-title {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin: 0.5rem 0;
    font-weight: 500;
}

.pr-title:hover {
    text-decoration: underline;
}

.pr-meta {
    font-size: 0.75rem;
    color: var(--muted-text);
}

.project-item, .pr-item, .issue-item {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-item:hover, .pr-item:hover, .issue-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-item:last-child,
.pr-item:last-child,
.issue-item:last-child {
    margin-bottom: 0;
}

.project-title {
    font-weight: bold;
    color: var(--link-color);
    text-decoration: none;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.project-title:hover {
    text-decoration: underline;
}

.project-meta {
    font-size: 0.8rem;
    color: var(--muted-text);
    margin-bottom: 0.5rem;
}

.project-description {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.project-stats {
    font-size: 0.75rem;
    color: var(--muted-text);
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--link-color);
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Experience section styles */
.experience-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--light-border);
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.experience-item h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

.experience-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--muted-text);
}

.experience-meta .company {
    font-weight: bold;
    color: var(--link-color);
}

.experience-meta .location {
    font-style: italic;
}

.experience-meta .period {
    color: var(--text-color);
    font-weight: 500;
}

.experience-details {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.experience-details li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.experience-details li:before {
    content: "▹";
    color: var(--link-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.blog-section {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    margin-bottom: 2rem;
}

.blog-link {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
}

.blog-link:hover {
    text-decoration: underline;
}

.contributions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.pr-status, .issue-status {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.status-open {
    background: var(--status-open);
    color: var(--status-open-text);
}

.status-closed {
    background: var(--status-closed);
    color: var(--status-closed-text);
}

.status-merged {
    background: var(--status-merged);
    color: var(--status-merged-text);
}

.pr-title, .issue-title {
    color: var(--link-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.pr-title:hover, .issue-title:hover {
    text-decoration: underline;
}

.pr-meta, .issue-meta {
    font-size: 0.75rem;
    color: var(--muted-text);
}

.loading {
    text-align: center;
    color: var(--muted-text);
    font-style: italic;
    padding: 2rem;
}

footer {
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted-text);
}

/* Social Links in Header */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.social-link {
    color: var(--link-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.social-link:hover {
    background: var(--link-color);
    color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Code and technical elements */
code, pre, .tech-item, .language-tag {
    font-family: var(--font-mono);
    font-weight: 500;
    background: var(--card-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-size: 0.9em;
    color: var(--link-color);
}

/* Repository names and technical terms */
.repo-name, .tech-stack-item {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.9em;
}
.theme-toggle {
    position: absolute;
    top: 2rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    width: 50px;
    height: 28px;
}

.toggle-track {
    position: relative;
    width: 100%;
    height: 100%;
    background: #e5e5e5;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.toggle-icon-light {
    left: 6px;
}

.toggle-icon-dark {
    right: 6px;
}

.theme-toggle[aria-checked="false"] .toggle-icon-light {
    opacity: 0;
}

.theme-toggle[aria-checked="false"] .toggle-icon-dark {
    opacity: 0.6;
}

.theme-toggle[aria-checked="true"] .toggle-icon-light {
    opacity: 0.6;
}

.theme-toggle[aria-checked="true"] .toggle-icon-dark {
    opacity: 0;
}

.toggle-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-knob::before {
    content: "";
    transition: all 0.3s ease;
}

.theme-toggle[aria-checked="true"] .toggle-track {
    background: var(--link-color);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.theme-toggle[aria-checked="true"] .toggle-knob {
    left: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover .toggle-track {
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

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

.theme-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Mobile hamburger menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: var(--card-bg);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

/* Hamburger animation when open */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        position: relative;
    }

    .header-content {
        gap: 0.5rem;
        flex: 1;
        margin-left: 50px; 
    }

    .social-links {
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-color);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-right: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        font-size: 1rem;
        transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1000;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.mobile-open {
        left: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--light-border);
        font-weight: 500;
        color: var(--text-color);
    }

    .nav-links a:last-child {
        border-bottom: none;
        margin-top: 1rem;
        background: var(--link-color);
        color: white;
        text-align: center;
        padding: 1rem;
        border-radius: 8px;
        text-decoration: none;
    }

    .nav-links a:last-child:hover {
        background: var(--heading-color);
    }

    /* Mobile overlay */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .social-icon {
        width: 16px !important;
        height: 16px !important;
    }

    .horizontal-container {
        padding-top: 8rem; 
    }

    .horizontal-section {
        height: calc(100vh - 8rem);
        padding: 1rem;
    }

    .section-content {
        padding: 1.5rem;
    }

    .nav-dots {
        right: 1rem;
    }

    .technologies-grid {
        grid-template-columns: 1fr;
    }

    #projects-list {
        grid-template-columns: 1fr;
    }

    .contributed-repos-grid,
    .pr-grid {
        grid-template-columns: 1fr;
    }

    .experience-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* Mobile-friendly buffer indicators */
    .section-content.buffer-zone-top::after,
    .section-content.buffer-zone-bottom::before {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
        top: -2rem;
    }

    .section-content.buffer-zone-bottom::before {
        bottom: -2rem;
    }
}

@media (max-width: 480px) {
    .section-content {
        padding: 1rem;
    }
    
    .nav-dot {
        width: 10px;
        height: 10px;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .nav-links a {
        display: inline-block;
        margin: 0;
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }

    .nav-links a:hover {
        background-color: var(--card-bg);
    }

    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .subtitle {
        font-size: 1rem;
    }

    .social-links {
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .social-link {
        width: 36px;
        height: 36px;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }

    .theme-toggle .toggle-track {
        border-radius: 12px;
    }

    .theme-toggle .toggle-knob {
        width: 21px;
        height: 21px;
    }

    .theme-toggle .toggle-knob::before {
        font-size: 12px;
    }

    .theme-toggle[aria-checked="true"] .toggle-knob {
        left: 22px;
    }

    /* Experience mobile styles */
    .experience-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .experience-details li {
        padding-left: 0.75rem;
        font-size: 0.9rem;
    }
}
