/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  scroll-behavior: smooth;
  font-family: "Playfair Display", serif;
  color: #f1f1f1;

  background: linear-gradient(
    to bottom,
    #15140f 0%,
    #1b1a17 18%,
    #23221d 38%,
    #2c2b27 60%,
    #262720 80%,
    #24261f 100%
  );
}

/* === FOREST OVERLAY === */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("forest_overlay.jpg") center/cover no-repeat;
  opacity: 0.05; /* adjust for subtlety */
  pointer-events: none; /* allows clicking through */
  z-index: 0; /* sits behind content */
}

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 18, 0.95),
    rgba(20, 20, 18, 0.75)
  );
  isolation: isolate;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  z-index: 1000;
}

header h1 a {
  color: #d4b16a;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul li a {
  color: #e3dfd0;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #d4b16a;
}

/* === SECTIONS === */
.section {
  padding: 60px 8%; /* top/bottom reduced */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* so content starts near top */
}

.section h2 {
  font-family: "Playfair Display", serif;
  color: #f2e9d0;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.section p {
  max-width: 700px;
  text-align: center;
  color: #d8d4c4;
  margin-bottom: 2rem;
}

/* === HERO === */
.hero {
  height: 100vh;
  background: url("forest_sunset.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.hero h2 {
  font-size: 2.8rem;
  font-family: "Playfair Display", serif;
}

.hero p {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #e0dccd;
}

/* === ABOUT === */
.about-content {
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: center; /* center horizontally */
  gap: 1.5rem; /* spacing between image and text */
  max-width: 600px; /* optional: keeps content narrow */
  margin: 0 auto; /* center horizontally */
  text-align: center; /* center the text */
}

.profile-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #d4b16a;
}

.about .text {
  max-width: 600px;
  line-height: 2;
}

/* === LISTEN === */
.audio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
}

.audio-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: 14px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.audio-card:hover {
  background: rgba(212, 177, 106, 0.12);
  transform: translateY(-5px);
}

audio {
  width: 100%;
  margin-top: 0.5rem;
  accent-color: #d4b16a;
}

/* === WORKS === */
.works-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(450px, 1fr)
  ); /* two per row max */
  grid-auto-rows: auto;
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto; /* center the grid */
  justify-content: center; /* centers grid items if row isn’t full */
}

/* Work card outline and hover effect */

.work-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none; /* remove underline from links */
  color: inherit; /* keep text color the same */
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid rgba(212, 177, 106, 0.3); /* outline */
  background: #1f1e1b;
  align-items: center; /* centers content */
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: #d4b16a; /* highlight on hover */
}

/* Image inside work card */
.work-card img,
.work-card video {
  width: 100%;
  height: auto; /* keeps aspect ratio */
  max-height: 500px; /* optional: keeps cards uniform */
  border-radius: 14px;
  object-fit: cover;
}

.work-card:hover img,
.work-card:hover video {
  opacity: 0.8;
}

/* Work info (title + description) */
.work-info {
  padding: 1.5rem;
  text-align: center; /* center the title */
}

.work-info h3 {
  color: #d4b16a;
  margin-bottom: 0.5rem;
}

.work-info p {
  color: #d8d4c4;
  line-height: 1.5;
  font-size: 0.95rem;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto 0 auto;
}

.video-wrapper video {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.video-wrapper h3 {
  color: #d4b16a;
  margin-top: 1rem;
  text-align: center;
}

.video-wrapper p {
  color: #d8d4c4;
  max-width: 800px;
  margin: 0.5rem auto 0 auto;
  text-align: center;
}

/* === SLIDESHOW === */
.slideshow-container {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin-top: 2rem;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.slide.active {
  display: block;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(212, 177, 106, 0.8);
  border: none;
  color: #1b1a17;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.prev:hover,
.next:hover {
  background-color: rgba(212, 177, 106, 1);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* === STUDIO & TOOLS === */
.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  width: 100%;
}

.studio-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem;
  transition: background 0.3s ease;
}

.studio-card:hover {
  background: rgba(212, 177, 106, 0.12);
}

.studio-card h3 {
  color: #d4b16a;
  margin-bottom: 0.8rem;
}

.studio-card li {
  color: #d8d4c4;
  line-height: 1.6;
}

/* === CONTACT === */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

input,
textarea,
button {
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
}

input,
textarea {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
}

button {
  background: #d4b16a;
  color: #1b1a17;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: #e0c077;
}

/* === FLOATING FOREST LEAVES === */
.leaf {
  position: absolute;
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.4;
  pointer-events: none;
  animation: fall linear infinite;
}

/* Leaf type 1 */
.leaf.type1 {
  background-image: url("autumn1.png");
}

/* Leaf type 2 */
.leaf.type2 {
  background-image: url("autumn2.png");
}
/* Different leaf variations */
.leaf:nth-child(1) {
  left: 10%;
  animation-duration: 12s;
  width: 30px;
  height: 30px;
}
.leaf:nth-child(2) {
  left: 25%;
  animation-duration: 18s;
  width: 45px;
  height: 45px;
}
.leaf:nth-child(3) {
  left: 40%;
  animation-duration: 15s;
  width: 35px;
  height: 35px;
}
.leaf:nth-child(4) {
  left: 60%;
  animation-duration: 20s;
  width: 50px;
  height: 50px;
}
.leaf:nth-child(5) {
  left: 75%;
  animation-duration: 14s;
  width: 40px;
  height: 40px;
}
.leaf:nth-child(6) {
  left: 85%;
  animation-duration: 16s;
  width: 25px;
  height: 25px;
}

@keyframes fall {
  0% {
    transform: translateY(-10vh) rotate(0deg) translateX(0);
    opacity: 0.3;
  }
  25% {
    transform: translateY(25vh) rotate(45deg) translateX(10px);
    opacity: 0.5;
  }
  50% {
    transform: translateY(50vh) rotate(90deg) translateX(-10px);
    opacity: 0.4;
  }
  75% {
    transform: translateY(75vh) rotate(180deg) translateX(5px);
    opacity: 0.5;
  }
  100% {
    transform: translateY(120vh) rotate(360deg) translateX(0);
    opacity: 0;
  }
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #a49f91;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-icons a img {
  width: 40px; /* adjust size */
  height: 30px;
  filter: brightness(0) invert(1); /* makes icons white for contrast */
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a.email-icon img {
  width: 35px; /* bigger than the others */
  height: 32px;
}

.social-icons a:hover img {
  transform: scale(1.2);
  filter: brightness(0) invert(0.8) sepia(1) saturate(5) hue-rotate(30deg);
  /* subtle color pop on hover */
}
