:root {
    --color-bg: #1a1a1a;
    --color-text: #ffffff;
    --color-highlight: #003366;
    --font-main: "Inter Tight", sans-serif;
    --container-width: 90vw;
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: var(--container-width);
    margin: 0 auto;
    max-width: 1600px;
}

section {
    min-height: 100vh;
    padding: 120px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Typography --- */
.hero-title {
    font-size: clamp(3rem, 7vw, 9.5rem);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: none; 
    margin-bottom: 2rem;
    color: #ffffff;
}

.hero-line {
    display: block;
    overflow: hidden; 
    padding-bottom: 0;
    margin-bottom: -0.01em;
}

.hero-line-inner {
    display: block;
    transform: translateY(110%); 
    will-change: transform;
}

.text-block {
    font-size: clamp(1.5rem, 3vw, 3rem);
    line-height: 1.2;
    max-width: 800px;
}

.label {
    display: block;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 3rem 3vw;
    mix-blend-mode: difference;
    color: white;
    transition: transform 0.4s var(--ease-smooth);
}

.site-header.is-hidden {
    transform: translateY(-100%);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    font-size: 1.1rem;
    z-index: 101;
    position: relative;
    color: white;
}

.desktop-nav ul {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-link {
    position: relative;
    color: inherit;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
}

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

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

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    width: 40px;
    height: 40px;
    padding: 0;
}

.menu-toggle .bar {
    display: block;
    width: 30px;
    height: 2px;
    background-color: white;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.menu-toggle.active .top {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active .bottom {
    transform: translateY(-4px) rotate(-45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-highlight);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden; 
    opacity: 0;
}

.mobile-menu-overlay ul {
    list-style: none;
    text-align: center;
}

.mobile-link {
    display: block;
    font-size: 12vw;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    line-height: 1;
    margin-bottom: 2vh;
    opacity: 0;
    transform: translateY(50px);
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}

/* --- Experience Section --- */
.experience-section ul {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    list-style: none;
}

.experience-section ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px 0;
    cursor: pointer;
    transition: opacity 0.3s;
}

.experience-section ul li:hover {
    opacity: 0.7;
}

.experience-section .company {
    font-size: clamp(1.2rem, 2vw, 2rem);
    font-weight: 600;
    width: 30%;
}

.experience-section .role {
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    opacity: 0.8;
    width: 30%;
}

.experience-section .date {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: right;
    flex: 1;
    opacity: 0.6;
}

/* Experience Hover Reveal */
.experience-section .media-container {
    position: fixed;
    width: 25vw;
    height: 30vh;
    border-radius: 8px;
    pointer-events: none;
    overflow: hidden; 
    visibility: hidden;
    z-index: 50;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    top: 0; left: 0; 
}

.experience-section .media-container.on {
    visibility: visible;
    opacity: 1;
}

.experience-section .media-container div {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; 
    transform: translate(0, -100%);
}

.experience-section .media-container img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; position: absolute; top: 0; left: 0;
    transform: translate(0, 100%) scale(1.3); 
    will-change: transform;
}

.experience-section .medias { display: none; }

@media (max-width: 768px) {
    .experience-section ul li {
        flex-direction: column; align-items: flex-start; gap: 5px;
    }
    .experience-section .company, .experience-section .role, .experience-section .date {
        width: 100%; text-align: left;
    }
    .experience-section .media-container { display: none; }
}

/* --- Contact Section --- */
.contact { 
    position: relative; 
    overflow: hidden; 
    cursor: none; 
}

.marquee-wrapper {
    position: absolute; top: 50%; left: 0; width: 100%;
    transform: translateY(-50%) rotate(-5deg); 
    pointer-events: auto; z-index: 1; 
}

.marquee-content { display: flex; width: fit-content; white-space: nowrap; }

.marquee-item {
    font-size: clamp(3rem, 7vw, 9.5rem);
    line-height: 0.9;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: none; 
    margin-bottom: 2rem;
    color: #ffffff;
}

.contact .card {
    width: 20vw; 
    aspect-ratio: 0.8; 
    border-radius: 2%; 
    overflow: hidden;
    position: absolute; 
    top: 50%; 
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 10; 
    pointer-events: none;
}

.contact .card .medias { 
    width: 100%; 
    height: 100%; 
    transform: scale(1.2, 1.2); 
}

.contact .card .media {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    position: absolute; 
    top: 0; 
    left: 0; 
    opacity: 0;
    transform: scale(1.2);
    transition: transform 0.3s var(--ease-smooth), opacity 0.2s ease;
    pointer-events: none;
    z-index: 1;
}

.contact .card .media.on { 
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

@media (max-width: 900px) {
    .marquee-item { font-size: 80px; }
    @media (hover: none) { .contact .card { display: none; } }
}

footer {
    padding: 2rem 0; text-align: center; font-size: 0.8rem; opacity: 0.5;
}