/* ============================================
   TASFIA MAHMUD — ARTIST PORTFOLIO
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-text: #2C2C2C;
  --color-text-secondary: #6B6B6B;
  --color-text-tertiary: #999999;
  --color-accent-blush: #E8C4C4;
  --color-accent-lavender: #C4B7D4;
  --color-accent-sage: #B7C4A8;
  --color-border: #ECECEC;
  --color-overlay: rgba(20, 20, 18, 0.92);

  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Outfit', 'Helvetica Neue', sans-serif;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

::selection {
  background-color: var(--color-accent-blush);
  color: var(--color-text);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

.section__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background-color 0.4s var(--ease-out),
              padding 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
  background-color: rgba(250, 250, 248, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 1px 0 var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: opacity 0.3s;
}

.nav__logo:hover {
  opacity: 0.6;
}

.nav__links {
  display: flex;
  gap: 36px;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

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

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__link:hover {
  color: var(--color-text-secondary);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 110;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(250, 250, 248, 0.82) 0%,
    rgba(250, 250, 248, 0.70) 40%,
    rgba(250, 250, 248, 0.85) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--color-text);
}

.hero__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-text {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ============================================
   ABOUT
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.about__text p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__divider {
  width: 48px;
  height: 1.5px;
  background: linear-gradient(to right, var(--color-accent-blush), var(--color-accent-lavender));
  margin-bottom: 32px;
}

.about__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(0.85);
  transition: filter 0.4s var(--ease-out);
}

.about__photo:hover {
  filter: saturate(1);
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid var(--color-border);
  transition: all 0.3s var(--ease-out);
  color: var(--color-text-secondary);
  background: transparent;
}

.filter-btn:hover {
  border-color: var(--color-accent-blush);
  color: var(--color-text);
}

.filter-btn.active {
  background-color: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg);
}

/* Gallery Grid */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.artwork-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  transition: transform 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out),
              opacity 0.4s var(--ease-out);
}

.artwork-card.hidden {
  display: none;
}

.artwork-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.artwork-card__image-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-border);
}

.artwork-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.artwork-card:hover .artwork-card__image {
  transform: scale(1.04);
}

.artwork-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 18, 0.6) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.artwork-card:hover .artwork-card__overlay {
  opacity: 1;
}

.artwork-card__label {
  color: #fff;
}

.artwork-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 2px;
}

.artwork-card__medium {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

/* Placeholder artwork card (when no image) */
.artwork-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 10;
  line-height: 1;
  transition: color 0.3s;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover {
  color: #fff;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  z-index: 10;
  padding: 12px;
  transition: color 0.3s;
}

.lightbox__nav:hover {
  color: #fff;
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

.lightbox__body {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1100px;
  width: 90%;
  max-height: 85vh;
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-out-expo);
}

.lightbox.open .lightbox__body {
  transform: translateY(0);
}

.lightbox__image-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__info {
  width: 280px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox__title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
}

.lightbox__meta {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  line-height: 1.6;
}

.lightbox__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.65);
}

.lightbox__inquire {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-blush);
  border-bottom: 1px solid rgba(232, 196, 196, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
}

.lightbox__inquire:hover {
  border-color: var(--color-accent-blush);
  color: #fff;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  text-align: center;
}

.contact__inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact .about__divider {
  margin-left: auto;
  margin-right: auto;
}

.contact__text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact__email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.3s;
}

.contact__email::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-accent-blush);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.contact__email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.contact__email:hover {
  color: var(--color-text-secondary);
}

.contact__socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.contact__social {
  color: var(--color-text-tertiary);
  transition: color 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.contact__social:hover {
  color: var(--color-text);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  letter-spacing: 0.04em;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

[data-animate="fade-in"] {
  transform: none;
}

[data-animate].visible {
  opacity: 1;
  transform: none;
}

/* Staggered delays */
[data-delay="1"] { transition-delay: 0.15s; }
[data-delay="2"] { transition-delay: 0.3s; }
[data-delay="3"] { transition-delay: 0.45s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image {
    order: -1;
    max-width: 320px;
  }

  .lightbox__body {
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    padding: 20px 0;
  }

  .lightbox__info {
    width: 100%;
    text-align: center;
    padding: 0 20px 20px;
  }

  .lightbox__image {
    max-height: 50vh;
  }

  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), visibility 0.3s;
  }

  .nav__links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.1rem;
  }

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

@media (max-width: 480px) {
  .hero__name {
    font-size: 2.4rem;
  }

  .portfolio__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .artwork-card__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(20, 20, 18, 0.5) 0%, transparent 40%);
  }

  .artwork-card__title {
    font-size: 0.9rem;
  }

  .artwork-card__medium {
    font-size: 0.65rem;
  }

  .portfolio__filters {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.7rem;
  }
}
