/* ========================================
   Marga Garcia — Artist Portfolio
   ======================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: #3a342e;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2.5rem;
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(58, 52, 46, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2.5rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: opacity 0.3s ease;
}

.nav-logo {
  position: relative;
  z-index: 2;
}

.nav-logo:hover {
  opacity: 0.7;
}

.nav-links {
  list-style: none;
  position: absolute;
  top: 100%;
  right: 2.5rem;
  margin-top: 0.5rem;
  background: rgba(58, 52, 46, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.nav-links.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links a {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 1;
}

/* Mobile toggle */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1cm;
  position: relative;
  z-index: 2;
}

.nav-ig {
  color: #fff;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.nav-ig:hover {
  opacity: 1;
}

.lang-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  opacity: 0.7;
  display: inline-flex;
  align-items: center;
  padding: 0;
  transition: opacity 0.3s ease;
}

.lang-toggle:hover {
  opacity: 1;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: rgba(58, 52, 46, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.4rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.lang-option:hover {
  opacity: 1;
}

.lang-option.active {
  opacity: 1;
  font-weight: 500;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: #fff;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:last-child { bottom: 4px; }

.nav-toggle.active span:first-child {
  top: 50%;
  transform: rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:last-child {
  bottom: 50%;
  transform: rotate(-45deg);
}

/* ========================================
   Slides (sections)
   ======================================== */
.slide {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/insta/Inflorescence_MargaGarcia%20Grande.jpeg') center 20%/cover no-repeat;
  opacity: 0.3;
  transition: opacity 1s ease;
}

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

.hero-title {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(0.85rem, 1.7vw, 1.35rem);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.hero-subtitle {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  opacity: 0.6;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: float 2.5s ease-in-out infinite;
}

.scroll-indicator:hover {
  opacity: 0.8;
  transform: translateX(-50%) translateY(3px);
}

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

/* ========================================
   Work / Gallery
   ======================================== */
.work {
  min-height: auto;
  padding: 8rem 2.5rem;
}

.section-header {
  max-width: 1400px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.5;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-img {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

.gallery-img img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  opacity: 0.65;
  transition: transform 0.8s cubic-bezier(0.33, 0, 0.2, 1), opacity 0.6s ease;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.gallery-item:hover .gallery-img img {
  transform: scale(1.05);
  opacity: 1;
}


.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.gallery-title {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.gallery-year {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  opacity: 0.5;
}

/* ========================================
   About
   ======================================== */
.about {
  padding: 8rem 2.5rem;
  align-items: center;
  justify-content: center;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 1200px;
  width: 100%;
  align-items: start;
}

.about-image img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-left: auto;
  margin-top: 5rem;
}

.about-text h2 {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.5;
  margin-bottom: 2rem;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.8;
  opacity: 0.8;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

.about-details {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
  display: block;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.4;
  margin-bottom: 0.4rem;
}

.detail-value {
  font-size: 1.15rem;
  opacity: 0.8;
}

/* ========================================
   Recognitions
   ======================================== */
.recognitions {
  padding: 6rem 2.5rem;
}

.recognitions-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.recognitions-subtitle {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.55;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.recognitions-list {
  list-style: none;
}

.recognitions-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.recognitions-list li:last-child {
  border-bottom: none;
}

.recognitions-year {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.recognitions-text {
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.85;
}

/* ========================================
   Contact
   ======================================== */
.contact {
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2.5rem calc(6rem + 2cm);
  min-height: auto;
}

.contact-inner {
  max-width: 600px;
}

.contact-inner h2 {
  font-family: 'Crimson Text', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.contact-text {
  font-size: 1.2rem;
  opacity: 0.6;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 480px;
  width: 100%;
  margin: 2.5rem auto 2rem;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  padding: 0.75rem 0;
  transition: border-color 0.3s ease;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.form-submit {
  align-self: center;
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: 0.85rem 2.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.form-submit:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

.contact-email {
  display: inline-block;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  padding: 1em 2em;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-email:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
}

.social-links a {
  opacity: 0.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-content {
  text-align: center;
  max-width: 85vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.lightbox-caption {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
  margin-top: 1.5rem;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.5rem 2.5rem 2rem;
  background: #3a342e;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.footer-copy {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

.footer-email {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.55;
  margin-bottom: 0.75rem;
}

.footer-email a {
  color: inherit;
  transition: opacity 0.3s ease;
}

.footer-email a:hover {
  opacity: 0.8;
}

.footer-note {
  font-size: 0.85rem;
  opacity: 0.35;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-bg {
    background-position: 25% center;
  }

  .hero-content {
    margin-top: -10vh;
  }

  .hero-title {
    font-size: 1.1rem;
  }

  .hero-title .hero-sep {
    display: none;
  }

  .hero-title .hero-line {
    display: block;
    margin: 0.4em 0;
  }

  .nav-actions {
    gap: 0.8rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .gallery-caption {
    opacity: 1;
    transform: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .recognitions-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image img {
    margin: 0 auto;
    max-width: 100%;
  }

  .about-text p {
    max-width: 100%;
  }

  .work, .about, .contact {
    padding: 5rem 1.5rem;
  }

  .nav {
    padding: 1.25rem 1.5rem;
  }

  .nav.scrolled {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hero-title {
    font-size: 1rem;
    letter-spacing: 0.2em;
  }
}
