/* ====== THEME (switch via body[data-theme]) ====== */
:root {
  --panel: #002147;        /* Dark Oxford Blue */
  --panel-accent: #00152d; /* Slightly deeper navy */
  --text: #ffffff;         /* White text */
  --bg: #0b0f16;
  --brand: #4d8dff;
  --card: #0f1724;
  --border: #153153;
  --card: #101826;
  --card-hover: #0d1422;
  --brand: #9cc3ff;
/*:root {
  --bg: #0c0f14;
  --panel: #0f1624;
  --panel-accent: #15213a;
  --text: #f0f1f3;
  --muted: #94a3b8;
  --border: #1f2a44;
  --card: #101826;
  --card-hover: #0d1422;
  --brand: #9cc3ff;
  */
}
body[data-theme="obsidian"]{
  --bg:#0b0b0b; --panel:#0b132b; --panel-accent:#1a1a1a; --text:#f5f5f5;
  --muted:#a3a3a3; --border:#252525; --card:#141414; --card-hover:#111;
  --brand:#c7c7c7;
}
body[data-theme="sapphire"]{
  --bg:#081019; --panel:#0b132b; --panel-accent:#0f2137; --text:#e9f1ff;
  --muted:#9eb8d8; --border:#153056; --card:#0b1626; --card-hover:#0a1321;
  --brand:#c7c7c7;
}

/* ====== GLOBAL ====== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:400 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
}

/* ====== SIDEBAR ====== */
.sidebar{
  position:fixed; inset:0 auto 0 0;
  width:300px; background:linear-gradient(180deg,var(--panel),var(--panel-accent));
  border-right:1px solid var(--border);
  padding:16px 16px 24px;
  transform:translateX(0);
  transition:transform .3s ease;
  z-index:20;
}
.sidebar.collapsed{ transform:translateX(-260px); }

.sidebar__toggle{
  position:absolute; top:12px; right:-36px;
  width:36px; height:36px; border-radius:8px 8px 8px 8px;
  border:1px solid var(--border);
  background:var(--panel); color:var(--text); cursor:pointer;
  display:grid; place-items:center;
}
.sidebar.collapsed .chevron{ transform:rotate(180deg); }
.chevron{transition:transform .25s ease}

.brand{ margin-top:8px; padding:12px; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,0.02); }
.brand__title{ font-weight:700; letter-spacing:.4px; }
.brand__subtitle{ color:var(--muted); font-size:.9rem; margin-top:2px; }

.search{ display:flex; gap:8px; margin:16px 0 8px; }
.search input{
  flex:1; background:#0000; color:var(--text); border:1px solid var(--border);
  padding:8px 10px; border-radius:8px; outline:none;
}
.search__icon{
  width:38px; border-radius:8px; border:1px solid var(--border); background:var(--card); color:var(--text); cursor:pointer;
}

.nav{ display:flex; flex-direction:column; gap:8px; }
.nav__link, .nav__sublink, .nav__group>summary{
  display:block; padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:var(--card);
  color:var(--text); text-decoration:none; cursor:pointer; user-select:none;
}
.nav__link:hover, .nav__sublink:hover, .nav__group>summary:hover{ background:var(--card-hover); }
.nav__link.active{ outline:2px solid var(--brand); }
.nav__sublink{ margin-left:12px; }
.nav__sublink.active{ outline:2px solid var(--brand); }
.nav__group{ border:0; }
.nav__group>summary{ list-style:none; display:flex; justify-content:space-between; align-items:center; }
.nav__group[open] .pm{ display:inline }
.nav__group[open] .pp{ display:none }
.nav__group .pm{ display:none }
.nav__group .pp{ display:inline }

/* ====== MAIN ====== */
.main{ margin-left:300px; transition:margin-left .3s ease; }
.sidebar.collapsed ~ .main{ margin-left:44px; }

.hero{
  position:relative; height:48vh; min-height:340px; border-bottom:1px solid var(--border);
}
.hero__video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:contrast(105%) saturate(110%) brightness(85%);
}
.hero__overlay{
  position:relative; z-index:1; height:100%; display:grid; place-content:center; text-align:center;
  background:linear-gradient(180deg,rgba(0,0,0,.45),rgba(0,0,0,.35));
}
.hero__title{ font-size:clamp(28px,5vw,54px); margin:0; }
.hero__subtitle{ margin:8px 0 0; color:var(--muted) }

/* ====== ROWS & CARDS ====== */
.row{ padding:28px 22px }
.row__title{ margin:0 0 14px; font-size:1.1rem; color:var(--brand); letter-spacing:.2px; }

.cards{
  display:flex; gap:16px; overflow-x:auto; padding-bottom:6px;
  scroll-snap-type:x proximity;
}
.card{
  scroll-snap-align:start;
  min-width:220px; max-width:220px;
  background:var(--card); border:1px solid var(--border); border-radius:12px; overflow:hidden;
  cursor:pointer; transition:transform .2s ease, box-shadow .2s ease;
}
.card:hover{ transform:translateY(-2px); box-shadow:0 6px 22px rgba(0,0,0,.35); }
.card__caption{ margin:0; padding:10px 10px 12px; color:var(--text); font-size:.92rem; }

/* YouTube preview box */
.preview{ position:relative; width:100%; height:140px; background:#000; }
.preview img, .preview iframe{ width:100%; height:100%; object-fit:cover; display:block; border:0; }
.preview .play{ position:absolute; inset:auto auto 8px 8px; font-size:28px; text-shadow:0 2px 8px rgba(0,0,0,.7); }

/* Drive videos */
.drive-video video{ width:100%; height:140px; object-fit:cover; display:block; background:#000; }

/* Drive collage */
.collage{ position:relative; width:100%; height:140px; display:grid; place-items:center; background:#000; overflow:hidden; }
.collage img{ width:100%; height:100%; object-fit:cover; display:block; }
.collage.grid{ grid-template-columns:repeat(2,1fr); gap:2px; }
.collage.grid img{ width:100%; height:100%; object-fit:cover; }

/* Small screens */
@media (max-width: 860px){
  .sidebar{ width:260px }
  .sidebar.collapsed{ transform:translateX(-220px) }
  .main{ margin-left:260px }
  .sidebar.collapsed ~ .main{ margin-left:44px }
  .card{ min-width:180px; max-width:180px }
}
.profile{ position:relative; overflow:hidden }
.profile img{ width:100%; height:140px; object-fit:cover; display:block }
.profile__caption{
  position:absolute; inset:auto 0 0 0; padding:10px; background:linear-gradient(180deg,transparent,rgba(0,0,0,.75));
  color:#fff; transform:translateY(100%); transition:transform .25s ease;
}
.profile:hover .profile__caption{ transform:translateY(0%) }


/* ===========================
   Netflix-Style Hero Banner (Responsive + Gradient Overlay)
   =========================== */
   .hero-banner {
    position: relative;
    width: 100%;
    height: 420px;            /* default desktop height */
    overflow: hidden;
    background: black;        /* fallback background */
  }
  
  .hero-banner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /*cover;  maintains aspect ratio, crops evenly */
  }
  
  /* Gradient Overlay */
  .hero-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7) 20%,   /* darker near bottom */
      rgba(0, 0, 0, 0.3) 60%,   /* medium fade */
      rgba(0, 0, 0, 0) 100%     /* fully transparent at top */
    );
    z-index: 1;
  }
  
  .banner-text {
    position: absolute;
    bottom: 30px;
    left: 50px;
    color: #fff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    max-width: 80%;
    z-index: 2; /* keeps text above overlay */
  }
  
  .banner-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
  }
  
  .banner-text p {
    font-size: 1.2rem;
    margin-top: 8px;
    color: #ccc;
  }
  
  /* Tablet */
  @media (max-width: 1024px) {
    .hero-banner {
      height: 320px;
    }
    .banner-text h1 {
      font-size: 3rem;
    }
    .banner-text p {
      font-size: 2rem;
    }
  }
  
  /* Mobile */
  @media (max-width: 600px) {
    .hero-banner {
      height: 220px;
    }
    .banner-text {
      bottom: 15px;
      left: 20px;
    }
    .banner-text h1 {
      font-size: 1.5rem;
    }
    .banner-text p {
      font-size: 0.9rem;
    }
  }
  
  
  /* Tablet */
  @media (max-width: 1024px) {
    .hero-banner {
      height: 320px; /* smaller strip */
    }
    .banner-text h1 {
      font-size: 2rem;
    }
    .banner-text p {
      font-size: 1rem;
    }
  }
  
  /* Mobile */
  @media (max-width: 600px) {
    .hero-banner {
      height: 220px; /* compact Netflix-style strip */
    }
    .banner-text {
      bottom: 15px;
      left: 20px;
    }
    .banner-text h1 {
      font-size: 1.5rem;
    }
    .banner-text p {
      font-size: 0.9rem;
    }
  }
  /* Make poster and image previews fit like Netflix cards */
.card img, .card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Hover zoom effect for local images */
.hover-zoom {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}
.card:hover {
  transform: scale(1.05);
  z-index: 5;
}

/* Row layout */
.card-row {
  display: flex;
  gap: 15px;              /* space between cards */
  overflow-x: auto;       /* allows horizontal scroll if needed */
  padding: 20px 0;
}

.card-row::-webkit-scrollbar {
  display: none;          /* hide scrollbar like Netflix */
}

/* Row layout with horizontal scrolling */
.card-row {
  display: flex;
  gap: 20px;                 /* space between cards */
  overflow-x: auto;          /* enables side scrolling */
  overflow-y: hidden;
  padding: 20px 0;
  scroll-behavior: smooth;   /* smooth scroll effect */
  -webkit-overflow-scrolling: touch; /* mobile friendly */
}

/* Hide scrollbar but allow scrolling */
.card-row::-webkit-scrollbar {
  display: none;
}

/* Cards */
.card {
  flex: 0 0 260px;          /* fixed width for cards */
  height: 320px;            /* fixed height */
  background: #111;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.08);   /* Netflix hover zoom */
  z-index: 10;
}
/*
.card img,
.card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
*/
/* Make iframe/video fill entire card */
.card iframe,
.card video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fill nicely */
  border: none;        /* remove iframe border */
}
.row-container {
  position: relative;
  overflow: hidden; 
  width: 100%; /* Add this line */  
}
/* New styles for team cards */
.team-card {
  /* Set larger dimensions */
  width: 3px;
  height: 400px;
  /* Ensure a positioning context for the overlay */
  position: relative; 
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--card);
}

/* New styles for the scrollable overlay */
.team-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
  color: white;
  padding: 20px;
  /* Make the content scrollable */
  overflow-y: auto;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease-in-out;
}

/* Show the overlay on hover */
.team-card:hover .team-card-overlay {
  opacity: 1;
}

/* Style for the content inside the overlay */
.team-card-overlay h3 {
  margin-top: 0;
}
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 20;
  transition: opacity 0.3s;
}

.scroll-btn:hover {
  background: rgba(0,0,0,0.9);
}

.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}
.row-container .scroll-btn {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.row-container:hover .scroll-btn {
  opacity: 1;
  pointer-events: auto;
}
/* Ensure YouTube preview and iframe fill the card */
.card.yt .preview,
.card.yt iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  object-fit: cover; /* makes it behave like background-fill */
  border-radius: 6px;
}
/* ===========================
   Netflix-Style Card Rows
   =========================== */

/* Each row container wraps the cards + arrows */
.row-container {
  position: relative;
  margin: 20px 0;
}

/* Horizontal scrolling row */
.card-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; /* mobile momentum scroll */
}

/* Hide scrollbars */
.card-row::-webkit-scrollbar {
  display: none;
}

/* Cards */
.card {
  flex: 0 0 220px;   /* fixed width per card */
  height: 320px;
  background: #111;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}


*/

.card img,
.card video,
.card iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute; /* Positions the video relative to the parent .card */
  top: 50%; /* Moves the video down by half of the container's height */
  left: 50%; /* Moves the video right by half of the container's width */
  transform: translate(-50%, -50%); /* Centers the video perfectly */
  display: block;
  border: none;
}
/* Hover zoom effect */
.card:hover {
  transform: scale(1.08);
  z-index: 10;
}

/* ===========================
   Scroll Buttons (Arrows)
   =========================== */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 5px 12px;
  cursor: pointer;
  z-index: 20;
  opacity: 0;              /* hidden by default */
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: 4px;
}

/* Show arrows when hovering the row */
.row-container:hover .scroll-btn {
  opacity: 1;
  pointer-events: auto;
}

/* Left/right arrow placement */
.scroll-btn.left {
  left: 0;
}

.scroll-btn.right {
  right: 0;
}

.scroll-btn:hover {
  background: rgba(0,0,0,0.9);
}
.card .preview {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.card .preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .preview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Prevent YouTube iframe previews from blocking card clicks */
.card.yt .preview iframe {
  pointer-events: none;
}
/* PDF card styling like icon view */
.card.pdf-card .preview {
  position: relative;
  background: #222;
}
.card.pdf-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card.pdf-card .pdf-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 24px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 4px;
}

/* Local image cards */
.card.local-image .preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card.yt iframe {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card.yt:hover iframe {
  opacity: 1;
}
