:root {
    --bg: #ffffff;
    --navy: #1A3668; /* Official Logo Navy */
    --gold: #E69138; /* Official Logo Gold */
    --text: #1a1a1a;
    --muted: #f8f9fa;
    --sidebar-width: 300px;
    --transition: all 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

/* --- INTRO OVERLAY --- */
#intro-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    transition: transform 1.2s cubic-bezier(0.85, 0, 0.15, 1);
}
.intro-logo {
    width: 280px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}
.intro-loader {
    width: 200px;
    height: 2px;
    background: #eee;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}
.intro-loader-bar {
    position: absolute;
    left: -100%; top: 0; height: 100%;
    width: 100%;
    background: var(--navy);
    animation: slideLoad 2.2s ease-in-out infinite;
}
.intro-hidden { transform: translateY(-100%); }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
@keyframes slideLoad { to { left: 100%; } }

/* --- GLOBAL & CURSOR --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { 
    font-family: 'Inter', sans-serif; 
    margin: 0; 
    background: var(--bg); 
    color: var(--text); 
    display: flex;
    cursor: none; /* Set custom cursor as default */
    overflow-x: hidden;
    width: 100%;
}

#cursor-dot { position: fixed; width: 6px; height: 6px; background: var(--navy); border-radius: 50%; pointer-events: none; z-index: 20002; top: 0; left: 0; transform: translate(-50%, -50%); }
#cursor-outline { position: fixed; width: 40px; height: 40px; border: 1px solid var(--navy); border-radius: 50%; pointer-events: none; z-index: 20001; transition: all 0.15s ease-out; top: 0; left: 0; transform: translate(-50%, -50%); }
.cursor-hover #cursor-outline { transform: translate(-50%, -50%) scale(2); background: rgba(26, 54, 104, 0.05); border-color: transparent; }
#music-toggle { display: none !important; }

/* Responsive Images */
img { max-width: 100%; height: auto; }

/* --- SIDEBAR NAV --- */
nav.sidebar {
    position: fixed;
    left: 0; top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: #fff;
    border-right: 1px solid #eee;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1000;
}
.sidebar-logo { width: 100%; max-width: 200px; margin-bottom: 20px; }
.nav-links { display: flex; flex-direction: column; gap: 18px; margin-top: 40px; }
.nav-links a { 
    text-decoration: 1s; 
    color: #999; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    transition: 0.3s;
}
.nav-links a.active, .nav-links a:hover { color: var(--navy); transform: translateX(8px); }
.sidebar-footer { font-size: 0.6rem; color: #ccc; letter-spacing: 1px; line-height: 1.8; text-transform: uppercase; }

/* --- MAIN CONTENT --- */
main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
}
section { padding: 120px 80px; min-height: 100vh; }

/* --- HERO --- */
#hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; background: #000; overflow: hidden; padding: 0; }
.bg-video { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: grayscale(100%); transition: 1.5s; }
#hero:hover .bg-video { filter: grayscale(0%); opacity: 0.6; }
.hero-text { position: relative; z-index: 2; color: #fff; text-align: center; }
.hero-text p { color: var(--gold); letter-spacing: 3px; font-weight: 700; font-size: 0.65rem; margin-bottom: 20px; text-transform: uppercase; }
.hero-text h1 { font-size: 4.5vw; letter-spacing: -3px; line-height: 0.9; margin: 0; text-transform: uppercase; }

/* --- PORTFOLIO GALLERY (IMPERIAL WOK) --- */
.gallery-container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 60px; }
.gallery-item { position: relative; height: 250px; overflow: hidden; background: #000; border-radius: 2px; }

@media (max-width: 1200px) { .gallery-container { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 992px) { .gallery-container { grid-template-columns: repeat(3, 1fr); } }

.gallery-item img { width: 100%; height: 100%; object-fit: contain; transition: 1s cubic-bezier(0.85, 0, 0.15, 1); opacity: 1; }

/* Animation Classes */
/* Default: Grayscale In (Color -> Grayscale on hover) */
.anim-grayscale-in img { filter: grayscale(0%); }
.anim-grayscale-in:hover img { filter: grayscale(100%); }

/* Grayscale Out (Grayscale -> Color on hover) */
.anim-grayscale-out img { filter: grayscale(100%); opacity: 0.8; }
.anim-grayscale-out:hover img { filter: grayscale(0%); opacity: 1; }

/* Zoom */
.anim-zoom:hover img { transform: scale(1.1); }

/* Rotate */
.anim-rotate:hover img { transform: rotate(5deg) scale(1.1); }

.gallery-overlay { 
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; 
    background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; 
    transform: translateY(20px); opacity: 0; transition: 0.5s; text-align: left;
}
.gallery-item:hover .gallery-overlay { transform: translateY(0); opacity: 1; }
.gallery-overlay h4 { margin: 0; font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; }
.gallery-overlay p { font-size: 0.6rem; color: var(--gold); text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; }

/* --- BRAND GRID --- */
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; width: 100%; margin-top: 40px; }
.brand-item { position: relative; height: 70vh; overflow: hidden; background: #000; }
.brand-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; filter: grayscale(100%); transition: 1s; }
.brand-item:hover img { opacity: 0.8; filter: grayscale(0%); transform: scale(1.05); }
.brand-content { position: absolute; bottom: 50px; left: 50px; color: #fff; pointer-events: none; transition: 0.8s; }
.brand-item:hover .brand-content { transform: translateY(-15px); opacity: 0; }
.brand-content h2 { font-size: 2.5rem; margin: 0; letter-spacing: -1px; text-transform: uppercase; }
.brand-content p { color: var(--gold); font-size: 0.7rem; letter-spacing: 4px; font-weight: 700; margin-bottom: 10px; }

/* --- CONTACT --- */
.contact-flex { display: flex; gap: 100px; }
input, textarea, select { width: 100%; padding: 20px; border: 1px solid #eee; background: #fdfdfd; margin-bottom: 15px; font-family: inherit; font-size: 0.9rem; transition: 0.3s; }
input:focus, textarea:focus { border-color: var(--navy); outline: none; }
.btn-submit { background: var(--navy); color: white; border: none; padding: 22px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; transition: 0.3s; width: 100%; }
.btn-submit:hover { background: #0d1b2a; transform: translateY(-3px); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    nav.sidebar { 
        width: 100%; height: auto; position: relative; padding: 30px; 
        border-right: none; border-bottom: 1px solid #eee;
        align-items: center; text-align: center;
    }
    .sidebar-logo { max-width: 160px; margin-bottom: 10px; }
    .nav-links { 
        flex-direction: row; flex-wrap: wrap; justify-content: center; 
        gap: 20px; margin-top: 20px; 
    }
    .sidebar-footer { display: none; }

    main { margin-left: 0; width: 100%; }
    body { flex-direction: column; }
    * { cursor: auto !important; }
    #cursor-dot, #cursor-outline { display: none; }
}

@media (max-width: 768px) {
    section { padding: 40px 20px; min-height: auto; }
    nav.sidebar { padding: 20px; }
    .nav-links { gap: 15px; margin-top: 15px; }
    .nav-links a { font-size: 0.7rem; }
    
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { letter-spacing: 5px; font-size: 0.7rem; }
    
    /* Override inline styles for mobile */
    h2[style] { font-size: 2rem !important; }
    p[style*="font-size"] { font-size: 1rem !important; }
    
    .brand-item { height: 300px; }
    .gallery-item { height: 250px; }
    .brand-grid, .contact-flex { grid-template-columns: 1fr; flex-direction: column; gap: 40px; }
    .gallery-container { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    
    /* Form Optimization */
    input, textarea, select { padding: 15px; font-size: 16px; } /* Prevents iOS zoom */
    .btn-submit { padding: 18px; }
    
    .intro-logo { width: 180px; }
}

@media (max-width: 480px) {
    .gallery-container { grid-template-columns: 1fr; }
}

/* Restore cursor for interactive elements */
a, button, input, textarea, select, label { cursor: auto; }

/* Chat Animations & Status */
@keyframes slideInMessage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.message-anim { animation: slideInMessage 0.3s ease-out forwards; }
.seen-status { font-size: 0.65rem; color: #999; margin-top: 2px; margin-bottom: 5px; opacity: 0.8; transition: opacity 0.3s; }
.seen-status.visitor { text-align: right; }
.seen-status.admin { text-align: left; }