/* Font Face Declarations */
@font-face {
    font-family: 'Swear Display';
    src: url('Assets/fonts/Swear Display/SwearDisplayDemo-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Swear Display';
    src: url('Assets/fonts/Swear Display/SwearDisplayDemo-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Swear Display';
    src: url('Assets/fonts/Swear Display/SwearDisplayDemo-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('Assets/fonts/Neue Haas Grotesk/NHaasGroteskDSPro-55Rg.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('Assets/fonts/Neue Haas Grotesk/NHaasGroteskDSPro-65Md.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Neue Haas Grotesk';
    src: url('Assets/fonts/Neue Haas Grotesk/NHaasGroteskDSPro-75Bd.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

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

/* Mobile-first improvements */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    line-height: 1.6;
    color: #5E5955;
    background-color: #FFFAF5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    --navbar-height: 71px; /* Calculated height: 20px (top) + 15px (logo) + 16px (text) + 20px (bottom) */
}

.navbar.scrolled {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 250, 245, 0.8);
    border-bottom: 1px solid rgba(94, 89, 85, 0.1);
}

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

.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image {
    height: 14.58px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo-image:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #5E5955;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #5E5955;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #5E5955;
    transition: width 0.3s ease;
}

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

.nav-link.active {
    color: #5E5955;
}

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

/* Hero Section */
.hero {
    padding: 80px 0 80px;
    background-color: #FFFAF5;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    padding-right: 40px;
}

.hero-title {
    font-family: 'Swear Display', serif;
    font-size: 106px;
    font-weight: 400;
    line-height: 0.9;
    color: #5E5955;
    margin-bottom: 20px;
}

.hero-name {
    font-size: 191.52px;
    display: inline-block;
}

.hero-subtitle {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #5E5955;
    letter-spacing: 1px;
    line-height: 1.4;
    margin-left: 60px;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 90vh;
    border-radius: 8px;
    object-fit: cover;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #FFFAF5;
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #5E5955;
    opacity: 0.3;
}

.about-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    align-items: start;
}

.section-title {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #5E5955;
    letter-spacing: 1px;
    line-height: 1.4;
}

.about-text p {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #5E5955;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-secondary {
    background-color: #666;
    color: white;
    border: none;
    padding: 12px 24px;
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5E5955;
}

/* Featured Projects Section */
.featured-projects {
    padding: 80px 0;
    background-color: #FFFAF5;
    position: relative;
}

.featured-projects::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #5E5955;
    opacity: 0.3;
}

.projects-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

.projects-description p {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #5E5955;
    line-height: 1.6;
    margin-bottom: 30px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Project Card Variants */
.project-card {
    background-color: transparent;
    border-radius: 0;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    background-color: #EEE5DC;
    border-radius: 20px;
    transform: translateY(-5px);
}

/* Variant 1: Text on top */
.project-card.text-top {
    flex-direction: column;
}

.project-card.text-top .project-title {
    order: -1;
    margin-bottom: 15px;
}

/* Variant 2: Text on bottom */
.project-card.text-bottom {
    flex-direction: column;
}

.project-card.text-bottom .project-title {
    order: 1;
    margin-top: 15px;
}

.project-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 8px;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.phone-mockups {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
    height: 100%;
}

.phone-mockup {
    width: 80px;
    height: 160px;
    background-color: #000;
    border-radius: 16px;
    padding: 10px;
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-color: #fff;
}

.pink-app {
    background: linear-gradient(135deg, #FFE5E5, #FFB5B5);
}

.calendar-app {
    background: linear-gradient(135deg, #E5F3FF, #B5D9FF);
}

.tracker-app {
    background: linear-gradient(135deg, #E5FFE5, #B5FFB5);
}

.movie-app {
    background: linear-gradient(135deg, #2C3E50, #34495E);
}

.netflix-app {
    background: linear-gradient(135deg, #E50914, #B20710);
}

.social-app {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.meal-app {
    background: linear-gradient(135deg, #FFF5E5, #FFE5B5);
}

.recipe-app {
    background: linear-gradient(135deg, #FFE5CC, #FFB366);
}

.cooking-app {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
}

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

.project-title {
    font-family: 'Swear Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: #5E5955;
    line-height: 1.2;
    text-align: left;
}

/* Case Study Button */
.case-study-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Neue Haas Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 2;
}

.project-card:hover .case-study-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Work Playlist Section */
.work-playlist {
    padding: 80px 0;
    background-color: #FFFAF5;
}

.playlist-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.playlist-text {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    align-items: start;
}

.playlist-text p {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #5E5955;
    line-height: 1.6;
}

.spotify-player {
    background-color: #1DB954;
    border-radius: 12px;
    padding: 20px;
    color: white;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.spotify-logo {
    font-weight: 700;
    font-size: 14px;
}

.playlist-name {
    font-size: 12px;
    opacity: 0.8;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-info {
    flex: 1;
}

.track-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.track-artist {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.play-btn {
    background-color: white;
    color: #1DB954;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    padding: 40px 0;
    background-color: #5E5955;
    color: white;
    text-align: center;
}

.footer p {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
}

/* Responsive Design - Consolidated */
@media (max-width: 768px) {
    .container,
    .nav-container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .hero {
        padding: 60px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    
    .hero-content {
        padding-right: 0;
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-title {
        font-size: 60px;
        margin-bottom: 15px;
    }
    
    .hero-name {
        font-size: 100px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .hero-image img {
        height: 60vh;
    }
    
    .about,
    .featured-projects {
        padding: 60px 0;
    }
    
    .about-content,
    .projects-header,
    .playlist-text {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .about-text p,
    .projects-description p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .project-image {
        height: 250px;
    }
    
    .phone-mockups {
        gap: 15px;
    }
    
    .phone-mockup {
        width: 60px;
        height: 120px;
    }
    
    .playlist-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 48px;
    }
    
    .project-card {
        height: 300px;
        padding: 20px 20px 20px 20px;
    }
    
    .project-title {
        font-size: 20px;
    }
}

/* Resume-specific styles */
/* Resume Header */
.resume-header {
    position: relative;
    margin-top: 80px; /* Add margin to separate from navbar */
    overflow: hidden;
}

.resume-banner {
    background: linear-gradient(135deg, #F4A261, #E76F51);
    padding: 40px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.resume-scroll-text {
    display: inline-block;
    animation: scroll-left 40s linear infinite;
    white-space: nowrap;
}

.resume-text {
    font-family: 'Swear Display', serif;
    font-size: 60px;
    font-weight: 400;
    color: white;
    opacity: 0.9;
    margin: 0 40px;
    display: inline-block;
}

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

/* Portfolio Header */
.portfolio-header {
    margin-top: 80px;
    padding: 0;
}

/* Portfolio Banner */
.portfolio-banner {
    background-color: #DACDFF;
    padding: 40px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

/* Projects Section */
section.projects {
    margin-top: 80px !important;
    margin-bottom: 80px !important;
}

.portfolio-scroll-text {
    display: inline-block;
    animation: scroll-left 40s linear infinite;
    white-space: nowrap;
}

.portfolio-text {
    font-family: 'Swear Display', serif;
    font-size: 60px;
    font-weight: 400;
    color: #5E5955;
    opacity: 0.9;
    margin: 0 40px;
    display: inline-block;
}

/* Portfolio Grid and Cards */
.portfolio-grid {
    padding: 80px 0;
    background-color: #FFFAF5;
}

.projects-grid-portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.project-card-portfolio {
    background-color: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.project-card-portfolio:hover {
    background-color: #F8EFEF;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image-portfolio {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.phone-mockups-portfolio {
    display: flex;
    gap: 15px;
    align-items: center;
}

.phone-mockup-portfolio {
    width: 80px;
    height: 160px;
    background-color: #000;
    border-radius: 16px;
    padding: 10px;
    position: relative;
}

.phone-screen-portfolio {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-color: #fff;
}

.project-title-portfolio {
    font-family: 'Swear Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: #5E5955;
    line-height: 1.2;
    text-align: center;
}

.resume-hero-image {
    width: 100%;
    height: 45vh;
    overflow: hidden;
}

.resume-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* Professional Profile */
.professional-profile {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.profile-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    align-items: start;
}

.profile-text p {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
}

/* Work Experience */
.work-experience {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.experience-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    align-items: start;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.job {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 40px;
}

.job:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.job-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.job-title {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #5E5955;
}

.company {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #5E5955;
}

.job-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.job-date,
.job-location {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.company-description {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #5E5955;
    margin-bottom: 15px;
    font-style: italic;
}

.job-responsibilities {
    list-style: none;
    padding: 0;
}

.job-responsibilities li {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.job-responsibilities li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #5E5955;
    font-weight: 700;
}

/* Languages */
.languages {
    padding: 80px 0;
    background-color: #f8f8f8;
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background-color: #5E5955;
    opacity: 0.2;
    margin: 0;
    border: none;
}

.languages-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    align-items: start;
}

.languages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.language {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.language-name {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #5E5955;
}

.language-level {
    font-family: 'Neue Haas Grotesk', Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #5E5955;
}

/* Responsive Design for Resume */
@media (max-width: 768px) {
    .resume-header {
        margin-top: 60px;
    }
    
    .resume-banner {
        padding: 30px 0;
    }
    
    .resume-text {
        font-size: 40px;
        margin: 0 20px;
    }
    
    .resume-hero-image {
        height: 40vh;
    }
    
    .profile-content,
    .experience-content,
    .languages-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .job-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .languages-list {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .resume-header {
        margin-top: 50px;
    }
    
    .resume-text {
        font-size: 30px;
        margin: 0 15px;
    }
    
    .resume-hero-image {
        height: 35vh;
    }
    
    .job-responsibilities li {
        font-size: 14px;
    }
}

/* Responsive Design for Main Site */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 80px;
    }
    
    .hero-name {
        font-size: 140px;
    }
    
    .hero-subtitle {
        font-size: 20px;
        margin-left: 40px;
    }
    
    .about-content,
    .projects-header {
        gap: 40px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container,
    .nav-container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .hero {
        padding: 60px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    
    .hero-content {
        padding-right: 0;
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .hero-title {
        font-size: 60px;
        margin-bottom: 15px;
    }
    
    .hero-name {
        font-size: 100px;
    }
    
    .hero-subtitle {
        font-size: 18px;
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .hero-image img {
        height: 60vh;
    }
    
    .about,
    .featured-projects {
        padding: 60px 0;
    }
    
    .about-content,
    .projects-header {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .about-text p,
    .projects-description p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .project-image {
        height: 250px;
    }
    
    .phone-mockups {
        gap: 15px;
    }
    
    .phone-mockup {
        width: 60px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .container,
    .nav-container {
        padding: 0 10px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .hero {
        padding: 40px 0 40px;
    }
    
    .hero-title {
        font-size: 48px;
        margin-bottom: 10px;
    }
    
    .hero-name {
        font-size: 80px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .hero-image img {
        height: 50vh;
    }
    
    .about,
    .featured-projects {
        padding: 40px 0;
    }
    
    .about-content,
    .projects-header {
        gap: 25px;
    }
    
    .section-title {
        font-size: 15px;
    }
    
    .about-text p,
    .projects-description p {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .phone-mockups {
        gap: 10px;
    }
    
    .phone-mockup {
        width: 50px;
        height: 100px;
    }
    
    .btn-secondary {
        padding: 10px 20px;
        font-size: 16px;
    }
}

/* Mobile Navigation Improvements */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 250, 245, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        margin: 20px 0;
        font-size: 24px;
        font-weight: 500;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }
    
    .nav-links.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-links.active .nav-link:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .nav-links.active .nav-link:nth-child(2) {
        transition-delay: 0.2s;
    }
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    visibility: hidden;
    opacity: 0;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
    padding: 0;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #5E5955;
    margin: 5px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Animación del botón hamburguesa a cruz */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* Hide hamburger on desktop */
@media (min-width: 769px) {
    .hamburger {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        position: relative;
        z-index: 1001;
        visibility: visible;
        opacity: 1;
    }
    
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background-color: rgba(255, 250, 245, 0.95) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1000 !important;
    }
    
    .nav-links.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .nav-link {
        margin: 20px 0 !important;
        font-size: 24px !important;
        font-weight: 500 !important;
        opacity: 0 !important;
        transform: translateY(20px) !important;
        transition: all 0.3s ease !important;
    }
    
    .nav-links.active .nav-link {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .nav-links.active .nav-link:nth-child(1) {
        transition-delay: 0.1s !important;
    }
    
    .nav-links.active .nav-link:nth-child(2) {
        transition-delay: 0.2s !important;
    }
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden !important;
}

/* Overlay background when menu is open */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(94, 89, 85, 0.1);
    z-index: 999;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Close button for mobile menu */
.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: none;
}

@media (max-width: 768px) {
    .mobile-close {
        display: block;
    }
    
    .mobile-close::before,
    .mobile-close::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 2px;
        background-color: #5E5955;
        transition: all 0.3s ease;
    }
    
    .mobile-close::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    
    .mobile-close::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}

/* Touch improvements for mobile */
@media (max-width: 768px) {
    .nav-link,
    .btn-secondary,
    .project-card {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .project-card:hover {
        transform: none;
        background-color: transparent;
    }
    
    .project-card:active {
        background-color: #EEE5DC;
        transform: scale(0.98);
    }
    
    /* Improve button touch targets */
    .btn-secondary {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Smooth scrolling for iOS */
    .hero,
    .about,
    .featured-projects,
    .work-playlist {
        -webkit-overflow-scrolling: touch;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-title {
        font-size: 50px;
    }
    
    .hero-name {
        font-size: 80px;
    }
    
    .hero-image img {
        height: 45vh;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-name {
        font-size: 70px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .container,
    .nav-container {
        padding: 0 8px;
    }
    
    .hero {
        padding: 30px 0 30px;
    }
    
    .about,
    .featured-projects {
        padding: 30px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image img,
    .project-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
