:root {
    --black: #0d0d0d;
    --white: #ffffff;
    --red: #ff3b30;
    --gray: #f5f5f7;
    --gray-text: #6e6e73;
    --font-main: 'Inter', sans-serif;
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--black);
    overflow-x: hidden; /* Prevent horizontal scroll but allow vertical */
    cursor: none; /* Hide default cursor */
}

a, button, .project-card {
    cursor: none; /* Ensure default cursor is hidden on links/buttons */
}

/* --- Navigation --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0px 60px; /* Minimal vertical padding */
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8); /* Less transparent */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    opacity: 0; /* Hidden initially */
    transition: opacity 0.3s ease; /* Final polished speed */
}

.top-nav.reveal {
    opacity: 1;
}

.nav-logo img {
    height: 80px; /* Reduced from 100px for a smaller nav */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-item {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 5px;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: width 0.3s var(--transition);
}

.nav-item:hover::after, .nav-item.active::after {
    width: 100%;
}

.nav-item:hover, .nav-item.active {
    color: var(--red);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.social-icon {
    text-decoration: none;
    color: var(--white);
    background: var(--red);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    transition: transform 0.3s var(--transition);
}

#be-link {
    background: var(--black);
}

.social-icon:hover {
    transform: scale(1.1);
}

/* --- Layout --- */
.container, .page-container {
    opacity: 0;
    transform: translateX(100%);
    transition: transform 2.2s cubic-bezier(0.05, 0.9, 0.1, 1), opacity 1.5s ease;
}

.container {
    display: flex;
    height: 100vh;
}

.container.reveal, .page-container.reveal {
    opacity: 1;
    transform: translateX(0);
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: transparent; /* Changed to transparent */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

#preloader.fade-out {
    opacity: 0;
}

#teaser-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover; /* Fills the whole screen */
    background-color: transparent !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    outline: none;
    border: none;
}

.panel-left {
    width: 45%;
    padding: 100px 80px 40px; /* Reduced top padding since logo moved */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Push content to top */
    position: relative;
    border-right: 1px solid #eee;
}

.panel-right {
    width: 55%;
    height: 100vh;
    overflow-y: scroll;
    padding: 40px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.panel-right::-webkit-scrollbar {
    display: none;
}

/* --- Left Panel Content --- */
.logo {
    width: 140px;
    height: auto;
    margin-bottom: 40px;
}

.left-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.info-state {
    transition: opacity 0.5s var(--transition);
}

.hidden {
    display: none;
    opacity: 0;
}

.main-title {
    font-size: 72px;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -3px;
}

.title-divider {
    width: 60px;
    height: 6px;
    background-color: var(--red);
    margin-bottom: 40px;
}

.description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-text);
    max-width: 360px;
}

/* --- Project Detail Styling --- */
.project-number {
    display: none; /* Removed as per request */
}

.project-category {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    animation: slideUpFade 0.6s var(--transition) 0.1s both;
}

.project-title-large {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--black); /* Reverted to black to reduce red dominance */
    margin-bottom: 25px;
    letter-spacing: -1px;
    animation: slideUpFade 0.6s var(--transition) 0.2s both;
}

.project-description-large {
    font-size: 18px;
    line-height: 1.6;
    color: var(--gray-text);
    max-width: 440px;
    margin-bottom: 40px;
    animation: slideUpFade 0.6s var(--transition) 0.3s both;
}

.project-meta {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
    animation: slideUpFade 0.6s var(--transition) 0.4s both;
}

.meta-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #bbb;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.meta-value {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
}

.project-disciplines {
    animation: slideUpFade 0.6s var(--transition) 0.5s both;
}

.discipline-list {
    list-style: none;
    margin-top: 15px;
}

.discipline-list li {
    font-size: 15px;
    color: var(--black);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.discipline-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--red);
    display: block;
}

/* --- Right Panel Projects --- */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 80px; /* Added spacing for the first project */
}

.project-card {
    position: relative;
    width: 95%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--transition);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.1);
    transition: background 0.4s var(--transition);
}

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

.project-card:hover .project-overlay {
    background: rgba(0,0,0,0);
}

/* --- Contact Footer --- */
.contact-info {
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Even closer */
    margin-top: auto; /* Push to the bottom */
}

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 2px; /* Reduced from 5px */
}

.contact-label-small {
    font-size: 11px; /* Smaller label */
    color: #999;
    font-weight: 400;
}

.contact-link-new {
    font-size: 16px; /* Smaller link */
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.red-arrow {
    color: var(--red);
    font-size: 14px; /* Smaller arrow */
    transition: transform 0.3s var(--transition);
}

.contact-link-new:hover {
    color: var(--red);
}

.contact-link-new:hover .red-arrow {
    transform: translateX(5px);
}

/* --- Contact Form --- */
.contact-form {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-input {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--red);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: var(--red);
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--red);
    z-index: 10001;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--red);
    background-color: rgba(255, 59, 48, 0.05); /* Very subtle red fill */
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                height 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                background-color 0.3s, 
                border-color 0.3s;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.1); /* Soft glow */
}

/* Cursor Hover State */
.cursor-hover .cursor-dot {
    width: 12px;
    height: 12px;
    background-color: var(--red);
}

.cursor-hover .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 59, 48, 0.15); /* Stronger red glow */
    border-color: var(--red);
    box-shadow: 0 0 30px rgba(255, 59, 48, 0.3);
}
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .panel-left { padding: 40px 50px; }
    .main-title { font-size: 56px; }
    .project-number { font-size: 100px; }
}

@media (max-width: 1024px) {
    .container { flex-direction: column; height: auto; overflow: auto; }
    body { overflow: auto; }
    .panel-left, .panel-right { width: 100%; height: auto; }
    .panel-left { border-right: none; border-bottom: 1px solid #eee; }
    .top-nav { position: relative; padding: 20px; justify-content: center; }
}
