@font-face {
  font-family: "Kalameh";
  src: url("https://arghavanmakeup.ir/fonts/kalameh/Kalameh-Regular.ttf");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Kalameh";
  src: url("https://arghavanmakeup.ir/fonts/kalameh/Kalameh-Bold.ttf");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ============================================
       CSS RESET & BASE
       ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --accent: #9d00ff;
  --accent-dim: rgba(212, 175, 55, 0.15);
  --accent-glow: #9d00ff4d;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --radius-card: 12px;
  --radius-btn: 8px;
  --font: "Kalameh", system-ui, -apple-system, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
       STATUS BAR SPACER
       ============================================ */
.status-spacer {
  height: var(--safe-top);
  background: var(--bg);
}

.headerBg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100svw;
  opacity: 0.2;
  z-index: 0;
}

.headerBg::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 40svh;
  width: 100%;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
}

.headerBg > img {
  width: 100%;
  height: 82svh;
  object-fit: cover;
}

/* ============================================
       ARTIST PROFILE SECTION
       ============================================ */
.profile-section {
  position: relative;
  padding: 24px 20px 32px;
  text-align: center;
  overflow: hidden;
}

/* Radial glow behind avatar */
.profile-section::before {
  content: "";
  position: absolute;
  top: -40px;
  margin-top: 69px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.profile-content {
  position: relative;
  z-index: 1;
  margin-top: 69px;
}

/* Avatar */
.avatar {
  width: 169px;
  height: 169px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow:
    0 0 30px var(--accent-glow),
    0 0 60px rgba(212, 175, 55, 0.1);
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

.artist-name {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.25s forwards;
}

.artist-title {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 12px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.35s forwards;
}

.artist-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 340px;
  margin: 0 auto 20px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.45s forwards;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.55s forwards;
}

.btn {
  text-decoration: none;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition:
    transform 0.2s ease-out,
    box-shadow 0.2s ease-out;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 4px 28px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

/* Ripple effect */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.5s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Social Icons */
.social-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.65s forwards;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.social-icon:active {
  transform: scale(0.92);
}

.social-icon:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 16px var(--accent-glow);
}

.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ============================================
       SECTION DIVIDER
       ============================================ */
.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0 auto 24px;
}

.section-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: 20px;
}

/* ============================================
       GALLERY GRID
       ============================================ */
.gallery-section {
  padding: 0 16px;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Shimmer skeleton */
.gallery-item {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  cursor: pointer;
  touch-action: manipulation;
  opacity: 1;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    var(--surface) 30%,
    #252525 50%,
    var(--surface) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.gallery-item.loaded::before {
  opacity: 0;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.gallery-item:active {
  transform: scale(0.96);
  transition: transform 0.2s ease-out;
}

.gallery-item.visible:active {
  transform: scale(0.96);
}

.gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-card);
  position: relative;
  z-index: 2;
  transition: filter 0.3s ease;
}

/* Heart icon overlay */
.gallery-item .heart-icon {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.gallery-item:hover .heart-icon,
.gallery-item:active .heart-icon {
  opacity: 1;
  transform: scale(1);
}

.heart-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================
       FOOTER
       ============================================ */
.footer {
  display: flex;
  align-items: center;
  max-width: 1020px;
  margin: 0 auto;
  text-align: center;
  padding: 24px 16px;
  padding-bottom: calc(24px + var(--safe-bottom));
  color: var(--text-secondary);
  font-size: 0.8rem;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.enamad {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--border);
  width: 40px;
  border-radius: 10px;
  height: 40px;
  overflow: hidden;
}

.enamad > img {
  width: 80%;
  height: 80%;
}

/* ============================================
       LIGHTBOX MODAL
       ============================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  touch-action: none;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay.closing {
  opacity: 0;
}

/* Modal image container */
.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  will-change: transform;
  touch-action: none;
  -webkit-user-drag: none;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-video {
  max-width: 90svw;
  border-radius: 10px;
}

.lightbox-img.no-transition {
  transition: none !important;
}

/* Close button */
.lightbox-close {
  position: fixed;
  top: calc(12px + var(--safe-top));
  right: calc(12px + var(--safe-right));
  z-index: 1010;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.2rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.lightbox-close:active {
  transform: scale(0.9);
  background: rgba(212, 175, 55, 0.2);
}

/* Navigation arrows */
.lightbox-nav {
  display: flex;
  display: none;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1010;
  width: 44px;
  height: 44px;

  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.lightbox-overlay.active .lightbox-nav {
  opacity: 0.7;
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.9);
  background: rgba(212, 175, 55, 0.2);
}

.lightbox-nav--prev {
  left: calc(12px + var(--safe-left));
}

.lightbox-nav--next {
  right: calc(12px + var(--safe-right));
}

/* Image counter */
.lightbox-counter {
  position: fixed;
  bottom: calc(16px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1010;
  padding: 6px 16px;
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  direction: ltr;
}

/* Share button */
.lightbox-share {
  position: fixed;
  top: calc(12px + var(--safe-top));
  left: calc(12px + var(--safe-left));
  z-index: 1010;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--accent);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.lightbox-share:active {
  transform: scale(0.9);
  background: rgba(212, 175, 55, 0.2);
}

.lightbox-share svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.lightbox-before-btn {
  display: none;
  position: fixed;
  top: calc(12px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1010;
  width: 80px;
  height: 44px;

  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

/* ============================================
       CONTACT MODAL
       ============================================ */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.contact-modal.active {
  opacity: 1;
  visibility: visible;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  max-width: 360px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-modal.active .contact-card {
  transform: scale(1);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.contact-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.contact-card .btn {
  width: 100%;
}

.contact-card a.email-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  direction: ltr;
  display: inline-block;
}

/* Before/After toggle */
.baToggle {
  position: fixed;
  top: calc(16px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1010;
  width: 142px;
  height: 42px;
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.baToggle > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  text-align: center;
  height: 100%;
  color: var(--text-primary);
  transition: background-color 0.2s;
  cursor: pointer;
}

.baToggle > div:hover {
  background-color: var(--accent-dim);
}

.baToggle > div.active {
  background-color: var(--accent);
}

/* ============================================
       KEYFRAMES
       ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
       RESPONSIVE
       ============================================ */
@media (min-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .gallery-section {
    padding: 0 20px;
  }
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .gallery-section {
    padding: 0 40px;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
  .profile-section {
    padding: 40px 20px 48px;
  }
  .artist-name {
    font-size: 2rem;
  }
  .enamad {
    width: 69px;
    height: 69px;
  }
  .lightbox-img {
    max-height: 75vh;
  }
  .lightbox-video {
    max-height: 69svh;
    border-radius: 10px;
  }
}
