/* ═══════════════════════════════════════════
   SAMSARA TATTOO STUDIO MNL
   Premium Dark Theme · Gold Accents
   ═══════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────── */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1c1c1c;

  --gold: #c9ab71;
  --gold-light: #dcc596;
  --gold-dim: rgba(201, 171, 113, 0.15);
  --gold-glow: rgba(201, 171, 113, 0.08);

  --text-primary: #f0ece4;
  --text-secondary: #a09888;
  --text-muted: #5a5348;

  --font-display: 'Cinzel', serif;
  --font-body: 'Cormorant Garamond', serif;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
  --transition-base: 0.4s var(--ease-out);
  --transition-slow: 0.8s var(--ease-out);

  --section-pad: clamp(4rem, 10vh, 8rem);
  --container-max: 1200px;
  --border-radius: 2px;
}

/* ── Reset & Base ──────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--gold-light);
}

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

/* ── Scroll Reveal System ──────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.reveal-left {
  transform: translateX(-40px);
}
.reveal.reveal-right {
  transform: translateX(40px);
}
.reveal.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Section Defaults ──────────────────── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.3;
}

.section-title em {
  font-style: italic;
  font-family: var(--font-body);
  color: var(--gold);
  font-weight: 300;
}

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg-primary);
  box-shadow: 0 0 30px rgba(201, 171, 113, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: rgba(201, 171, 113, 0.4);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: rgba(201, 171, 113, 0.06);
  color: var(--gold-light);
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all 0.5s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(201, 171, 113, 0.08);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.5rem 1.2rem;
  transition: color var(--transition-base);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 60%;
}

.nav-cta {
  border: 1px solid rgba(201, 171, 113, 0.4) !important;
  padding: 0.4rem 1.2rem !important;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  background: rgba(201, 171, 113, 0.08) !important;
  border-color: var(--gold) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #141210 0%, var(--bg-primary) 70%);
}

.hero-bg-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 800px);
  height: min(90vw, 800px);
  animation: mandalaRotate 120s linear infinite;
  pointer-events: none;
}

@keyframes mandalaRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.mandala-svg {
  width: 100%;
  height: 100%;
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-200px) scale(0);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-badge {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--text-primary);
  text-shadow: 0 0 60px rgba(201, 171, 113, 0.1);
}

.hero-title-sub {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.45em;
  color: var(--gold);
  margin-top: 0.5rem;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; height: 30px; }
  50% { opacity: 0.8; height: 50px; }
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-image-frame {
  position: relative;
}

.about-image-placeholder {
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border: 1px solid rgba(201, 171, 113, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-image-placeholder svg {
  width: 100%;
  height: 100%;
}

.about-image-accent {
  position: absolute;
  top: -10px;
  right: -10px;
  bottom: 10px;
  left: 10px;
  border: 1px solid rgba(201, 171, 113, 0.12);
  pointer-events: none;
  z-index: -1;
}

.about-divider {
  margin: 0.5rem 0 1.5rem;
}

.about-divider svg {
  width: 120px;
  height: 20px;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-text em {
  color: var(--gold);
  font-style: italic;
}

.about-stats {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 171, 113, 0.08);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.3rem;
}

/* ═══════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════ */
.services {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(201, 171, 113, 0.06);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(201, 171, 113, 0.12);
  transform: translateY(-4px);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.2rem;
  color: var(--gold);
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.service-card:hover .service-icon {
  opacity: 1;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════ */
.gallery {
  background: var(--bg-secondary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease-out);
}

.gallery-placeholder svg {
  width: 70%;
  height: 70%;
}

.gallery-item:hover .gallery-placeholder {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

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

.gallery-ig-icon {
  width: 32px;
  height: 32px;
  color: var(--text-primary);
}

.gallery-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact {
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(201, 171, 113, 0.06);
  transition: all var(--transition-base);
}

.contact-card:hover {
  border-color: rgba(201, 171, 113, 0.15);
}

.contact-card-icon {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-card h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-card em {
  color: var(--text-muted);
  font-style: italic;
}

.contact-map {
  position: relative;
}

.map-wrapper {
  aspect-ratio: 4/3;
  border: 1px solid rgba(201, 171, 113, 0.1);
  overflow: hidden;
  background: var(--bg-card);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(0.8) contrast(1.1) brightness(0.6);
  transition: filter var(--transition-slow);
}

.map-wrapper:hover iframe {
  filter: grayscale(0.3) contrast(1) brightness(0.8);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--bg-secondary);
  padding: 3rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-mandala {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  pointer-events: none;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-primary);
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  color: var(--text-muted);
  transition: all var(--transition-base);
  padding: 0.5rem;
}

.social-link:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 171, 113, 0.15), transparent);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-address {
  font-style: italic;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image-frame {
    max-width: 400px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0.3rem;
    transition: right 0.5s var(--ease-out);
    border-left: 1px solid rgba(201, 171, 113, 0.08);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.8rem 0;
    width: 100%;
  }

  .nav-links a::after {
    bottom: 0;
    left: 0;
    transform: none;
  }

  .nav-links a:hover::after {
    width: 30px;
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 1rem;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    gap: 3px;
  }

  .footer-top {
    flex-direction: column;
    text-align: center;
    gap: 1.2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .about-stats {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title-line {
    letter-spacing: 0.1em;
  }

  .gallery-grid {
    gap: 2px;
  }
}

/* ── Mobile nav overlay ────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
  z-index: 999;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Selection / Scrollbar ─────────────── */
::selection {
  background: rgba(201, 171, 113, 0.3);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(201, 171, 113, 0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 171, 113, 0.35);
}
