:root {
  --bracket-size: 40px;
  --bracket-thickness: 2px;
  --bracket-color: rgba(255, 255, 255, 0.45); /* Middle ground */
  --overlay-bg: rgba(0, 0, 0, 0.45); /* 20% stronger */
  --text-primary: #ffffff;
  --transition-speed: 0.7s;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lexend', sans-serif;
}

/* ========================================
   INVISIBLE NAVBAR
   ======================================== */

.navbar {
  background-color: transparent !important;
  border-bottom: none !important;
  position: absolute;
  width: 100%;
  z-index: 1000;
  padding: 20px 30px !important;
}

.navbar-brand-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.navbar-brand {
  color: white;
  font-family: 'Lexend', sans-serif;
  font-size: 26px;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.navbar-roles {
  color: white;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.3px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  opacity: 0.85;
}

.navbar-animation-link,
.navbar-contact-link {
  color: white;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  text-decoration: none;
  opacity: 0.95;
}

.navbar-animation-link:hover,
.navbar-contact-link:hover {
  color: white;
  opacity: 0.8;
  text-decoration: none;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.navbar-social-right {
  opacity: 0.9;
}

.navbar-social-right:hover {
  opacity: 0.7;
}

.nav-link {
  font-size: 18px;
  color: white;
  margin: 0 10px;
  opacity: 0.95 !important;
}

.nav-link:hover {
  opacity: 0.8;
}

.navbar-brand:hover {
  opacity: 0.8;
}

/* Mobile Navbar */
@media screen and (max-width: 767px) {
  .navbar {
    padding: 12px 15px !important;
  }

  .container-fluid {
    flex-wrap: wrap;
  }

  .navbar-brand-container {
    flex: 1;
    min-width: 0;
  }

  .navbar-brand {
    font-size: 18px;
  }

  .navbar-roles {
    font-size: 9px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }

  .navbar-right {
    gap: 12px;
  }

  .navbar-animation-link,
  .navbar-contact-link {
    font-size: 11px;
  }
}

/* ========================================
   VIDEO GALLERY - IRREGULAR GRID
   ======================================== */

.photo-gallery {
  padding-top: 0;
  margin-top: 0;
}

.photo-gallery .photos {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
}

.video-row {
  display: flex;
  gap: 2px;
  width: 100%;
  height: 32vw; /* Fixed height per row based on viewport width */
}

/* Hero row is taller to compensate for navbar overlay */
.video-row.row-hero {
  height: 50vw;
}

/* Rows with 3 items are shorter */
.video-row.row-3 {
  height: 28vw;
}

.video-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 100%; /* Fill row height */
}

/* Size classes as flex ratios - will fill row proportionally */
.video-item.size-100 { flex: 1 1 100%; }
.video-item.size-70 { flex: 70 1 0; }
.video-item.size-65 { flex: 65 1 0; }
.video-item.size-60 { flex: 60 1 0; }
.video-item.size-55 { flex: 55 1 0; }
.video-item.size-50 { flex: 50 1 0; }
.video-item.size-45 { flex: 45 1 0; }
.video-item.size-40 { flex: 40 1 0; }
.video-item.size-35 { flex: 35 1 0; }
.video-item.size-30 { flex: 30 1 0; }
.video-item.size-25 { flex: 25 1 0; }

@media screen and (max-width: 767px) {
  .video-row {
    flex-direction: column;
    height: auto;
  }
  .video-row.row-hero,
  .video-row.row-3 {
    height: auto;
  }
  .video-item {
    flex: 0 0 auto !important;
    height: auto;
  }
  .video-card {
    padding-bottom: 56.25% !important;
  }
}

/* Video Card Base Styles */
.video-card {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Only use aspect ratio on mobile */
@media screen and (max-width: 767px) {
  .video-card {
    height: 0;
    padding-bottom: 56.25%;
  }
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-speed) ease-out;
}

video.video-thumbnail {
  transform: scale(1.15);
}

.video-card:hover video.video-thumbnail {
  transform: scale(1.20);
}

.video-card:hover img.video-thumbnail {
  transform: scale(1.05);
}

/* Heavy letterbox override for cinematic videos */
video.video-thumbnail.letterbox-heavy {
  transform: scale(1.35);
}

.video-card:hover video.video-thumbnail.letterbox-heavy {
  transform: scale(1.40);
}

/* Animated Corner Brackets */
.video-card::before,
.video-card::after {
  content: '';
  position: absolute;
  width: var(--bracket-size);
  height: var(--bracket-size);
  border: var(--bracket-thickness) solid var(--bracket-color);
  opacity: 0;
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
  z-index: 3;
  pointer-events: none;
}

.video-card::before {
  top: 16px;
  left: 16px;
  border-right: none;
  border-bottom: none;
  transform: translate(-4px, -4px); /* Middle ground */
}

.video-card::after {
  bottom: 16px;
  right: 16px;
  border-left: none;
  border-top: none;
  transform: translate(4px, 4px);
}

.video-card:hover::before,
.video-card:hover::after {
  opacity: 0.65; /* Middle ground */
  transform: translate(0, 0);
}

.video-card .video-overlay::before,
.video-card .video-overlay::after {
  content: '';
  position: absolute;
  width: var(--bracket-size);
  height: var(--bracket-size);
  border: var(--bracket-thickness) solid var(--bracket-color);
  opacity: 0;
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
  z-index: 3;
  pointer-events: none;
}

.video-card .video-overlay::before {
  top: 16px;
  right: 16px;
  border-left: none;
  border-bottom: none;
  transform: translate(4px, -4px);
}

.video-card .video-overlay::after {
  bottom: 16px;
  left: 16px;
  border-right: none;
  border-top: none;
  transform: translate(-4px, 4px);
}

.video-card:hover .video-overlay::before,
.video-card:hover .video-overlay::after {
  opacity: 0.65;
  transform: translate(0, 0);
}

/* Video Overlay */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  opacity: 0;
  transform: scale(0.97); /* Middle ground */
  transform-origin: center;
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
  z-index: 2;
  pointer-events: none;
}

.video-card:hover .video-overlay {
  opacity: 1;
  transform: scale(1);
}

/* Play Icon Animation */
@keyframes blink-icon {
  0%, 100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.6;
  }
}

.play-icon-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  pointer-events: none;
}

.play-icon-blink {
  width: 4rem;
  height: 4rem;
  display: block;
}

.video-card:hover .play-icon-wrapper {
  opacity: 0.9;
  animation: blink-icon 1.8s ease-in-out infinite;
}

/* Typography */
.video-text-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 4;
  color: var(--text-primary);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px); /* Middle ground */
  transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.video-text-overlay h2 {
  font-size: 1.6rem;
  margin: 0;
  padding: 0;
  font-weight: 700;
}

.video-text-overlay p {
  font-size: 0.9rem;
  margin: 0;
  padding: 0;
  font-weight: 400;
  opacity: 0.85;
}

.video-card:hover .video-text-overlay {
  opacity: 0.95; /* Middle ground */
  transform: translateY(0);
}

/* Responsive Typography */
@media screen and (max-width: 643px) {
  .video-text-overlay h2 {
    font-size: 1rem;
  }
  .video-text-overlay p {
    font-size: 0.6rem;
  }
  .play-icon-blink {
    width: 3rem;
    height: 3rem;
  }
}

@media screen and (min-width: 644px) and (max-width: 1023px) {
  .video-text-overlay h2 {
    font-size: 1.4rem;
  }
  .video-text-overlay p {
    font-size: 0.75rem;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1479px) {
  .video-text-overlay h2 {
    font-size: 1.6rem;
  }
  .video-text-overlay p {
    font-size: 0.9rem;
  }
}

@media screen and (min-width: 1480px) and (max-width: 1919px) {
  .video-text-overlay h2 {
    font-size: 2.25rem;
  }
  .video-text-overlay p {
    font-size: 1.1rem;
  }
  .play-icon-blink {
    width: 5rem;
    height: 5rem;
  }
}

@media screen and (min-width: 1920px) {
  .video-text-overlay h2 {
    font-size: 3rem;
  }
  .video-text-overlay p {
    font-size: 1.5rem;
  }
}

/* CONTACT PAGE */
.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  padding: 100px 40px 40px 40px;
}

.contact-content {
  text-align: center;
}

.contact-content h1 {
  color: white;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 60px;
  opacity: 0.9;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 300;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.contact-links a:hover {
  opacity: 1;
  color: white;
  text-decoration: none;
}

.contact-links a img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* MODAL */
button {
  margin-top: 1px;
}

.modal {
  background-color: #000000;
  box-shadow: 0 0.25em 0.5em rgba(0, 0, 0, 0.3);
  display: none;
  max-width: 100%;
  padding: 0.5em;
  visibility: hidden;
  z-index: 2;
  box-sizing: border-box;
}

@media (min-width: 40em) {
  .modal {
    max-width: 100%;
  }
}

.modal.active {
  display: block;
  height: 100%;
  left: 0;
  max-height: 100%;
  overflow: auto;
  position: fixed;
  right: 0;
  top: 0;
  visibility: visible;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 30em) {
  .modal.active {
    height: auto;
    left: 1%;
    margin-left: auto;
    margin-right: auto;
    right: 1%;
  }
}

@media (min-width: 40em) {
  .modal.active {
    top: 2%;
    left: 2%;
    right: 2%;
    width: 96%;
    height: 96%;
    box-sizing: border-box;
  }
}

.modal:focus {
  outline: none;
}

.modal-bg {
  background-color: #272727;
  bottom: 0;
  position: fixed;
  left: 0;
  opacity: 0.9;
  right: 0;
  top: 0;
  z-index: 1;
}

.close {
  color: gray;
  cursor: pointer;
  float: left;
  font-weight: 300;
  font-size: 0.5em;
  text-decoration: none;
}

.close:hover {
  color: #5a5a5a;
  cursor: pointer;
}

/* FOOTER */
.footer-clean {
  padding: 5px 0;
  background-color: #121212;
  color: #ffffff;
  border-top: 0.5px solid white;
}

.footer-clean h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: bold;
  font-size: 16px;
}

.footer-clean ul {
  padding: 0;
  list-style: none;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 0;
}

.footer-clean ul a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
}

.footer-clean ul a:hover {
  opacity: 1;
}

.footer-clean .item.social {
  text-align: right;
}

@media (max-width: 767px) {
  .footer-clean .item {
    text-align: center;
    padding-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .footer-clean .item.social {
    text-align: center;
  }
}

.footer-clean .item.social > a {
  font-size: 24px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  display: inline-block;
  text-align: center;
  margin-left: 10px;
  margin-top: 22px;
  color: inherit;
  opacity: 0.75;
}

.footer-clean .item.social > a:hover {
  opacity: 0.9;
}

@media (max-width: 991px) {
  .footer-clean .item.social > a {
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .footer-clean .item.social > a {
    margin-top: 10px;
  }
}

.footer-clean .copyright {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 13px;
  opacity: 0.6;
}

dl,
ol,
ul {
  font-size: 17px !important;
  color: rgb(255, 255, 255);
}

.copyright {
  color: white;
  opacity: 1;
}

/* CONTACT FORM */
.contact-clean {
  background: #f1f7fc;
  padding: 80px 0;
}

@media (max-width: 767px) {
  .contact-clean {
    padding: 20px 0;
  }
}

.contact-clean form {
  max-width: 480px;
  width: 90%;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 4px;
  color: #505e6c;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

@media (max-width: 767px) {
  .contact-clean form {
    padding: 30px;
  }
}

.contact-clean h2 {
  margin-top: 5px;
  font-weight: bold;
  font-size: 28px;
  margin-bottom: 36px;
  color: inherit;
}

.contact-clean .form-group:last-child {
  margin-bottom: 5px;
}

.contact-clean form .form-control {
  background: black;
  border-radius: 5px;
  box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
  outline: none;
  color: inherit;
  padding-left: 12px;
  height: 42px;
}

.contact-clean form .form-control:focus {
  border: 3px solid #b2b2b2;
}

.contact-clean form textarea.form-control {
  min-height: 100px;
  max-height: 260px;
  padding-top: 10px;
  resize: vertical;
}

.contact-clean form .btn {
  padding: 12px 32px;
  border: 0.5px solid white;
  background: none;
  box-shadow: none;
  text-shadow: none;
  opacity: 0.9;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 13px;
  letter-spacing: 0.4px;
  line-height: 1;
  outline: none !important;
}

.contact-clean form .btn:hover {
  opacity: 1;
}

.contact-clean form .btn:active {
  transform: translateY(1px);
}

.contact-clean form .btn-primary {
  background-color: white !important;
  margin-top: 15px;
  color: #fff;
}

.custom-select.is-invalid,
.form-control.is-invalid,
.was-validated .custom-select:invalid,
.was-validated .form-control:invalid {
  border-color: white;
}

/* AI PORTRAITS GALLERY */
.portrait-card {
  cursor: pointer;
}

.portrait-card a {
  display: block;
  width: 100%;
  height: 100%;
}

.video-item a {
  display: block;
  width: 100%;
  height: 100%;
}
