* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 0.12em;
}

body {
    background: radial-gradient(circle at 50% 35%, rgba(32, 12, 0, 0.85) 0%, rgba(6, 4, 10, 0.92) 55%, rgba(2, 1, 5, 0.98) 100%);
    background-color: #080307;
    color: white;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    overflow: hidden;
    cursor: default;
}

#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at center, rgba(255, 120, 60, 0.08) 0%, rgba(14, 6, 18, 0.05) 45%, transparent 65%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 150, 78, 0.1) 0%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 2;
}

.content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
    padding: 0 clamp(24px, 6vw, 120px);
    gap: clamp(12px, 3vw, 32px);
}

.title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.memoji {
    width: 280px;
    height: 280px;
    margin-bottom: 40px;
    opacity: 0;
    transform: scale(0.9);
    animation: fadeIn 1s cubic-bezier(0.23, 1, 0.320, 1) forwards 0.5s;
    filter: drop-shadow(0 0 30px rgba(255, 95, 31, 0.3));
}

h1 {
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 200;
    letter-spacing: clamp(0.2em, 1.5vw, 0.6em);
    background: linear-gradient(135deg, #FF5F1F, #FF8C42, #FFB347);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: scale(0.9);
    animation: titleIn 1s cubic-bezier(0.23, 1, 0.320, 1) forwards 0.8s;
    margin: 0;
    text-transform: uppercase;
}

.title-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(90vw, 1100px);
    padding: 0 clamp(24px, 6vw, 80px);
    gap: clamp(24px, 6vw, 80px);
}

.title-name .name-part {
    display: inline-block;
    white-space: nowrap;
    background: linear-gradient(135deg, #FF5F1F, #FF8C42, #FFB347);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-name .first-name {
    flex: 1;
    text-align: left;
    padding-right: 4vw;
    transform: translate(-10vw, -2vh);
}

.title-name .last-name {
    flex: 1;
    text-align: right;
    padding-left: 4vw;
    transform: translate(-13vw, 2vh);
}

@media (max-width: 900px) {
    .title-name {
        width: 100%;
        padding: 0;
        justify-content: center;
        gap: clamp(16px, 5vw, 40px);
    }

    .title-name .first-name,
    .title-name .last-name {
        text-align: center;
        padding: 0;
        transform: none;
    }
}

@media (max-width: 600px) {
    .title-name {
        flex-direction: column;
        gap: 12px;
    }

    .title-name .name-part {
        white-space: normal;
    }
}

.subtitle {
    font-size: clamp(0.95rem, 2.4vw, 1.4rem);
    margin-top: 20px;
    color: rgba(255, 211, 180, 0.75);
    text-transform: uppercase;
    letter-spacing: clamp(0.25rem, 1.4vw, 0.75rem);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 1s;
    font-weight: 300;
}

.degree-subtitle {
    font-size: clamp(0.8rem, 1.8vw, 1rem);
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: clamp(0.18rem, 0.9vw, 0.45rem);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards 1.2s;
    font-weight: 300;
}

.explore-hint {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 95, 31, 0.7);
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 1s ease forwards 2s, pulse 2s ease-in-out infinite 3s;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes titleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.menu {
    position: fixed;
    top: clamp(16px, 4vw, 36px);
    left: clamp(16px, 4vw, 44px);
    transform: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(18px, 3vw, 32px);
    padding: 0;
    border-radius: 16px;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 1002;
    pointer-events: all;
    transform-origin: left top;
}

.menu-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 28px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 95, 31, 0.35);
    background: rgba(255, 95, 31, 0.15);
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle:focus-visible {
    outline: 2px solid rgba(255, 95, 31, 0.8);
    outline-offset: 3px;
}

.menu.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-item {
    padding: 10px 22px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    font-size: 12px;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
}

.menu-item:hover,
.menu-item:focus-visible {
    background: rgba(255, 95, 31, 0.2);
    border-color: rgba(255, 95, 31, 0.5);
    transform: translateY(-2px);
}

.menu-item:focus-visible {
    outline: 2px solid rgba(255, 95, 31, 0.6);
    outline-offset: 3px;
}

.menu-item.active {
    background: rgba(255, 95, 31, 0.28);
    border-color: rgba(255, 95, 31, 0.6);
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .content {
        padding: clamp(100px, 14vh, 140px) clamp(24px, 6vw, 64px) clamp(160px, 22vh, 220px);
    }

    .menu {
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 0;
        border-radius: 16px;
    }

    .menu-toggle {
        display: flex;
        align-self: center;
    }

    .menu-links {
        display: none;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 12px;
    }

    .menu.menu-open {
        flex-direction: column;
        align-items: stretch;
        width: clamp(220px, 55vw, 320px);
        gap: 14px;
        padding: 16px 20px;
        border-radius: 20px;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.75);
        border: 1px solid rgba(255, 95, 31, 0.35);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .menu.menu-open .menu-links {
        display: flex;
    }

    .menu.menu-open .menu-item {
        width: 100%;
        padding: 12px;
    }

    .menu-item {
        width: auto;
        padding: 10px 18px;
    }

    .tagline {
        top: clamp(240px, 34vh, 360px);
        max-width: 80vw;
        font-size: 11px;
        letter-spacing: 2px;
        line-height: 1.6;
        padding: 0 clamp(24px, 8vw, 64px);
    }

    .subtitle {
        letter-spacing: clamp(0.18rem, 0.9vw, 0.5rem);
    }

    .degree-subtitle {
        letter-spacing: clamp(0.16rem, 0.7vw, 0.35rem);
    }

    .explore-hint {
        bottom: 140px;
        font-size: 12px;
        letter-spacing: 2px;
    }

    body,
    p,
    li,
    a,
    span {
        letter-spacing: 0.08em;
    }
}

.xai-logo {
    position: fixed;
    top: 30px;
    left: 30px;
    font-size: 28px;
    font-weight: 200;
    letter-spacing: 4px;
    color: rgba(255, 95, 31, 0.9);
    z-index: 3;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.3s;
}

.project-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 95, 31, 0.6);
    padding: 15px 20px;
    border-radius: 2px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 14px;
    letter-spacing: 2px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 95, 31, 0.4);
}

.project-tooltip.visible {
    opacity: 1;
}

.project-tooltip .title {
    font-weight: 400;
    margin-bottom: 5px;
    color: #FF8C42;
}

.project-tooltip .desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.tagline {
    position: fixed;
    top: clamp(120px, 16vh, 180px);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
    z-index: 3;
    font-weight: 300;
    max-width: min(720px, 82vw);
    padding: 0 clamp(20px, 6vw, 60px);
    text-align: center;
    display: inline-block;
    white-space: normal;
}
