/* ============================================================
   MOONINK — Custom Styles
   Dark & Edgy · Fine Line Tattoo Artist
   ============================================================ */

/* 1. CSS Custom Properties */
:root {
  --ink:        #0A0A0A;
  --card:       #141414;
  --elevated:   #1C1C1C;
  --gold:       #C9A84C;
  --gold-light: #E8C96A;
  --text:       #F0EDE8;
  --muted:      #888888;
  --border:     #2A2A2A;

  --font-display: 'Cinzel', serif;
  --font-body:    'Inter', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-std:  300ms;
  --duration-slow: 600ms;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--ink);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 3. Custom Scrollbar */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }

/* 4. Focus Styles */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* 5. Nav — Glass effect on scroll */
#main-nav {
  transition: background var(--duration-std), border-color var(--duration-std);
  border-bottom: 1px solid transparent;
}
#main-nav.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

/* 6. Nav Link — Ink underline reveal */
.nav-link {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--duration-std);
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration-std) var(--ease-out-expo);
}
.nav-link:hover  { color: var(--text); }
.nav-link:hover::after { width: 100%; }

/* 7. Hero — Ink texture background */
.hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 15% 50%,  rgba(201,168,76,.04) 0%, transparent 100%),
    radial-gradient(ellipse 50% 40% at 85% 20%,  rgba(201,168,76,.03) 0%, transparent 100%),
    radial-gradient(ellipse 40% 60% at 55% 90%,  rgba(255,255,255,.01) 0%, transparent 100%),
    var(--ink);
}

/* 8. Hero Animations */
@keyframes ink-reveal {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to   { clip-path: inset(0 0% 0 0);   opacity: 1; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-title {
  animation: ink-reveal 1.4s var(--ease-out-expo) 0.1s both;
}
.hero-tag {
  animation: ink-reveal 1s var(--ease-out-expo) 0.0s both;
}
.hero-sub {
  animation: ink-reveal 1s var(--ease-out-expo) 0.5s both;
}
.hero-divider {
  animation: ink-reveal 0.8s var(--ease-out-expo) 0.7s both;
}
.hero-ctas {
  animation: fade-up 0.7s ease 1s both;
}
.hero-scroll {
  animation: fade-up 0.7s ease 1.4s both;
}

/* 9. Scroll bounce for indicator */
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}
.scroll-indicator {
  animation: scroll-bounce 2.2s ease-in-out infinite;
}

/* 10. Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) ease, transform var(--duration-slow) ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }
.reveal-d4 { transition-delay: 0.40s; }

/* 11. Section header decoration */
.section-eyebrow {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.15;
}
.gold-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 1.5rem auto 0;
}
.gold-rule-left {
  margin-left: 0;
}

/* 12. About photo frame */
.about-frame {
  position: relative;
  z-index: 0;
}
.about-frame::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 14px;
  right: -14px;
  bottom: -14px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  z-index: -1;
  pointer-events: none;
}

/* 13. Skill Badge */
.skill-badge {
  display: inline-block;
  border: 1px solid rgba(201, 168, 76, 0.5);
  color: var(--gold);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 1px;
}

/* 14. Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast), transform var(--duration-fast);
  border-radius: 1px;
  white-space: nowrap;
}
.btn-primary:hover  { background: var(--gold-light); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
  border-radius: 1px;
  white-space: nowrap;
}
.btn-outline:hover  { background: rgba(201,168,76,0.1); transform: translateY(-1px); }
.btn-outline:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--duration-fast);
}
.btn-ghost:hover { color: var(--gold); }

/* 15. Gallery */
.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color var(--duration-std);
}
.gallery-item:hover { border-color: rgba(201,168,76,0.4); }

.gallery-placeholder {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--elevated);
  transition: transform var(--duration-slow) ease;
}
.gallery-item:hover .gallery-placeholder { transform: scale(1.04); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-std);
  pointer-events: none;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* 16. Gallery Filter */
.filter-btn {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  background: transparent;
  padding: 7px 18px;
  cursor: pointer;
  border-radius: 1px;
  transition: color var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast);
}
.filter-btn:hover,
.filter-btn.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.07);
}

.gallery-item.hidden {
  display: none;
}

/* 17. Flash Cards */
.flash-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--duration-std), transform var(--duration-std) var(--ease-out-expo);
}
.flash-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-5px);
}
.flash-card-art {
  aspect-ratio: 1;
  background: var(--elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.flash-card-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: color var(--duration-fast);
}
.flash-card:hover .flash-card-title { color: var(--gold-light); }

/* 18. Instagram Grid Placeholders */
.ig-thumb {
  aspect-ratio: 1;
  background: var(--elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--duration-std), transform var(--duration-std);
}
.ig-thumb:hover { border-color: rgba(201,168,76,0.4); transform: scale(1.02); }

/* 19. Contact Form */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-label span { color: var(--gold); margin-left: 2px; }

.form-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 16px;
  border-radius: 1px;
  outline: none;
  transition: border-color var(--duration-fast);
  -webkit-appearance: none;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--muted); opacity: 0.7; }
.form-input.error { border-color: #e05252; }

textarea.form-input { resize: vertical; min-height: 120px; }

/* 20. Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.checkbox-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  accent-color: var(--gold);
  margin-top: 2px;
  cursor: pointer;
}
.checkbox-label { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.checkbox-label a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.checkbox-label a:hover { color: var(--gold-light); }

/* 21. Mobile Menu */
#mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--duration-std), visibility var(--duration-std);
}
#mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* 22. Legal pages */
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text);
  margin: 2rem 0 0.75rem;
  letter-spacing: 0.05em;
}
.legal-content h3 {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.5rem;
}
.legal-content p,
.legal-content li {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.legal-content a { color: var(--gold); text-decoration: underline; }
.legal-content ul { padding-left: 1.25rem; }
.legal-content ul li { list-style: disc; }

/* 23. Footer */
.footer-link {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.footer-link:hover { color: var(--gold); }

/* 24. Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-title,
  .hero-tag,
  .hero-sub,
  .hero-divider,
  .hero-ctas,
  .hero-scroll { animation: none !important; opacity: 1 !important; clip-path: none !important; }
  .scroll-indicator { animation: none !important; }
}
