/* CORE DESIGN TOKENS */
:root {
  --primary: #00FFE5;
  --bg-black: #050505;
}

/* GLOBAL RESET */
html, body {
  background-color: var(--bg-black);
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Kanit', sans-serif;
  cursor: none !important; /* Hide browser cursor */
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Fix left-right overflow issues */
  width: 100%;
}

/* Hide global scrollbar */
html::-webkit-scrollbar {
  display: none;
}
html {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

a, button, [role="button"], .interactive, .mega-item, .nav-item-btn {
  cursor: none !important; /* Force hide on interactive elements */
}

/* MINIMAL CIRCLE CURSOR */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  position: fixed;
  top: -100px;
  left: -100px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(0, 255, 229, 0.5);
  transition: transform 0.15s ease-out;
}

.cursor-outline {
  width: 35px;
  height: 35px;
  border: 1.5px solid rgba(0, 255, 229, 0.4);
  position: fixed;
  top: -100px;
  left: -100px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Vertical Laser Line REMOVED for Minimal Design */
.cursor-v-line {
  display: none !important;
}

/* HOVER STATES */
body.cursor-hover-active .cursor-outline {
  width: 60px !important;
  height: 60px !important;
  border-color: var(--primary) !important;
  background: rgba(0, 255, 229, 0.1) !important;
}

body.cursor-hover-active .cursor-dot {
  transform: translate(-50%, -50%) scale(0.5) !important;
  opacity: 0.5;
}

/* UNTITLED UI HEADER STYLES */
#site-header {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#site-header.scrolled {
    top: 15px;
    width: min(1300px, calc(100% - 40px));
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px;
    background: rgba(5, 5, 5, 0.4) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    height: 70px; /* Slightly shorter on scroll */
}

#site-header.scrolled .max-w-\[1300px\] {
    height: 100%;
}

.nav-item-btn {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.nav-item-btn:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item-btn svg { width: 12px; height: 12px; opacity: 0.5; transition: transform 0.2s ease; }
.group:hover .nav-item-btn svg { transform: rotate(180deg); }

.untitled-mega-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: min(900px, 95vw);
    background: #0A0A0A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.8);
    z-index: 500;
}

/* Align first mega menu to left to prevent off-screen */
ul > li:first-child .untitled-mega-menu {
    left: 0;
    transform: translateX(0) translateY(10px);
}

/* Align last mega menu to right to prevent off-screen */
ul > li:last-child .untitled-mega-menu {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(10px);
}

.group:hover .untitled-mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Override hover for first and last to maintain their transform */
ul > li:first-child:hover .untitled-mega-menu { transform: translateX(0) translateY(0); }
ul > li:last-child:hover .untitled-mega-menu { transform: translateX(0) translateY(0); }

.mega-section-label { font-size: 12px; font-weight: 700; color: #00FFE5; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; display: block; }
.mega-item { display: flex; gap: 16px; padding: 12px; border-radius: 12px; transition: all 0.2s ease; }
.mega-item:hover { background: rgba(255, 255, 255, 0.03); }
.mega-icon-box { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #00FFE5; }
.mega-item-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 2px; display: block; }
.mega-item-desc { font-size: 13px; color: rgba(255, 255, 255, 0.4); line-height: 1.4; }

.mega-featured-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 16px; padding: 24px; height: 100%; }
.mega-featured-img { width: 100%; aspect-ratio: 16/9; background: #111; border-radius: 12px; margin-bottom: 16px; object-fit: cover; }

/* LEAD MODAL */
#lead-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; transition: all 0.5s ease; }
#lead-modal.invisible { visibility: hidden; opacity: 0; pointer-events: none; }

/* GRID BACKGROUND */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: #000;
  background-image: 
  linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
  linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

@media (max-width: 1024px) {
  body, a, button { cursor: auto !important; }
  .cursor-dot, .cursor-outline, .cursor-v-line { display: none !important; }
}

/* Signature Font for Hero */
.signature-font {
    font-family: 'La Belle Aurore', cursive !important;
    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: 0.05em !important;
    text-transform: none !important;
    font-size: 1.1em !important;
}

/* Underline for Signature Text */
.signature-font {
    color: var(--primary) !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(0, 255, 229, 0.4) !important;
    text-underline-offset: 8px !important;
    text-decoration-thickness: 2px !important;
}

/* CTA BUTTON IN NAV */
.nav-cta-btn {
    background-color: var(--primary);
    color: #000 !important;
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 255, 229, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    text-decoration: none !important;
}

.nav-cta-btn:hover {
    transform: scale(1.1);
    background-color: #fff;
    box-shadow: 0 12px 30px rgba(0, 255, 229, 0.4);
}

.nav-cta-btn:active {
    transform: scale(0.95);
}

/* Scrollbar Hide Utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* CUSTOM SCROLLBAR (Minimal & Dark) */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 229, 0.2);
  border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 229, 0.4);
}
