:root {
    --bg: #0b0c10;
    --bg-elevated: #15161d;
    --text: #f0f0f0;
    --text-muted: #b8b9c0;
    --accent: #e6c98a;
    --accent-dark: #8f7340;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.skip-link {
    position: fixed;
    top: -100%;
    left: 0;
    z-index: 1001;
    padding: 0.75rem 1.25rem;
    background-color: var(--bg);
    color: var(--text);
    text-decoration: underline;
    font-weight: 600;
    border: 2px solid var(--accent);
    border-radius: 0 0 8px 0;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    background: rgba(11, 12, 16, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-parallax {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.hero-parallax img {
    position: absolute;
    top: -15%;
    left: 0;
    width: 100%;
    height: 130%;
    object-fit: cover;
    filter: blur(2px) brightness(0.45);
    will-change: transform;
    transform: translateY(0);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(11, 12, 16, 0.85) 100%
    );
}

.hero-content {
    max-width: 900px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s ease forwards;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        var(--accent) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.hero-roles {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--text);
}

.hero-roles span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-roles span::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

/* Sections */
section {
    padding: 6rem 2rem;
}

.container {
    width: 80%;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 3rem;
    text-align: center;
}

/* Split Cards */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem;
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #4a3b24;
    color: #fff8e6;
    border: 1px solid rgba(230, 201, 138, 0.6);
}

/* Gallery */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin: 0 auto;
}

.gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    transition:
        grid-template-columns 0.5s ease,
        min-height 0.5s ease;
    position: relative;
}

.gallery-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.5s ease,
        opacity 0.5s ease,
        margin-top 0.5s ease,
        padding 0.5s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0;
    padding: 0 1rem;
}

.gallery-description.visible {
    max-height: 200px;
    opacity: 1;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
}

.gallery-row.has-expanded {
    min-height: 70vh;
    max-height: 70vh;
}

.gallery-row.expanded-0 {
    grid-template-columns: 9fr 0.5fr 0.5fr;
}

.gallery-row.expanded-1 {
    grid-template-columns: 0.5fr 9fr 0.5fr;
}

.gallery-row.expanded-2 {
    grid-template-columns: 0.5fr 0.5fr 9fr;
}

.gallery-item {
    position: relative;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.96);
    transition:
        opacity 0.7s ease,
        transform 0.5s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition:
        transform 0.6s ease,
        filter 0.6s ease;
    filter: brightness(0.85);
}

.gallery-item:hover img,
.gallery-item.expanded img {
    filter: brightness(1);
}

.gallery-row.dimmed .gallery-item:not(.expanded):not(.shrunk) {
    opacity: 0.4;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7),
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    pointer-events: none;
}

.gallery-item:hover .gallery-overlay,
.gallery-item.expanded .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-size: 0.85rem;
    color: var(--text);
    letter-spacing: 0.05em;
}

.gallery-lightbox-link {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font-size: 2.5rem;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gallery-item.expanded .gallery-lightbox-link {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-item.expanded:hover .gallery-lightbox-link {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox-link svg {
    width: 3rem;
    height: 3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5vh 2.5vw;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 95vw;
    height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.lightbox-img {
    max-width: 100%;
    max-height: calc(95vh - 140px);
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-text {
    text-align: center;
    max-width: 800px;
    color: var(--text);
}

.lightbox-title {
    font-size: 1.25rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.lightbox-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.lightbox-close {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 1001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.gallery-row.items-1 .gallery-item {
    grid-column: span 3;
    cursor: default;
}

.gallery-row.items-1 .gallery-item:hover img {
    filter: brightness(0.85);
}

@media (max-width: 900px) {
    .gallery-row {
        grid-template-columns: 1fr !important;
        min-height: auto;
    }

    .gallery-row.has-expanded {
        min-height: auto;
    }

    .gallery-item {
        aspect-ratio: 16 / 9;
    }

    .gallery-description,
    .gallery-description.visible {
        display: none;
    }
}

.timeline {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent-dark);
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 0.35rem;
    left: -0.4rem;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-date {
    display: block;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}

.timeline-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.timeline-company {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer .LI-profile-badge {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 600px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero-roles {
        flex-direction: column;
        gap: 0.75rem;
    }

    section {
        padding: 4rem 1rem;
    }
}
