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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  font-style: normal;
  background-color: #ffffff;
  color: #000;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  z-index: 100;
  mix-blend-mode: difference;
  color: #ffffff;
}

.logo, .nav, .hamburger {
  mix-blend-mode: difference;
}

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

.logo img {
  height: 30px; /* Resize logo smaller (was 40px) */
  width: auto;
  filter: invert(1);
}

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

.nav a {
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Hero */
.hero {
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile browsers */
  overflow: hidden;
  position: relative;
}

.hero-slider {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
  will-change: transform;
}

.slide {
  flex: 0 0 100%;
  height: 100%;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
}
.hero-dots button.active {
  background: #fff;
}


/* Artists Grid */
.artists-section {
  width: 100%;
}

.artists-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  width: 100%;
  gap: 0;
  background-color: #000; /* Hide white lines from sub-pixel rendering */
}

.artist-card {
  position: relative;
  width: 100%;
  height: 100vh; /* Fill screen height-ish or just be very large */
  overflow: hidden;
}

.artist-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #fff;
  z-index: 2;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.founder-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 4px;
}

/* Illustration Slot */
.illustration-slot {
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-slot img {
  width: 40%;
  height: auto;
  object-fit: contain;
}

/* About */
.about-section {
  padding: 80px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.about-section h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 2px;
}

.about-section p {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.6;
}

.about-signature {
  margin-top: 40px;
  text-align: right;
  font-weight: bold;
}

/* Contact */
.contact-section {
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 60px 20px;
  }
  
}

.contact-section h2 {
  margin-bottom: 40px;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #000;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  border-radius: 0;
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  background: #000;
  color: #fff;
  border: none;
  padding: 15px 40px;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
  display: inline-block;
  text-align: center;
}

.btn-submit:hover {
  background: #333;
}

.form-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #666;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative; /* Required for z-index */
  z-index: 200;
  padding: 0;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.hamburger.open {
  mix-blend-mode: difference;
}

.hamburger.open span {
  background-color: #fff;
}

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

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

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


/* Fix visibility issues on mobile nav by resetting blend mode when open */
.site-header:has(.hamburger.open) {
  mix-blend-mode: normal;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000;
  color: #fff;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
}

.mobile-menu.open {
  transform: translateY(0);
}

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

.mobile-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 2rem;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .artists-grid {
    grid-template-columns: 1fr;
  }
  
  .artist-card {
    height: 60vh;
    height: 60dvh;
  }

  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* Portfolio Page */
.portfolio-page {
  padding-top: 100px; /* Space for fixed header */
  min-height: 100vh;
  background-color: #fff;
}

.portfolio-hero {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.portfolio-portrait img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: cover;
}

.portfolio-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.portfolio-info h1 {
  font-size: 3rem;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
}

.portfolio-info p {
  font-size: 1rem;
  max-width: 500px;
}

.portfolio-gallery {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-gallery h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  transition: opacity 0.3s;
}

.gallery-grid img:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .portfolio-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px;
  }
  
  .portfolio-info {
    align-items: center;
  }

  .portfolio-info h1 {
    font-size: 2rem;
  }
}

/* Custom Dropdown */
.custom-select-wrapper {
  position: relative;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
}

.custom-select {
  position: relative;
  display: flex;
  flex-direction: column;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  font-size: 1rem;
  font-weight: 400;
  color: #000;
  background: #fff;
  border: 1px solid #000;
  cursor: pointer;
  transition: all 0.3s;
}

.custom-select-trigger:hover {
  background: #f0f0f0;
}

.custom-options {
  position: absolute;
  display: block;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #000;
  border-top: 0;
  background: #fff;
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}

.custom-select.open .custom-options {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.custom-option {
  position: relative;
  display: block;
  padding: 12px;
  font-size: 1rem;
  font-weight: 400;
  color: #000;
  cursor: pointer;
  transition: all 0.3s;
}

.custom-option:hover {
  background: #000;
  color: #fff;
}

.custom-option.selected {
  background: #000;
  color: #fff;
}

.arrow {
  position: relative;
  height: 10px;
  width: 10px;
}

.arrow::before, .arrow::after {
  content: "";
  position: absolute;
  bottom: 0px;
  width: 0.15rem;
  height: 100%;
  transition: all 0.3s;
}

.arrow::before {
  left: -3px;
  transform: rotate(-45deg);
  background-color: #000;
}

.arrow::after {
  left: 3px;
  transform: rotate(45deg);
  background-color: #000;
}

.custom-select.open .arrow::before {
  left: -3px;
  transform: rotate(45deg);
}

.custom-select.open .arrow::after {
  left: 3px;
  transform: rotate(-45deg);
}
