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

:root {
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-accent: #4d65ff;
    --color-gray: #666666;
    --color-light-gray: #f5f5f5;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --spacing-unit: 1rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: #000000;
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease;
}

body.page-ready {
    background-color: var(--color-bg);
}

body.loading {
    overflow: hidden;
    background: #000000;
}

body.loading .hero,
body.loading .nav,
body.loading .section {
    visibility: hidden;
}


.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled .nav-links-centered {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(40px) saturate(180%) brightness(105%);
    -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(105%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav.scrolled .nav-links-centered:hover {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 1);
}

.nav.scrolled .nav-links-centered a {
    color: #000000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    isolation: isolate;
}

.nav-links-centered {
    display: flex;
    gap: 3rem;
    align-items: center;
    position: relative;
    padding: 1rem 2.75rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(40px) saturate(180%) brightness(110%);
    -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(110%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.nav-links-centered:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
}


.nav-links-centered a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
                 0 1px 2px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0.25rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.nav-links-centered a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 100%);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-links-centered a:hover::before {
    width: 80%;
}

.home-icon {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.home-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
}

.home-icon:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
}

.home-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5))
            drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.home-icon:hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6))
            drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.nav.scrolled .home-icon svg {
    stroke: #000000;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.nav-links-centered a:hover {
    color: rgba(255, 255, 255, 1);
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.nav.scrolled .nav-links-centered a {
    color: #000000;
    text-shadow: none;
}

.nav.scrolled .nav-links-centered a:hover {
    color: #000000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.nav.scrolled .nav-links-centered a::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.6) 50%,
        transparent 100%);
}

.nav-links-centered a:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for mobile */
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to bottom,
                rgba(20, 40, 70, 1) 0%,
                rgba(10, 25, 50, 1) 40%,
                rgba(0, 0, 0, 1) 100%);
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: grayscale(100%) brightness(0.95);
}

/* Tablet - position image to the right */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-bg-image {
        object-fit: cover;
        object-position: 35% center;
    }

    .hero-name {
        font-size: clamp(3rem, 9vw, 7.5rem);
    }
}

/* Mobile Portrait - position to the right to show full person */
@media (max-width: 768px) and (orientation: portrait) {
    .hero {
        height: 100vh;
        height: 100svh; /* Small viewport height */
        min-height: -webkit-fill-available;
    }

    .hero-bg-image {
        content: url('../images/hero/evgo2.webp');
        object-fit: cover;
        object-position: center center;
        width: 100%;
        height: 100%;
    }

    .hero-content-wrapper {
        padding: 2.5rem 1.5rem 3rem;
        width: 100%;
    }

    .hero-name {
        font-size: clamp(2.5rem, 10vw, 6rem);
    }
}

/* ========================================
   MOBILE LANDSCAPE - FONT ADJUSTMENT AREA
   ======================================== */
/* Mobile Landscape - adjust for horizontal */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100lvh; /* Large viewport height */
        min-height: 100vh;
        min-height: 100lvh;
        margin: 0;
        padding: 0;
    }

    .hero-bg-image {
        position: fixed;
        top: 0;
        left: 0;
        object-fit: cover;
        /* ADJUST IMAGE POSITION: First value = horizontal (center/left/right), Second value = vertical (30% moves face up) */
        object-position: center 30%;
        width: 100vw;
        height: 100vh;
        height: 100lvh;
    }

    .hero-content-wrapper {
        /* ADJUST PADDING: Top Right Bottom Left - controls spacing around the name */
        padding: 1rem 1.5rem 1rem;
        display: flex;
        align-items: flex-end;
    }

    .hero-name {
        /* ADJUST FONT SIZE: Format is clamp(minimum, preferred, maximum) */
        /* Current: min=1.25rem, preferred=4vh (4% of viewport height), max=2rem */
        /* To make SMALLER: reduce all three values (e.g., 1rem, 3vh, 1.5rem) */
        /* To make LARGER: increase all three values (e.g., 1.5rem, 5vh, 2.5rem) */
        font-size: clamp(1.25rem, 4vh, 2rem);

        /* ADJUST LINE HEIGHT: Controls spacing between lines (0.9 is tight, 1.2 is loose) */
        line-height: 0.9;
    }

    /* Adjust navigation for landscape */
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-links-centered {
        gap: 0.75rem;
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .nav-links-centered a {
        font-size: 0.625rem;
        padding: 0.3rem 0.1rem;
        min-height: 32px;
    }

    .home-icon {
        padding: 0.25rem;
    }

    .home-icon svg {
        width: 12px;
        height: 12px;
    }

    .section-title .line {
        display: inline;
    }
}
/* ======================================== */

/* Small phones - use evgo2 image */
@media (max-width: 480px) {
    .hero {
        height: 100vh;
        height: 100svh;
        min-height: -webkit-fill-available;
    }

    .hero-bg-image {
        content: url('../images/hero/evgo2.webp');
        object-fit: cover;
        object-position: center center;
    }
}

.hero-overlay {
    display: none;
}

.hero-content-wrapper {
    position: relative;
    width: 100%;
    padding: 4rem;
    padding-left: calc(8rem + 6px);
    padding-bottom: 6rem;
    z-index: 10;
}

.hero-name {
    font-size: clamp(2.9375rem, 12vw, 9.9375rem);
    font-family: 'Helvetica Neue', 'Helvetica', Arial, sans-serif;
    font-weight: 100;
    line-height: 0.85;
    color: #000000;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-stroke: 0.3px rgba(0, 0, 0, 0.8);
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #000000;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 2.5rem;
    text-align: center;
}

.name-line {
    display: block;
}

.name-line:first-child {
    text-transform: capitalize;
}

.name-line:last-child {
    text-transform: capitalize;
}

/* Remove scroll indicator - keeping it simple */
.scroll-indicator {
    display: none;
}

/* Section Styles */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gray);
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 4rem;
    max-width: 900px;
}

.section-title .line {
    display: block;
    overflow: hidden;
}

/* About Section */
.about-grid {
    display: block;
    max-width: 800px;
}

.about-text p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Inline text links within content */
.inline-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: opacity 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
}

.inline-link:hover {
    opacity: 0.7;
    border-bottom: 1px solid var(--color-text);
}

/* Touch device support - make links more visible on tablets */
@media (hover: none) and (pointer: coarse) {
    .inline-link {
        border-bottom: 1px dotted rgba(0, 0, 0, 0.3);
    }

    .inline-link:active {
        opacity: 0.7;
        border-bottom: 1px solid var(--color-text);
    }
}

/* Work Section */
.work-section {
    background-color: var(--color-light-gray);
    padding: 8rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
}

.project-card {
    transition: transform 0.3s ease;
}

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

.project-image {
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 4px;
}

.project-image .image-placeholder {
    aspect-ratio: 16/10;
    transition: transform 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card:hover .project-image .image-placeholder {
    transform: scale(1.05);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-category {
    font-size: 0.875rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.project-description {
    font-size: 1rem;
    color: var(--color-gray);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 12rem 0;
    position: relative;
    z-index: 1;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.contact-description {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.social-link {
    font-size: 1.125rem;
    color: var(--color-text);
    text-decoration: none;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.social-link svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.social-link:hover {
    border-bottom-color: var(--color-text);
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer p {
    font-size: 0.875rem;
    color: var(--color-gray);
}

/* Animations */
.line {
    position: relative;
}

.line-inner {
    display: block;
}

/* Responsive Design */
/* Tablet (Portrait & Small Laptops) */
@media (max-width: 1024px) {
    /* Disable Easter Egg on tablet/mobile */
    .amiga-easter-egg {
        cursor: default !important;
        pointer-events: none;
    }

    .amiga-modal {
        display: none !important;
    }
    .container,
    .nav-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .nav-links-centered {
        gap: 2rem;
        padding: 0.75rem 2rem;
    }

    .nav-links-centered a {
        min-height: 44px; /* Touch target size */
        display: flex;
        align-items: center;
    }

    .home-icon svg {
        width: 18px;
        height: 18px;
    }

    .hero-content-wrapper {
        padding: 3rem 2rem;
    }

    .hero-name {
        font-size: clamp(3.5rem, 10vw, 9rem);
    }

    .section {
        padding: 5rem 0;
    }

    .section-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
        line-height: 1.2;
    }

    .about-text p {
        font-size: 1.125rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-title {
        font-size: 1.625rem;
    }

    .project-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .contact-section {
        padding: 8rem 0;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        align-items: flex-start;
        padding-left: 0;
    }

    .contact-title {
        font-size: 2rem;
    }

    .contact-description {
        font-size: 1rem;
    }

    .social-links {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        padding-left: 0;
    }

    .social-link {
        font-size: 1.0625rem;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
        padding-bottom: 0.25rem;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        width: auto;
        color: var(--color-text);
        text-decoration: none;
        border-bottom: 2px solid transparent;
        transition: border-color 0.3s ease;
    }

    .social-link:hover {
        border-bottom-color: var(--color-text);
    }

    .social-link svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
}

/* Mobile & Small Tablets */
@media (max-width: 768px) {
    .container,
    .nav-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-links-centered {
        gap: 0.6rem;
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .nav-links-centered a {
        font-size: 0.75rem;
        padding: 0.4rem 0.15rem;
        min-height: 40px; /* Touch target */
    }

    .home-icon {
        padding: 0.3rem;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home-icon svg {
        width: 14px;
        height: 14px;
    }

    .hero {
        height: 100vh;
        min-height: -webkit-fill-available;
    }

    .hero-bg-image {
        object-position: center center;
    }

    .hero-content-wrapper {
        padding: 2.5rem 1.5rem;
        justify-content: center;
        align-items: center;
    }

    .hero-name {
        font-size: clamp(2.5rem, 10vw, 5rem);
        letter-spacing: 0.02em;
        text-align: center;
        position: static;
        z-index: 10;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        margin-bottom: 2.5rem;
        font-size: clamp(1.75rem, 7vw, 3rem);
        line-height: 1.3;
    }

    .section-title .line {
        display: inline;
    }

    .about-text p {
        font-size: 1.0625rem;
        line-height: 1.8;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .projects-grid {
        gap: 3rem;
    }

    .project-card {
        padding: 0;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .project-description {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .project-category {
        font-size: 0.8125rem;
    }

    .contact-section {
        padding: 6rem 0 8rem 0;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        align-items: flex-start;
        padding-left: 0;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .contact-description {
        font-size: 0.9375rem;
    }

    .social-links {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        padding-left: 0;
    }

    .social-link {
        font-size: 1.125rem;
        min-height: 44px; /* Touch target */
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
        padding-bottom: 0.25rem;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        width: auto;
        color: var(--color-text);
        text-decoration: none;
        border-bottom: 2px solid transparent;
        transition: border-color 0.3s ease;
    }

    .social-link:hover {
        border-bottom-color: var(--color-text);
    }

    .social-link svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .container,
    .nav-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .nav-links-centered {
        gap: 0.75rem;
        padding: 0.6rem 1rem;
        flex-wrap: nowrap;
    }

    .nav-links-centered a {
        font-size: 0.75rem;
        white-space: nowrap;
        padding: 0.4rem 0.15rem;
        min-height: 44px;
    }

    .home-icon {
        padding: 0.35rem;
        min-width: 44px;
        min-height: 44px;
    }

    .home-icon svg {
        width: 14px;
        height: 14px;
    }

    .hero-content-wrapper {
        padding: 2rem 1rem;
    }

    .hero-name {
        font-size: clamp(2.5rem, 12vw, 5rem);
        line-height: 0.9;
    }

    .section {
        padding: 3rem 0;
    }

    .section-label {
        font-size: 0.6875rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
        line-height: 1.25;
        margin-bottom: 2rem;
    }

    .section-title .line {
        display: inline;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.75;
        margin-bottom: 1.25rem;
        text-align: left;
    }

    .projects-grid {
        gap: 2.5rem;
    }

    .project-card {
        margin-bottom: 0;
    }

    .project-image {
        margin-bottom: 1.25rem;
    }

    .project-category {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .project-title {
        font-size: 1.375rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .project-description {
        font-size: 0.9375rem;
        line-height: 1.65;
    }

    .contact-section {
        padding: 5rem 0 7rem 0;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
        padding-left: 0;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-description {
        font-size: 0.875rem;
    }

    .social-links {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        align-items: center;
        flex-wrap: wrap;
        padding-left: 0;
        width: 100%;
    }

    .social-link {
        font-size: 1rem;
        min-height: 48px; /* Larger touch target on mobile */
        gap: 0.75rem;
        padding-bottom: 0.25rem;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        width: auto;
        display: flex !important;
        align-items: center;
        color: var(--color-text);
        text-decoration: none;
        white-space: nowrap;
        border-bottom: 2px solid transparent;
        transition: border-color 0.3s ease;
    }

    .social-link:hover {
        border-bottom-color: var(--color-text);
    }

    .social-link svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .footer {
        padding: 2rem 0;
        font-size: 0.8125rem;
    }
}

/* Tablet Landscape */
@media (min-width: 897px) and (max-width: 1024px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        height: 100lvh;
        min-height: 100vh;
    }

    .hero-bg-image {
        object-fit: cover;
        width: 100%;
        height: 100%;
    }

    .hero-content-wrapper {
        padding: 2rem 2.5rem;
    }

    .hero-name {
        font-size: clamp(2rem, 6vw, 5rem);
    }

    .nav-container {
        padding: 0.875rem 1.5rem;
    }

    .nav-links-centered {
        gap: 1.25rem;
        padding: 0.55rem 1.5rem;
    }

    .nav-links-centered a {
        font-size: 0.75rem;
        min-height: 36px;
    }

    .home-icon {
        padding: 0.3rem;
    }

    .home-icon svg {
        width: 14px;
        height: 14px;
    }

    .section-title .line {
        display: inline;
    }

    .social-links {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        padding-left: 0;
    }

    .social-link {
        font-size: 1rem;
        min-height: 44px;
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
        padding-bottom: 0.25rem;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        width: auto;
        color: var(--color-text);
        text-decoration: none;
        border-bottom: 2px solid transparent;
        transition: border-color 0.3s ease;
    }

    .social-link:hover {
        border-bottom-color: var(--color-text);
    }

    .social-link svg {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }
}

/* Touch device optimizations and performance */
@media (hover: none) and (pointer: coarse) {
    /* Improve tap performance */
    * {
        -webkit-tap-highlight-color: rgba(77, 101, 255, 0.1);
    }

    /* Smoother scrolling on touch devices */
    body {
        -webkit-overflow-scrolling: touch;
    }

    /* Optimize transitions for mobile */
    .project-card,
    .social-link,
    .nav-links-centered a {
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    /* Active state for touch feedback */
    .project-card:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .social-link:active,
    .nav-links-centered a:active {
        transform: scale(0.95);
        opacity: 0.7;
    }

    .nav-links-centered a {
        padding: 0.5rem 0.25rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .social-link {
        padding: 0.75rem 0;
        min-width: 44px;
        min-height: 44px;
        width: auto;
    }
}

/* Smooth reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Amiga Easter Egg Modal - Desktop Only */
.amiga-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.amiga-modal.active {
    display: flex;
    opacity: 1;
}

.amiga-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 80vh;
    max-height: 700px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.amiga-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.amiga-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.amiga-close svg {
    color: #ffffff;
    width: 20px;
    height: 20px;
}

#amiga3DContainer {
    flex: 1;
    width: 100%;
    height: 100%;
    position: relative;
}

.amiga-instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

/* Hide on mobile and tablet */
@media (max-width: 1024px) {
    .amiga-easter-egg {
        pointer-events: none !important;
        cursor: default !important;
    }

    .amiga-modal {
        display: none !important;
    }
}
