/* ═══════════════════════════════════════════════
   PRACTICALFX — Main Stylesheet
   ═══════════════════════════════════════════════ */

:root {
  --bg:          #0a0a0a;
  --surface:     #121212;
  --surface-2:   #1a1a1a;
  --border:      #272727;
  --text:        #f0ede8;
  --text-muted:  #7a7a7a;
  --accent:      #E07B00;
  --accent-dim:  #c46d00;
  --accent-glow: rgba(224, 123, 0, 0.15);
  --nav-h:       72px;
  --radius:      6px;
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }

/* ─── Typography ─── */
h1, h2, h3 { font-family: 'Bebas Neue', 'Impact', sans-serif; font-weight: 400; letter-spacing: 0.02em; line-height: 1; }

/* ─── Utilities ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s var(--ease);
}
.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover { background: var(--accent-dim); transform: translateY(-1px); }

.section-header { margin-bottom: 56px; }
.section-title {
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--text);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
}

/* ═══════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.nav__logo-img {
  height: 36px;
  filter: invert(1) brightness(1);
  mix-blend-mode: screen;
  transition: opacity 0.2s;
}
.nav__logo:hover .nav__logo-img { opacity: 0.75; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav__link:hover { color: var(--text); }
.nav__cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s !important;
}
.nav__cta:hover { background: var(--accent); color: #fff !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.nav__hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-h) 32px 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(224, 123, 0, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(224, 123, 0, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero__logo {
  width: clamp(180px, 30vw, 280px);
  filter: invert(1) brightness(1);
  mix-blend-mode: screen;
  margin-bottom: 8px;
}
.hero__division {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__tagline {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  color: var(--text);
  margin-bottom: 8px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.hero__scroll:hover { color: var(--text); }
.scroll-dot { animation: scrollBounce 1.8s ease-in-out infinite; }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: 0.3; }
}

/* ═══════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════ */
.gallery-section {
  padding: 100px 0;
  background: var(--surface);
}

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

.gallery-item.wide { grid-column: 1 / -1; }

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  cursor: pointer;
}
.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img,
.gallery-item:hover video { transform: scale(1.04); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__caption {
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}

.play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.gallery-item:hover .play-icon { transform: scale(1.1); background: rgba(255,255,255,0.25); }
.play-icon svg { margin-left: 4px; }

.gallery-item--placeholder {
  background: var(--surface-2);
  border: 1px dashed var(--border);
}
.gallery-item--placeholder::after {
  content: 'Add Photo / Video';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   CAPABILITIES
   ═══════════════════════════════════════════════ */
.capabilities-section {
  padding: 100px 0;
  background: var(--bg);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cap-card {
  padding: 48px 40px;
  background: var(--surface);
  transition: background 0.2s;
}
.cap-card:hover { background: var(--surface-2); }

.cap-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 24px;
}
.cap-card__icon svg { width: 100%; height: 100%; }

.cap-card__title {
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cap-card__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cap-card__list li { display: flex; flex-direction: column; gap: 4px; }
.cap-card__list strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.cap-card__list span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact-section {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 8px;
  max-width: 400px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-item a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  padding: 40px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__logo {
  height: 28px;
  filter: invert(1) brightness(1);
  mix-blend-mode: screen;
  opacity: 0.4;
}
.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__media {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__media img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__media video {
  max-width: min(860px, 90vw);
  max-height: 65vh;
  border-radius: var(--radius);
  outline: none;
}
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.lightbox__close:hover { color: #fff; }
.lightbox__close svg { width: 24px; height: 24px; }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lightbox__nav:hover { color: #fff; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; }
  .capabilities-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav__link { padding: 14px 32px; width: 100%; color: var(--text-muted); }
  .nav__cta { border: none; padding: 14px 32px; }

  .nav__hamburger { display: flex; }

  .gallery-grid { grid-template-columns: 1fr; gap: 8px; }

  .footer__inner { flex-direction: column; gap: 16px; text-align: center; }

  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }

  .section-header { margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .cap-card { padding: 32px 24px; }
}
