:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --font-primary: 'Playfair Display', serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

/* Loading Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-size: 1.2rem;
    font-style: italic;
    transition: opacity 0.8s ease-out;
}

.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Main Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Animation Canvas Area - Full Frame */
.animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10;
    /* Set above body background */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This makes it fill the screen completely */
}

/* Hamburger Menu */
.menu-btn {
    position: fixed;
    top: 2.5rem;
    left: 2.5rem;
    z-index: 999;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    transition: transform 0.3s ease;
    mix-blend-mode: difference;
}

.menu-line {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.menu-btn.open .menu-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-btn.open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-btn.open .menu-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Logo Dots */
.logo-dot {
    position: fixed;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #000000;
    z-index: 1000;
    pointer-events: none;
}

.logo-dot-tr {
    top: 2.5rem;
    right: 2.5rem;
}

.logo-dot-bl {
    bottom: 2.5rem;
    left: 2.5rem;
}

.logo-dot-br {
    bottom: 2.5rem;
    right: 2.5rem;
}

/* Dropdown Menu */
.dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.955);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.dropdown-menu.open {
    opacity: 1;
    pointer-events: auto;
}

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

.dropdown-menu li {
    margin: 2rem 0;
}

.dropdown-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease;
}

.dropdown-menu a:hover {
    opacity: 0.5;
}

/* Fallback for when there are no images */
.fallback-text {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    animation: pulse 2s infinite ease-in-out;
    color: #666;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Content Area */
.content {
    max-width: 800px;
}

.intro {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.roles {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 4rem;
}

.footer {
    font-size: 1.2rem;
    color: #000;
}

.highlight {
    font-style: italic;
    font-weight: 500;
}

/* Portfolio Tab */
.portfolio-tab {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.portfolio-tab:hover {
    border-bottom: 1px solid var(--text-color);
    transform: translateX(5px);
}

/* Fade Transitions */
.fade-hidden {
    opacity: 0;
    transform: translateY(20px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1), transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 6rem 2rem 2rem;
    }

    .intro {
        font-size: 1.5rem;
    }

    .roles {
        font-size: 1.1rem;
    }

    .portfolio-tab {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 0.9rem;
    }
}