:root {
    --accent-color: #cae8bd;
    --bg-dark: #1a1a1a;
    --bg-darker: #0f0f0f;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Skip to main content link for accessibility */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem 1.5rem;
    background: var(--accent-color);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-to-main:focus {
    left: 0;
    top: 0;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #c4ddb2);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(202, 232, 189, 0.5);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #c4ddb2;
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(202, 232, 189, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-logo-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-dark);
    color: var(--accent-color);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Orbitron', 'Space Grotesk', Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    letter-spacing: 1px;
    border: 2px solid var(--accent-color);
    line-height: 44px;
    text-align: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

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

.nav-links a:hover,
.nav-links a:focus {
    color: var(--accent-color);
    outline: none;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    max-width: 800px;
}

.hero .hero-subtitle {
    font-size: 1.8rem !important;
    font-family: 'Space Grotesk', sans-serif;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Marquee Styling */
.hero-content .marquee-container {
    margin-top: 4rem;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    max-width: 800px;
}

.hero-content .marquee-content {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.hero-content .tech-logo {
    height: 40px;
    width: auto;
    filter: grayscale(100%) brightness(0.7) contrast(1.2);
    transition: filter 0.3s ease;
}

.hero-content .tech-logo:hover {
    filter: grayscale(0%) brightness(1) contrast(1);
}

.hero-intro {
    color: #c4ddb2;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.hero-name {
    background: linear-gradient(90deg, #fff 0%, #c4ddb2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    transition: background 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

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

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

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--glass-border);
    padding: 0.75rem 1.5rem;
}

.btn-outline:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

/* Technology Marquee */
.tech-marquee {
    padding: 3rem 0;
    overflow: hidden;
    background: var(--bg-darker);
}

.marquee-container {
    position: relative;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.tech-logo {
    height: 60px;
    width: auto;
    filter: grayscale(100%) brightness(0.8) contrast(1.2);
    transition: filter 0.3s ease;
}

.tech-logo:hover {
    filter: grayscale(0%) brightness(1) contrast(1);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* About Section */
.about {
    padding: 8rem 0;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
}

.about-bio {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

.bio-image, .bio-text {
    min-width: 0;
}

.bio-text {
    width: 100%;
}

.bio-text .marquee-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    margin-top: 2rem;
    padding: 1rem 0;
    box-shadow: none;
    width: 60%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.profile-img {
    width: 100%;
    border-radius: 20px;
    aspect-ratio: 1;
    object-fit: cover;
}

.bio-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.about-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 6rem;
    flex-wrap: wrap;
}

/* Timeline */
.timeline {
    text-align: center;
}

.timeline h3 {
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(80px, 1fr));
    align-items: center;
    position: relative;
    min-height: 120px;
    gap: 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent-color) 60%, #c4ddb2 100%);
    z-index: 1;
    border-radius: 2px;
}

.timeline-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 8px;
    width: 80px;
    background: radial-gradient(circle, #fffbe6 0%, #c4ddb2 60%, transparent 100%);
    opacity: 0.7;
    border-radius: 4px;
    z-index: 2;
    transform: translateY(-50%);
    animation: timeline-glow 2.5s linear infinite;
}

@keyframes timeline-glow {
    0% {
        left: 0%;
        opacity: 0.7;
    }
    80% {
        opacity: 0.7;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
    vertical-align: top;
    /* width, min-width, max-width, height removed for grid */
}

.timeline-content-wrapper {
    width: 100%;
    padding: 0.25rem 0;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--accent-color) 60%, #c4ddb2 100%);
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 3;
    box-shadow: 0 0 0 1px var(--accent-color), 0 1px 4px rgba(0,0,0,0.08);
}

.timeline-year {
    background: var(--accent-color);
    color: var(--bg-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 4rem;
    min-width: 80px;
    font-size: 1.1rem;
    display: inline-block;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.timeline-content {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.2;
    padding: 0;
}

/* Projects Section */
.projects {
    padding: 8rem 0;
    background: var(--bg-darker);
}

.projects h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
}

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

.project-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(202, 232, 189, 0.1);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

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

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

.tag {
    background: rgba(202, 232, 189, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(202, 232, 189, 0.2);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
    height: 40px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.social-links a[aria-label="Email"] {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.social-links a[aria-label="Email"] svg {
    display: block;
    margin: 0 auto;
    height: 24px;
    width: 24px;
}

.social-links a[aria-label="Email"] .fa-at {
    font-size: 18px;
    line-height: 24px;
    vertical-align: middle;
    display: block;
    margin: 0 auto;
}

.social-links a[aria-label="Email"] .fa-envelope {
    font-size: 18px;
    line-height: 24px;
    vertical-align: middle;
    display: inline-block;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-dark);
    margin: 2% auto;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1;
    cursor: pointer;
    background: var(--bg-darker);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--accent-color);
}

.modal-hero {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.modal-body {
    padding: 2rem;
}

.modal-body h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.modal-overview {
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
}

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

.detail-item {
    background: var(--bg-darker);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
}

.modal-section {
    margin-bottom: 2rem;
    position: relative;
}
.modal-section .copy-btn {
    position: absolute;
    top: 10px;
    right: 18px;
    background: var(--accent-color);
    color: var(--bg-dark);
    border: 1.5px solid var(--accent-color);
    border-radius: 6px;
    padding: 0.3em 0.8em;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 2;
    opacity: 0.95;
    font-weight: 600;
}
.modal-section .copy-btn:hover {
    background: var(--bg-dark);
    color: var(--accent-color);
    border: 1.5px solid var(--accent-color);
    opacity: 1;
}

.modal-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.modal-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
li {
    /* Turn the list item into a flex container. */
    display: flex;
  }
  
  li::before {
    /* This creates the bullet point. */
    content: "•"; /* You can use any character or an image here */
    
    /* Adjust the spacing between the bullet and the text. */
    padding-right: 20px; 
    
    /* You can also add color or other styling to the bullet. */
    color: #cae8bd; /* Example color */
  }
  
  ul {
    /* You must remove the default list styling when using this method. */
    list-style-type: none; 
    padding-left: 0; /* Remove default padding */
}
.modal-section ul {
    list-style-position: outside; /* Places bullet outside the text flow */
    padding-left: 1em;       /* Indents the entire list (bullets and text) */
    margin-top: 1em;
}

.modal-section li {
    color: var(--text-secondary);
    margin-top: 1rem;     /* Space between list items */
    margin-bottom: 0rem;
    padding-left: 4em;       /* Small space between bullet and text */
    padding-right: 4em; 
}

blockquote {
    background: var(--glass-bg);
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--text-primary);
}

/* Mobile Menu Hamburger Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

img[src=""] {
    opacity: 0;
}

/* COMPREHENSIVE RESPONSIVE DESIGN - Mobile First Approach */

/* Small devices (phones, up to 600px) - Single column priority */
@media (max-width: 600px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-dark);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding-top: 80px;
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .hero p {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 1rem 1.5rem;
    }
    
    .hero-content .marquee-container {
        margin-top: 2.5rem;
        padding: 1rem 0;
        max-width: 100%;
    }
    
    .hero-content .marquee-content {
        gap: 2rem;
    }
    
    .hero-content .tech-logo {
        height: 28px;
    }
    
    .about {
        padding: 4rem 0;
    }
    
    .about h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .about-bio {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .bio-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .about-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .about-links .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .timeline-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        min-height: auto;
    }
    
    .timeline-container::before,
    .timeline-container::after {
        display: none;
    }
    
    .timeline-item {
        min-width: auto;
        width: 100%;
        padding: 1rem;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: 10px;
    }
    
    .timeline-item::after {
        display: none;
    }
    
    .projects {
        padding: 4rem 0;
    }
    
    .projects h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .projects-carousel {
        width: 100%;
        max-width: none;
        margin: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .projects-carousel::before,
    .projects-carousel::after {
        display: none;
    }
    
    .projects-track {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .project-card {
        min-width: min(280px, 85vw);
        max-width: none;
        flex: 0 0 min(280px, 85vw);
    }
    
    .project-card:first-child {
        margin-left: 0;
    }
    
    .project-card:last-child {
        margin-right: 0;
    }
    
    .contact {
        padding: 4rem 0;
    }
    
    .contact h2 {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 2% auto;
        max-height: 95vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-body h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .tech-logo {
        height: 30px;
    }
    
    .bio-text .marquee-container {
        width: 95%;
    }
    
    .bio-text .tech-logo {
        max-height: 30px;
        max-width: 60px;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Medium devices (tablets, 600px to 992px) - Two-column layouts */
@media (min-width: 601px) and (max-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links a {
        font-size: 0.95rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        gap: 1rem;
    }
    
    .hero-content .marquee-container {
        margin-top: 3rem;
        max-width: 650px;
    }
    
    .hero-content .tech-logo {
        height: 36px;
    }
    
    .about-bio {
        grid-template-columns: 250px 1fr;
        gap: 3rem;
        text-align: left;
    }
    
    .about-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .timeline-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .projects-carousel {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        overflow: hidden;
    }
    
    .projects-carousel::before,
    .projects-carousel::after {
        width: 20px;
    }
    
    .projects-track {
        padding-left: 0;
        padding-right: 0;
    }
    
    .project-card {
        min-width: 320px;
        max-width: 380px;
    }
    
    .project-card:first-child {
        margin-left: 0;
    }
    
    .project-card:last-child {
        margin-right: 0;
    }
    
    .modal-content {
        width: 85%;
        max-width: 800px;
    }
    
    .bio-text .marquee-container {
        width: 75%;
    }
}

/* Large devices (desktops, 992px and up) - Full layout */
@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-links {
        gap: 2rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.25rem;
    }
    
    .about-bio {
        grid-template-columns: 300px 1fr;
        gap: 4rem;
    }
    
    .timeline-container {
        grid-template-columns: repeat(5, minmax(80px, 1fr));
    }
    
    .projects-carousel {
        width: 125%;
        max-width: 1700px;
        margin-left: -12.5%;
        margin-right: -12.5%;
    }
    
    .project-card {
        min-width: 350px;
        max-width: 400px;
    }
    
    .bio-text .marquee-container {
        width: 85%;
    }
}

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

/* Focus styles for accessibility */
button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

a:focus:not(.nav-links a) {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(202, 232, 189, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #ffffff;
        --glass-border: rgba(255, 255, 255, 0.3);
    }
}

.bio-text .marquee-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    margin-top: 2rem;
    padding: 1rem 0;
    box-shadow: none;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.bio-text .marquee-content {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    animation: scroll 30s linear infinite;
    width: fit-content;
}

.bio-text .tech-logo {
    max-height: 40px;
    max-width: 80px;
    width: auto;
    height: auto;
    margin: 0 0.5rem;
}

.social-links a i {
    font-size: 22px;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
}

.projects-carousel {
    width: 125%;
    max-width: 1700px;
    margin-left: -12.5%;
    margin-right: -12.5%;
    overflow: hidden;
    position: relative;
    margin-bottom: 0rem;
}
.projects-carousel::before,
.projects-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.projects-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-darker) 60%, transparent 100%);
}
.projects-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-darker) 60%, transparent 100%);
}
.projects-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}
.project-card {
    min-width: 350px;
    max-width: 400px;
    flex: 0 0 auto;
}
.project-card:first-child {
    margin-left: 80px;
}
.project-card:last-child {
    margin-right: 80px;
}
.projects-carousel::-webkit-scrollbar {
    display: none;
}
.projects-carousel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-section pre {
    background: #181c24;
    color: #e6e6e6;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    line-height: 1.6;
    border: 1.5px solid #23283a;
    white-space: pre-wrap;
    max-width: 100%;
    position: relative;
}
.modal-section code {
    background: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    white-space: pre-wrap;
}
.code-lines {
    display: flex;
}
.code-lines .line-numbers {
    user-select: none;
    text-align: right;
    color: #888;
    background: #161922;
    padding-right: 1em;
    border-right: 1.5px solid #23283a;
    font-size: 0.97em;
    min-width: 2.5em;
    margin-right: 0.7em;
    line-height: 1.6;
}
.code-lines .code-content {
    white-space: pre-wrap;
    flex: 1;
}
/* Optional: basic Python syntax highlighting */
.modal-section code .k, .modal-section code .kn, .modal-section code .kc {
    color: #ffcb6b;
}
.modal-section code .s, .modal-section code .sd {
    color: #c3e88d;
}
.modal-section code .c, .modal-section code .cm {
    color: #616161;
    font-style: italic;
}
.modal-section code .nf {
    color: #82aaff;
}
.modal-section code .nn {
    color: #f78c6c;
}