/* ============================================
   VANESSA GOESS - Artist Portfolio
   Mobile-first responsive stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Base neutrals */
  --color-anthracite: #383e42;
  --color-anthracite-light: #4a5056;
  --color-anthracite-dark: #2c3135;
  --color-cream: #f5f0eb;
  --color-warm-white: #f9f6f2;
  
  /* Rich accent colors */
  --color-accent: #a0522d;          /* Burnt Sienna - primary accent */
  --color-dusty-rose: #c9a9a6;      /* Dusty Rose - soft accent */
  --color-forest: #4a5d4a;          /* Forest Green - secondary accent */
  
  --color-border: #d4d0cc;
  --color-text: #383e42;
  --color-text-light: #6b7178;

  --font-heading: 'Cormorant', serif;
  --font-body: Arial, Helvetica, sans-serif;

  --header-height: 60px;
  --container-padding: 1.25rem;
  --section-spacing: 4rem;
  
  /* Paper texture */
  --paper-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  --paper-texture-light: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
}

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

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

body {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

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

/* --- Typography --- */
.section-heading {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  margin-bottom: 1.5rem;
  color: var(--color-anthracite);
}

.section-heading--center {
  text-align: center;
}

.section-heading--light {
  color: var(--color-cream);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 var(--container-padding);
  background-color: var(--color-warm-white);
  background-image: var(--paper-texture-light);
  background-blend-mode: multiply;
  background-size: 200px 200px;
  border-bottom: 1px solid var(--color-accent);
  transition: background-color 0.3s ease;
}

.header h1 {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.header__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1rem, 0.8rem + 0.8vw, 1.35rem);
  letter-spacing: 0.2em;
  color: var(--color-anthracite);
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.header__title:hover {
  color: var(--color-accent);
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
  z-index: 110;
}

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

/* Hamburger active state (X) */
.hamburger--active .hamburger__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger--active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--active .hamburger__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================
   MENU OVERLAY
   ============================================ */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-warm-white);
  background-image: var(--paper-texture-light);
  background-blend-mode: multiply;
  background-size: 200px 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.menu-overlay--open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay__close {
  position: absolute;
  top: calc((var(--header-height) - 44px) / 2);
  left: var(--container-padding);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-overlay__close span {
  position: absolute;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-accent);
}

.menu-overlay__close span:first-child {
  transform: rotate(45deg);
}

.menu-overlay__close span:last-child {
  transform: rotate(-45deg);
}

.menu-overlay__list {
  text-align: center;
}

.menu-overlay__list li {
  margin-bottom: 1.5rem;
}

.menu-overlay__link {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.5rem + 1.5vw, 2.75rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-anthracite);
  transition: color 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  display: inline-block;
}

.menu-overlay--open .menu-overlay__link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

/* Staggered animation for menu items */
.menu-overlay--open .menu-overlay__list li:nth-child(1) .menu-overlay__link { transition-delay: 0.1s; }
.menu-overlay--open .menu-overlay__list li:nth-child(2) .menu-overlay__link { transition-delay: 0.15s; }
.menu-overlay--open .menu-overlay__list li:nth-child(3) .menu-overlay__link { transition-delay: 0.2s; }
.menu-overlay--open .menu-overlay__list li:nth-child(4) .menu-overlay__link { transition-delay: 0.25s; }

.menu-overlay__link:hover {
  color: var(--color-accent);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  margin-top: var(--header-height);
  width: 100%;
  padding: var(--section-spacing) var(--container-padding);
  background-color: var(--color-anthracite);
  background-image: var(--paper-texture);
  background-blend-mode: soft-light;
  background-size: 200px 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__frame {
  position: relative;
  max-width: 900px;
  border: 1px solid var(--color-cream);
  overflow: hidden;
}

/* Animated line hover effect */
.hero__frame::before,
.hero__frame::after {
  content: '';
  position: absolute;
  z-index: 2;
  pointer-events: none;
  transition: all 0.4s ease;
}

.hero__frame::before {
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-top: 1px solid var(--color-cream);
  border-bottom: 1px solid var(--color-cream);
  transform: scaleX(0);
}

.hero__frame::after {
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-left: 1px solid var(--color-cream);
  border-right: 1px solid var(--color-cream);
  transform: scaleY(0);
}

.hero__frame:hover::before {
  transform: scaleX(1);
}

.hero__frame:hover::after {
  transform: scaleY(1);
}

.hero__image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.hero__frame:hover .hero__image {
  transform: scale(1.02);
  opacity: 0.95;
}

/* Scroll-triggered animation for touch devices */
.hero__frame.in-view::before {
  transform: scaleX(1);
}

.hero__frame.in-view::after {
  transform: scaleY(1);
}

.hero__frame.in-view .hero__image {
  transform: scale(1.02);
  opacity: 0.95;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--section-spacing) var(--container-padding);
  background-color: var(--color-dusty-rose);
  background-image: var(--paper-texture);
  background-blend-mode: overlay;
  background-size: 200px 200px;
}

.about__container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about__image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-anthracite);
}

/* Animated line hover effect for artist portrait */
.about__image-wrapper::before,
.about__image-wrapper::after {
  content: '';
  position: absolute;
  z-index: 2;
  pointer-events: none;
  transition: all 0.4s ease;
}

.about__image-wrapper::before {
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-top: 1px solid var(--color-anthracite);
  border-bottom: 1px solid var(--color-anthracite);
  transform: scaleX(0);
}

.about__image-wrapper::after {
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-left: 1px solid var(--color-anthracite);
  border-right: 1px solid var(--color-anthracite);
  transform: scaleY(0);
}

.about__image-wrapper:hover::before {
  transform: scaleX(1);
}

.about__image-wrapper:hover::after {
  transform: scaleY(1);
}

.about__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.about__image-wrapper:hover .about__image {
  transform: scale(1.03);
  opacity: 0.92;
}

/* Scroll-triggered animation for touch devices */
.about__image-wrapper.in-view::before {
  transform: scaleX(1);
}

.about__image-wrapper.in-view::after {
  transform: scaleY(1);
}

.about__image-wrapper.in-view .about__image {
  transform: scale(1.03);
  opacity: 0.92;
}

.about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about__text {
  font-size: 0.875rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--color-text);
  margin-bottom: 1rem;
}

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

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery {
  padding: var(--section-spacing) 0;
  background-color: var(--color-cream);
  background-image: var(--paper-texture-light);
  background-blend-mode: multiply;
  background-size: 200px 200px;
}

.gallery__container {
  max-width: 100%;
  margin: 0 auto;
}

.gallery .section-heading {
  padding: 0 var(--container-padding);
  margin-bottom: 1.5rem;
  color: var(--color-forest);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.gallery__item {
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-anthracite);
}

/* Animated line hover effect */
.gallery__item::before,
.gallery__item::after {
  content: '';
  position: absolute;
  z-index: 2;
  pointer-events: none;
  transition: all 0.4s ease;
}

.gallery__item::before {
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-top: 1px solid var(--color-anthracite);
  border-bottom: 1px solid var(--color-anthracite);
  transform: scaleX(0);
}

.gallery__item::after {
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-left: 1px solid var(--color-anthracite);
  border-right: 1px solid var(--color-anthracite);
  transform: scaleY(0);
}

.gallery__item:hover::before {
  transform: scaleX(1);
}

.gallery__item:hover::after {
  transform: scaleY(1);
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.gallery__item:hover .gallery__image {
  transform: scale(1.03);
  opacity: 0.92;
}

/* Scroll-triggered animation for touch devices */
.gallery__item.in-view::before {
  transform: scaleX(1);
}

.gallery__item.in-view::after {
  transform: scaleY(1);
}

.gallery__item.in-view .gallery__image {
  transform: scale(1.03);
  opacity: 0.92;
}

/* Gallery CTA Button */
.gallery__cta {
  display: flex;
  justify-content: center;
  padding: 2.5rem var(--container-padding) 0;
}

.gallery__button {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-anthracite);
  background-color: transparent;
  border: 1px solid var(--color-anthracite);
  padding: 0.875rem 2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.gallery__button:hover {
  background-color: var(--color-anthracite);
  color: var(--color-cream);
}

.gallery__button-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   CONTACT FOOTER
   ============================================ */
.contact {
  padding: var(--section-spacing) var(--container-padding);
  background-color: var(--color-forest);
  background-image: var(--paper-texture);
  background-blend-mode: soft-light;
  background-size: 200px 200px;
  color: var(--color-cream);
}

.contact__container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--color-cream);
  transition: color 0.3s ease;
}

.contact__link:hover {
  color: var(--color-dusty-rose);
}

.contact__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact__copyright {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--color-cream);
  opacity: 0.7;
  border-top: 1px solid rgba(245, 240, 235, 0.15);
  padding-top: 1.5rem;
}

/* ============================================
   TABLET BREAKPOINT (768px)
   ============================================ */
@media screen and (min-width: 768px) {
  :root {
    --container-padding: 2rem;
    --section-spacing: 5rem;
    --header-height: 70px;
  }

  /* Header */
  .header__title {
    letter-spacing: 0.25em;
  }

  /* About - two columns */
  .about__container {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
  }

  .about__image-wrapper {
    width: 45%;
    flex-shrink: 0;
  }

  .about__content {
    width: 55%;
  }

  .about__text {
    font-size: 0.9375rem;
  }

  /* Gallery - 2 columns */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  /* Contact - horizontal links */
  .contact__links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
  }
}

/* ============================================
   DESKTOP BREAKPOINT (1024px)
   ============================================ */
@media screen and (min-width: 1024px) {
  :root {
    --container-padding: 3rem;
    --section-spacing: 7rem;
    --header-height: 72px;
  }

  /* Header */
  .hamburger__line {
    width: 24px;
  }

  /* About */
  .about__container {
    gap: 4rem;
  }

  .about__image-wrapper {
    width: 42%;
  }

  .about__content {
    width: 58%;
  }

  .about__text {
    font-size: 0.9375rem;
    line-height: 1.9;
  }

  /* Gallery - 4 columns */
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  /* Contact */
  .contact__links {
    gap: 3rem;
  }

  .contact__link {
    font-size: 0.875rem;
  }
}

/* ============================================
   LARGE DESKTOP (1400px+)
   ============================================ */
@media screen and (min-width: 1400px) {
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .menu-overlay,
  .menu-overlay__link,
  .gallery__image,
  .hamburger__line {
    transition: none;
  }
}

/* ============================================
   UTILITY: Body scroll lock when menu is open
   ============================================ */
body.menu-open {
  overflow: hidden;
}
