/*
  Corey Barksdale Studio Website
  Easy-edit structure:
  1. Global styles
  2. Navigation
  3. Home slideshow
  4. Standard page headers
  5. Work gallery
  6. Text pages
  7. Mobile responsive rules
*/

/* 1. Global styles */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  background: #050505;
  color: #ffffff;
}

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

img {
  max-width: 100%;
}

.page {
  min-height: 100vh;
  padding-bottom: 110px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
}

/* 2. Navigation */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  min-height: 82px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.links a {
  opacity: 0.88;
}

.links a:hover,
.links a[aria-current="page"] {
  color: #35e7ff;
  opacity: 1;
}

#themeToggle {
  width: 28px;
  height: 28px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 50%, #111111 50%);
  cursor: pointer;
}

/* 3. Home slideshow */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #111111;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  background-image: linear-gradient(90deg, rgba(255, 139, 0, 0.88), rgba(200, 0, 0, 0.5)), var(--bg);
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
}



/* Live Art slide with real artwork background */
.live-art-slide {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 126, 0, 0.52),
      rgba(52, 18, 42, 0.62)
    ),
    radial-gradient(
      circle at 70% 42%,
      rgba(255, 255, 255, 0.12),
      transparent 34%
    ),
    var(--bg);
  background-position: center center;
  background-size: cover;
}

.live-art-slide .mega-title {
  color: #f2e6ff;
  text-shadow: 0 14px 45px rgba(0, 0, 0, 0.32);
}

.live-art-slide .caption {
  max-width: 1200px;
  font-weight: 900;
  color: #ffffff;
}

.slide.active {
  opacity: 1;
}

.mega-title {
  position: absolute;
  top: 1.5vw;
  left: 1.2vw;
  margin: 0;
  font-size: clamp(70px, 14vw, 210px);
  line-height: 0.82;
  letter-spacing: -0.09em;
  font-weight: 900;
  text-transform: uppercase;
  color: #16a7ff;
  mix-blend-mode: screen;
}

.mega-title span {
  color: #20f5e9;
}

.caption {
  position: absolute;
  left: 2vw;
  bottom: 105px;
  font-size: clamp(18px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.noise {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.15;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.08) 0 1px,
    transparent 1px 3px
  );
}

/* 4. Standard page headers */
.page-hero {
  min-height: 56vh;
  padding: 8vw 4vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(120deg, #bb2900, #ef8b00);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(80px, 18vw, 240px);
  line-height: 0.75;
  letter-spacing: -0.10em;
  color: #26c7ff;
}

.page-hero p:last-child {
  max-width: 900px;
  font-size: clamp(22px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.orange {
  background: linear-gradient(120deg, #ff7a00, #7d1200);
}

.blue {
  background: linear-gradient(120deg, #0646ff, #00d5ff);
}

.dark {
  background: linear-gradient(120deg, #090909, #333333);
}

.work-hero {
  background-image:
    linear-gradient(120deg, rgba(255, 122, 0, 0.92), rgba(160, 0, 0, 0.76)),
    url("https://www.coreybarksdale.com/original_pts/2019-original-paintings/atlanta-urban-cityscape-art-painting.jpg");
  background-size: cover;
  background-position: center;
}

/* 5. Work gallery */
.work-intro {
  padding: 34px 4vw;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.work-intro p {
  max-width: 1100px;
  margin: 0;
  font-size: clamp(22px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 34px;
  background: #050505;
}

.gallery-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: 18px;
  background: #111111;
  isolation: isolate;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    filter 0.45s ease;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  display: block;
  object-fit: cover;
  transform: scale(1);
  transition:
    transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.65s ease;
}

.gallery-card:hover {
  z-index: 5;
  transform: translateY(-12px) scale(1.035);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.72),
    0 0 35px rgba(38, 199, 255, 0.28);
}

.gallery-card:hover img {
  transform: scale(1.18);
  filter: saturate(1.2) contrast(1.05) brightness(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 70px 22px 22px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px);
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.94),
    rgba(0, 0, 0, 0.58),
    rgba(0, 0, 0, 0)
  );
  transition:
    opacity 0.38s ease,
    transform 0.38s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay span {
  display: block;
  color: #ffffff;
  font-size: clamp(22px, 2.5vw, 42px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 900;
  text-transform: uppercase;
}

/* 6. Text pages */
.copy,
.news-list,
.contact-card {
  max-width: 1100px;
  padding: 6vw;
}

.copy h2,
.news-list h2,
.contact-card h2 {
  margin: 0.3em 0;
  font-size: clamp(32px, 5vw, 70px);
  letter-spacing: -0.07em;
}

.copy p,
.news-list p,
.contact-card p {
  font-size: 24px;
  line-height: 1.35;
}

.news-list article {
  padding: 38px 0;
  border-bottom: 1px solid #333333;
}

.news-list span,
.contact-card a {
  color: #35e7ff;
  font-weight: 700;
}

/* Optional light mode */
.light {
  background: #f4f4f4;
  color: #000000;
}

.light .bottom-nav {
  background: #ffffff;
  color: #000000;
  border-top: 1px solid #dddddd;
}

.light #themeToggle {
  border-color: #000000;
}

.light .work-gallery {
  background: #f4f4f4;
}

.light .gallery-card {
  background: #ffffff;
}

/* 7. Mobile responsive rules */
@media (max-width: 1200px) {
  .work-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 850px) {
  .bottom-nav {
    min-height: 78px;
    height: auto;
    padding: 18px;
    align-items: flex-start;
  }

  .links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 20px;
  }

  .mega-title {
    font-size: 24vw;
  }

  .caption {
    bottom: 120px;
  }

  .work-gallery {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .gallery-card,
  .gallery-card img {
    min-height: 390px;
  }
}

/* 8. News page expanded sections */
.news-sections {
  padding-bottom: 120px;
}

.news-section {
  position: relative;
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.news-section:hover {
  transform: translateX(12px);
  border-color: #35e7ff;
}

.news-label {
  display: inline-block;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 14px;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #35e7ff;
}

.text-link:hover {
  color: #35e7ff;
}

.light .text-link {
  color: #000000;
}

.light .text-link:hover {
  color: #007a90;
}
