/* ==========================================================================
   NOVA ARCHITECTS - APPLE VISION PRO INSPIRED THEME (FULL EDITION)
   Pure Minimalism, Huge Typography, High-End Mechanics
========================================================================== */

:root {
  --bg-dark: #000000;
  --bg-card: #111113;
  --bg-card-hover: #1c1c1e;
  --bg-light: #f5f5f7;
  --text-dark: #f5f5f7;
  --text-light: #1d1d1f;
  
  --text-muted: #86868b;
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(0, 0, 0, 0.1);
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html { font-size: 16px; background-color: var(--bg-dark); color: var(--text-dark); overflow-x: hidden; scroll-behavior: smooth; }
body { font-family: var(--font-main); line-height: 1.5; -webkit-font-smoothing: antialiased; letter-spacing: -0.015em; overflow-x: hidden; cursor: none; }

::selection { background: rgba(255,255,255,0.2); }
a, button { cursor: none; color: inherit; text-decoration: none; outline: none; border: none; background: none; }
img, video { max-width: 100%; display: block; }

/* UTILS */
.c-container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 48px); }
.text-white { color: #fff; }
.text-black { color: #1d1d1f; }
.sub-label { font-size: 12px; font-weight: 700; letter-spacing: 0.15em; color: var(--text-muted); text-transform: uppercase; display: block; margin-bottom: 16px; }
.main-heading { font-size: clamp(36px, 5vw, 64px); font-weight: 600; letter-spacing: -0.03em; color: #fff; line-height: 1.1; margin-bottom: 40px; }

/* CUSTOM CURSOR */
#cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 99999; pointer-events: none;
  width: 12px; height: 12px; background: rgba(255,255,255,0.8); border: 1px solid rgba(0,0,0,0.2); border-radius: 50%;
  transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background 0.3s, backdrop-filter 0.3s;
}
body.hover-target #cursor-dot {
  width: 40px; height: 40px; background: rgba(255,255,255,0.2); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,0.5);
}
@media (pointer: coarse) { body, a, button { cursor: auto !important; } #cursor-dot { display: none !important; } }

/* NAVIGATION (APPLE STYLE) */
#navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 9990;
  background: rgba(0, 0, 0, 0.75); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 52px; display: flex; justify-content: space-between; align-items: center; }

.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.5px; opacity: 0.9; transition: opacity 0.3s; }
.nav-logo:hover { opacity: 1; }
.nav-logo svg { width: 20px; height: 20px; }

.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 13px; font-weight: 400; color: var(--text-muted); transition: color 0.3s; }
.nav-links a:hover { color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-btn { font-size: 12px; font-weight: 600; color: var(--text-muted); transition: color 0.3s; }
.lang-btn:hover { color: #fff; }
.btn-buy { background: #fff; color: #000; font-size: 12px; font-weight: 600; padding: 6px 16px; border-radius: 20px; transition: background 0.3s, transform 0.2s; }
.btn-buy:hover { background: #e8e8ed; transform: scale(1.02); }

/* HERO SECTION */
.hero-section { position: relative; height: 120vh; background: #000; }
.hero-video-wrapper { position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden; }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.video-fade-overlay { position: absolute; inset: 0; background: #000; opacity: 0.3; transition: opacity 0.1s; }

.hero-content { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; z-index: 10; pointer-events: none; }
.hero-title { font-size: clamp(40px, 8vw, 100px); font-weight: 600; line-height: 1.05; text-align: center; letter-spacing: -0.03em; text-shadow: 0 4px 24px rgba(0,0,0,0.5); opacity: 0; transform: translateY(40px); }

/* STICKY TEXT REVEAL (APPLE VISION PRO MANIFESTO) */
.sticky-section { background: #000; position: relative; height: 100vh; }
.sticky-container { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sticky-text-wrapper { max-width: 900px; padding: 0 32px; text-align: center; position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.reveal-text-scroll { font-size: clamp(32px, 5vw, 64px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: #fff; grid-area: 1 / 1; width: 100%; opacity: 0; }

/* PARALLAX SECTION */
.parallax-section { position: relative; height: 100vh; background: #000; overflow: hidden; }
.prlx-img-wrapper { position: absolute; inset: 0; width: 100%; height: 100%; }
.prlx-img { width: 100%; height: 120%; object-fit: cover; transform: translateY(-10%); }
.prlx-content { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; z-index: 10; pointer-events: none; }
.prlx-title { font-size: clamp(48px, 10vw, 160px); font-weight: 700; line-height: 1; text-align: center; letter-spacing: -0.04em; color: #fff; mix-blend-mode: overlay; opacity: 0.9; }

/* FEATURE GRID (APPLE BENTO) */
.feature-section { padding: 160px 0; background: var(--bg-dark); }
.feat-header { text-align: center; margin-bottom: 80px; }
.feat-heading { font-size: clamp(32px, 4vw, 56px); font-weight: 600; letter-spacing: -0.02em; max-width: 800px; margin: 0 auto; color: #fff; }

.apple-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 400px; gap: 24px; }
.a-box { position: relative; border-radius: 32px; overflow: hidden; background: #111; border: 1px solid rgba(255,255,255,0.05); }
.large-box { grid-column: span 2; grid-row: span 2; }
.small-box { grid-column: span 1; grid-row: span 1; }
.medium-box { grid-column: span 2; grid-row: span 1; }

.a-box-bg { position: absolute; inset: 0; z-index: 0; }
.a-box-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.8) 100%); z-index: 1; }
.a-box-bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); position: relative; z-index: 0; }
.a-box:hover .a-box-bg img { transform: scale(1.03); }
.solid-dark { background: #1d1d1f; }
.solid-light { background: #f5f5f7; }

.a-box-content { position: relative; z-index: 2; width: 100%; height: 100%; padding: 48px; display: flex; flex-direction: column; }
.top-left { justify-content: flex-start; align-items: flex-start; }
.bottom-left { justify-content: flex-end; align-items: flex-start; }
.center-flex { justify-content: center; align-items: center; text-align: center; }

.a-box h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.a-box p { font-size: 17px; color: var(--text-muted); font-weight: 400; max-width: 400px; }
.huge-num { font-size: clamp(60px, 8vw, 100px) !important; font-weight: 700; line-height: 1; margin-bottom: 0 !important; letter-spacing: -0.05em; }
.huge-num .unit { font-size: 32px; color: var(--text-muted); }
.metric { font-size: 32px !important; margin-top: 16px; }

.gradient-text h3 { background: linear-gradient(90deg, #fff, #86868b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* SELECTED WORKS SHOWCASE SECTION */
.works-section { padding: 140px 0; background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-intro { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 60px; }

.filter-tabs { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.tab-btn { padding: 8px 20px; border-radius: 30px; font-size: 13px; font-weight: 500; color: var(--text-muted); border: 1px solid var(--border); transition: all 0.3s; }
.tab-btn.active, .tab-btn:hover { background: #fff; color: #000; border-color: #fff; }

.works-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.work-card { background: var(--bg-dark); border-radius: 24px; overflow: hidden; border: 1px solid var(--border); transition: transform 0.4s var(--ease), border-color 0.4s; }
.work-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.3); }

.wc-img-wrap { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.wc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.work-card:hover .wc-img-wrap img { transform: scale(1.05); }

.wc-info { padding: 32px; }
.wc-year { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); display: block; margin-bottom: 8px; }
.wc-info h3 { font-size: 24px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.wc-info p { font-size: 15px; color: var(--text-muted); line-height: 1.5; }

/* SPECS SECTION */
.specs-section { padding: 140px 0; background: var(--bg-dark); }
.specs-header { margin-bottom: 60px; }
.specs-grid { border-top: 1px solid var(--border); }
.spec-row { display: grid; grid-template-columns: 1fr 2fr; padding: 40px 0; border-bottom: 1px solid var(--border); gap: 40px; }
.spec-col-label h4 { font-size: 20px; font-weight: 600; color: #fff; }
.spec-col-detail p { font-size: 17px; color: var(--text-muted); line-height: 1.6; }

/* STUDIO PHILOSOPHY SECTION */
.studio-section { padding: 160px 0; background: #08080a; text-align: center; border-bottom: 1px solid var(--border); }
.studio-quote { max-width: 900px; margin: 0 auto; }
.studio-quote blockquote { font-size: clamp(24px, 3.5vw, 44px); font-weight: 400; line-height: 1.3; color: #fff; font-style: italic; margin-bottom: 32px; letter-spacing: -0.02em; }
.studio-quote cite { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; color: var(--text-muted); text-transform: uppercase; font-style: normal; }

/* CONTACT FORM SECTION */
.contact-section { padding: 140px 0; background: var(--bg-dark); }
.contact-box { max-width: 800px; margin: 0 auto; background: var(--bg-card); padding: 60px; border-radius: 32px; border: 1px solid var(--border); }
.cb-header { text-align: center; margin-bottom: 48px; }
.cb-header h2 { font-size: 36px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.cb-header p { font-size: 16px; color: var(--text-muted); }

.apple-form { display: flex; flex-direction: column; gap: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full-width { grid-column: span 2; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 16px 20px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px;
  color: #fff; font-family: var(--font-main); font-size: 15px; outline: none; transition: border-color 0.3s, background 0.3s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #fff; background: rgba(255,255,255,0.08);
}
.form-group select option { background: #1c1c1e; color: #fff; }

.btn-submit { padding: 18px 36px; background: #fff; color: #000; font-size: 15px; font-weight: 600; border-radius: 30px; transition: background 0.3s, transform 0.2s; align-self: center; margin-top: 12px; }
.btn-submit:hover { background: #e8e8ed; transform: scale(1.02); }

/* FOOTER */
.apple-footer { background: #050507; padding: 100px 0 40px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 80px; }
.fg-col h4 { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.1em; margin-bottom: 20px; text-transform: uppercase; }
.fg-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.fg-col ul a { transition: color 0.3s; }
.fg-col ul a:hover { color: #fff; }
.f-info-line { margin-bottom: 12px; line-height: 1.6; }
.f-info-line a { transition: color 0.3s; }
.f-info-line a:hover { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.fb-right a { transition: color 0.3s; }
.fb-right a:hover { color: #fff; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .works-grid { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .contact-box { padding: 32px 24px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .apple-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .large-box, .small-box, .medium-box { grid-column: span 1; }
  .a-box-content { padding: 32px; }
  .hero-title { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   GLOBAL RESPONSIVE SAFETY FIXES
================================================================ */
html, body { overflow-x: hidden !important; width: 100%; max-width: 100vw; }
h1, h2, h3, h4, h5, h6, p, span, a, div { overflow-wrap: break-word; }
img, video { max-width: 100%; }
