/* ================= GLOBAL RESET ================= */

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

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: #FFEBED;
  color: #27153D;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ================= TYPOGRAPHY ================= */

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  line-height: 1;
}

p {
  font-size: 1rem;
}

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

/* ================= HEADER ================= */

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  padding: 34px 60px;
  z-index: 100;
}

.logo h1 {
  font-size: 2.8rem;
  color: white;
  margin-bottom: 6px;
}

.logo p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.03em;
}

nav {
  display: flex;
  gap: 34px;
  padding-top: 10px;
}

nav a {
  color: rgba(255,255,255,0.9);
  font-size: 0.96rem;
  position: relative;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.65;
}

/* ================= HERO ================= */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.68),
      rgba(0,0,0,0.18)
    );

  z-index: 1;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ================= HERO TEXT ================= */

.hero-text {
  position: absolute;
  left: 70px;
  bottom: 70px;
  z-index: 2;

  max-width: 650px;
  color: white;
}

.hero-text h2 {
  font-size: clamp(4rem, 7vw, 6.5rem);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.hero-text p {
  font-size: 1.1rem;
  opacity: 0.92;
  letter-spacing: 0.02em;
}

/* ================= MAIN SECTIONS ================= */

.fade-section {
  padding: 120px 80px;

  opacity: 0;
  transform: translateY(40px);

  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-section h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 50px;
}

/* ================= ABOUT ================= */

.about-container {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: center;

  max-width: 1300px;
  margin: 0 auto;
}

.about-container img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 18px;
}

.about-text {
  max-width: 700px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 26px;
  opacity: 0.9;
}

/* ================= WORKS ================= */

#works {
  max-width: 1500px;
  margin: 0 auto;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #ddd;
}

.work-item img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;

  transition:
    transform 0.7s ease,
    filter 0.7s ease;
}

.work-item::after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.58),
      rgba(0,0,0,0.08)
    );
}

.work-item:hover img {
  transform: scale(1.04);
  filter: brightness(0.92);
}

.work-label {
  position: absolute;
  left: 28px;
  bottom: 26px;

  z-index: 2;

  color: white;
  font-size: 2rem;
}

/* ================= CONTACT ================= */

#contact {
  padding-top: 90px;
}

#contact p {
  font-size: 1.08rem;
  line-height: 1.8;
  opacity: 0.88;
}

/* ================= SOCIAL ================= */

.social-section {
  padding: 20px 80px 120px;
}

.social-header {
  margin-bottom: 40px;
}

.social-header h3 {
  font-size: 2.3rem;
  margin-bottom: 12px;
}

.social-header a {
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.social-header a:hover {
  opacity: 1;
}

.social-feed {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}

.social-feed::-webkit-scrollbar {
  display: none;
}

.social-item {
  min-width: 300px;
  height: 380px;

  position: relative;
  overflow: hidden;
  border-radius: 18px;

  flex-shrink: 0;
}

.social-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: transform 0.6s ease;
}

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

.social-item a {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ================= PHOTO PAGE HEADER ================= */

.photo-header {
  padding: 70px 80px 40px;
  max-width: 1100px;
}

.back-home {
  display: inline-block;
  margin-bottom: 28px;

  font-size: 0.95rem;
  opacity: 0.6;

  transition: opacity 0.3s ease;
}

.back-home:hover {
  opacity: 1;
}

.photo-header h1 {
  display: flex;
  align-items: center;
  gap: 18px;

  font-size: clamp(3.5rem, 7vw, 6rem);
  margin-bottom: 24px;

  letter-spacing: -0.03em;
}

.photo-header span {
  color: #F6B6B7;
  font-weight: 300;
}

.photo-header small {
  font-family: 'Inter', sans-serif;
  font-size: 0.22em;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  opacity: 0.8;
}

.gallery-description {
  max-width: 620px;
  line-height: 1.9;
  opacity: 0.82;
}

/* ================= PROJECT SECTION ================= */

.project-section {
  padding: 70px 80px;
  max-width: 1500px;
  margin: 0 auto;
}

.project-section + .project-section {
  border-top: 1px solid rgba(39,21,61,0.08);
}

.project-info {
  margin-bottom: 40px;
  max-width: 650px;
}

.project-info h2 {
  font-size: 2.7rem;
  margin-bottom: 14px;
}

.project-info p {
  line-height: 1.9;
  opacity: 0.88;
}

/* ================= PHOTO GRID ================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-grid img {
  width: 100%;
  height: 520px;

  object-fit: cover;
  border-radius: 16px;

  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

.project-grid img:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

/* ================= VIDEO ================= */

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;

  position: relative;
  overflow: hidden;
  border-radius: 18px;

  background: black;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.35);

  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  letter-spacing: 0.04em;

  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-frame:hover .video-overlay {
  opacity: 1;
}

/* ================= FOOTER ================= */

footer {
  padding: 60px;
  text-align: center;
  background: #F6B6B7;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {

  header {
    flex-direction: column;
    gap: 24px;
    padding: 24px;
  }

  .logo h1 {
    font-size: 2rem;
  }

  nav {
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 0;
  }

  .hero {
    height: 90vh;
  }

  .hero-text {
    left: 24px;
    right: 24px;
    bottom: 40px;
  }

  .hero-text h2 {
    font-size: 3.2rem;
  }

  .fade-section {
    padding: 90px 24px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-container img {
    height: 420px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-item img {
    height: 420px;
  }

  .social-section {
    padding: 0 24px 90px;
  }

  .social-item {
    min-width: 240px;
    height: 320px;
  }

  .photo-header {
    padding: 40px 24px 20px;
  }

  .photo-header h1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .project-section {
    padding: 60px 24px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-grid img {
    height: 420px;
  }

  .video-overlay {
    font-size: 1.5rem;
  }
}
