/* ============================================
   DANIIL ANGELO BRAVI — Portfolio
   ============================================ */

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

:root {
  --bg: #000;
  --text: #fff;
  --text-dim: rgba(255,255,255,0.45);
  --nav-h: 60px;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gap: 6px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.08em;
  min-height: 100vh;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  z-index: 100;
  transition: background 0.3s;
}

nav.scrolled { background: rgba(0,0,0,0.92); }

.nav-logo {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  font-weight: 300;
}

.nav-links { display: flex; gap: 32px; list-style: none; }

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-lang { position:relative; }
.lang-cur { font-size:11px; letter-spacing:.15em; text-transform:uppercase; color:rgba(255,255,255,.5); cursor:pointer; border:1px solid rgba(255,255,255,.25); padding:4px 9px; user-select:none; display:inline-block; }
.lang-cur::after { content:" ▾"; font-size:9px; }
.lang-drop { display:none; position:absolute; right:0; top:calc(100% + 6px); background:rgba(0,0,0,.97); border:1px solid rgba(255,255,255,.15); z-index:200; }
.lang-drop a { display:block; padding:7px 14px; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.6); text-decoration:none; white-space:nowrap; }
.lang-drop a:hover { color:#fff; background:rgba(255,255,255,.05); }
.nav-lang:hover .lang-drop, .nav-lang.open .lang-drop { display:block; }

.hero { position: relative; width: 100%; height: 100vh; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; opacity: 0; transition: opacity 1.8s ease; }
.hero img.is-active { opacity: 1; }

.hero-title {
  position: absolute;
  bottom: 48px; left: 40px;
  margin: 0;
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 200;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.hero-title span { display: block; }

.page-header { padding: calc(var(--nav-h) + 48px) 40px 32px; }
.page-header h1 { font-size: 11px; font-weight: 400; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-dim); }

.gallery { padding: 0 var(--gap) var(--gap); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; display: block; aspect-ratio: 3/4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.6s ease; }
.gallery-item img.is-loaded { opacity: 1; }
.gallery-item:hover img { transform: scale(1.03); }
.price-badge { position: absolute; top: 12px; right: 12px; padding: 6px 12px; background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.25); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); z-index: 1; }
.price-badge.not-for-sale { color: var(--text-dim); }
.gallery-item .caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 48px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,0.75)); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0; transition: opacity 0.3s; }
.gallery-item:hover .caption { opacity: 1; }

.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 999; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; cursor: default; }
.lightbox-close { position: fixed; top: 24px; right: 32px; font-size: 24px; cursor: pointer; color: var(--text-dim); background: none; border: none; transition: color 0.2s; }
.lightbox-close:hover { color: var(--text); }
.lightbox-caption { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); font-size: 28px; cursor: pointer; color: var(--text-dim); background: none; border: none; padding: 16px; transition: color 0.2s; }
.lightbox-nav:hover { color: var(--text); }
.price-calculator { display: none; position: fixed; bottom: 24px; right: 24px; width: 280px; background: rgba(10,10,10,0.94); border: 1px solid rgba(255,255,255,0.15); padding: 20px; font-size: 12px; color: var(--text); cursor: default; }
.price-calculator.visible { display: block; }
.pc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.pc-row label { font-size: 11px; letter-spacing: 0.05em; }
.pc-frame { cursor: pointer; }
.pc-frame input { margin-right: 8px; }
.pc-shipping { margin-bottom: 14px; }
.pc-shipping label { display: block; font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
#pc-country { background: #111; color: var(--text); border: 1px solid rgba(255,255,255,0.2); padding: 7px; font-size: 10px; font-family: var(--font); width: 100%; }
.pc-total { font-size: 16px; font-weight: 200; letter-spacing: 0.05em; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 14px; margin-top: 4px; }
.pc-cta { display: block; text-align: center; margin-top: 4px; padding: 12px 20px; font-size: 9px; width: 100%; }
.pc-cta.is-disabled { opacity: 0.35; pointer-events: none; cursor: not-allowed; }
.pc-note { margin-top: 10px; font-size: 9px; line-height: 1.5; color: var(--text-dim); text-align: center; }
.pc-terms { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0; font-size: 10px; line-height: 1.6; color: var(--text-dim); cursor: pointer; }
.pc-terms input { margin-top: 2px; flex-shrink: 0; }

@media (min-width: 769px) and (max-width: 1024px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 10px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .page-header { padding: calc(var(--nav-h) + 32px) 24px 24px; }
  .hero-title { font-size: clamp(20px, 3.5vw, 38px); left: 24px; bottom: 36px; }
  footer { padding: 32px 24px; }
  .payment-badges-wrap { padding: 24px 24px 0; }
  .video-grid { grid-template-columns: 1fr; padding: 0 24px 24px; }
  .price-calculator { width: 260px; }
}
@media (max-width: 768px) {
  .price-calculator { left: 12px; right: 12px; bottom: 12px; width: auto; }
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

@media (min-width: 769px) and (max-width: 1024px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 10px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .page-header { padding: calc(var(--nav-h) + 32px) 24px 24px; }
  .hero-title { font-size: clamp(20px, 3.5vw, 38px); left: 24px; bottom: 36px; }
  footer { padding: 32px 24px; }
  .payment-badges-wrap { padding: 24px 24px 0; }
  .video-grid { grid-template-columns: 1fr; padding: 0 24px 24px; }
  .price-calculator { width: 260px; }
}
@media (max-width: 768px) {
  .lightbox-nav { font-size: 20px; padding: 10px; }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
}

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(480px, 1fr)); gap: var(--gap); padding: 0 var(--gap) var(--gap); }
.video-wrap { position: relative; padding-bottom: 56.25%; background: #111; cursor: pointer; overflow: hidden; }
.video-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); }
.video-wrap:hover img { transform: scale(1.03); }
.video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.4); color: var(--text); font-size: 20px; display: flex; align-items: center; justify-content: center; transition: background 0.2s, border-color 0.2s; pointer-events: none; }
.video-wrap:hover .video-play { background: rgba(0,0,0,0.75); border-color: var(--text); }

.video-lightbox-frame { width: min(90vw, 160vh); aspect-ratio: 16/9; }
.video-lightbox-frame iframe { width: 100%; height: 100%; border: none; display: block; }

.contact-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--nav-h) 40px 80px; }
.contact-inner { max-width: 520px; width: 100%; }
.contact-inner h2 { font-size: 11px; font-weight: 400; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 40px; }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding: 10px 0; color: var(--text); font-family: var(--font); font-size: 13px; letter-spacing: 0.06em; outline: none; transition: border-color 0.2s; resize: none; }
.form-group input:focus, .form-group textarea:focus { border-color: rgba(255,255,255,0.7); }
.form-group textarea { min-height: 120px; }
.btn-send { margin-top: 32px; background: none; border: 1px solid rgba(255,255,255,0.3); color: var(--text); font-family: var(--font); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; padding: 14px 40px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.btn-send:hover { border-color: var(--text); background: rgba(255,255,255,0.05); }

.payment-badges-wrap { padding: 32px 40px 0; text-align: center; }
.payment-badges-label { font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.payment-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pay-logo { height: 36px; width: auto; }

footer { padding: 40px 40px 32px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-copy { font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); }
.footer-social { display: flex; gap: 20px; }
.footer-social a { color: var(--text-dim); text-decoration: none; font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; transition: color 0.2s; }
.footer-social a:hover { color: var(--text); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; position: relative; z-index: 101; }
.hamburger span { display: block; width: 22px; height: 1px; background: var(--text); transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


@media (min-width: 769px) and (max-width: 1024px) {
  nav { padding: 0 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 10px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .page-header { padding: calc(var(--nav-h) + 32px) 24px 24px; }
  .hero-title { font-size: clamp(20px, 3.5vw, 38px); left: 24px; bottom: 36px; }
  footer { padding: 32px 24px; }
  .payment-badges-wrap { padding: 24px 24px 0; }
  .video-grid { grid-template-columns: 1fr; padding: 0 24px 24px; }
  .price-calculator { width: 260px; }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .hamburger { display: flex; }
  .nav-links { display: none; position: fixed; inset: 0; background: var(--bg); flex-direction: column; align-items: center; justify-content: center; gap: 40px; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 14px; }
  .lang-cur { display:none; }
  .lang-drop { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; position:static; background:none; border:none; }
  .lang-drop a { padding:4px 9px; border:1px solid rgba(255,255,255,.25); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 28px; left: 20px; bottom: 32px; }
  .page-header { padding: calc(var(--nav-h) + 24px) 20px 24px; }
  .video-grid { grid-template-columns: 1fr; padding: 0 20px 20px; }
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 32px 20px; }
}

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