
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
}

main {
  width: 100%;
  min-height: 100vh;
}
/* ==================== */
/* ANIMATION KEYFRAMES */
/* ==================== */

/* Minimalist fade in with subtle lift - clean and fast */
@keyframes fadeInMinimal {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Minimalist fade for image - clean and fast */
@keyframes fadeInImageMinimal {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Hero Container */
.hero-section {
  background-color: var(--hero-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 100vh;
  padding: 4rem 20rem;
  max-width: 2000px;
  gap: 8rem;
}

/* Left Column */
.left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 500px;
}

/* Small caps header */
.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hero-text2);
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 1rem;
  /* Minimalist animation - fast and subtle */
  animation: fadeInMinimal 0.5s ease-out 0s forwards;
}

/* Main title styling */
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 700;
  line-height: 0.85;
  margin: 0 0 2rem 0;
  letter-spacing: -1px;
  /* Minimalist animation - fast and subtle */
  animation: fadeInMinimal 0.5s ease-out 0.08s forwards;
}

/* Two-tone text: "WHO AM" in primary color, "I" in accent */
.hero-title-main {
  color: var(--hero-text1);
}

.hero-title-accent {
  color: var(--hero-text2);
  font-style: italic;
  display: block;
}

/* Roles/Position */
.hero-passion {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--hero-text1);
  margin-bottom: 1.5rem;
  font-weight: 600;
  opacity: 0.9;
  /* Minimalist animation - fast and subtle */
  animation: fadeInMinimal 0.5s ease-out 0.16s forwards;
}

/* Descriptive paragraph */
.hero-description {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.2px;
  color: var(--hero-text1);
  margin-bottom: 2rem;
  opacity: 0.95;
  /* Minimalist animation - fast and subtle */
  animation: fadeInMinimal 0.5s ease-out 0.24s forwards;
}

/* Primary Button */
.hero-button {
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-top: 24px;
  background: linear-gradient(135deg, #d4c5a9 0%, #c0b089 100%);
  color: #1f2920;
  font-family: 'Space Grotesk', sans-serif;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  /* Minimalist animation - fast and subtle */
  animation: fadeInMinimal 0.5s ease-out 0.32s forwards;
}

.hero-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8dcc0 0%, #d4c5a9 100%);
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.hero-button:hover {
  background: linear-gradient(135deg, #e8dcc0 0%, #d4c5a9 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-button:focus {
  outline: 2px solid #A0956A;
  outline-offset: 2px;
}

/* Right Column - Image */
.right-column {
  display:flex;
  justify-content:center;
}

/* Portrait image with rounded corners */
.hero-image {
  margin:0;
  width:100%;
  max-width:420px;
  border-radius:20px;
  overflow:hidden;
  background:#3E3F29;
  border:none;
  box-shadow:0 18px 40px rgba(0,0,0,.28),0 6px 14px rgba(0,0,0,.22);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image:hover {
  transform: translateY(-3px);
  box-shadow:0 24px 48px rgba(0,0,0,.35),0 8px 18px rgba(0,0,0,.28);
}

/* Image container for positioning indicators */
.image-wrapper {
  position: relative;
  width: 100%;
  max-width: 350px;
  /* Minimalist animation - clean fade */
  animation: fadeInImageMinimal 0.5s ease-out 0.16s forwards;
}

/* ==================== */
/* MEDIA QUERIES */
/* ==================== */

/* Tablet & Smaller Screens */
@media (max-width: 1024px) {
  .hero-section {
    padding: 6rem 5rem;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem;
    gap: 3rem;
    text-align: center;
  }

  .left-column {
    align-items: center;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(48px, 12vw, 80px);
  }

  /* Keep picture original ratio */
  .hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: auto; /* Ensures original ratio */
  }

  .image-wrapper {
    max-width: 300px;
    width: 60vw; /* Responsive sizing for image */
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 5rem 1.5rem;
    gap: 2rem;
  }

  .hero-title {
    font-size: clamp(40px, 10vw, 60px);
  }

  .image-wrapper {
    max-width: 250px;
    width: 70vw;
  }
}

/* ============================ */
/* GALLERY PREVIEW SECTION      */
/* ============================ */

#home-gallery {
  background-color: var(--bg-primary, #F9F9F9);
  color: var(--text-primary, #1A1A1A);
  min-height: 100vh;
  padding: 8rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

/* Typography Headings */
.gallery-header {
  text-align: center;
  max-width: 600px;
  margin-bottom: 2rem;
}

.gallery-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-secondary, #6B6B6B);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.gallery-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Masterpiece Accordion Container */
.gallery-accordion-container {
  display: flex;
  flex-direction: column; /* Mobile first stack */
  width: 100%;
  max-width: 1600px;
  height: 80vh; /* Takes up a good portion of viewport */
  min-height: 600px;
  margin: 0 auto;
  gap: 0.5rem; /* Clean, minimal gap */
  background-color: var(--masterpiece-bg);
}

@media (min-width: 900px) {
  .gallery-accordion-container {
    flex-direction: row; /* Horizontal for desktop */
  }
}

/* Accordion Item */
.accordion-item {
  flex: 1; /* By default, share width/height evenly */
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.8s var(--transition-smooth, cubic-bezier(0.25, 1, 0.5, 1));
  will-change: flex;
  border-radius: 4px; /* Optional slight curve */
}

/* Expand the active item */
.accordion-item:hover,
.accordion-item:focus-within {
  flex: 4; /* Expand strongly */
}

/* Image settings */
.accordion-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--transition-smooth, cubic-bezier(0.25, 1, 0.5, 1));
  will-change: transform;
}

/* Subtle zoom off focus */
.accordion-item:hover img,
.accordion-item:focus-within img {
  transform: scale(1.03); 
}

/* Metadata Overlay Container */
.metadata-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Push text to bottom */
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%); /* Legibility gradient */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s var(--transition-smooth);
  will-change: opacity, transform;
  pointer-events: none; /* Let clicks pass through */
}

.accordion-item:hover .metadata-overlay,
.accordion-item:focus-within .metadata-overlay {
  opacity: 1;
  transform: translateY(0);
  /* Slight delay over the layout shift for a layered effect */
  transition: opacity 0.6s ease 0.1s, transform 0.6s var(--transition-smooth) 0.1s; 
}

/* Typography Inside Overlay */
.metadata-overlay p,
.metadata-overlay h4,
.metadata-overlay span {
  color: var(--text-light, #F9F9F9);
  margin: 0;
}

.metadata-quote {
  font-family: serif;
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 0.5rem !important;
  opacity: 0.9;
}

.metadata-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 0.5rem !important;
}

.metadata-device {
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* Call to Action Button */
.gallery-cta {
  margin-top: 2rem;
}

.btn-minimalist {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-primary, #1A1A1A);
  border: 1px solid var(--text-primary, #1A1A1A);
  padding: 0.8rem 2rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  will-change: transform;
  border-radius: 2px;
}

.btn-minimalist:hover {
  background-color: var(--text-primary, #1A1A1A);
  color: var(--bg-primary, #F9F9F9);
  transform: translateY(-2px);
}
