/* =========================================
   CSS CUSTOM PROPERTIES
   ========================================= */
:root {
  --c-bg:        #0a0a0f;
  --c-surface:   #111118;
  --c-surface-2: #1a1a24;
  --c-border:    rgba(255,255,255,0.08);
  --c-accent:    #e8460a;
  --c-accent-2:  #ff6b35;
  --c-text:      #f0ede8;
  --c-text-muted:#7a7a8a;
  --c-white:     #ffffff;

  --f-display:   'Bebas Neue', sans-serif;
  --f-body:      'DM Sans', sans-serif;

  --radius:      10px;
  --radius-lg:   16px;
  --transition:  0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--f-body);
  background-color: var(--c-bg);
  background-image: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(232, 70, 10, 0.12), transparent),url(../assets/bg.png);
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

img {
  display: block;
  max-width: 100%;
}

/* =========================================
   HEADER
   ========================================= */
.header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1300px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  z-index: 10000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 48px;
  width: auto;
}

.repo-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--c-accent);
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), gap var(--transition);
}

.repo-btn:hover {
  background: var(--c-accent-2);
  transform: translateY(-1px);
  gap: 12px;
}

.btn-arrow {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.repo-btn:hover .btn-arrow {
  transform: translateX(2px);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 900;
  pointer-events: none;
}

.hero-box {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-box iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,15,0.3) 0%,
    rgba(10,10,15,0.5) 50%,
    rgba(10,10,15,0.85) 100%
  );
  z-index: 1;
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  z-index: 2;
  padding: 0 7%;
}

.hero-eyebrow {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-accent-2);
  margin-bottom: 12px;
  opacity: 0; /* animated in */
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--f-display);
  font-size: clamp(5rem, 11vw, 10rem);
  line-height: 0.92;
  letter-spacing: 2px;
  margin-top: 48px;
  text-transform: uppercase;
}

.hero-line {
  display: block;
  overflow: hidden;
  opacity: 0; /* animated in */
  transform: translateY(60px);
}

.hero-line--accent {
  color: var(--c-accent);
  -webkit-text-stroke: 1px var(--c-accent);
}

.hero-sub {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  color: rgba(240,237,232,0.65);
  max-width: 480px;
  line-height: 1.6;
  opacity: 0; /* animated in */
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 7%;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 2;
  opacity: 0; /* animated in */
}

.hero-scroll-hint span {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.scroll-line {
  width: 50px;
  height: 1px;
  background: var(--c-accent);
  transform-origin: left;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50%       { transform: scaleX(0.4); opacity: 0.4; }
}

/* =========================================
   SECTIONS
   ========================================= */


.intro-section {
  margin-top: 0; /* FIX: remove extra gap */
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.intro-inner {
  max-width: 800px;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #ffffff;
  margin-top: 1rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.intro-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.4s ease, transform 0.4s ease;
}

.intro-image img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.intro-stats {
  display: flex;
  justify-content: space-evenly;
  gap: 40px;
}

.intro-stats div strong {
  font-family: var(--f-display);
  font-size: 2rem;
  color: var(--c-accent);
}

.section {
  padding: 100px 0;
  position: relative;
}

.first-section {
  margin-top: 100vh;
  opacity: 0; /* animated by GSAP */
}

.section:not(.first-section) {
  opacity: 1;
}

.section--dark {
  background: var(--c-surface);
}

.section--testimonials {
  background: linear-gradient(180deg, transparent 0%, rgba(232,70,10,0.04) 100%);
}

/* Section Header */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 52px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}

.section-label {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--c-accent);
  letter-spacing: 2px;
  opacity: 0.7;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-text);
}

/* =========================================
   GRID
   ========================================= */
.grid {
  display: grid;
  gap: 24px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

/* =========================================
   CARDS
   ========================================= */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);

  /* GSAP start state */
  opacity: 0;
  transform: translateY(40px);
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  border-color: rgba(232, 70, 10, 0.35);
}

.card--accent {
  background: var(--c-surface-2);
  border-color: rgba(232, 70, 10, 0.2);
}

.card-img {
  height: 200px;
  overflow: hidden;
  background: var(--c-surface-2);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-img img {
  transform: scale(1.06);
}

.card-body {
  padding: 20px 22px 20px;
}

.card-body h3 {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--c-white);
}

.card-body p {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--c-text-muted);
  margin-bottom: 20px;
}

.card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-accent-2);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 999px;
  padding: 3px 10px;
}

/* =========================================
   VIDEO CARDS
   ========================================= */
.video-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);

  /* GSAP start state */
  opacity: 0;
  transform: translateY(40px);
}

.video-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  border-color: rgba(232, 70, 10, 0.35);
}

.video-thumb {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: var(--c-surface-2);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.video-card:hover .video-thumb img {
  transform: scale(1.06);
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity var(--transition);
}

.play-btn svg {
  width: 40px;
  height: 40px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.video-card:hover .play-btn {
  opacity: 1;
}

.video-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
}

.video-info h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.4;
  flex: 1;
  padding-right: 8px;
}

.video-duration {
  font-size: 12px;
  color: var(--c-text-muted);
  flex-shrink: 0;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonial {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;

  /* GSAP start state */
  opacity: 0;
  transform: translateY(40px);
}

.testimonial::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.testimonial:hover::before {
  opacity: 1;
}

.testimonial-quote {
  font-family: var(--f-display);
  font-size: 4rem;
  line-height: 0.6;
  color: var(--c-accent);
  opacity: 0.4;
}

.testimonial p {
  font-size: 14px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--c-text-muted);
  flex: 1;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
}

.testimonial-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  flex-shrink: 0;
}

.testimonial-info h4 {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  margin: 0;
}

.testimonial-info span {
  font-size: 12px;
  color: var(--c-text-muted);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--c-border);
  background: var(--c-surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-address strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 4px;
}

.footer-address span {
  font-size: 13px;
  color: var(--c-text-muted);
}

.footer-logo {
  height: 60px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.footer-logo:hover {
  opacity: 1;
}

/* =========================================
   MODAL
   ========================================= */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}
 
.modal.active {
  display: flex;
}
 
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}
 
.modal-content {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  width: 80vw;
  max-width: 80vw;
  height: 80vh;
  border-radius: var(--radius-lg);
  z-index: 2;
  animation: modalIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
 
@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
 
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  cursor: pointer;
  color: var(--c-text-muted);
  transition: color var(--transition), background var(--transition);
  z-index: 3;
}
 
.modal-close:hover {
  color: var(--c-text);
  background: var(--c-surface);
}
 
.modal-project {
  display: flex;
  flex-direction: column;
  height: 100%;
}
 
.modal-image {
  width: 100%;
  height: 70%;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
}
 
.modal-body {
  height: 100%;
  overflow: hidden;
}

/* LIGHTBOX */
.lightbox {
  
  position: fixed;
  inset: 0;
  z-index: 999999;
  margin: 0 auto;
  /* display: flex;
  align-items: center;
  justify-content: center; */
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  pointer-events: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  overflow: auto;
}
 
.lightbox.active {
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  pointer-events: all;
}
 
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  margin: 0 auto;

  object-fit: contain;
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease,
              max-width 0.35s ease, max-height 0.35s ease,
              border-radius 0.35s ease;
  cursor: zoom-in;
}
 
.lightbox.active .lightbox-img {
  opacity: 1;
  transform: scale(1);
}
 
.lightbox-img.zoomed {
  max-width: 95vw;
  max-height: none;
  border-radius: 0;
  cursor: zoom-out;
  overflow-y: auto;

}
 
.modal-details {
  padding: 24px 32px 24px;
  flex: 1;
  overflow-y: auto;
}
 
.modal-details h2 {
  font-family: var(--f-display);
  font-size: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-text);
}
 
.modal-meta {
  font-size: 12px;
  color: var(--c-text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}
 
.modal-meta strong {
  color: var(--c-accent-2);
}
 
.modal-details > p:last-child {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: rgba(240,237,232,0.75);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header {
    top: 12px;
    width: 95%;
    padding: 10px 16px;
  }

  .header-inner {
    gap: 12px;
  }

  .logo {
    height: 36px;
  }

  .repo-btn {
    font-size: 12px;
    padding: 8px 14px;
  }

  .hero-title {
    font-size: clamp(3.5rem, 14vw, 5.5rem);
  }

  .hero-text {
    padding: 0 6%;
  }

  .hero-sub {
    font-size: 14px;
    max-width: 280px;
  }

  .section {
    padding: 72px 0;
  }

  .grid.three {
    grid-template-columns: 1fr;
  }

  .grid.four {
    grid-template-columns: 1fr;
  }

  .section-header {
    gap: 12px;
    margin-bottom: 36px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .section-title {
    font-size: 1.8rem;
  }
}





.lightbox-video-wrapper {
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-video-wrapper iframe {

  width: 100%;
  height: 100%;
  border-radius: 10px;
}

