/*-----------------------------------*\
  #main.css
\*-----------------------------------*/

/**
 * copyright 2022 codewithsadee
 */





/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  --raisin-black: hsla(231, 10%, 14%, 1);
  --roman-silver: rgb(250, 250, 251);
  --eerie-black: hsla(228, 9%, 10%, 1);
  --black: hsla(0, 0%, 0%, 1);
  --white: hsla(0, 0%, 100%, 1);
  --white_a10: hsla(0, 0%, 100%, 0.1);
  --white_a5: hsla(0, 0%, 100%, 0.05);

  /**
   * typography
   */

  --ff-syne: 'Syne', sans-serif;

  --fs-1: 4.8rem;
  --fs-2: 4.5rem;
  --fs-3: 4rem;
  --fs-4: 2.4rem;
  --fs-5: 2rem;
  --fs-6: 1.8rem;
  --fs-7: 1.4rem;
  --fs-8: 1.2rem;
  
  --fw-800: 800;
  --fw-700: 700;

  /**
   * spacing
   */

  --section-padding: 100px;

  /**
   * border radius
   */

  --radius-pill: 100px;
  --radius-circle: 50%;
  --blob-radius: 52% 48% 59% 41% / 53% 40% 60% 47%;

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease;
  --cubic-in: cubic-bezier(0.51, 0.03, 0.64, 0.28);
  --cubic-out: cubic-bezier(0.05, 0.83, 0.52, 0.97);
  --cubic-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --cubic-ease-out: 700ms cubic-bezier(0.17, 0.67, 0, 1.01);

}





/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

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

li { list-style: none; }

a,
img,
span,
data,
button,
ion-icon { display: block; }

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

img { height: auto; }

button {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

ion-icon { pointer-events: none; }

html {
  font-family: var(--ff-syne);
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--eerie-black);
  color: var(--roman-silver);
  font-size: 1.6rem;
  line-height: 1.75;
  overflow: hidden;
}

body.loaded { overflow: overlay; }

body.nav-active { overflow: hidden; }

::-webkit-scrollbar { width: 5px; }

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb {
  background-color: var(--white);
  border-radius: 20px;
}





/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container { padding-inline: 12px; }

.section { padding-block: var(--section-padding); }

.h1 {
  font-size: var(--fs-3);
  font-weight: var(--fw-800);
}

.h1,
.h2,
.h4 {
  color: var(--white);
  line-height: 1;
}

.h2 { font-size: var(--fs-2); }

.h3 {
  color: var(--white);
  font-size: var(--fs-4);
  line-height: 1.5;
}

.h4 { font-size: var(--fs-5); }

.h2,
.h3,
.h4 { font-weight: var(--fw-700); }

.w-100 { width: 100%; }

.has-before {
  position: relative;
  z-index: 1;
}

.has-before::before {
  position: absolute;
  content: "";
  z-index: -1;
}

.btn {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: max-content;
  min-width: max-content;
  padding: 20px 32px;
}

.btn::before {
  width: 70px;
  height: 70px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  border: 2px solid var(--white_a5);
  border-radius: var(--radius-circle);
  transition: var(--cubic-bounce);
}

.btn:is(:hover, :focus-visible)::before { left: calc(100% - 70px); }

.section-subtitle {
  text-transform: uppercase;
  font-size: var(--fs-8);
  font-weight: var(--fw-700);
  margin-block-end: 20px;
  letter-spacing: 2px;
}

.section-title { margin-block-end: 45px; }

.text-lg {
  font-family: var(--ff-syne);
  font-size: var(--fs-1);
}

.layer-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slider {
  --slider-items: 1;
  --item-gap: 12px;

  margin-block-start: 60px;
  overflow: hidden;
}

.slider-container {
  position: relative;
  display: flex;
  gap: var(--item-gap);
  transition: transform var(--cubic-ease-out);
}

.slider-item {
  --total-gap: calc(var(--item-gap) * (var(--slider-items) - 1));
  --item-width: calc((100% / var(--slider-items)) - (var(--total-gap) / var(--slider-items)));

  min-width: var(--item-width);
  width: var(--item-width);
}

.slider-control {
  position: relative;
  max-width: max-content;
  padding-block: 8px;
  opacity: 0.5;
}

.slider-control .line {
  width: 30px;
  height: 1px;
  background-color: var(--white);
}

.slider-control .arrow {
  position: absolute;
  transform: translateY(-60%) rotate(45deg);
  width: 10px;
  height: 10px;
  border-style: solid;
  border-color: var(--white);
}

.slider-control.prev .arrow {
  left: 0;
  border-width: 0 0 1px 1px;
}

.slider-control.next .arrow {
  right: 0;
  border-width: 1px 1px 0 0;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-block-start: 40px;
}

.img-holder {
  aspect-ratio: var(--width) / var(--height);
  background-color: var(--white_a5);
  overflow: hidden;
}

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





/*-----------------------------------*\
  #PRELOADER
\*-----------------------------------*/

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--eerie-black);
  z-index: 10;
  display: grid;
  place-items: center;
  transition: var(--transition-2);
  transition-delay: 0.5s;
}

.preloader.loaded {
  opacity: 0;
  pointer-events: none;
}

.preloader .circle {
  width: 60px;
  height: 60px;
  border: 2px solid var(--raisin-black);
  border-top-color: var(--white);
  border-radius: var(--radius-circle);
  animation: rotate360 1s linear infinite;
  transition: var(--transition-2);
}

@keyframes rotate360 {
  0% { transform: rotate(0); }
  100% { transform: rotate(1turn); }
}

.preloader.loaded .circle { opacity: 0; }





/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--eerie-black);
  padding-block: 24px;
  z-index: 4;
  transition: var(--transition-1);
}

.header.active {
  background-color: var(--raisin-black);
  padding-block: 16px;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-toggle-btn {
  width: 50px;
  height: 50px;
  background-color: var(--white);
  border-radius: var(--radius-circle);
  display: grid;
  place-content: center;
  gap: 8px;
  transition: var(--transition-1);
}

.nav-toggle-btn:is(:hover, :focus-visible) { gap: 10px; }

.nav-toggle-btn.active { gap: 8px; }

.nav-toggle-btn .line {
  width: 25px;
  height: 2px;
  background-color: var(--black);
  transition: var(--transition-1);
}

.nav-toggle-btn.active .line-1 { transform: rotate(45deg) translate(4px, 4px); }

.nav-toggle-btn.active .line-2 { transform: rotate(-45deg) translate(3px, -2px); }

.navbar {
  position: absolute;
  top: 100%;
  right: -370px;
  max-width: 370px;
  width: 100%;
  background-color: var(--white);
  height: 100vh;
  text-align: center;
  padding: 56px 40px;
  visibility: hidden;
  transition: 0.25s var(--cubic-in);
  z-index: 1;
}

.navbar.active {
  transform: translateX(-370px);
  visibility: visible;
  transition-timing-function: var(--cubic-out);
}

.navbar-link {
  color: var(--raisin-black);
  font-size: var(--fs-6);
  font-weight: var(--fw-700);
  padding-block: 10px;
  transition: var(--transition-1);
}

.navbar-link:is(:hover, :focus-visible) { text-shadow: 1px 0 0 var(--eerie-black); }

.overlay {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100vh;
  display: none;
}

.overlay.active { display: block; }





/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero { padding-block-start: 130px; }

.hero-title {
  text-transform: uppercase;
  word-break: break-all;
}

.hero-subtitle {
  font-size: var(--fs-8);
  text-transform: uppercase;
  font-weight: var(--fw-700);
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1.5em;
  margin-block: 10px 30px;
}

.hero-banner {
  border-radius: var(--blob-radius);
  overflow: hidden;
  animation: blobAnim 30s linear infinite;
}

@keyframes blobAnim {

  0%,
  100% { border-radius: var(--blob-radius); }

  10% { border-radius: 33% 67% 50% 50% / 43% 39% 61% 57%; }

  20% { border-radius: 51% 49% 31% 69% / 65% 39% 61% 35%; }

  30% { border-radius: 51% 49% 56% 44% / 45% 39% 61% 55%; }

  40% { border-radius: 66% 34% 33% 67% / 48% 71% 39% 52%; }

  50% { border-radius: 46% 54% 33% 67% / 48% 30% 70% 52%; }

  60% { border-radius: 46% 54% 56% 44% / 48% 30% 70% 52%; }

  70% { border-radius: 46% 54% 56% 44% / 65% 53% 47% 35%; }

  80% { border-radius: 67% 33% 56% 44% / 37% 53% 47% 63%; }

  90% { border-radius: 46% 54% 32% 68% / 37% 53% 47% 63%; }

}

.hero .section-text { margin-block: 30px; }

.hero .btn { margin-inline: auto; }





/*-----------------------------------*\
  #SERVICE
\*-----------------------------------*/

.service-card {
  position: relative;
  background-color: var(--white);
  height: 100%;
  padding: 60px 40px 40px;
  transition: var(--transition-2);
}

.service-card .card-icon ion-icon {
  color: var(--content-color, var(--raisin-black));
  font-size: 6rem;
  --ionicon-stroke-width: 15px;
}

.service-card .card-title {
  color: var(--content-color, var(--raisin-black));
  margin-block: 20px;
}

.service-card .card-text { color: var(--content-color); }

.service-card .card-number {
  margin-inline-start: auto;
  font-weight: var(--fw-800);
  line-height: 0.6;
  max-width: max-content;
  margin-block-start: 32px;
  -webkit-text-stroke: 1px var(--content-color, var(--black));
  -webkit-text-fill-color: transparent;
  opacity: 0.3;
}

.service-card:is(:hover, :focus-within) {
  background-color: var(--raisin-black);
  --content-color: var(--white);
}





/*-----------------------------------*\
  #SKILLS
\*-----------------------------------*/

.skills .section-text { margin-block-end: 20px; }

.skills .btn { margin-block: 45px; }

.skills-list li:not(:last-child) { margin-block-end: 30px; }

.progress-wrapper {
  display: flex;
  justify-content: space-between;
  font-weight: var(--fw-700);
  margin-block-end: 5px;
}

.progress-bg {
  height: 6px;
  background-color: var(--raisin-black);
  border-radius: var(--radius-pill);
}

.progress {
  height: inherit;
  background-color: var(--white);
  border-radius: inherit;
}





/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/

.portfolio .slider { --item-gap: 16px; }

.portfolio-card {
  position: relative;
  background-color: transparent;
  transition: var(--cubic-ease-out);
}

.portfolio-card .img-cover { transition: var(--cubic-ease-out); }

.portfolio-card .card-content {
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  width: 100%;
  transform: translate(-55%, -50%);
  opacity: 0;
  transition: var(--cubic-ease-out);
  z-index: 1;
}

.portfolio-card .card-text { color: var(--white); }

.portfolio-card:is(:hover, :focus-within) .img-cover {
  opacity: 0.1;
  transform: scale(0.95);
}

.portfolio-card:is(:hover, :focus-within) .card-content {
  transform: translate(-50%, -50%);
  opacity: 1;
}





/*-----------------------------------*\
  #BLOG
\*-----------------------------------*/

.blog-list {
  display: grid;
  gap: 60px;
}

.blog-card {
  display: grid;
  gap: 40px;
}

.blog-card .card-content {
  display: flex;
  gap: 16px;
  padding-inline: 16px;
}

.blog-card .time { font-size: var(--fs-7); }

.blog-card .time .span {
  color: var(--white);
  font-weight: var(--fw-700);
  line-height: 0.9;
}

.blog-card .card-text { margin-block: 20px; }





/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer {
  background-color: var(--raisin-black);
  padding-block: 76px;
}

.footer .container {
  display: grid;
  gap: 20px;
}

.social-list {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 2px solid var(--white_a10);
  border-radius: var(--radius-circle);
  color: var(--white);
  transition: var(--transition-1);
}

.social-link:is(:hover, :focus-visible) { border-color: var(--white); }





/*-----------------------------------*\
  #MEDIA QUERIES
\*-----------------------------------*/

/**
 * responsive for large than 575px screen
 */

@media (min-width: 575px) {

  /**
   * REUSED STYLE
   */

  .container { 
    max-width: 570px;
    width: 100%;
    margin-inline: auto;
  }

  .slider { --slider-items: 2; }



  /**
   * BLOG
   */

  .blog-card .card-content {
    padding-inline: 32px;
    gap: 32px;
  }



  /**
   * FOOTER
   */

  .footer-list-title { margin-block-end: 8px; }

}





/**
 * responsive for large than 768px screen
 */

@media (min-width: 768px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-2: 6rem;
    --fs-3: 5.5rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 720px; }

  .title-wrapper {
    display: flex;
    gap: 10%;
  }

  .title-wrapper .section-title { margin-block-end: 0; }

  .title-wrapper .section-text { margin-block-start: 40px; }



  /**
   * HERO
   */

  .hero .container { position: relative; }

  .hero-banner {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 55%;
    z-index: -1;
  }

  .hero-content {
    width: 50%;
    margin-inline-start: auto;
    padding-block: 10%;
  }

  .hero-title,
  .hero-subtitle { text-shadow: 2px 2px 0 var(--eerie-black); }



  /**
   * SKILL
   */

  .skills-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 40px;
  }

  .skills .btn { margin-block-end: 0; }



  /**
   * BLOG
   */

  .blog-card .card-title { --fs-4: 2.7rem; }



  /**
   * FOOTER
   */

  .footer .container { grid-template-columns: repeat(3, 1fr); }

}





/**
 * responsive for large than 992px screen
 */

@media (min-width: 992px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-3: 7rem;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 960px; }

  .title-wrapper { gap: 15%; }

  .slider { --slider-items: 3; }



  /**
   * HERO
   */

  .hero-subtitle { --fs-8: 1.4rem; }



  /**
   * SKILL
   */

  .skills .section-title { max-width: 16ch; }

  .skills-wrapper { gap: 10%; }



  /**
   * BLOG
   */

  .blog-card {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .blog-card .card-content { padding: 32px; }

  .blog-list li:nth-child(2n) .card-banner { order: 1; }

}





/**
 * responsive for large than 1200px screen
 */

@media (min-width: 1200px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * spacing
     */

    --section-padding: 140px;

  }



  /**
   * REUSED STYLE
   */

  .container { max-width: 1140px; }



  /**
   * HEADER
   */

  .navbar {
    top: 0;
    display: grid;
    place-content: center;
  }

  .nav-toggle-btn {
    position: relative;
    z-index: 2;
  }

  .overlay { top: 0; }



  /**
   * HERO
   */

  .hero-content { width: 55%; }

  .hero-title { word-break: normal; }

  .hero .section-text { margin-block-end: 52px; }

}


.about-team {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.about-team .section-subtitle {
  color: #e74266;
  font-weight: 600;
  margin-bottom: 10px;
}

.about-team .section-title {
  font-size: 2.25rem;
  margin-bottom: 15px;
}

.about-team .section-text {
  max-width: 700px;
  color: #444;
  margin-bottom: 40px;
}

.team-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-card {
  text-align: center;
  transition: transform 0.3s ease-in-out;
}

.team-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.team-img-wrapper:hover {
  transform: scale(1.05);
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-name {
  font-size: 1.25rem;
  margin-top: 16px;
  font-weight: 600;
  color: #101330;
}

.team-role {
  font-size: 0.95rem;
  color: #777;
}


/* ===== YouTube Portfolio (unique prefix: ytp-) ===== */

.ytp-portfolio { padding-block: 64px; }

.ytp-title-wrapper { 
  display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; 
  margin-bottom: 24px;
}

.ytp-slider {
  position: relative;
}

/* horizontal slider with scroll snap */
.ytp-slider-container {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 90%;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.ytp-slider-container::-webkit-scrollbar { height: 8px; }
.ytp-slider-container::-webkit-scrollbar-thumb { background: rgba(0,0,0,.2); border-radius: 999px; }

.ytp-slider-item { scroll-snap-align: start; }

@media (min-width: 640px) { .ytp-slider-container { grid-auto-columns: calc(50% - 12px); } }
@media (min-width: 1024px){ .ytp-slider-container { grid-auto-columns: calc(33.333% - 12px); } }
@media (min-width: 1280px){ .ytp-slider-container { grid-auto-columns: calc(25% - 12px); } }

.ytp-card {
  background: var(--surface, #111);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  display:flex; flex-direction:column;
  height:100%;
}

.ytp-embed {
  position: relative;
  width: 100%;
  /* Modern browsers: */
  aspect-ratio: 16 / 9;
  background: #000;
}
/* Fallback for older browsers */
.ytp-embed::before {
  content:"";
  display:block;
  padding-top: 56.25%;
}
.ytp-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display:block;
}

.ytp-card-content { padding: 14px 16px 16px; }
.ytp-card-title { margin: 0 0 6px; }
.ytp-card-text { opacity: .8; font-size: .95rem; }

/* controls */
.ytp-slider-controls {
  position: absolute; inset: 0;
  pointer-events: none;
}
.ytp-control {
  pointer-events: auto;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: rgba(0,0,0,.55);
  display:grid; place-items:center; cursor:pointer;
  transition: background .2s ease;
}
.ytp-control:hover { background: rgba(0,0,0,.75); }
.ytp-control.prev { left: 8px; }
.ytp-control.next { right: 8px; }

/* simple arrow */
.ytp-control .line { display:none; }
.ytp-control .arrow {
  width: 10px; height: 10px; border: 2px solid #fff; border-left: 0; border-bottom: 0;
  transform: rotate(45deg);
}
.ytp-control.prev .arrow { transform: rotate(225deg); }

/* accessibility focus */
.ytp-control:focus-visible {
  outline: 2px solid #fff; outline-offset: 2px;
}


.hof-bts { padding-block: 64px; position: relative; overflow: hidden; }

.hof-bts__header {
  display: grid; gap: 16px; align-items: end; margin-bottom: 20px;
}
@media (min-width: 768px){
  .hof-bts__header { grid-template-columns: 1fr auto; }
}

/* Marquee */
.hof-bts__marquee {
  --m-speed: 28s;
  position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hof-bts__marquee-track {
  display: inline-flex; gap: 24px; padding: 8px 0; white-space: nowrap;
  animation: hof-marquee var(--m-speed) linear infinite;
  opacity: .8; font-weight: 600; letter-spacing: .5px;
}
.hof-bts__marquee-track span { text-transform: uppercase; }
@keyframes hof-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Grid */
.hof-bts__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px){
  .hof-bts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px){
  .hof-bts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Card */
.hof-bts__item { will-change: transform, opacity; }
.hof-bts__card {
  position: relative; border-radius: 16px; overflow: hidden; background: #0a0a0a;
  aspect-ratio: 7 / 5; display: block; cursor: pointer;
  transform: translateY(18px) scale(.98); opacity: 0;
  transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Ken Burns + parallax tilt */
.hof-bts__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform-origin: center; will-change: transform;
  transition: transform 7s ease, filter .4s ease;
}
.hof-bts__card:hover .hof-bts__img { transform: scale(1.08); filter: saturate(1.05) contrast(1.05); }

/* Cinematic overlay */
.hof-bts__card::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%),
    radial-gradient(80% 60% at 50% 10%, rgba(255,255,255,.04), transparent 60%);
  pointer-events: none;
}

/* Caption */
.hof-bts__caption {
  position: absolute; left: 14px; right: 14px; bottom: 14px; color: #fff;
  transform: translateY(8px); opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}
.hof-bts__tag {
  display: inline-block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; backdrop-filter: blur(2px);
}
.hof-bts__title { margin: 8px 0 4px; font-weight: 700; }
.hof-bts__text { margin: 0; opacity: .9; }

/* Hover lift */
.hof-bts__card:hover .hof-bts__caption { transform: translateY(0); opacity: 1; }

/* Glimmer sweep */
.hof-bts__glimmer {
  position: absolute; inset: -40% auto -40% -60%; width: 60%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  filter: blur(10px);
  opacity: 0; transition: opacity .2s ease;
}
.hof-bts__card:hover .hof-bts__glimmer { animation: hof-glimmer 1.2s ease forwards; }
@keyframes hof-glimmer {
  0% { left: -60%; opacity: 0; }
  15% { opacity: .9; }
  100% { left: 120%; opacity: 0; }
}

/* Reveal on scroll (applied by JS) */
.hof-bts__item.is-inview .hof-bts__card {
  transform: translateY(0) scale(1); opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hof-bts__card,
  .hof-bts__img,
  .hof-bts__caption,
  .hof-bts__glimmer,
  .hof-bts__marquee-track { transition: none; animation: none; }
}


/* ===== Crew Posters (unique prefix: hof-crew-) ===== */

.hof-crew { padding-block: 64px; position: relative; }
.hof-crew__header { display:flex; justify-content:space-between; align-items:end; margin-bottom:16px; }

/* Slider shell */
.hof-crew__slider { position: relative; }
.hof-crew__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.hof-crew__track:focus { outline: none; }
.hof-crew__track::-webkit-scrollbar { height: 8px; }
.hof-crew__track::-webkit-scrollbar-thumb { background: rgba(0,0,0,.25); border-radius: 999px; }

@media (min-width: 640px){ .hof-crew__track { grid-auto-columns: calc(50% - 10px); } }
@media (min-width: 1024px){ .hof-crew__track { grid-auto-columns: calc(33.333% - 12px); } }
@media (min-width: 1280px){ .hof-crew__track { grid-auto-columns: calc(25% - 12px); } }

.hof-crew__item { scroll-snap-align: start; }

/* Card + poster */
.hof-crew__card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface, #101010);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  transition: transform .3s ease, box-shadow .3s ease;
}
.hof-crew__card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.45); }

.hof-crew__poster { position: relative; display:block; }
.hof-crew__poster::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.6) 100%);
  pointer-events:none;
}
.hof-crew__poster img { width:100%; height:100%; object-fit:cover; display:block; }

/* Meta */
.hof-crew__meta {
  position: absolute; left: 14px; right: 14px; bottom: 14px; color: #fff;
  z-index: 2;
}
.hof-crew__name { margin: 0 0 2px; font-weight: 700; }
.hof-crew__role { margin: 0; opacity: .9; }

/* Enlarge hotspot */
.hof-crew__enlarge {
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,.15) 100%);
  border:0; cursor: zoom-in; z-index:3;
  opacity:0; transition: opacity .2s ease;
}
.hof-crew__card:hover .hof-crew__enlarge { opacity: 1; }

/* Controls */
.hof-crew__controls { position:absolute; inset:0; pointer-events:none; }
.hof-crew__control {
  pointer-events:auto; position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:999px; border:0; cursor:pointer;
  background: rgba(0,0,0,.55); display:grid; place-items:center;
  transition: background .2s ease;
}
.hof-crew__control:hover { background: rgba(0,0,0,.75); }
.hof-crew__control.prev { left:8px; }
.hof-crew__control.next { right:8px; }
/* simple arrow – reuse your .line/.arrow styling if already present */
.hof-crew__control .line { display:none; }
.hof-crew__control .arrow {
  width:10px; height:10px; border:2px solid #fff; border-left:0; border-bottom:0; transform:rotate(45deg);
}
.hof-crew__control.prev .arrow { transform: rotate(225deg); }

/* Lightbox */
.hof-crew__lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
  z-index: 1000;
}
.hof-crew__lightbox[aria-hidden="false"] { opacity: 1; visibility: visible; }
.hof-crew__lightbox-img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.hof-crew__lightbox-caption { color: #fff; margin-top: 10px; text-align: center; opacity: .9; }

.hof-crew__lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 42px; height: 42px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.12);
}
.hof-crew__lightbox-close::before, .hof-crew__lightbox-close::after {
  content:""; position:absolute; left:50%; top:50%; width: 18px; height:2px; background:#fff; transform-origin:center;
}
.hof-crew__lightbox-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.hof-crew__lightbox-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }

/* Accessibility */
.hof-crew__track:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce){
  .hof-crew__card { transition: none; }
}


/* Wrapper around each service card and its poster */
.service-card-wrapper {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  flex-direction: row;
  padding: 1rem;
}

/* Poster image beside the card */
.service-card-wrapper .poster {
  flex-shrink: 0;
  width: 300px; /* Adjust as needed */
  height: auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.service-card-wrapper .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ensure service card expands to available space */
.service-card-wrapper .service-card {
  flex: 1;
}
@media (max-width: 768px) {
  .service-card-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .service-card-wrapper .poster {
    width: 100%;
    max-width: 300px;
  }
}
.aditya-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.aditya-footer a {
  color: #ff6b6b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.aditya-footer a:hover {
  color: #fff;
}
/* ===== Contact Form Section (prefix: cf-) ===== */

.cf-section {
  padding-block: 80px;
  position: relative;
  overflow: hidden;
}

/* Header styling */
.cf-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  opacity: 0;
  transform: translateY(30px);
  animation: cf-fadeInUp 0.8s ease forwards;
}

@keyframes cf-fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cf-header .section-text {
  margin-top: 20px;
  opacity: 0.85;
}

/* Form container with glow effect */
.cf-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  animation: cf-scaleIn 0.9s ease 0.3s forwards;
}

@keyframes cf-scaleIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Animated glow background */
.cf-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.08),
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0;
  animation: cf-pulse 4s ease-in-out infinite;
}

@keyframes cf-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* Form frame */
.cf-frame {
  position: relative;
  background: var(--raisin-black);
  border-radius: 24px;
  padding: 8px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cf-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.cf-frame:hover::before {
  opacity: 1;
}

.cf-frame:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Shimmer effect on hover */
.cf-frame::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: rotate(25deg);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cf-frame:hover::after {
  animation: cf-shimmer 1.5s ease;
}

@keyframes cf-shimmer {
  0% {
    left: -60%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

/* Iframe styling - adjusted for your form height */
.cf-iframe {
  width: 100%;
  height: 1200px;
  border: none;
  border-radius: 16px;
  background: var(--white);
  display: block;
}

/* Responsive Design */

/* Tablet */
@media (max-width: 768px) {
  .cf-section {
    padding-block: 64px;
  }

  .cf-header {
    margin-bottom: 36px;
  }

  .cf-header .section-title {
    font-size: 2.5rem;
  }

  .cf-iframe {
    height: 1400px;
  }

  .cf-frame {
    padding: 6px;
    border-radius: 20px;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .cf-section {
    padding-block: 48px;
  }

  .cf-header {
    margin-bottom: 28px;
  }

  .cf-header .section-title {
    font-size: 2rem;
  }

  .cf-header .section-text {
    font-size: 0.95rem;
  }

  .cf-iframe {
    height: 1600px;
  }

  .cf-frame {
    padding: 4px;
    border-radius: 16px;
  }

  .cf-glow {
    inset: -20px;
  }
}

/* Extra small mobile */
@media (max-width: 380px) {
  .cf-iframe {
    height: 1800px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cf-header,
  .cf-container,
  .cf-frame,
  .cf-glow,
  .cf-frame::before,
  .cf-frame::after {
    animation: none !important;
    transition: none !important;
  }

  .cf-header,
  .cf-container {
    opacity: 1;
    transform: none;
  }
}

/* Dark mode enhancement (optional) */
@media (prefers-color-scheme: dark) {
  .cf-frame {
    background: var(--eerie-black);
  }
}

/* Print styles */
@media print {
  .cf-section {
    page-break-inside: avoid;
  }
  
  .cf-glow,
  .cf-frame::before,
  .cf-frame::after {
    display: none;
  }
}