/* ============================================
   LC ILLUSTRATES — Main Stylesheet
   Colors:
     Background:  #000000 (black)
     Text:        #FFFFFF (white)
     Accent:      #FF5E1A (orange)
   Fonts:
     Headings:    'Anton', sans-serif
     Body/Nav:    'Epilogue', sans-serif
   Max width:     1500px
   Grid gap:      8px
   ============================================ */

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

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

body {
  font-family: 'Epilogue', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #FFFFFF;
  background-color: #000000;
  overflow-x: hidden;
}

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

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

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

input {
  font-family: inherit;
}


/* ============================================
   HEADER
   Absolute positioned, transparent overlay on hero.
   Logo + nav on left, social icons + cart on right.
   ============================================ */
#header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 4vw;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

#header.scrolled {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 14px 4vw;
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
  gap: 24px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 55px;
  width: auto;
  transition: height 0.3s ease;
}

#header.scrolled .logo-img {
  height: 40px;
}

/* Navigation — sits directly next to logo */
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-family: 'Epilogue', sans-serif;
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  transition: opacity 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #FF5E1A;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  opacity: 0.8;
}

/* Spacer pushes social + cart to right */
.header-spacer {
  flex: 1;
}

/* Header Social Icons — Orange circle style */
.header-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #FF5E1A;
  color: #FFFFFF;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.header-social a svg {
  width: 16px;
  height: 16px;
}

.header-social a:hover {
  background-color: #e65215;
  transform: scale(1.05);
}

/* Cart */
.header-cart {
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  transition: color 0.3s ease;
  margin-left: 8px;
}

.header-cart:hover {
  color: #FF5E1A;
}

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #FFFFFF;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 150;
}

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

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-nav-link {
  font-family: 'Anton', sans-serif;
  font-size: 36px;
  text-transform: uppercase;
  color: #FFFFFF;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #FF5E1A;
}

.mobile-social {
  display: flex;
  gap: 24px;
}

.mobile-social a {
  color: #FFFFFF;
  transition: color 0.3s ease;
}

.mobile-social a:hover {
  color: #FF5E1A;
}


/* ============================================
   HERO SECTION
   Large "LC ILLUSTRATES" title in white,
   orange subtitle below. Left-aligned, full width.
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  padding: 120px 4vw 20px;
  background-color: #000000;
  text-align: center;
}

.hero-content {
  max-width: 1500px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Anton', sans-serif;
  font-size: 264px; /* overridden by JS fitText */
  font-weight: 400;
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 0;
  white-space: nowrap;
  display: block;
  width: 100%;
}

.hero-subtitle {
  font-family: 'Anton', sans-serif;
  font-size: clamp(24px, 4.5vw, 68px);
  font-weight: 400;
  text-transform: uppercase;
  color: #FF5E1A;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-top: 16px;
  padding-bottom: 24px;
}


/* ============================================
   PORTFOLIO GALLERY
   4-column grid with 8px gap (desktop).
   Hover: slight scale + overlay fade.
   ============================================ */
.portfolio {
  padding: 16px 4vw;
  background-color: #000000;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 1500px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  background-color: #111;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.gallery-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(16px, 1.5vw, 22px);
  text-transform: uppercase;
  color: #FFFFFF;
  line-height: 1.2;
}

.gallery-category {
  font-family: 'Epilogue', sans-serif;
  font-size: clamp(10px, 0.8vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FF5E1A;
  margin-top: 4px;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}


/* ============================================
   ABOUT SECTION
   Portrait with accent frame, bio, client list.
   ============================================ */
.about {
  background-color: #000000;
  padding: 80px 4vw;
}

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1500px;
  margin: 0 auto 60px;
  align-items: center;
}

.about-portrait {
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  display: inline-block;
}

.portrait-frame::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid #FF5E1A;
  border-radius: 6px;
  z-index: 0;
}

.portrait-frame img {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: 6px;
  z-index: 1;
}

.about-bio {
  max-width: 560px;
}

.about-heading {
  font-family: 'Anton', sans-serif;
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 400;
  text-transform: uppercase;
  color: #FF5E1A;
  margin-bottom: 20px;
}

.about-text {
  font-family: 'Epilogue', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #FFFFFF;
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 28px;
}

.about-quote {
  font-family: 'Anton', sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: #FF5E1A;
  line-height: 1.4;
  border-left: 3px solid #FF5E1A;
  padding-left: 20px;
  margin: 0;
}

/* --- Client List --- */
.clients {
  max-width: 1500px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 40px;
}

.clients-label {
  font-family: 'Epilogue', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.clients-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.client-name {
  font-family: 'Anton', sans-serif;
  font-size: clamp(16px, 2vw, 22px);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 8px 24px;
  transition: color 0.3s ease;
}

.client-name:hover {
  color: #FF5E1A;
}

.client-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #FF5E1A;
  flex-shrink: 0;
}

/* ============================================
   CONTACT SECTION — LET'S WORK TOGETHER
   Two-column: info + logo left, form right.
   ============================================ */
.contact-section {
  padding: 100px 4vw 80px;
  background-color: #0a0a0a;
  position: relative;
  overflow: hidden;
}

/* Angled top slash — hard diagonal cut */
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #000000;
  clip-path: polygon(0 0, 100% 0, 100% 0%, 0 100%);
}

/* Bold diagonal accent stripe */
.contact-section::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -5%;
  width: 110%;
  height: 4px;
  background-color: #FF5E1A;
  transform: rotate(-1.5deg);
}

.contact-section .contact-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-left {
  position: sticky;
  top: 120px;
}

.contact-heading {
  font-family: 'Anton', sans-serif;
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 400;
  text-transform: uppercase;
  color: #FF5E1A;
  margin-bottom: 16px;
  font-style: italic;
}

.contact-text {
  font-family: 'Epilogue', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 24px;
}

.contact-email {
  display: inline-block;
  font-family: 'Epilogue', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #FF5E1A;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
  margin-bottom: 28px;
}

.contact-email:hover {
  border-bottom-color: #FF5E1A;
}

.contact-social {
  display: flex;
  gap: 16px;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.contact-social a:hover {
  color: #FFFFFF;
  border-color: #FF5E1A;
  background-color: #FF5E1A;
}

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

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 14px;
  font-family: 'Epilogue', sans-serif;
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: #FF5E1A;
}

.contact-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-services {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 16px 20px;
}

.contact-services legend {
  font-family: 'Epilogue', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 8px;
}

.contact-services label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 24px;
  margin-top: 8px;
  font-family: 'Epilogue', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.contact-services input[type="checkbox"] {
  accent-color: #FF5E1A;
  width: 16px;
  height: 16px;
}

.contact-submit {
  padding: 16px 40px;
  font-family: 'Epilogue', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  background-color: #FF5E1A;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

.contact-submit:hover {
  background-color: #e65215;
  transform: translateY(-1px);
}

.contact-success {
  display: none;
  font-size: 14px;
  color: #FF5E1A;
}

.contact-success.visible {
  display: block;
}

.contact-success.error {
  color: #ff4444;
}

.contact-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}


/* ============================================
   FOOTER (merged into contact section)
   ============================================ */
.footer {
  max-width: 1500px;
  margin: 0 auto;
  padding-top: 48px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright {
  font-family: 'Epilogue', sans-serif;
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}


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

  .hero-subtitle {
    font-size: clamp(22px, 4.5vw, 48px);
  }

  /* About */
  .about-hero {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

}


/* ============================================
   RESPONSIVE — Mobile (max-width: 767px)
   ============================================ */
@media (max-width: 767px) {

  /* Header */
  #header {
    padding: 16px 6vw;
  }

  #header.scrolled {
    padding: 12px 6vw;
  }

  .logo-img {
    height: 30px;
  }

  #header.scrolled .logo-img {
    height: 30px;
  }

  .header-nav,
  .header-social,
  .header-spacer,
  .header-cart {
    display: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  /* Hero */
  .hero {
    padding: 90px 6vw 16px;
  }

  .hero-subtitle {
    font-size: clamp(16px, 5vw, 32px);
    margin-top: 8px;
    padding-bottom: 16px;
  }

  /* About */
  .about {
    padding: 60px 6vw;
  }

  .about-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .portrait-frame img {
    max-width: 280px;
  }

  .portrait-frame::before {
    top: -8px;
    left: -8px;
  }

  .about-bio {
    max-width: 100%;
  }

  .about-quote {
    text-align: left;
  }

  .client-name {
    padding: 6px 16px;
  }

  .client-divider {
    display: none;
  }

  /* Gallery */
  .portfolio {
    padding: 6px 6vw;
  }

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

  /* Contact Section */
  .contact-section {
    padding: 60px 6vw;
  }

  .contact-section .contact-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-left {
    position: static;
    text-align: center;
  }

  .contact-heading {
    font-size: 28px;
  }

  .contact-text {
    max-width: 100%;
  }

  .contact-social {
    justify-content: center;
  }

  .contact-row {
    grid-template-columns: 1fr;
  }

  .contact-services label {
    display: flex;
    margin-right: 0;
  }

  .footer {
    margin-top: 40px;
    padding-top: 32px;
  }

  .footer-copyright {
    font-size: 10px;
  }
}


/* ============================================
   RESPONSIVE — Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .gallery-overlay {
    padding: 12px;
  }
}


/* ============================================
   LIGHTBOX
   Full-screen image viewer with prev/next nav.
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-info {
  text-align: center;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}

.lightbox.open .lightbox-info {
  opacity: 1;
  transform: translateY(0);
}

.lightbox-title {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  text-transform: uppercase;
  color: #FFFFFF;
}

.lightbox-category {
  font-family: 'Epilogue', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #FF5E1A;
  margin-left: 12px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 40px;
  color: #FFFFFF;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1010;
  line-height: 1;
  transition: color 0.3s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  color: #FF5E1A;
  transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #FFFFFF;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1010;
  padding: 16px;
  line-height: 1;
  transition: color 0.3s ease, transform 0.2s ease;
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: #FF5E1A;
}

@media (max-width: 767px) {
  .lightbox-prev,
  .lightbox-next {
    font-size: 32px;
    padding: 8px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 32px;
  }

  .lightbox-title {
    font-size: 18px;
  }
}


/* ============================================
   SCROLL REVEAL ANIMATIONS
   Elements fade/slide in when entering viewport.
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item {
  opacity: 0;
  transform: translateY(30px);
  transition: transform 0.5s ease, opacity 0.6s ease;
}

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

.gallery-item:hover img {
  transform: scale(1.04);
}

.about-hero,
.clients {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-hero.visible,
.clients.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .gallery-item,
  .about-hero,
  .clients {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
