.video-wrapper {
  width: 100%;
  height: 100%;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body {
  opacity: 0;
  transform: translateY(20px);
  animation: fadePage 0.8s ease forwards;
}

@keyframes fadePage {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.modal-open {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}



:root {
  --bg: #ffffff;
  --text: #111111;
  --max-width: 1800px;
  --content-width: min(calc(100% - 2rem), var(--max-width));
}

.site-header {
  padding: 0.75rem 0 2rem;
  width: var(--content-width);
  margin: 0 auto;
}

/* Topbar */
.topbar {
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  align-items: center;
}

.social-link svg {
  width: 80%;
  height: 100%;
  stroke: var(--text);
  fill: none;
  margin-top: 50px;
  margin-left: 50px;
}

.brand {
  justify-self: center;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  display: inline-block;
  margin-bottom: 10px;
}

/* NAV */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  margin-top: 1rem;
}

.site-nav a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-bottom: 4px;
  text-decoration: none;
  line-height: 1.05;
  color: inherit;
}

/* Hover line */
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text);
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  width: 30px;
  height: 22px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--text);
  left: 0;
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}
.menu-toggle span:nth-child(2) {
  top: 10px;
}
.menu-toggle span:nth-child(3) {
  bottom: 0;
}

/* CROSS ANIMATION */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 10px;
}

/* MOBILE */
@media (max-width: 768px) {
  .site-header {
    padding: 1.5rem 0;
  }

  .topbar {
    grid-template-columns: 40px 1fr 40px;
  }

  .social-link {
    display: block;
    width: 100%;
    height: 100%;
  }

  .brand {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    justify-self: center;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2rem;
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav a {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .social-link svg {
    margin-top: 0;
    margin-left: 0;
  }
}

/* logo name  */

.brand {
  justify-self: center;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 500;
  color: #1a1a1a;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-decoration: none;
  font-family: "Playfair Display", serif;
  display: inline-block;
  margin-bottom: 10px;
}

/* ===== STOP SCROLL ===== */
body.modal-open {
  overflow: hidden;
  height: 100vh;
}

/* ===== GRID ===== */
.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 10%;
  display: flex;
  flex-direction: column;
  gap: 60px;
  transition: filter 0.3s ease;
}

.grid-row {
  display: grid;
  gap: 40px;
}

.row-two {
  grid-template-columns: 1fr 1fr 1fr;
}

/* ===== VIDEO GRID ===== */
.video-item {
  position: relative;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.video-item.vertical {
  aspect-ratio: 9/16;
}

.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.3s;
  color: #fff;
  font-size: 18px;
}

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

/* ===== MODAL ===== */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-modal.active {
  display: flex;
}

/* ===== MODAL CONTENT ===== */
.modal-content {
  width: 90vw;
  height: 89vh;
  max-width: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== VIDEO ===== */
#modalVideo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: black;
}

/* ===== CLOSE BUTTON ===== */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2.5rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .row-two {
    grid-template-columns: 1fr;
  }
}

/* footer start */

.top-nav {
  text-align: center;
  padding: 60px 20px;
}

/* Instagram Icon */
.insta-icon {
  font-size: 35px;
  margin-bottom: 20px;
}

.fa-brands.fa-instagram {
      color: black !important;
    }

/* Menu */
.menu {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.menu a {
  text-decoration: none;
  color: #1a2a3a;
  font-size: 18px;
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
}

/* Hidden line initially */
.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 1px;
  background: #1a2a3a;
  transition: width 0.4s ease;
}

/* Hover pe left → right grow */
.menu a:hover::after {
  width: 100%;
}

/* Responsive Styles */
@media (max-width: 600px) {
  .top-nav {
    padding: 30px 10px; /* Reduced padding for mobile */
  }

  .insta-icon {
    font-size: 30px; /* Slightly smaller icon */
    margin-bottom: 15px;
  }

  .menu {
    flex-direction: column; /* Stacks links vertically */
    gap: 20px; /* Smaller gap between vertical items */
    align-items: center;
  }

  .menu a {
    font-size: 16px; /* Slightly smaller text for better fit */
    letter-spacing: 2px; /* Reduced letter spacing so text doesn't wrap */
  }
}

/* footer end */
