@import url('https://fonts.googleapis.com/css2?family=Lemonada:wght@400;600;700&family=Cairo:wght@400;600;800&display=swap');

@font-face {
  font-family: 'Adelina Camarie';
  src: url('Adelina Camarie.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}
:root {
  --obsidian-bg: #0a0a0a;
  --alt-bg: #121210;
  --white: #f6f4ee;
  --grey: #8f8d84;
  --line: #2b2a25;
  --ease: cubic-bezier(.16, .8, .24, 1);
  --radius: 16px;
}

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

html{ scroll-behavior: smooth; }

body {
  background-color: var(--obsidian-bg);
  color: var(--white);
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  line-height: 1.7;
  overflow-x: hidden;
}

::selection{ background: var(--white); color: var(--obsidian-bg); }

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

img{ max-width: 100%; display:block; }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 6vw;
}

/* ============ TIMELINE RULE — signature element ============ */
.timeline-rule{
  position: relative;
  height: 34px;
  width: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      var(--line) 0 1px,
      transparent 1px 40px
    );
  background-position: right center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.timeline-rule::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      var(--grey) 0 1.5px,
      transparent 1.5px 200px
    );
  background-position: right center;
  opacity: .3;
}
.timeline-rule .playhead {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--white);
  right: 12%;
  animation: scrub 6s linear infinite;
}
.timeline-rule .playhead::before {
  content: "";
  position: absolute;
  top: -5px; right: -5px;
  width: 12px; height: 12px;
  background: var(--white);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}
@keyframes scrub{
  0% { right: calc(100% - 15px); opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { right: 0%; opacity: 0; }
}


/* ============ NAV ============ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--obsidian-bg);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 18px 6vw;
}
.logo{
  direction: ltr;
  display:inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transform: scale(3.2);
  transform-origin: right center;
}
.logo-mix {
  position: relative;
  display: inline-block;
  line-height: 1;
}
.logo-mix .ar {
  font-family: 'Lemonada', cursive;
  font-size: 2.2rem;
  color: var(--grey);
  display: block;
}
.logo-mix .en {
  font-family: 'Adelina Camarie', cursive;
  font-size: 2.8rem;
  color: var(--white);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  white-space: nowrap;
}
.logo span{ color: var(--grey); font-family:'Cairo',sans-serif; font-size: .7rem; display:block; letter-spacing:3px; font-weight:400; text-transform:uppercase; margin-top: 5px;}
nav.links{ display:flex; gap: 34px; }
nav.links a{
  font-size: .95rem;
  color: var(--grey);
  transition: color .3s var(--ease);
}
nav.links a:hover, nav.links a.active {
  color: var(--white);
}

.menu-btn{ display:none; background:none; border:1px solid var(--line); color:var(--white); font-size:1.3rem; padding: 6px 12px; cursor:pointer; }

@media (max-width: 860px){
  nav.links{
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--obsidian-bg);
    flex-direction: column;
    padding: 40px 8vw;
    gap: 26px;
    transform: translateY(-110%);
    transition: transform .4s var(--ease);
    border-top: 1px solid var(--line);
  }
  nav.links.open{ transform: translateY(0); }
  .menu-btn{ display:block; }
  .logo img { transform: scale(2.5); }
}

/* ============ HERO ============ */
.hero{
  min-height: 82vh;
  display:flex;
  flex-direction: column;
  justify-content:center;
  align-items: center;
  text-align: center;
  padding: 8vh 6vw 6vh;
}
.hero .eyebrow{
  color: var(--grey);
  letter-spacing: 2px;
  font-size: .85rem;
  margin-bottom: 18px;
  text-transform: uppercase;
  font-family: 'Cairo', sans-serif;
}
.hero-logo {
  position: relative;
  display: inline-block;
  margin: 10px 0 20px;
}
.hero-logo .ar {
  font-family: 'Lemonada', cursive;
  font-size: clamp(4rem, 10vw, 8rem);
  color: #2b2a25; /* Dark grey for background contrast */
  line-height: 1;
  display: block;
}
.hero-logo .en {
  font-family: 'Adelina Camarie', cursive;
  font-size: clamp(4.5rem, 12vw, 10rem);
  color: var(--white);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  white-space: nowrap;
}
.hero-image {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 100%;
  width: 750px;
  height: auto;
}
.hero .role{
  margin-top: 18px;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--grey);
  max-width: 700px;
}
.hero .role b{ color: var(--white); font-weight:600; }
.cta-row{ display:flex; gap:18px; margin-top: 42px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}
.btn.solid {
  background: var(--white);
  color: var(--obsidian-bg);
  border: 1px solid var(--white);
}
.btn.solid:hover {
  background: transparent;
  color: var(--white);
}
.btn.ghost {
  color: var(--white);
  border: 1px solid var(--line);
  background: transparent;
}
.btn.ghost:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--obsidian-bg);
}

/* ============ SECTION ============ */
section{ padding: 90px 0; }
.section-head{ margin-bottom: 54px; max-width: 640px; }
.section-head .eyebrow{
  color: var(--grey); font-size:.85rem; text-transform:uppercase; margin-bottom:14px; display:block;
}
.section-head h2{
  font-family:'Lemonada', cursive;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
}
.section-head p{ color: var(--grey); margin-top: 14px; font-size: 1.05rem; }
.title-icon {
  display: block;
  margin: 0 auto 15px auto;
  max-width: 100%;
  width: 250px; /* Adjust if it needs to be bigger/smaller */
  height: auto;
}

/* ============ ABOUT ============ */
.about-grid{ display:grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items:start; }
.about-grid p{ color: var(--grey); font-size: 1.05rem; margin-bottom: 18px; }
.tool-list{ display:flex; flex-direction:column; gap:0; border-top:1px solid var(--line); }
.tool-list div{
  display:flex; justify-content:space-between; padding: 16px 0; border-bottom:1px solid var(--line);
  font-size:.95rem;
}
.tool-list div span:first-child{ color: var(--white); font-weight:600; }
.tool-list div span:last-child{ color: var(--grey); text-align: left; }
@media (max-width:860px){ .about-grid{ grid-template-columns: 1fr; } }

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  padding: 40px 30px;
  background: var(--alt-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease);
}
.service-card:hover {
  border-color: var(--grey);
}
.service-card .num{ color: var(--grey); font-size:.85rem; font-family:'Cairo',sans-serif; margin-bottom: 22px; display:block; }
.service-card h3{ font-family:'Lemonada', cursive; font-size:1.8rem; margin-bottom: 12px; color: var(--white); }
.service-card p{ color: var(--grey); font-size: .95rem; }
@media (max-width: 860px){ .services-grid{ grid-template-columns: 1fr; gap: 24px; } }

/* ============ TESTIMONIALS ============ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testi-card {
  padding: 34px 28px;
  background: var(--alt-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease);
}
.testi-card:hover {
  border-color: var(--grey);
}
.testi-card .quote-mark{ font-family:'Lemonada', cursive; font-size: 3rem; color: var(--grey); line-height:1; }
.testi-card p.quote{ margin: 18px 0 26px; color: var(--white); font-size: 1rem; }
.testi-card .who{ display:flex; align-items:center; gap:12px; border-top:1px solid var(--line); padding-top:16px; }
.testi-card .avatar{ width:40px; height:40px; border:1px solid var(--line); border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:'Lemonada', cursive; background: var(--obsidian-bg); color: var(--white); }
.testi-card .who b{ display:block; font-size:.95rem; color: var(--white); }
.testi-card .who span{ color: var(--grey); font-size:.8rem; }
@media (max-width:860px){ .testi-grid{ grid-template-columns:1fr; } }

/* ============ PORTFOLIO PAGE ============ */
.filter-row{ display:flex; gap: 10px; flex-wrap: wrap; margin-bottom: 50px; }
.filter-btn {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: .95rem;
  cursor: pointer;
  background: transparent;
  color: var(--grey);
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s var(--ease);
}
.filter-btn.active, .filter-btn:hover {
  border-color: var(--white);
  color: var(--obsidian-bg);
  background: var(--white);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.video-card {
  background: var(--alt-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7);
}
.video-thumb {
  aspect-ratio: 16/9;
  background: #141412;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.video-thumb .thumb-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
  z-index: 1;
  background: #1c1b18;
}
.video-card:hover .thumb-poster {
  transform: scale(1.06);
  filter: brightness(1.08);
}
.video-thumb .play {
  width: 56px;
  height: 56px;
  border: 1px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--obsidian-bg);
  background: var(--white);
  transition: all 0.3s var(--ease);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}
.video-card:hover .play {
  transform: scale(1.12);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}
.video-body{ padding: 22px; }
.video-tag{ color: var(--grey); font-size:.8rem; }
.video-body h3{ font-family:'Lemonada', cursive; font-size: 1.5rem; margin: 10px 0 16px; color: var(--white); }
.video-body a.btn{ padding: 9px 18px; font-size:.85rem; }
@media (max-width: 860px){ .video-grid{ grid-template-columns: 1fr; gap: 26px; } }

/* ============ BOOKING / HIRE SECTION ============ */
.booking-wrap {
  background: var(--alt-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px 36px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
@media (max-width: 768px) {
  .booking-wrap { 
    padding: 22px 14px; 
    border-radius: 16px;
  }
}

.type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .type-selector { 
    grid-template-columns: repeat(3, 1fr); 
    gap: 8px; 
    margin-bottom: 16px;
  }
}

.type-btn {
  position: relative;
  background: #141310;
  border: 2px solid rgba(255, 255, 255, 0.08);
  padding: 18px 12px;
  border-radius: 14px;
  color: var(--grey);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease);
  font-family: 'Cairo', sans-serif;
  text-align: center;
}

.type-btn .btn-check {
  display: none;
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  background: #e5a93c;
  color: #000;
  border-radius: 50%;
  font-size: 0.65rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(229, 169, 60, 0.6);
}

.type-btn .type-icon { 
  font-size: 1.6rem; 
  color: #6d6a62; 
  transition: all 0.25s; 
}
.type-btn .type-title { 
  font-size: 1rem; 
  color: #c4c0b5; 
  transition: color 0.25s; 
  line-height: 1.3;
}
.type-btn .type-desc { 
  font-size: 0.78rem; 
  color: #7a766c; 
  transition: color 0.25s;
}

/* Hover state */
.type-btn:hover {
  border-color: rgba(229, 169, 60, 0.4);
  background: #1a1813;
  color: var(--white);
  transform: translateY(-2px);
}
.type-btn:hover .type-icon {
  color: #e5a93c;
}

/* ACTIVE STATE - GOLD / AMBER ULTRA VIBRANT */
.type-btn.active {
  border-color: #e5a93c !important;
  background: linear-gradient(145deg, #282114, #18150f) !important;
  box-shadow: 0 0 25px rgba(229, 169, 60, 0.25), inset 0 0 15px rgba(229, 169, 60, 0.1) !important;
  transform: translateY(-2px);
}
.type-btn.active .btn-check {
  display: flex;
}
.type-btn.active .type-icon { 
  color: #e5a93c !important; 
  text-shadow: 0 0 15px rgba(229, 169, 60, 0.6);
  transform: scale(1.08);
}
.type-btn.active .type-title { 
  color: #ffffff !important; 
  font-weight: 700;
}
.type-btn.active .type-desc { 
  color: #e5a93c !important; 
  opacity: 0.95;
}

/* Compact rules on Mobile for type-btn */
@media (max-width: 768px) {
  .type-btn {
    padding: 10px 4px;
    border-radius: 12px;
    gap: 4px;
    min-height: 72px;
    justify-content: center;
  }
  .type-btn .btn-check {
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    font-size: 0.55rem;
  }
  .type-btn .type-icon {
    font-size: 1.2rem;
  }
  .type-btn .type-title {
    font-size: 0.75rem;
    line-height: 1.2;
  }
  .type-btn .type-desc {
    display: none; /* Hide long subtitle on mobile to fit perfectly in 1 row */
  }
}

/* Active Type Banner */
.active-type-banner {
  background: linear-gradient(90deg, rgba(229, 169, 60, 0.12), rgba(229, 169, 60, 0.04));
  border: 1px solid rgba(229, 169, 60, 0.4);
  border-radius: 12px;
  padding: 11px 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bannerFade 0.3s ease;
}
@keyframes bannerFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.active-type-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.95rem;
}
.active-type-banner .banner-icon {
  color: #e5a93c;
  font-size: 1.1rem;
}
.active-type-banner .banner-label {
  color: #a8a59d;
  font-size: 0.88rem;
}
.active-type-banner .banner-value {
  color: #e5a93c;
  font-size: 1.02rem;
  font-weight: 700;
}
@media (max-width: 768px) {
  .active-type-banner {
    padding: 8px 12px;
    margin-bottom: 16px;
    border-radius: 10px;
  }
  .active-type-banner .banner-content {
    font-size: 0.84rem;
    gap: 6px;
  }
  .active-type-banner .banner-value {
    font-size: 0.88rem;
  }
}

.booking-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.booking-form .full-width {
  grid-column: span 2;
}
@media (max-width: 768px) {
  .booking-form { 
    grid-template-columns: 1fr; 
    gap: 14px;
  }
  .booking-form .full-width { 
    grid-column: span 1; 
  }
}

.dynamic-group {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  animation: groupFadeIn 0.35s var(--ease);
}
@media (max-width: 768px) {
  .dynamic-group {
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@keyframes groupFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 768px) {
  .form-group {
    gap: 6px;
  }
}
.form-group label {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 600;
}
@media (max-width: 768px) {
  .form-group label {
    font-size: 0.82rem;
  }
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--obsidian-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--white);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  outline: none;
}
@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 13px;
    font-size: 0.88rem;
    border-radius: 10px;
  }
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #e5a93c;
  box-shadow: 0 0 15px rgba(229, 169, 60, 0.2);
}
.form-group select option {
  background: var(--obsidian-bg);
  color: var(--white);
}
.form-group textarea {
  resize: vertical;
  min-height: 110px;
}
@media (max-width: 768px) {
  .form-group textarea {
    min-height: 90px;
  }
}

.form-actions {
  grid-column: span 2;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
@media (max-width: 768px) {
  .form-actions { grid-column: span 1; flex-direction: column; margin-top: 5px; }
  .form-actions .btn { width: 100%; padding: 12px 20px; font-size: 0.95rem; }
}

.booking-status {
  grid-column: span 2;
  text-align: center;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 12px;
  transition: all 0.3s var(--ease);
}
@media (max-width: 768px) {
  .booking-status { grid-column: span 1; font-size: 0.85rem; padding: 12px 14px; }
}
.booking-status.success {
  background: rgba(46, 213, 115, 0.15);
  border: 1px solid #2ed573;
  color: #2ed573;
}
.booking-status.error {
  background: rgba(255, 71, 87, 0.15);
  border: 1px solid #ff4757;
  color: #ff4757;
}
.booking-status.loading {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--grey);
  color: var(--white);
}

/* ============ CONTACT PAGE ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 46px 36px;
  background: var(--alt-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease);
}
.contact-card:hover {
  border-color: var(--grey);
}
.contact-card .icon{ font-size:1.8rem; color: var(--white); }
.contact-card h3{ font-family:'Lemonada', cursive; font-size:2rem; color: var(--white); }
.contact-card p{ color: var(--grey); font-size: .95rem; }
.contact-card .value{ color: var(--white); font-weight:600; font-size: 1.05rem; direction:ltr; text-align:right; }
@media (max-width: 860px){ .contact-grid{ grid-template-columns: 1fr; gap: 24px; } }

/* ============ FOOTER ============ */
footer{ border-top: 1px solid var(--line); padding: 50px 0 30px; }
.footer-top{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:24px; margin-bottom: 34px; }
.footer-top .logo{ font-size:2.8rem; color: var(--white); line-height: 0.8; }
.social-row{ display:flex; gap: 16px; }
.social-row a{
  width:44px; height:44px; border:1px solid var(--line); border-radius:50%; display:flex; align-items:center; justify-content:center;
  transition: all .3s var(--ease);
  color: var(--white);
}
.social-row a:hover{ background: var(--white); color: var(--obsidian-bg); border-color: var(--white); }
.footer-bottom{ color: var(--grey); font-size: .85rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* ============ MODAL ============ */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.video-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  z-index: 1001;
  background: #0d0d0d;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: width 0.3s var(--ease), max-width 0.3s var(--ease), height 0.3s var(--ease), max-height 0.3s var(--ease);
}

/* Landscape mode (16:9) */
.modal-content.mode-landscape {
  width: 90vw;
  max-width: 900px;
  height: auto;
}
.modal-content.mode-landscape .iframe-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
}

/* Portrait / Reel mode (9:16) */
.modal-content.mode-portrait {
  width: auto;
  max-width: 440px;
  height: min(85vh, 760px);
}
.modal-content.mode-portrait .iframe-container {
  height: 100%;
  width: auto;
  aspect-ratio: 9 / 16;
  max-height: min(85vh, 760px);
  max-width: 90vw;
}

.iframe-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
}
.iframe-container iframe,
.iframe-container video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: contain;
  background: #000;
}

.modal-header-bar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1005;
  pointer-events: none;
}

.ratio-toggle-btn,
.close-btn {
  pointer-events: auto;
  background: rgba(15, 15, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 50px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cairo', sans-serif;
}

.ratio-toggle-btn {
  padding: 6px 14px;
  font-size: 0.82rem;
  gap: 8px;
}
.ratio-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}

.close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--white);
  transform: scale(1.05);
}

/* ============ MOBILE MODAL (FULLSCREEN REELS STYLE) ============ */
@media (max-width: 768px) {
  .video-modal {
    padding: 0;
    background: #000;
  }
  .modal-overlay {
    background: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .modal-content,
  .modal-content.mode-portrait,
  .modal-content.mode-landscape {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #000;
  }
  .modal-content.mode-portrait .iframe-container,
  .modal-content.mode-landscape .iframe-container,
  .iframe-container {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    aspect-ratio: unset !important;
    border-radius: 0 !important;
    background: #000;
  }
  .iframe-container iframe,
  .iframe-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .modal-header-bar {
    top: max(16px, env(safe-area-inset-top, 16px));
    left: 16px;
    right: 16px;
  }
  .ratio-toggle-btn {
    display: none; /* Hide on mobile to keep screen clean like TikTok/Instagram */
  }
  .close-btn {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;
    background: rgba(20, 20, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }
}
