/* ============================================
   EDGE VR STUDIOS — Main Stylesheet
   ============================================ */

:root {
  --accent: #a0138e;
  --bg: #ffffff;
  --bg-light: #f7f7f7;
  --bg-dark: #1a1a1a;
  --text: #1a1a1a;
  --text-mid: #646464;
  --text-muted: #969696;
  --border: rgba(0,0,0,0.1);
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --nav-h: 70px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============================================
   NAVIGATION — glass morphism (v2 style)
   ============================================ */

:root {
  --nav-h: 64px;
}

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  /* Start transparent */
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition:
    background 0.5s cubic-bezier(0.25, 0.4, 0.25, 1),
    backdrop-filter 0.5s,
    -webkit-backdrop-filter 0.5s,
    border-color 0.5s;
}

/* Triggered by JS on scroll > 40px */
#navbar.scrolled {
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom-color: rgba(0,0,0,0.06);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo svg,
.nav-logo img {
  height: 26px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 0;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.nav-menu a {
  display: block;
  position: relative;
  padding: 0 16px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.13em;
  color: rgba(26,26,26,0.52);
  text-transform: uppercase;
  transition: color 0.22s;
  line-height: var(--nav-h);
  white-space: nowrap;
}

.nav-menu a:hover {
  color: rgba(26,26,26,0.9);
}

.nav-menu a.active {
  color: rgba(26,26,26,0.9);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(26,26,26,0.55);
}

/* On main page navbar is transparent over dark video — make underline white */
body.page-main #navbar:not(.scrolled) .nav-menu a.active {
  text-decoration-color: rgba(255,255,255,0.75);
}

/* ── CTA pill button (v2 signature) ── */
.nav-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #fff;
  background: #1a1a1a;
  border: none;
  cursor: pointer;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.22s, color 0.22s;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep — same as v2 */
.nav-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-18deg);
  animation: nav-shimmer 5s ease-in-out infinite;
  animation-delay: 3s;
}
@keyframes nav-shimmer {
  0%   { left: -70%; opacity: 1; }
  55%  { left: 130%; opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

.nav-cta svg { display: none; } /* hide old arrow */
.nav-cta:hover { background: var(--accent); }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.25, 0.4, 0.25, 1),
              opacity 0.25s;
  transform-origin: center;
}

/* Hamburger → X */
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ── Mobile menu — slide down from nav ── */
.mobile-menu {
  display: flex;           /* always flex; visibility via transform */
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 998;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 20px 0 28px;
  /* Hidden state */
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.4s cubic-bezier(0.25, 0.4, 0.25, 1),
    opacity 0.3s;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.6);
  transition: color 0.2s, background 0.2s;
}

.mobile-menu a:hover {
  color: #1a1a1a;
  background: rgba(0,0,0,0.025);
}

/* ============================================
   HERO
   ============================================ */

#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.hero-title {
  font-size: clamp(44px, 6.5vw, 66px);
  font-weight: 300;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  margin-bottom: 16px;
}

.hero-line {
  width: 120px;
  height: 1px;
  background: rgba(255,255,255,0.6);
  margin: 0 auto 16px;
}

.hero-tagline {
  font-size: 15px;
  font-weight: 300;
  letter-spacing: normal;
  color: rgba(255,255,255,0.75);
  text-transform: lowercase;
}

/* ============================================
   SHARED SECTION STYLES
   ============================================ */

.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

.section-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text);
}

.section-title-dark {
  color: #fff;
}

.section-rule {
  width: 48px;
  height: 1px;
  background: var(--text-mid);
  margin: 20px 0 32px;
}

.section-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-mid);
  max-width: 660px;
}

/* ============================================
   PARTNERS
   ============================================ */

#partners {
  background: #fff;
  padding: 56px 40px;
  text-align: center;
}

#partners .section-label {
  margin-bottom: 36px;
}

.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}

.partners-row img {
  height: 40px;
  width: auto;
  mix-blend-mode: multiply;
  filter: grayscale(100%);
  opacity: 1;
  transition: opacity 0.3s;
}

.partners-row img:nth-child(2) { height: 15px; } /* Uberion */
.partners-row img:nth-child(3) { height: 62px; } /* Katerra */

.partners-row img:hover {
  opacity: 0.35;
}

/* ============================================
   ABOUT / DESCRIPTION
   ============================================ */

#about {
  background: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 0;
  align-items: start;
}

.about-meta {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.about-meta-line {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.about-meta-line strong { color: var(--text); font-weight: 400; }

.about-unique-title {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.about-unique-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-unique-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-unique-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-mid);
  flex-shrink: 0;
  margin-top: 9px;
}

.about-unique-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-mid);
}

/* ============================================
   TEAM
   ============================================ */

#team {
  background: var(--bg-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 320px);
  gap: 40px;
  justify-content: center;
  margin-top: 48px;
}

.team-card { background: #fff; }

.team-card-img {
  width: 100%;
  aspect-ratio: 1 / 1.25;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-card-body { padding: 24px; }

.team-card-name {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.team-card-role {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.team-card-bio {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-mid);
}

/* ============================================
   SERVICES
   ============================================ */

#services { background: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.services-list {
  list-style: none;
  margin-top: 16px;
}

.services-list li {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.services-list li:hover { color: var(--text); }

.services-visual img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.services-visual img + img {
  margin-top: 8px;
}

/* ============================================
   PROJECTS / GALLERY
   ============================================ */

#projects { background: var(--bg-light); padding: 80px 0; }

.projects-header { padding: 0 40px; margin-bottom: 32px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Hover overlay */
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.22);
  opacity: 0;
  z-index: 1;
  transition: opacity 0.45s ease;
}

.gallery-item:hover::before {
  opacity: 1;
}

/* Caption that appears on hover */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  color: rgba(255,255,255,0.9);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Video cards in gallery */
.gallery-item--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item--video:hover video {
  transform: scale(1.04);
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lb-close {
  position: absolute;
  top: 20px; right: 28px;
  font-size: 34px; color: #fff;
  background: none; border: none; cursor: pointer; line-height: 1;
}
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 44px; color: rgba(255,255,255,0.7);
  background: none; border: none; cursor: pointer; padding: 16px;
  transition: color 0.2s;
}
.lb-prev:hover, .lb-next:hover { color: #fff; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* ============================================
   VIDEO REEL
   ============================================ */

#video { background: #fff; }

.video-wrap { max-width: 1000px; margin: 0 auto; padding: 80px 40px; text-align: center; }

.video-header { margin-bottom: 40px; }
.video-header .section-rule { margin: 20px auto 0; }

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  margin-bottom: 24px;
}
.video-embed iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}

.btn-text-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  border-bottom: 1px solid var(--text-mid);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-text-link:hover { color: var(--text); border-color: var(--text); }

/* ============================================
   CONTACT
   ============================================ */

#contact { background: var(--bg-light); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-heading {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 8px;
}

.contact-sub {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact-details { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }

.contact-detail-lbl {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-detail-val {
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
}

.contact-detail-val a:hover { color: var(--accent); }

.contact-social { display: flex; gap: 14px; margin-top: 8px; }
.contact-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--text-mid);
  transition: color 0.2s, border-color 0.2s;
}
.contact-social a:hover { color: var(--accent); border-color: var(--accent); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input, .form-field textarea {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  border: 1px solid #ccc;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--text); }
.form-field textarea { min-height: 130px; resize: vertical; }

.form-submit {
  align-self: flex-start;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--text);
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--accent); }

.form-msg { font-size: 13px; color: #2e7d32; padding: 8px 0; display: none; }

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 20px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand-name {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2px;
}

.footer-tagline {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #555;
}

.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-social a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  transition: opacity 0.2s;
}

.footer-social a:hover { opacity: 0.8; }

.footer-bottom {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #555;
}

/* ============================================
   FADE IN ANIMATION
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.show { opacity: 1; transform: none; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .about-grid, .services-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  #navbar { padding: 0 24px; }

  .section-wrap { padding: 60px 24px; }
  #partners { padding: 48px 24px; }
  .projects-header { padding: 0 24px; }
  .video-wrap { padding: 60px 24px; }
  #video { background: #fff; }
  footer { padding: 48px 24px; }

  .nav-menu, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .team-grid { grid-template-columns: 1fr; max-width: 340px; margin: 40px auto 0; }
  .gallery-grid { grid-template-columns: 1fr; gap: 3px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-links { gap: 16px; }
}
