/* ============================================================
   PORTFOLIO SYSTEM — portfolio.css
   Madhubani-inspired earthy theme, premium & minimal
   ============================================================ */

/* ── Import Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Poppins:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;1,500&display=swap');

/* ── CSS Variables ────────────────────────────────────── */
:root {
  --ps-red:       #C1121F;
  --ps-yellow:    #F4C430;
  --ps-green:     #386641;
  --ps-terracotta:#B5522B;
  --ps-ivory:     #FAF3E0;
  --ps-dark:      #1B1B1B;
  --ps-white:     #FFFFFF;
  --ps-muted:     #6B6B6B;
  --ps-border:    rgba(193,18,31,0.15);
  --ps-shadow:    0 4px 20px rgba(0,0,0,0.06);
  --ps-shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --ps-radius:    14px;
  --ps-radius-lg: 24px;
  --ps-font-h:    'Playfair Display', serif;
  --ps-font-b:    'Poppins', sans-serif;
  --ps-font-it:   'Lora', serif;
  --ps-transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset (scoped to .ps-page) ───────────────────────── */
.ps-page *, .ps-page *::before, .ps-page *::after { box-sizing: border-box; }
.ps-page { font-family: var(--ps-font-b); color: var(--ps-dark); }

/* ── Madhubani Pattern Divider ────────────────────────── */
.ps-pattern-divider {
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--ps-red) 0 12px,
    var(--ps-yellow) 12px 24px,
    var(--ps-green) 24px 36px,
    var(--ps-terracotta) 36px 48px
  );
  opacity: 0.85;
}

/* ── Hero Section ─────────────────────────────────────── */
.ps-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1B1B1B 0%, #2D1A0E 50%, #1B1B1B 100%);
  padding: 120px 20px 80px;
}

.ps-hero-mandala {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(193,18,31,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(244,196,48,0.12) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(56,102,65,0.10) 0%, transparent 40%);
}

/* SVG Madhubani-style border pattern overlay */
.ps-hero-mandala::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23F4C430' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.ps-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.ps-hero-badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(244,196,48,0.15);
  border: 1px solid rgba(244,196,48,0.4);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ps-yellow);
  margin-bottom: 28px;
  animation: ps-fadeDown 0.8s ease both;
}

.ps-hero-name {
  font-family: var(--ps-font-h);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--ps-white);
  margin-bottom: 16px;
  animation: ps-fadeDown 0.8s 0.15s ease both;
}

.ps-hero-name span {
  background: linear-gradient(135deg, var(--ps-yellow), var(--ps-terracotta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ps-hero-tagline {
  font-family: var(--ps-font-it);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: rgba(255,255,255,0.75);
  font-style: italic;
  margin-bottom: 12px;
  animation: ps-fadeDown 0.8s 0.25s ease both;
}

.ps-hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  max-width: 540px;
  margin: 0 auto 48px;
  animation: ps-fadeDown 0.8s 0.35s ease both;
}

.ps-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: ps-fadeDown 0.8s 0.45s ease both;
}

/* ── Scroll Indicator ─────────────────────────────────── */
.ps-scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: ps-bounce 2s infinite;
}
.ps-scroll-hint i { font-size: 1.2rem; }

/* ── Buttons ───────────────────────────────────────────── */
.ps-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--ps-font-b);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--ps-transition);
  text-decoration: none;
  white-space: nowrap;
}

.ps-btn-primary {
  background: var(--ps-red);
  color: var(--ps-white);
  border-color: var(--ps-red);
  box-shadow: 0 4px 20px rgba(193,18,31,0.35);
}
.ps-btn-primary:hover {
  background: transparent;
  color: var(--ps-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(193,18,31,0.25);
}

.ps-btn-outline {
  background: transparent;
  color: var(--ps-yellow);
  border-color: rgba(244,196,48,0.5);
}
.ps-btn-outline:hover {
  background: var(--ps-yellow);
  color: var(--ps-dark);
  transform: translateY(-2px);
}

.ps-btn-download {
  background: linear-gradient(135deg, var(--ps-yellow), #e6a820);
  color: var(--ps-dark);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(244,196,48,0.4);
}
.ps-btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(244,196,48,0.5);
}

/* ── Section Styling ──────────────────────────────────── */
.ps-section {
  padding: 90px 20px;
}

.ps-section-alt {
  background: linear-gradient(180deg, rgba(244,196,48,0.06) 0%, rgba(244,196,48,0.02) 100%);
}

.ps-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.ps-section-head {
  text-align: center;
  margin-bottom: 60px;
}

.ps-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ps-red);
  margin-bottom: 16px;
}

.ps-section-title {
  font-family: var(--ps-font-h);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ps-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.ps-section-desc {
  font-size: 1.05rem;
  color: var(--ps-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Category Filter Tabs ─────────────────────────────── */
.ps-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.ps-filter-btn {
  padding: 10px 28px;
  border-radius: 50px;
  border: 1.5px solid var(--ps-border);
  background: var(--ps-white);
  color: var(--ps-muted);
  font-family: var(--ps-font-b);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ps-transition);
  box-shadow: var(--ps-shadow);
}

.ps-filter-btn:hover,
.ps-filter-btn.active {
  background: var(--ps-red);
  color: var(--ps-white);
  border-color: var(--ps-red);
  box-shadow: 0 4px 15px rgba(193,18,31,0.25);
  transform: translateY(-1px);
}

/* ── Gallery Grid ─────────────────────────────────────── */
.ps-gallery {
  columns: 3;
  column-gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) { .ps-gallery { columns: 2; } }
@media (max-width: 580px) { .ps-gallery { columns: 1; } }

.ps-gallery-item {
  break-inside: avoid;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.ps-gallery-item.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.ps-art-card {
  background: var(--ps-white);
  border-radius: var(--ps-radius);
  overflow: hidden;
  box-shadow: var(--ps-shadow);
  border: 1px solid var(--ps-border);
  transition: var(--ps-transition);
  position: relative;
}

.ps-art-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ps-shadow-lg);
  border-color: var(--ps-yellow);
}

.ps-art-img-wrap {
  position: relative;
  overflow: hidden;
}

.ps-art-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.ps-art-card:hover .ps-art-img-wrap img {
  transform: scale(1.06);
}

.ps-art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(27,27,27,0.75) 0%, transparent 60%);
  opacity: 0;
  transition: var(--ps-transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.ps-art-card:hover .ps-art-overlay { opacity: 1; }

.ps-art-overlay-view {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ps-yellow);
  display: flex; align-items: center; justify-content: center;
  color: var(--ps-dark);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--ps-transition);
  border: none;
  margin-left: auto;
}
.ps-art-overlay-view:hover { transform: scale(1.1); }

.ps-art-body {
  padding: 20px;
}

.ps-art-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.ps-cat-traditional { background: rgba(181,82,43,0.12); color: var(--ps-terracotta); }
.ps-cat-modern      { background: rgba(56,102,65,0.12);  color: var(--ps-green); }
.ps-cat-custom      { background: rgba(193,18,31,0.1);   color: var(--ps-red); }

.ps-art-title {
  font-family: var(--ps-font-h);
  font-size: 1.25rem;
  color: var(--ps-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.ps-art-desc {
  font-size: 0.88rem;
  color: var(--ps-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ps-art-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ps-green);
}

.ps-art-price.on-request {
  color: var(--ps-muted);
  font-style: italic;
  font-weight: 400;
  font-size: 0.9rem;
}

/* ── Lightbox ─────────────────────────────────────────── */
.ps-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ps-lightbox.open { display: flex; animation: ps-fadeIn 0.25s ease; }

.ps-lightbox-inner {
  display: flex;
  gap: 0;
  max-width: 1000px;
  width: 100%;
  background: var(--ps-white);
  border-radius: var(--ps-radius-lg);
  overflow: hidden;
  max-height: 90vh;
  animation: ps-scaleIn 0.3s ease;
}

.ps-lightbox-img {
  flex: 1.2;
  min-height: 300px;
  max-height: 80vh;
  object-fit: cover;
}

.ps-lightbox-info {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ps-lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ps-transition);
}
.ps-lightbox-close:hover { background: var(--ps-red); }

/* ── Download Bar ─────────────────────────────────────── */
.ps-download-bar {
  background: linear-gradient(135deg, #1B1B1B 0%, #2D1A0E 100%);
  padding: 60px 20px;
  text-align: center;
  border-top: 4px solid var(--ps-yellow);
  border-bottom: 4px solid var(--ps-yellow);
}

.ps-download-bar h2 {
  font-family: var(--ps-font-h);
  color: var(--ps-white);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  margin-bottom: 14px;
}

.ps-download-bar p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  font-size: 1rem;
}

/* ── Contact Section ──────────────────────────────────── */
.ps-contact-section {
  background:
    url('https://www.transparenttextures.com/patterns/handmade-paper.png'),
    linear-gradient(135deg, var(--ps-ivory) 0%, #fff 100%);
}

.ps-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) { .ps-contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.ps-contact-intro h2 {
  font-family: var(--ps-font-h);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--ps-dark);
}

.ps-contact-intro p {
  color: var(--ps-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.ps-contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ps-contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: var(--ps-white);
  border-radius: var(--ps-radius);
  border: 1px solid var(--ps-border);
  box-shadow: var(--ps-shadow);
  transition: var(--ps-transition);
  text-decoration: none;
}

.ps-contact-item:hover {
  border-color: var(--ps-yellow);
  transform: translateX(6px);
  box-shadow: var(--ps-shadow-lg);
}

.ps-contact-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.ps-contact-icon.red    { background: rgba(193,18,31,0.1);  color: var(--ps-red); }
.ps-contact-icon.green  { background: rgba(56,102,65,0.1);  color: var(--ps-green); }
.ps-contact-icon.yellow { background: rgba(244,196,48,0.15); color: #c9960c; }
.ps-contact-icon.insta  { background: linear-gradient(135deg,rgba(193,53,132,0.1),rgba(131,58,180,0.1)); color: #c13584; }

.ps-contact-label { font-size: 0.75rem; color: var(--ps-muted); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.ps-contact-value { font-weight: 600; color: var(--ps-dark); font-size: 0.95rem; }

.ps-commission-card {
  background: linear-gradient(135deg, var(--ps-red), #8B0000);
  border-radius: var(--ps-radius-lg);
  padding: 48px;
  text-align: center;
  color: white;
  box-shadow: 0 20px 60px rgba(193,18,31,0.3);
  position: relative;
  overflow: hidden;
}

.ps-commission-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.ps-commission-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(244,196,48,0.08);
}

.ps-commission-card h3 {
  font-family: var(--ps-font-h);
  font-size: 1.8rem;
  color: var(--ps-yellow);
  margin-bottom: 14px;
}

.ps-commission-card p {
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ── Loading Skeleton ─────────────────────────────────── */
.ps-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: ps-shimmer 1.5s infinite;
  border-radius: var(--ps-radius);
}

/* ── Stats Strip ──────────────────────────────────────── */
.ps-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--ps-border);
  border-radius: var(--ps-radius);
  overflow: hidden;
  margin-top: -1px;
}

.ps-stat {
  background: var(--ps-white);
  padding: 32px 20px;
  text-align: center;
}

.ps-stat-num {
  font-family: var(--ps-font-h);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--ps-red);
  display: block;
}

.ps-stat-label {
  font-size: 0.82rem;
  color: var(--ps-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* ── Animations ───────────────────────────────────────── */
@keyframes ps-fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ps-fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ps-scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes ps-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@keyframes ps-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .ps-section { padding: 60px 16px; }
  .ps-hero    { min-height: 80vh; padding: 100px 16px 60px; }
  .ps-lightbox-inner { flex-direction: column; max-height: 95vh; }
  .ps-lightbox-img   { flex: none; height: 280px; width: 100%; }
}
