*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

:root {
  --blue: #2448FC;
  --blue-dark: #04006E;
  --blue-darker: #02003D;
  --font: 'DM Sans', sans-serif;
}

body { font-family: var(--font); background:#fff; overflow-x:hidden; }

/* ── HERO ── */
.hero {
  position:relative; width:100%; height:950px; overflow:hidden;
  background:#2a1200;
  cursor: pointer; /* Hero is now clickable to open player */
}
.hero-img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center top;
}
.hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.95) 100%);
}
.hero-ui {
  position:absolute; inset:0;
  display:flex; flex-direction:column; justify-content:space-between;
  padding:20px 22px 22px;
}
.hero-top { 
  position: fixed; 
  top: 35%; 
  left: 0; 
  width: 100%; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 0 40px;
  z-index: 9999; 
  pointer-events: none; 
}
.hero-top > * { pointer-events: auto; }

.fixed-projects-link {
  position: fixed;
  top: 40px;
  left: 40px;
  z-index: 9999;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.4s ease;
  pointer-events: auto;
}

.fixed-projects-link:hover {
  color: var(--blue);
}

.fixed-projects-link.on-contact-section {
  color: var(--blue);
}

.fixed-contact-link {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 9999;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.4s ease;
  pointer-events: auto;
}

.fixed-contact-link:hover {
  color: var(--blue);
}

.fixed-contact-link.on-contact-section {
  color: var(--blue);
}

.hero-tagline-container { 
  display: flex; 
  align-items: center; 
  flex-grow: 1;
  margin-top: 5px;
}
.hero-tagline {
  font-size:13px; font-weight:400; color:#fff;
  letter-spacing:0.45em; line-height:1.4; text-transform:uppercase;
  opacity: 1;
  flex-shrink: 0;
  transition: color 0.4s ease; /* Smooth transition */
}

/* Color change when scrolling into white background */
.hero-top.scrolled .hero-tagline {
  color: var(--blue);
}

.hero-top.scrolled .hero-top-line {
  background: var(--blue);
}

.hero-top.on-blue-bar .hero-top-line {
  background: #fff;
}

.hero-top-line {
  height: 0.8px;
  flex-grow: 1;
  background: rgba(0, 24, 245, 0.7);
  margin: 0 40px;
}

.hero-logo-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.logo-circle-new {
  width:40px; height:40px; border-radius:50%;
  background: var(--blue);
  display:flex; align-items:center; justify-content:center;
}
.logo-star-svg { width:24px; height:24px; }
.logo-text-new {
  text-align: center;
  color: #fff;
  line-height: 0.85;
  font-family: var(--font);
  font-weight: 800;
}
.logo-text-top, .logo-text-bottom {
  font-size: 14px;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.hero-bottom { padding-bottom:40px; padding-left: 20px; }
.hero-shein-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/portfolio-man.jpg');
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px;
  width: 150px;
  height: 100px;
  position: relative;
}
.hero-shein-blue-bar {
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 2.5px;
  background: var(--blue);
}
.hero-client-label { font-size:5px; color:rgba(255,255,255,0.7); text-transform:uppercase; letter-spacing:0.2em; font-weight:700; margin-bottom: 4px; }
.hero-brand { font-size:24px; font-weight:800; color:#fff; letter-spacing:0.02em; text-transform:uppercase; line-height:1; font-family: var(--font); }
.hero-brand-sub { font-size:4.5px; color:rgba(255,255,255,0.6); text-transform:uppercase; font-weight:500; letter-spacing:0.1em; margin-top: 2px; }
.hero-cursor-bottom { position: absolute; bottom: 20px; left: 22px; }

/* ── BLUE BAR ── */
.top-thin-blue-bar { width:100%; height:3px; background:var(--blue); }
.blue-bar { width:100%; height:320px; background:var(--blue); }

/* ── PORTFOLIO ROW 1 ── */
.portfolio-row-1 { display:grid; grid-template-columns:1fr 1fr 1fr; width:100%; height:950px; }
.p-col { position:relative; overflow:hidden; height:950px; cursor: pointer; }

.p-col > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* Generic portfolio hover classes */
.p-overlay-bg { 
  position:absolute; inset:0; 
  background: radial-gradient(circle at center, rgba(0, 24, 245, 0.6) 0%, rgba(4, 0, 110, 0.85) 100%); 
  z-index: 1; 
  opacity: 0; 
  transition: opacity 0.4s ease;
}
.p-logo-text {
  position:absolute; top:10%; left:52%; transform:translate(-50%, -100%);
  font-size:26px; font-weight:300; color:#fff; letter-spacing:0.5em;
  text-transform:uppercase; font-style:italic; white-space:nowrap; z-index:2;
  opacity: 0; transition: all 0.4s ease;
}
.p-brand-logo {
  height: 40px;
  width: auto;
  max-width: 80%;
  object-fit: contain;
}
.p-brand-logo[alt="BlueFit"] {
  height: 55px;
}
.p-caption {
  position:absolute; top:80%; left:52%; transform:translate(-50%, 40px);
  font-size:12px; color:rgba(255,255,255,0.9); letter-spacing:0.3em;
  text-transform:uppercase; white-space:nowrap; font-weight:300; z-index:2;
  opacity: 0; transition: all 0.4s ease;
}
.showcase-item .p-caption {
  top: 75%;
}
.p-cursor-icon { 
  position:absolute; bottom:52px; left:50%; transform:translateX(-50%); z-index:2; 
  opacity: 0; transition: opacity 0.4s ease;
}

/* Hover triggers for all columns */
.p-col:hover .p-overlay-bg,
.p-col:hover .p-logo-text,
.p-col:hover .p-caption,
.p-col:hover .p-cursor-icon,
.showcase-item:hover .p-overlay-bg,
.showcase-item:hover .p-logo-text,
.showcase-item:hover .p-caption,
.showcase-item:hover .p-cursor-icon {
  opacity: 1;
}



/* ── TEAM SECTION ── */
.team-section { 
  text-align: center; 
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: transparent;
}
.team-full-img-container {
  width: 100%;
}
.team-full-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── SHOWCASE ── */
.showcase-grid { display:grid; grid-template-columns:1fr 1fr; width:100%; height:auto; }
.showcase-item { position:relative; overflow:hidden; height:550px; cursor: pointer; }
.showcase-item img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }

.s-training { background:#04082a; }
.s-training-bg { position:absolute; inset:0; background:radial-gradient(ellipse at 50% 60%, #101a50 0%, #060c28 60%, #020818 100%); }
.showcase-caption {
  position:absolute; bottom:44px; left:22px;
  font-size:7.5px; letter-spacing:0.18em; color:rgba(255,255,255,0.9);
  text-transform:uppercase; font-weight:500; z-index:2;
}
.showcase-cursor { position:absolute; bottom:18px; left:22px; z-index:2; }

.s-pool { background:#1a8bb0; }
.s-pool-bg { position:absolute; inset:0; background:linear-gradient(to bottom, #7dc8e0 0%, #40a8cc 30%, #1a80a0 65%, #0d5a78 100%); }

/* ── CONTACT SECTION ── */
.contact-section {
  background: #fff;
  padding: 140px 20px;
  text-align: center;
}
.contact-container {
  max-width: 850px;
  margin: 0 auto;
}
.contact-title {
  font-size: 32px;
  color: var(--blue);
  letter-spacing: 0.25em;
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 80px;
  text-transform: uppercase;
}
.contact-title strong {
  font-weight: 800;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 24px 30px;
  border: 1.5px solid rgba(0, 24, 245, 0.25);
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--blue);
  outline: none;
  transition: all 0.3s ease;
}
.form-group textarea {
  resize: vertical;
  min-height: 150px;
}
.form-group input::placeholder, .form-group textarea::placeholder {
  color: rgba(0, 24, 245, 0.4);
  text-transform: uppercase;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--blue);
  background: rgba(0, 24, 245, 0.02);
}
.submit-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 22px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4em;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s ease;
}
.submit-btn:hover {
  background: var(--blue-dark);
  letter-spacing: 0.5em;
}

/* ── FOOTER ── */
.footer-main {
  background: #0038ff; 
  display: flex; align-items: center; justify-content: flex-end;
  height: 400px; position: relative; overflow: hidden;
}

.footer-giant-logo {
  position: absolute;
  top: 95%;
  left: -43vw;
  transform: translateY(-30%);
  width: 90vw; 
  min-width: 800px;
  height: auto;
  filter: brightness(0) invert(1); 
  pointer-events: none;
  opacity: 1;
}

.footer-content-row {
  display: flex; align-items: center; justify-content: flex-end; gap: 70px;
  padding-right: 10vw; z-index: 2; position: relative;
}
.f-text { font-size: 11px; color: #fff; letter-spacing: 0.3em; text-align: center; line-height: 1.8; font-weight: 600; }
.f-action { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.3s ease; text-decoration: none; }
.f-action:hover { transform: scale(1.05); }

/* ── PROJETOS PAGE ── */
.projects-page { 
  display: grid; 
  grid-template-rows: 1fr auto; 
  height: 100vh; 
  width: 100vw;
  background: var(--blue); 
  overflow: hidden;
}
.projects-content { 
  display: grid; 
  grid-template-columns: 65% 35%; 
  height: 100%;
  overflow: hidden;
}
.projects-panel { 
  display: flex; align-items: center; justify-content: flex-start; 
  background: var(--blue); color: #fff; overflow: hidden; 
  position: relative;
}
.projects-panel::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 40%;
  transform: translate(-50%, -50%) scale(2.2);
  width: 567px;
  height: 402px;
  background: rgba(255, 255, 255, 0.02);
  clip-path: path('M528.53,207.9c-4.12.55-9.97,1.42-13,1.94-.12.02-.26.04-.41.07-.21.03-.46.07-.74.11-.16.03-.33.06-.51.08-.18.03-.36.06-.56.09-.12.02-.25.04-.39.06-.26.03-.54.07-.83.12-.03,0-.06.01-.1.01-.21.03-.44.07-.67.1-.27.04-.55.08-.85.12-.27.04-.55.08-.83.12-.71.1-1.48.21-2.29.33-.81.11-1.66.23-2.55.35-.44.06-.89.12-1.36.19-1.39.19-2.87.39-4.4.6-1.23.16-2.49.33-3.79.51-.86.11-1.74.23-2.63.35-2.22.29-4.5.59-6.81.9-.92.12-1.85.24-2.78.36-14.85,1.93-33.3,4.4-41,5.49-12.32,1.73-49.83,6.85-74.5,10.16-4.67.63-9.07,1.43-9.76,1.79-.87.44.92,3.82,5.89,11.09,3.93,5.75,13.25,19.46,20.71,30.46,7.46,11,20.53,30.12,29.03,42.5,2.09,3.05,4.05,5.9,5.89,8.57.64.94,1.27,1.85,1.88,2.74,1.84,2.67,3.54,5.15,5.11,7.44.6.87,1.18,1.72,1.74,2.54,1.69,2.47,3.22,4.7,4.61,6.73.46.67.9,1.32,1.33,1.95,3.22,4.72,5.56,8.17,7.24,10.68.31.47.6.9.88,1.31.14.22.28.43.41.64,2.35,3.56,2.77,4.4,2.53,4.4-.01,0-.03-.01-.05-.02-.05-.02-.14-.07-.26-.14-.13-.07-.29-.17-.49-.29-.17-.11-.35-.22-.56-.35-.94-.6-2.34-1.51-4.09-2.65-.44-.29-.9-.59-1.38-.91-.07-.05-.14-.09-.21-.14-.25-.16-.5-.33-.76-.5-.68-.45-1.4-.93-2.15-1.42-.28-.19-.56-.38-.85-.56-9.46-6.29-23.4-15.67-34.62-23.33-.64-.43-1.27-.86-1.89-1.29-.33-.22-.67-.45-.99-.68-.66-.45-1.3-.89-1.93-1.32-1.58-1.08-3.06-2.1-4.43-3.05-7.32-5.07-20.44-14.02-58.58-39.95-9.49-6.45-17.52-11.46-17.86-11.12-.34.33-1.23,3.45-1.99,6.91-.76,3.47-3.59,15.98-6.29,27.81-2.7,11.83-8.11,35.67-12.03,53-8.52,37.74-9.47,41.26-10.36,38.5-.36-1.1-2.72-11.22-5.24-22.5-2.52-11.28-7.04-31.3-10.04-44.5s-6.32-27.83-7.38-32.5c-5.91-26.08-6.22-27.15-7.76-26.56-1.51.58-79.69,53.6-106.8,72.43-1.3.9-2.55,1.77-3.74,2.59-1.13.78-2.22,1.53-3.25,2.24-2.97,2.03-5.52,3.76-7.63,5.16-.3.2-.59.39-.88.58-.21.15-.42.28-.62.41-.21.14-.41.27-.6.4-.06.03-.11.07-.17.11-.05.03-.11.06-.16.1-.11.07-.21.14-.32.21s-.23.15-.34.22c-.07.04-.13.08-.19.12-.33.21-.64.41-.92.58-.14.08-.27.17-.4.25-.22.14-.43.27-.63.39-1.31.81-2.11,1.23-2.39,1.26-.02.01-.04.01-.06.01s-.03,0-.04-.01v-.02s.02-.07.06-.15c.24-.49,1.19-2.02,2.68-4.33.18-.28.37-.57.56-.87.15-.23.31-.46.46-.71.21-.31.43-.64.65-.98,5.34-8.17,14.78-22.25,24.07-35.89.27-.39.53-.78.8-1.17,2.65-3.89,5.28-7.73,7.79-11.37,3.22-4.67,11.04-16.15,17.37-25.5,6.34-9.35,16.43-24.19,22.43-32.98,7.27-10.65,10.5-16.19,9.69-16.6-.67-.35-7.07-1.4-14.22-2.34-23.09-3.03-56.49-7.59-77.5-10.59-11.27-1.61-29.05-4.06-39.5-5.44s-27.1-3.64-37-5.01c-9.9-1.38-23.5-3.24-30.23-4.15-6.72-.91-12.03-1.97-11.79-2.36.24-.38,4.16-1.21,8.73-1.85.45-.06.94-.13,1.46-.2.2-.03.41-.06.62-.09.53-.07,1.09-.14,1.68-.23.41-.05.84-.11,1.29-.17.88-.13,1.83-.26,2.84-.39.5-.07,1.01-.14,1.54-.21.8-.11,1.62-.22,2.47-.34.34-.04.69-.09,1.04-.14.82-.11,1.65-.22,2.51-.34,1.23-.16,2.51-.34,3.83-.52.77-.1,1.56-.21,2.36-.32.91-.12,1.83-.24,2.76-.37.1-.01.19-.02.28-.04,2.07-.28,4.22-.57,6.42-.86.34-.05.69-.09,1.04-.14.76-.1,1.53-.21,2.31-.31,1.64-.22,3.31-.45,5.01-.68,1.51-.2,3.04-.4,4.59-.61,4.31-.58,8.74-1.17,13.21-1.77.16-.02.33-.05.49-.06,2.17-.3,4.36-.59,6.54-.88,5.32-.71,10.85-1.47,15.43-2.11.3-.05.6-.09.9-.13.17-.03.34-.05.5-.07.2-.03.39-.06.58-.09.09-.01.17-.02.25-.04.51-.06,1-.13,1.47-.2.08-.01.15-.02.23-.03.38-.05.75-.11,1.1-.16,2.02-.29,3.6-.53,4.54-.68,3.3-.54,11.17-1.66,17.5-2.49s29.23-3.98,50.89-7.01c21.67-3.02,40.43-5.5,41.69-5.5s2.52-.36,2.8-.8c.27-.44-4.73-8.43-11.1-17.75-6.37-9.32-16.34-23.93-22.14-32.45-5.8-8.52-13.81-20.23-17.79-26-3.98-5.77-11.51-16.8-16.73-24.5-1.96-2.89-4.13-6.08-6.24-9.19-.88-1.29-1.74-2.56-2.58-3.79-.31-.45-.61-.9-.91-1.33-.03-.06-.07-.12-.11-.17-1.12-1.64-2.16-3.17-3.07-4.5-.1-.16-.21-.31-.31-.45-.02-.04-.05-.09-.08-.13-.23-.33-.44-.64-.65-.94-.37-.55-.72-1.06-1.02-1.5-3.02-4.4-5.31-8.17-5.09-8.39.37-.37,8.07,4.69,26.34,17.3,4.61,3.19,13.84,9.51,20.5,14.04,6.65,4.54,15.61,10.68,19.89,13.65,43.99,30.48,63.51,43.43,64.29,42.65.53-.52,3.39-13.03,21.92-95.75,5.88-26.28,7.29-32.12,7.84-32.68.7-.69,1.05.72,7.23,28.68,3.1,14.02,6.47,29.1,7.48,33.5s4.73,20.95,8.26,36.79c3.54,15.83,6.69,29.04,7.01,29.36.71.71,4.95-1.87,19.18-11.68,6.05-4.17,19.55-13.38,30-20.47,10.45-7.1,23.05-15.71,28-19.14,2.91-2.02,6.04-4.17,9.28-6.39.34-.23.68-.47,1.03-.7,3.69-2.53,7.51-5.13,11.29-7.68.74-.5,1.49-1.01,2.23-1.51.63-.42,1.26-.85,1.89-1.27,1.45-.99,2.89-1.95,4.29-2.89.7-.47,1.4-.94,2.09-1.4,5.01-3.37,9.6-6.41,13.26-8.82.26-.17.51-.33.76-.5,1.23-.81,2.35-1.53,3.33-2.17.39-.25.76-.49,1.11-.71,0,0,.01,0,.01-.01.35-.22.67-.42.96-.61.05-.03.1-.06.15-.1.15-.08.29-.17.42-.26.53-.33.96-.59,1.28-.78.14-.08.26-.15.36-.2.11-.06.2-.11.25-.12.04-.02.06-.03.07-.02.08.08-.43,1-1.34,2.46-.07.11-.13.22-.2.33-.04.06-.08.12-.11.18-.09.14-.18.28-.27.43-.03.03-.05.06-.06.09-.1.15-.2.31-.3.47-1.21,1.88-2.81,4.29-4.58,6.87-3.96,5.78-12.37,18.04-18.7,27.25-10.21,14.87-15.1,22.01-31.02,45.2-23.04,33.57-31.86,46.89-31.48,47.5.25.41,3.28,1.05,6.73,1.42,3.45.38,18.65,2.43,33.77,4.56,15.12,2.12,38.08,5.29,51,7.04,3.63.49,7.42,1,11.1,1.5.82.11,1.63.22,2.44.33,2.43.32,4.78.64,6.99.94.72.1,1.43.2,2.11.29.38.05.76.1,1.13.15.64.09,1.27.17,1.87.26.31.04.62.08.93.12.11.02.21.03.32.04.19.03.38.06.57.08,2.33.32,4.24.58,5.54.76,3.75.51,15.84,2.17,30.1,4.12.32.04.64.08.96.12,1.01.14,2.04.28,3.07.42,1.19.17,2.39.33,3.6.5,1.61.22,3.24.44,4.87.66.82.11,1.63.23,2.45.34.82.11,1.63.22,2.45.33,20.9,2.86,38.34,5.53,38.77,5.93.66.63-8.43,2.06-39.27,6.19Z');
  z-index: 0;
}
.projects-panel-inner { 
  width: min(520px, calc(100% - 120px)); 
  padding: 60px 70px 60px 10%; 
  display: flex; flex-direction: column; justify-content: center; 
  height: 100%; 
  position: relative; z-index: 1;
}
.projects-title { 
  font-size: 48px; font-weight: 500; letter-spacing: 0.5em; 
  text-transform: uppercase; margin: 0; line-height: 1.1; 
}
.projects-list { list-style: none; padding: 0; margin: 40px 0 0 0; display: grid; gap: 6px; }
.projects-list-item a { 
  text-decoration: none; 
  color: #fff; 
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
}
.projects-list-item a:hover { 
  opacity: 1; 
  transform: translateX(10px);
}
.projects-list-item { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: #fff; font-weight: lighter; line-height: 1.4; }
.projects-list-item.active a { opacity: 1; font-weight: 700; }

.projects-visual { 
  position: relative; 
  overflow-y: scroll; 
  overflow-x: hidden;
  display: flex; flex-direction: column; 
  height: 100%; 
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  background: #000;
  -webkit-overflow-scrolling: touch;
  padding: 20vh 0; /* Padding to allow centering and showing neighbors */
}
.projects-visual::-webkit-scrollbar { width: 0px; } 

.project-img-wrapper { 
  position: relative; 
  width: 100%; 
  height: 80vh; 
  scroll-snap-align: center;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--blue-dark); /* Blue placeholder instead of black */
  cursor: pointer; /* Indicates it's clickable */
  margin: 0;
}

.project-blue-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 24, 245, 0.7) 0%, rgba(4, 0, 110, 0.9) 100%);
  z-index: 1;
  opacity: 1; /* Filter is ON by default */
  transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

.project-img-wrapper.is-active .project-blue-overlay {
  opacity: 0; /* Filter is OFF when active */
}

.project-img-wrapper img,
.project-img-wrapper video { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block; 
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.project-img-wrapper.is-active img,
.project-img-wrapper.is-active video {
  transform: scale(1.05);
}


@media (max-width: 1100px) {
  .projects-content { grid-template-columns: 1fr; }
  .projects-panel-inner { padding: 70px 60px 60px 60px; }
  .projects-title { font-size: 6rem; letter-spacing: 0.72em; }
  .projects-list { margin-top: 80px; }
  .projects-visual { height: auto; }
  .projects-visual img { height: 55vh; }
  .projects-footer { grid-template-columns: 1fr 1fr; gap: 16px; }
}

@media (max-width: 720px) {
  .projects-panel-inner { padding: 50px 24px; }
  .projects-title { font-size: 4.5rem; letter-spacing: 0.45em; }
  .projects-list-item { font-size: 0.78rem; }
  .projects-footer { grid-template-columns: 1fr; gap: 12px; font-size: 0.65rem; }
  .projects-visual img { height: 45vh; }
}
.f-action-star { width: 100%; height: 100%; position: absolute; inset: 0; }
.f-action-text { position: relative; z-index: 2; color: var(--blue); font-size: 11px; font-weight: 500; letter-spacing: 0.3em; margin-top: 4px; }
.f-copyright { font-size: 11px; color: #fff; letter-spacing: 0.3em; font-weight: 400; }

footer { margin: 0; }
.footer-bottom {
  background: #fff;
  padding: 18px 6vw; 
  display: flex; justify-content: space-between; align-items: center;
}

.footer-bottom .fb-item {
  font-size: 12px;
  letter-spacing: 0.2em;
}

/* Projects page: footer is internal, use smaller padding and font size */
.projects-page footer .footer-bottom {
  padding: 18px 6vw;
}
.projects-page footer .fb-item {
  font-size: 12px;
  letter-spacing: 0.2em;
}
.fb-item {
  font-size: 13px; color: #7d9cff; letter-spacing: 0.4em;
  text-transform: uppercase; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}

/* Cursor SVG shared */
.cursor-icon { display:inline-block; width:16px; height:20px; }
.hero-cursor-bottom { position: absolute; bottom: 20px; left: 22px; }

/* ── PROJECT QUICK VIEW ── */
.project-quick-view {
  position: absolute;
  bottom: 81px;
  left: 81px;
  display: flex;
  flex-direction: row;
  align-items: center; /* Vertically centered with the button */
  gap: 30px; /* Space between star and text */
  z-index: 100;
}

.star-trigger-btn {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  z-index: 5;
}

/* Grid Items Cursors */
.p-col, .showcase-item {
  cursor: pointer;
}

.star-trigger-btn:hover {
  transform: scale(1.2);
}

.blue-star-icon {
  width: 100%;
  height: auto;
}

.quick-view-connector {
  display: none; /* Removed as per request */
}

.project-quick-view.is-active .quick-view-connector {
  opacity: 1;
}

.project-card {
  position: relative; 
  opacity: 0;
  transform: translateX(10px); 
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  pointer-events: none;
  background: transparent; /* No background */
  border: none; /* No border */
}

.project-quick-view.is-active .project-card {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Note: card-pointer removed as per user request to use the corner */

.project-card-thumb {
  display: none; /* Hidden as per request */
}

.project-card-info {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px; /* Smaller gap */
}

.project-card-line {
  width: 2px;
  height: 40px; /* Shorter line */
  background: var(--blue);
}

.project-card-text {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: var(--font);
}

.p-year { font-size: 11px; opacity: 0.7; letter-spacing: 0.3em; margin-bottom: 2px; }
.p-title-logo { height: 35px; width: auto; margin: 5px 0; display: block; }
.p-brand { font-size: 10px; opacity: 0.6; letter-spacing: 0.4em; margin-top: 2px; }

/* ── SHARED COMPONENTS ── */
.back-btn {
  display: inline-block;
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-decoration: none;
  opacity: 0.5;
  margin-bottom: 40px;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── RESPONSIVE DESIGN (TABLET & MOBILE) ── */

@media (max-width: 1024px) {
  /* Hero Section */
  .hero { height: 80vh; min-height: 600px; }
  .hero-top { padding: 0 20px; top: 30%; }
  .hero-logo-group img.official-logo-header { height: 80px !important; }
  
  .fixed-projects-link { top: 30px; left: 30px; font-size: 12px; }
  .fixed-contact-link { top: 30px; right: 30px; font-size: 12px; }
  
  /* Portfolio Grid */
  .portfolio-row-1 { grid-template-columns: 1fr 1fr; height: auto; }
  .p-col { height: 50vh; min-height: 450px; }
  .portfolio-row-1 .p-col:last-child {
    grid-column: span 2;
  }
  
  /* Showcase */
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase-item { height: 45vh; min-height: 400px; }
  
  /* Footer */
  .footer-content-row { gap: 40px; padding-right: 5vw; }
  .footer-giant-logo { width: 120vw; min-width: 600px; left: -60vw; }
}

@media (max-width: 768px) {
  /* Hero Section */
  .hero { height: 100vh; min-height: 600px; }
  .hero-top { padding: 0 20px; top: 35%; }
  .hero-logo-group img.official-logo-header { height: 60px !important; }
  
  .fixed-projects-link { top: 25px; left: 20px; font-size: 11px; letter-spacing: 0.3em; }
  .fixed-contact-link { top: 25px; right: 20px; font-size: 11px; letter-spacing: 0.3em; }
  
  .project-quick-view { bottom: 30px; left: 20px; gap: 15px; }
  .star-trigger-btn { width: 40px; height: 40px; }
  .project-card-line { height: 30px; }
  .p-title-logo { height: 25px; }
  
  /* Blue Bar */
  .blue-bar { height: 150px; }
  
  /* Portfolio Grid */
  .portfolio-row-1 { grid-template-columns: 1fr; height: auto; }
  .p-col { height: 60vh; min-height: 400px; }
  .portfolio-row-1 .p-col:last-child { grid-column: auto; }
  .p-logo-text { font-size: 18px; letter-spacing: 0.3em; }
  .p-brand-logo { height: 30px; }
  .p-brand-logo[alt="BlueFit"] { height: 45px; }
  .p-caption { font-size: 10px; }
  .p-cursor-icon { bottom: 20px; }
  .p-cursor-icon img { width: 24px !important; }
  
  /* Showcase */
  .showcase-grid { grid-template-columns: 1fr; height: auto; }
  .showcase-item { height: 50vh; min-height: 400px; }
  
  /* Contact Section */
  .contact-section { padding: 80px 20px; }
  .contact-title { font-size: 20px; margin-bottom: 40px; line-height: 1.5; }
  .form-group input, .form-group textarea { padding: 18px 20px; font-size: 12px; }
  .submit-btn { padding: 18px; font-size: 12px; }
  
  /* Footer */
  .footer-main { height: auto; padding: 80px 0; justify-content: center; overflow: hidden; }
  .footer-giant-logo { width: 200vw; min-width: 400px; left: -50vw; top: 50%; transform: translateY(-50%); opacity: 0.1; }
  .footer-content-row { flex-direction: column; gap: 30px; padding-right: 0; align-items: center; }
  .f-action { width: 100px; height: 100px; }
  
  .footer-bottom { flex-direction: column; gap: 15px; padding: 30px 20px; text-align: center; }
  .projects-page footer .footer-bottom { flex-direction: column; gap: 15px; padding: 30px 20px; }
}

/* ── PROJECTS PAGE MOBILE MENU ── */
.icon-close { display: none; }
.hamburger-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 101;
}

.close-menu-btn {
  display: none;
}

.projects-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

@media (max-width: 1100px) {
  /* Panel becomes fixed overlay */
  .projects-panel {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: auto;
    background: transparent;
    z-index: 100;
    pointer-events: none; /* Let clicks pass through to video */
  }
  
  .projects-panel.is-expanded {
    background: var(--blue);
    height: 100vh;
    pointer-events: auto;
    overflow-y: auto;
  }
  
  .projects-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .close-menu-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .projects-panel-inner {
    padding: 20px 24px;
    width: 100%;
    align-items: flex-start;
    pointer-events: auto; /* Buttons inside panel should be clickable */
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%); /* Add slight shadow for visibility over light videos */
  }
  
  .projects-panel.is-expanded .projects-panel-inner {
    background: transparent; /* Remove shadow when expanded */
  }
  
  .projects-panel::before {
    display: none; /* Hide the big background SVG on mobile overlay */
  }
  
  .hamburger-menu-btn {
    display: block;
  }
  
  .projects-header-top {
    margin-bottom: 0;
  }
  
  .back-btn { margin-bottom: 0; font-size: 12px; font-weight: bold; opacity: 1; }
  
  .projects-menu-content {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .projects-menu-content.is-open {
    display: flex;
    flex-direction: column;
    opacity: 1;
    margin-top: 40px;
  }
  
  .projects-title {
    font-size: 2.5rem;
    letter-spacing: 0.3em;
  }
  
  .projects-list {
    margin-top: 20px;
    padding-bottom: 50px;
  }
  
  .projects-list-item {
    font-size: 14px;
    padding: 8px 0;
  }
  
  /* Make videos full screen on mobile */
  .projects-content {
    display: block;
  }
  
  .projects-visual {
    height: 100vh;
    padding: 0;
    width: 100vw;
  }
  
  .project-img-wrapper {
    height: 100vh;
    width: 100vw;
  }
  
  /* Hide the footer on mobile for full screen video immersion */
  .projects-page footer {
    display: none;
  }
}
