/* ============================================================
   css/base.css — Reset, Global Styles, Utility Classes
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

/* ── CONTAINER ── */
.container {
  max-width: var(--max-width);
  margin:  0 auto;
  padding: 0 var(--container-pad);
}

/* ── SECTIONS ── */
section {
  padding: 6rem 0;
}

/* ── SECTION TYPOGRAPHY ── */
.section-label {
  font-family:  var(--font-cond);
  font-size:    0.75rem;
  font-weight:  700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color:  var(--yellow);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--yellow);
  max-width: 60px;
}

.section-title {
  font-family:  var(--font-display);
  font-size:    clamp(2.5rem, 5vw, 4.5rem);
  line-height:  0.95;
  color:        var(--text-primary);
  margin-bottom: 1.5rem;
}

.section-sub {
  font-size:   1.05rem;
  color:       var(--text-secondary);
  max-width:   520px;
  line-height: 1.7;
}

.section-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.section-center {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family:    var(--font-cond);
  font-size:      0.9rem;
  font-weight:    700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background:  var(--yellow);
  color:       var(--black);
  padding:     1rem 2.5rem;
  border:      2px solid var(--yellow);
  transition:  all var(--transition);
  display:     inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: transparent;
  color: var(--yellow);
}

.btn-outline {
  font-family:    var(--font-cond);
  font-size:      0.9rem;
  font-weight:    700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background:  transparent;
  color:       #FAFAFA;
  padding:     1rem 2.5rem;
  border:      2px solid rgba(250, 250, 250, 0.3);
  transition:  all var(--transition);
  display:     inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.btn-outline-dark {
  font-family:    var(--font-cond);
  font-size:      0.85rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background:  transparent;
  color:       var(--text-secondary);
  padding:     0.75rem 1.75rem;
  border:      1px solid var(--border);
  transition:  all var(--transition);
  display:     inline-flex;
  align-items: center;
}

.btn-outline-dark:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ── LOADER ── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-family:    var(--font-display);
  font-size:      4rem;
  color:          #FAFAFA;
  letter-spacing: 0.1em;
  animation: pulse 1s ease infinite;
}

.loader-logo span { color: var(--yellow); }

.loader-bar {
  width:      200px;
  height:     2px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  overflow:   hidden;
}

.loader-fill {
  height:     100%;
  background: var(--yellow);
  animation:  load 2s ease forwards;
}

@keyframes load {
  from { width: 0; }
  to   { width: 100%; }
}

/* ── BACK TO TOP ── */
.back-top {
  position:  fixed;
  bottom:    2rem;
  right:     2rem;
  width:     44px;
  height:    44px;
  background: var(--yellow);
  color:      var(--black);
  border:     none;
  font-size:  1.2rem;
  display:    flex;
  align-items: center;
  justify-content: center;
  opacity:   0;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index:   900;
}

.back-top.visible {
  opacity:   1;
  transform: translateY(0);
}

/* ── MODAL ── */
.modal-overlay {
  position:   fixed;
  inset:      0;
  background: rgba(0, 0, 0, 0.9);
  z-index:    2000;
  display:    flex;
  align-items: center;
  justify-content: center;
  padding:    2rem;
  opacity:    0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background:  var(--bg-card);
  max-width:   700px;
  width:       100%;
  max-height:  90vh;
  overflow-y:  auto;
  position:    relative;
}

.modal-header {
  padding:      2rem;
  border-bottom: 1px solid var(--border);
  display:      flex;
  align-items:  center;
  justify-content: space-between;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size:   2rem;
  color:       var(--text-primary);
}

.modal-close {
  background: none;
  border:     1px solid var(--border);
  width:      36px;
  height:     36px;
  color:      var(--text-secondary);
  font-size:  1.2rem;
  display:    flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.modal-close:hover {
  background:   var(--yellow);
  border-color: var(--yellow);
  color:        var(--black);
}

.modal-body { padding: 2rem; }

.modal-img {
  width:        100%;
  aspect-ratio: 16 / 9;
  background:   var(--bg-surface);
  display:      flex;
  align-items:  center;
  justify-content: center;
  font-size:    4rem;
  margin-bottom: 2rem;
}

.modal-tags {
  display:       flex;
  gap:           0.5rem;
  flex-wrap:     wrap;
  margin-bottom: 1.5rem;
}

.modal-tag {
  font-family:    var(--font-cond);
  font-size:      0.7rem;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background:  rgba(245, 197, 24, 0.1);
  border:      1px solid rgba(245, 197, 24, 0.3);
  color:       var(--yellow);
  padding:     0.25rem 0.75rem;
}

.modal-body p {
  font-size:   0.95rem;
  color:       var(--text-secondary);
  line-height: 1.7;
}
