/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #0066cc;
}

.logo a:hover .nav-logo {
    transform: scale(1.05);
}

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

.nav-links a {
    text-decoration: none;
    color: #1d1d1f;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #0066cc;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    color: #1d1d1f;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: visible;
    background: #fff;
}

.hero-content {
    max-width: 50%;
    text-align: left;
    z-index: 1;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: left;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.dog-container {
    position: relative;
    width: 50%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.7);
}

.dog {
    position: relative;
    width: 22.5vmax;
    height: 8.25vmax;
}

.main {
    position: relative;
    width: 22.5vmax;
    height: 8.25vmax;
    display: flex;
    justify-content: center;
    align-items: center;
}

.current-status, .previous-status {
    font-size: 1rem;
    color: #86868b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.education-info, .internship-info {
    margin-bottom: 1rem;
}

.education-info p, .internship-info p {
    font-size: 1.2rem;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.link-with-arrow {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.link-with-arrow i {
    margin-left: 0.5rem;
    font-size: 0.8em;
    transition: all 0.3s ease;
    position: relative;
    top: -1px;
    transform: rotate(45deg);
}

.link-with-arrow:hover {
    color: #0055b3;
}

.link-with-arrow:hover i {
    transform: translate(3px, -3px) rotate(45deg);
}

.cta-button {
    display: none;
}

/* About Section */
.about {
    padding: 6rem 2rem;
    background-color: rgba(255, 255, 255, 0.8);
}

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

.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.intro-section {
    display: grid;
    grid-template-columns: minmax(300px, 400px) 1fr;
    gap: 4rem;
    align-items: start;
    padding: 2rem 0 6rem;
}

.about-image {
    position: sticky;
    top: 120px;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.about-text-content h2 {
    font-size: 2rem;
    color: #1d1d1f;
    margin-bottom: 1rem;
    text-align: left;
}

.about-text-content p {
    font-size: 1.1rem;
    color: #86868b;
    line-height: 1.6;
    margin-bottom: 0;
}

.timelines-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
    padding-top: 4rem;
}

.timeline-section {
    flex: 1;
}

.timeline-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2.5rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: rgba(134, 134, 139, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 1.5rem;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0066cc;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: #86868b;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    text-align: left;
}

.timeline-content {
    text-align: left;
}

.timeline-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    text-align: left;
}

.timeline-content p {
    font-size: 0.95rem;
    color: #86868b;
    line-height: 1.5;
    margin: 0;
    max-width: 90%;
    text-align: left;
}

@media (max-width: 768px) {
    .intro-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem 0 4rem;
    }
    
    .about-image {
        position: relative;
        top: 0;
        text-align: center;
    }
    
    .about-image img {
        max-width: 300px;
    }
    
    .about-text-content h2 {
        text-align: center;
        font-size: 1.75rem;
    }
    
    .timelines-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline-section h2 {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }

    .timeline-content h3 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        max-width: 100%;
    }

    .hero {
        flex-direction: column;
        padding: 8rem 2rem 2rem;
        overflow: visible;
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 0;
    }

    .dog-container {
        width: 100%;
        height: 250px;
        transform: scale(0.6);
        margin-top: -2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .nav-container {
        padding: 1rem 2rem;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 0;
        gap: 2rem;
        justify-content: center;
        align-items: center;
        z-index: 999;
        margin-top: -4rem;
    }

    .nav-links a {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links a:nth-child(4) { transition-delay: 0.4s; }
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    color: #86868b;
    margin-bottom: 1.5rem;
}

/* Skills Carousel */
.skills-section {
    padding: 6rem 2rem 2rem;
    text-align: center;
}

.skills-section h3 {
    color: #86868b;
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 2rem;
}

.skills-section h3:nth-of-type(2) {
    margin-top: 6rem;
}

.skills-section:last-of-type {
    margin-bottom: 2rem;
    padding-bottom: 0;
}

.scroll-container {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    max-width: 100%;
    padding: 20px 0;
}

.scroll-track {
    display: inline-flex;
    animation: scroll 35s linear infinite;
}

.skill-card {
    width: 140px;
    height: 90px;
    margin: 0 15px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 1);
}

.skill-card img {
    max-height: 45px;
    max-width: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skill-card:hover img {
    transform: scale(1.1);
}

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

/* Pause animation on hover */
.scroll-container:hover .scroll-track {
    animation-play-state: paused;
}

/* Projects/Work Section */
#work {
    padding: 1rem 2rem 2rem;
    background-color: rgba(255, 255, 255, 0.3);
    scroll-margin-top: 80px;
}

/* Skills in Work Section */
#work .skills-section {
    margin-bottom: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 2rem 1rem;
}

#work .skills-section:nth-of-type(2) {
    margin-bottom: 1rem;
    padding-bottom: 0;
}

/* Space between carousel and projects */
#work .projects-grid {
    margin-top: 3rem;
}

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

.project-card {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #86868b;
    margin-bottom: 1rem;
}

.project-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background-color: #ffffff;
    padding: 6rem 2rem 4rem;
}

.contact h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-subtitle {
    text-align: center;
    color: #86868b;
    margin-bottom: 3rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-section {
    text-align: left;
}

.contact-section h4 {
    font-size: 1.2rem;
    color: #1d1d1f;
    margin-bottom: 1rem;
    text-align: left;
}

.contact-link {
    display: block;
    color: #0066cc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-link i {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.contact-link:hover {
    color: #004499;
}

.contact-link:hover i {
    transform: rotate(45deg) translate(2px, -2px);
}

.location-text {
    color: #86868b;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    text-align: left;
}

@media (max-width: 768px) {
    .contact-links {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-section {
        text-align: center;
    }
    
    .contact-section h4 {
        text-align: center;
    }
    
    .location-text {
        text-align: center;
    }
}

/* Footer */
footer {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    text-align: center;
    color: #86868b;
}

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

.hero-content,
.about-content,
.project-card,
.contact-content {
    animation: fadeIn 1s ease-out;
}

/* About Page Styles */
.about-page {
    padding: 180px 2rem 6rem;
    background-color: rgba(255, 255, 255, 0.8);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    max-width: 1400px;
    margin: 0 auto;
    right: 0;
}

.floating-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Repositioned icons around the header text */
.icon1 { 
    top: 160px; 
    left: 15%; 
    animation: float1 12s infinite ease-in-out; 
}

.icon2 { 
    top: 120px; 
    left: 25%; 
    animation: float2 14s infinite ease-in-out; 
}

.icon3 { 
    top: 100px; 
    left: 50%; 
    animation: float3 13s infinite ease-in-out; 
}

.icon4 { 
    top: 120px; 
    right: 25%; 
    animation: float4 15s infinite ease-in-out; 
}

.icon5 { 
    top: 160px; 
    right: 15%; 
    animation: float5 11s infinite ease-in-out; 
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(25px, -15px) rotate(8deg); }
    50% { transform: translate(0, 25px) rotate(-5deg); }
    75% { transform: translate(-20px, 15px) rotate(3deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, 20px) rotate(-8deg); }
    50% { transform: translate(25px, 0px) rotate(5deg); }
    75% { transform: translate(0, -25px) rotate(-3deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-25px, -15px) rotate(-5deg); }
    50% { transform: translate(0, 30px) rotate(8deg); }
    75% { transform: translate(25px, 0) rotate(-3deg); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, 25px) rotate(5deg); }
    50% { transform: translate(-25px, -15px) rotate(-8deg); }
    75% { transform: translate(15px, -20px) rotate(3deg); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-25px, 0) rotate(-5deg); }
    50% { transform: translate(15px, 25px) rotate(8deg); }
    75% { transform: translate(25px, -15px) rotate(-3deg); }
}

.about-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 6rem;
    position: relative;
    z-index: 1;
}

.about-header h1 {
    font-size: 3rem;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-size: 2rem;
    color: #86868b;
    margin: 0;
}

.about-text-content h2 {
    font-size: 2rem;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.about-text-content p {
    font-size: 1.1rem;
    color: #86868b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Project Grid Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.project-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-item p {
    font-size: 0.95rem;
    color: #86868b;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.project-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: #86868b;
    letter-spacing: 0.02em;
}

.animated-sentence {
    display: block;
    font-size: 1.2rem;
    color: #86868b;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-align: left;
}

@media (max-width: 768px) {
    .animated-sentence {
        font-size: 1.1rem;
        line-height: 1.5;
        color: #86868b;
        display: block;
        text-align: left;
    }

    .animated-sentence .words {
        display: none;
    }

    .animated-sentence span:first-child {
        display: none;
    }

    .animated-sentence::after {
        content: none;
    }
}

/* Resume Button Styles */
.resume-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    border: 1.5px solid #1d1d1f;
    border-radius: 100px;
    color: #1d1d1f;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2rem;
    letter-spacing: -0.01em;
}

.resume-button i {
    font-size: 1em;
    transform: rotate(-45deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    top: -1px;
}

.resume-button:hover {
    color: #0066cc;
    border-color: #0066cc;
    transform: translateY(-1px);
}

.resume-button:hover i {
    transform: rotate(0deg);
}

.hero-content h4 {
    color: #86868b;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.company-logo-text {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin: 0 2px;
    position: relative;
    top: -1px;
}

.doordash-logo {
    height: 16px;
    top: -2px;
}

/* Game and Team Logos */
.company-logo-text[alt="Arsenal"] {
    height: 24px;
    margin: 0 4px;
}

.company-logo-text[alt="Minecraft"] {
    height: 18px;
    position: relative;
    top: -2px;
}

/* Project Showcase Styles */
.project-showcase {
    padding: 2rem;
    background: #ffffff;
    border-radius: 24px;
    margin: 1rem auto;
    max-width: 1200px;
    scroll-margin-top: 80px;
}

#cupboard {
    padding-top: 4rem;
}

.project-showcase:first-of-type {
    margin-top: 0;
}

.project-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.project-header h3 {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.about-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1d1d1f;
}

.project-header h3 {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.about-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1d1d1f;
}

.about-header {
    font-size: 1.2rem;
    color: #1d1d1f;
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-date {
    font-size: 1.1rem;
    color: #86868b;
}

.project-header {
    font-size: 1.2rem;
    color: #1d1d1f;
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1.1rem;
    color: #86868b;
    line-height: 1.5;
    text-align: center;
    max-width: 600px;
    margin-bottom: 2rem;
}

.project-features {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.feature {
    background: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
}

.device-showcase {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.iphone-container {
    position: relative;
    transition: transform 0.3s ease;
}

.iphone-frame {
    position: relative;
    width: 240px; /* Adjust this to resize */
    aspect-ratio: 1059 / 2048; /* Based on your actual iPhone frame */
}

.android-frame {
    position: relative;
    width: 240px; /* Adjust this to resize */
    aspect-ratio: 1059 / 2048; /* Based on your actual iPhone frame */
}

.frame {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.screen {
    position: absolute;
    width: 91%;
    height: 96%;
    top: 2%;
    left: 4.5%;
    object-fit: cover;
    border-radius: 32px;
}

.iphone-container:hover {
    transform: translateY(-8px);
}

@media (max-width: 768px) {
    .project-showcase {
        padding: 2rem 1rem;
    }

    .device-showcase {
        flex-direction: column;
        gap: 3rem;
    }

    .iphone-frame {
        width: 240px;
        height: 480px;
    }

}

/* MacBook Showcase Styles */
.macbook-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 2rem 0;
}

.macbook-container {
    position: relative;
    width: 100%;
    max-width: 750px;
    transition: transform 0.3s ease;
}

.macbook-container:hover {
    transform: translateY(-8px);
}

.macbook-screen {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .macbook-container {
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .macbook-container {
        max-width: 100%;
        margin: 0 1rem;
    }

    /* Mobile Navigation Styles */
    .nav-container {
        padding: 1rem 2rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links a:nth-child(4) { transition-delay: 0.4s; }

    .menu-btn {
        display: block;
        z-index: 1000;
    }

    /* Update animated sentence styles for mobile */
    .animated-sentence {
        font-size: 1.1rem;
        line-height: 1.5;
        color: #86868b;
        display: block;
        text-align: left;
    }

    .animated-sentence .words {
        display: none;
    }

    .animated-sentence span:first-child {
        display: none;
    }

    .animated-sentence::after {
        content: none;
    }
}

/* Remove scroll indicator styles */
.scroll-indicator {
    display: none;
}

.dot {
    display: none;
}

/* Base image styles */
img {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    will-change: opacity, transform;
}

img.loading {
    opacity: 0;
    transform: scale(0.95);
}

/* Skill card improvements */
.skill-card {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease-out;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.skill-card img {
    opacity: 1;
    max-height: 45px;
    max-width: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
}

/* Project showcase images */
.screen {
    opacity: 1;
    transition: opacity 0.5s ease-out;
    will-change: opacity;
}

.screen.loading {
    opacity: 0;
}

/* Floating icons */
.floating-icon {
    opacity: 1;
    visibility: visible;
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Ensure animations run smoothly */
.scroll-track {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Prevent FOUC (Flash of Unstyled Content) */
.hero-content,
.about-content,
.project-card,
.contact-content {
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 1s ease-out;
    will-change: opacity, transform;
}

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

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

/* Focus styles */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 4px;
    border-radius: 4px;
    transition: outline-offset 0.2s ease;
}

/* Custom focus styles for navigation links */
.nav-links a:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Custom focus styles for buttons */
.menu-btn:focus-visible,
.resume-button:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 4px;
    border-radius: 100px;
}

/* Custom focus styles for contact links */
.contact-link:focus-visible {
    outline: 2px solid #0066cc;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Remove focus outline for non-interactive elements */
[tabindex="-1"]:focus {
    outline: none;
}

/* Organization link styles */
.org-link {
    color: #0066cc;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.org-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.short-text {
    display: none;
}

@media (max-width: 1000px) {
    .full-text {
        display: none;
    }
    
    .short-text {
        display: inline;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .animated-sentence {
        font-size: 1.1rem;
    }
}