/* ============================================
   KathiKunst – Portfolio Demo Styles
   ============================================ */

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

:root {
  --color-bg: #0f0f1a;
  --color-bg-alt: #1a1a2e;
  --color-card: #16213e;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-accent: #c084fc;
  --color-accent-light: #d8b4fe;
  --color-accent-dark: #a855f7;
  --color-rose: #f472b6;
  --color-gold: #fbbf24;
  --color-surface: rgba(255,255,255,0.04);
  --color-border: rgba(255,255,255,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea {
  font-family: inherit;
  font-size: inherit;
  width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__desc {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 48px;
}

.text-accent {
  background: linear-gradient(135deg, var(--color-accent), var(--color-rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-rose));
  color: #fff;
  box-shadow: 0 4px 16px rgba(168,85,247,0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(168,85,247,0.45);
}

.btn--primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn--outline {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
}

/* Instagram Button */
.btn--instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #515bd4);
  color: #fff;
  box-shadow: 0 4px 16px rgba(221,42,123,0.3);
}
.btn--instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(221,42,123,0.45);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15,15,26,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-accent), var(--color-rose));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo__light { font-weight: 400; }

.nav { display: flex; gap: 32px; }

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.nav__link:hover { color: var(--color-text); }
.nav__link:hover::after { width: 100%; }

/* --- Menu Toggle --- */
.menu-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(192,132,252,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(244,114,182,0.08) 0%, transparent 60%),
    var(--color-bg);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 30%, rgba(192,132,252,0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(244,114,182,0.03) 0%, transparent 40%);
  pointer-events: none;
}

.hero__content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Floating Instagram Badge --- */
.instagram-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 24px;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: all 0.3s ease;
}
.instagram-badge:hover {
  border-color: #dd2a7b;
  color: #fff;
  background: rgba(221,42,123,0.1);
  box-shadow: 0 0 20px rgba(221,42,123,0.15);
}

/* --- Gallery --- */
.gallery {
  background: var(--color-bg-alt);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.art-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.art-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

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

.art-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #1e1e36;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
}
.art-card:hover .art-card__image {
  transform: scale(1.08);
}

.art-card__image--placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1e1e36, #2a2a4e);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.art-card__image--placeholder svg {
  width: 80%;
  height: 80%;
}

.art-card__image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.art-card__image-overlay span {
  font-size: 2rem;
  color: #fff;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}
.art-card:hover .art-card__image-overlay {
  opacity: 1;
}
.art-card:hover .art-card__image-overlay span {
  transform: translateY(0);
}

.art-card__body {
  padding: 20px;
}

.art-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.art-card__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.art-card__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.art-card__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.art-card__btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}

.art-card__btn--detail {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-rose));
  color: #fff;
}

.art-card__btn--detail:hover {
  opacity: 0.9;
}

/* --- Instagram Callout Section --- */
.instagram-section {
  text-align: center;
  padding: 80px 0;
  position: relative;
}
.instagram-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(221,42,123,0.2), transparent);
}
.instagram-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(221,42,123,0.2), transparent);
}
.instagram-section__icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 20px rgba(221,42,123,0.3));
}
.instagram-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
  background: linear-gradient(135deg, #f58529, #dd2a7b, #515bd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.instagram-section p {
  color: var(--color-text-muted);
  max-width: 420px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

/* --- About --- */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__image-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.about__image-placeholder svg {
  width: 100%;
  display: block;
}

.about__text p {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.about__text .btn { margin-top: 8px; }

/* --- Footer --- */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer__link {
  color: var(--color-text-muted);
  transition: color 0.3s;
}
.footer__link:hover {
  color: var(--color-accent);
}
.footer__link--instagram:hover {
  color: #dd2a7b;
}

.badge-demo {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 3px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* --- Lightbox (full-image overlay) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.4s ease;
}
.lightbox.active .lightbox__img {
  transform: scale(1);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s;
  z-index: 301;
}
.lightbox__close:hover {
  background: rgba(0,0,0,0.8);
}
.lightbox__caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-family: var(--font-display);
  text-align: center;
  max-width: 80%;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image load fade */
.art-card__image {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.5s ease;
}
.art-card__image.loaded {
  opacity: 1;
}

/* --- Modal Overlay (Detail View) --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(15,15,26,0.98);
    padding: 20px;
    gap: 16px;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
  }

  .menu-toggle { display: flex; }

  .gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section { padding: 64px 0; }
  .instagram-section { padding: 56px 0; }
  .hero__actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .hero__title { font-size: 2.4rem; }
  .footer__inner { flex-direction: column; text-align: center; }
}
