html {
    scroll-behavior: smooth;
}

body {
    background-color: #FDFBF7;
    color: #1e293b;
    overflow-x: hidden;
    cursor: none; 
}

/* --- Custom Cursor --- */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot { width: 8px; height: 8px; background-color: #1e293b; }
.cursor-outline { width: 40px; height: 40px; border: 1px solid rgba(30, 41, 59, 0.5); transition: width 0.2s, height 0.2s; }
body.hovering .cursor-outline { width: 60px; height: 60px; border-color: #d4af37; background: rgba(212, 175, 55, 0.1); }

/* Disable custom cursor on touch devices for performance */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline { display: none !important; }
    body { cursor: auto !important; }
}

/* --- Progress Bar --- */
.progress-bar {
    position: fixed; top: 0; left: 0; width: 0%; height: 4px;
    background: #d4af37; z-index: 10000; transition: width 0.1s ease-out;
}

/* --- Marquee Animation --- */
.marquee-container {
    overflow: hidden; white-space: nowrap; position: relative;
}
.marquee-content {
    display: inline-block; animation: marquee 25s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Utilities & Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #FFAE4F; border-radius: 4px; }
.hide-scroll::-webkit-scrollbar { display: none; }
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }
.text-balance { text-wrap: balance; }

/* --- 3D Tilt Card --- */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

/* --- Loader --- */
.loader-overlay {
    position: fixed; inset: 0; background: #FFAE4F; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    color: #1e293b; font-family: 'Playfair Display', serif;
}

/* --- Lightbox --- */
#lightbox { 
    position: fixed; inset: 0; z-index: 100; 
    background: rgba(0,0,0,0.95); opacity: 0; pointer-events: none; 
    transition: opacity 0.3s ease; display: flex; align-items: center; justify-content: center;
}
#lightbox.active { opacity: 1; pointer-events: auto; }

/* --- Hero & Nav --- */
.hero-wrapper {
    padding: 1.5rem; height: 100vh; width: 100%;
    display: flex; flex-direction: column; position: relative; z-index: 10;
    background-color: #0a0a0a;
}
.hero-card {
    background-color: #FFAE4F; border-radius: 3rem;
    flex: 1; position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
}
.nav-link {
    font-family: 'Chakra Petch', sans-serif; font-weight: 600; text-transform: uppercase;
    font-size: 0.85rem; color: #aaa; transition: color 0.3s; letter-spacing: 0.05em; cursor: pointer;
    display: inline-block;
}
.nav-link:hover { color: #fff; }

/* --- Image & Split Text --- */
.hero-img-container {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    height: 90%; width: auto; max-width: 90%; 
    z-index: 40; 
    pointer-events: none; 
    display: flex; align-items: flex-end; justify-content: center;
}
.hero-img-container img {
    height: 100%; width: auto; object-fit: contain;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Mobile Hero Image Adjustment */
@media (max-width: 768px) {
    .hero-img-container {
        height: 65vh; 
        width: 100%;
    }
    .hero-img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
    }
}

.char { transform-origin: bottom left; }

/* Timeline Fixes */
.timeline-line::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    width: 1px;
    background: #cbd5e1; 
    left: 24px; 
    transform: none;
}
@media (min-width: 768px) {
    .timeline-line::before { left: 50%; transform: translateX(-50%); }
}