/* ============== RESET & BASE ============== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #F7F7F5;
  color: #111;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body:not(.loaded) {
  opacity: 0;
}

body.loaded {
  opacity: 1;
  transition: opacity 0.6s ease;
}

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

a {
  color: inherit;
}

/* ============== UTILITIES ============== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #888;
  font-weight: 500;
  display: inline-block;
}

.section-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* ============== REVEAL ANIMATIONS ============== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============== NAVIGATION ============== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(247, 247, 245, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(247, 247, 245, 0.95);
  border-bottom: 1px solid #EAEAEA;
  padding: 16px 48px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #111;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 450;
  color: #666;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #111;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #111;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: #111;
}

.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #111;
  border: none;
  padding: 10px 24px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-cta:hover {
  background: #333;
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  width: 24px;
  height: 1.5px;
  background: #111;
  transition: all 0.3s ease;
}

/* ============== HERO ============== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 140px 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-greeting {
  font-size: 15px;
  font-weight: 400;
  color: #999;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(48px, 5.5vw, 92px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #111;
}

.hero-title .highlight {
  font-weight: 300;
  font-style: italic;
}

.hero-role {
  font-size: 18px;
  font-weight: 400;
  color: #777;
}

.hero-description {
  font-size: 17px;
  line-height: 1.75;
  color: #666;
  max-width: 460px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #111;
  padding: 16px 40px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: #111;
  transform: translateY(-2px);
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.hero-image {
  width: 100%;
  max-width: 480px;
  height: 680px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 0 0 220px 220px;
  filter: grayscale(100%) contrast(1.05);
}

.hero-image-glow {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, #F7F7F5, transparent);
  pointer-events: none;
}

.hero-vertical-label {
  position: absolute;
  right: -36px;
  top: 50%;
  transform: rotate(90deg) translateX(-50%);
  transform-origin: right center;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ccc;
  white-space: nowrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-indicator span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #bbb;
  writing-mode: vertical-lr;
}

.scroll-indicator .line {
  width: 1px;
  height: 56px;
  background: #ddd;
  position: relative;
  overflow: hidden;
}

.scroll-indicator .line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% {
    top: -100%;
  }
  50% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

/* ============== STATS ============== */
.stats {
  padding: 80px 0;
  border-top: 1px solid #EAEAEA;
  border-bottom: 1px solid #EAEAEA;
}

.stats-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 24px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #EAEAEA;
}

.stat-number {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #111;
}

.stat-suffix {
  font-size: 36px;
  font-weight: 300;
  color: #888;
}

.stat-label {
  font-size: 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 12px;
  font-weight: 500;
}

/* ============== ABOUT ============== */
.about {
  padding: 160px 0;
}

.about-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.about-content .section-label {
  margin-bottom: 24px;
}

.about-content .section-title {
  margin-bottom: 40px;
}

.about-text {
  font-size: 17px;
  line-height: 1.8;
  color: #555;
}

.about-text p {
  margin-bottom: 24px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 15%;
}

.about-decorative {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border: 1px solid #EAEAEA;
  border-radius: 20px;
  z-index: -1;
}

.about-decorative-2 {
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 72px;
  height: 72px;
  border: 1px solid #EAEAEA;
  border-radius: 16px;
  z-index: -1;
}

/* ============== PROJECTS ============== */
.projects {
  padding: 160px 0;
  background: #fff;
}

.projects-header {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.project-card {
  background: #FAFAF8;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #EAEAEA;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.08);
  border-color: #ddd;
}

.project-card-image {
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  background: #000;
}

.project-card-image picture {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.project-card-image img,
.project-card-image iframe,
.project-card-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
  display: block;
  background: #000;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-card-image img {
  transform: scale(1.04);
}

.project-card-content {
  padding: 28px 32px 32px;
}

.project-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
  margin-bottom: 10px;
  font-weight: 500;
}

.project-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 15px;
  color: #777;
  line-height: 1.6;
}

/* ============== SERVICES ============== */
.services {
  padding: 160px 0;
}

.services-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 80px;
  padding: 0 48px;
}

.services-header .section-label {
  margin-bottom: 24px;
}

.services-header .section-title {
  margin-bottom: 20px;
}

.services-header p {
  font-size: 17px;
  color: #777;
  line-height: 1.7;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 36px;
  border: 1px solid #EAEAEA;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.06);
  border-color: #ddd;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  color: #111;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.service-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #777;
}

/* ============== EXPERIENCE ============== */
.experience {
  padding: 160px 0;
  background: #fff;
}

.experience-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 96px;
  align-items: start;
}

.experience-left .section-label {
  margin-bottom: 24px;
}

.experience-left .section-title {
  margin-bottom: 24px;
}

.experience-left p {
  font-size: 17px;
  color: #777;
  line-height: 1.7;
}

.timeline {
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: #EAEAEA;
}

.timeline-item {
  position: relative;
  margin-bottom: 56px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -52px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #F7F7F5;
  box-shadow: 0 0 0 1px #111;
}

.timeline-year {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
  margin-bottom: 6px;
  font-weight: 500;
}

.timeline-role {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.timeline-company {
  font-size: 14px;
  color: #999;
  margin-bottom: 12px;
  font-weight: 500;
}

.timeline-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
}

/* ============== TESTIMONIALS ============== */
.testimonials {
  padding: 160px 0;
}

.testimonials-header {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 64px;
  padding: 0 48px;
}

.testimonials-header .section-label {
  margin-bottom: 24px;
}

.testimonial-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 28px;
  padding: 72px 64px;
  border: 1px solid #EAEAEA;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
  position: relative;
}

.testimonial-quote-mark {
  font-size: 100px;
  color: #F0F0EE;
  line-height: 1;
  font-family: Georgia, serif;
  position: absolute;
  top: 28px;
  left: 56px;
}

.testimonial-text {
  font-size: 22px;
  line-height: 1.75;
  color: #333;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-info {
  text-align: left;
}

.testimonial-name {
  font-size: 16px;
  font-weight: 600;
}

.testimonial-role {
  font-size: 13px;
  color: #999;
  margin-top: 2px;
}

/* ============== CONTACT ============== */
.contact {
  padding: 160px 0;
  background: #fff;
}

.contact-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}

.contact-left .section-label {
  margin-bottom: 24px;
}

.contact-title {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.contact-subtitle {
  font-size: 17px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 48px;
  max-width: 420px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
  stroke: #999;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.contact-info-item span {
  font-size: 15px;
  color: #666;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #EAEAEA;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: #111;
  border-color: #111;
}

.social-link svg {
  width: 18px;
  height: 18px;
  stroke: #666;
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.3s ease;
}

.social-link:hover svg {
  stroke: #fff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #999;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #EAEAEA;
  border-radius: 14px;
  font-size: 15px;
  font-family: inherit;
  background: #FAFAF8;
  transition: all 0.3s ease;
  outline: none;
  color: #111;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #111;
  background: #fff;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 18px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  margin-top: 4px;
}

.form-submit:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* ============== FOOTER ============== */
.footer {
  padding: 48px 0;
  border-top: 1px solid #EAEAEA;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 14px;
  color: #999;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #111;
}

/* ============== CURSOR GLOW ============== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.025) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ============== RESPONSIVE - TABLET ============== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 120px 48px 60px;
    gap: 48px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-description {
    max-width: 520px;
  }

  .hero-image-wrapper {
    order: -1;
    justify-content: center;
  }

  .hero-image {
    max-width: 320px;
    height: 420px;
    border-radius: 0 0 160px 160px;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-vertical-label {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .about-image-wrapper {
    max-width: 400px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .section-title {
    font-size: 42px;
  }

  .contact-title {
    font-size: 42px;
  }
}

/* ============== RESPONSIVE - MOBILE ============== */
@media (max-width: 640px) {
  .nav {
    padding: 16px 24px;
  }

  .nav.scrolled {
    padding: 12px 24px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #F7F7F5;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: 48px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
  }

  .nav.nav-open .nav-links {
    right: 0;
  }

  .nav-links a {
    font-size: 18px;
  }

  .nav-hamburger {
    display: flex;
    z-index: 1001;
  }

  .nav.nav-open .nav-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav.nav-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav.nav-open .nav-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .hero {
    padding: 100px 24px 48px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-greeting {
    font-size: 13px;
  }

  .hero-role {
    font-size: 16px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .stats {
    padding: 48px 0;
  }

  .stats-grid {
    padding: 0 24px;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 11px;
  }

  .about,
  .projects,
  .services,
  .experience,
  .testimonials,
  .contact {
    padding: 96px 0;
  }

  .about-grid,
  .projects-header,
  .projects-grid,
  .services-header,
  .services-grid,
  .experience-container,
  .testimonials-header,
  .contact-grid,
  .footer-content {
    padding-left: 24px;
    padding-right: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 34px;
  }

  .contact-title {
    font-size: 34px;
  }

  .testimonial-card {
    margin: 0 24px;
    padding: 48px 28px;
    border-radius: 20px;
  }

  .testimonial-text {
    font-size: 18px;
  }

  .testimonial-quote-mark {
    font-size: 72px;
    top: 16px;
    left: 28px;
  }

  .projects-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Horizontal Touch Slider Carousel View ONLY on Mobile */
  .projects-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-bottom: 12px !important;
    gap: 18px !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .projects-grid::-webkit-scrollbar {
    display: none;
  }

  .projects-grid .project-card {
    flex: 0 0 84vw !important;
    max-width: 320px !important;
    min-width: 260px !important;
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    border-radius: 24px;
    box-sizing: border-box;
  }

  /* 9:16 Vertical Video Player ONLY on Mobile View */
  .projects-grid .project-card-image {
    aspect-ratio: 9 / 16 !important;
    background: #000 !important;
  }

  .projects-grid .project-card-image img,
  .projects-grid .project-card-image picture img,
  .projects-grid .project-card-image video {
    object-fit: contain !important;
    object-position: center !important;
    background: #000 !important;
  }

  .projects-grid .project-card-content {
    padding: 18px 16px 20px;
  }

  .video-play-overlay {
    width: 58px;
    height: 58px;
    font-size: 22px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* Mobile Slider Pagination Dots */
.projects-slider-dots {
  display: none;
}

@media (max-width: 640px) {
  .projects-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
  }

  .slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #DDD;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .slider-dot.active {
    width: 26px;
    border-radius: 12px;
    background: #111;
  }
}

/* ============== CUSTOM YOUTUBE PLAYER ============== */
.yt-player-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #000;
}

/* Video + overlay container */
.yt-video-area {
  position: relative;
  flex: 1;
  min-height: 0;
}

.yt-video-area iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Transparent overlay — catches taps/clicks to toggle play/pause */
.video-tap-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.custom-player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: rgba(10, 10, 10, 0.93);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.06);
  user-select: none;
  flex-shrink: 0;
}

.player-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
  flex-shrink: 0;
}

.player-btn:hover {
  background: rgba(255,255,255,0.12);
}

.player-time {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', monospace;
  flex-shrink: 0;
  min-width: 30px;
}

/* Scrubber track (shared by progress & volume) */
.player-scrubber-wrap {
  position: relative;
  flex: 1;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Volume scrubber — fixed narrower width */
.player-vol-wrap {
  flex: 0 0 64px;
}

.player-track {
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.18);
  border-radius: 99px;
  overflow: hidden;
  pointer-events: none;
}

.player-fill {
  height: 100%;
  background: #fff;
  border-radius: 99px;
  width: 0%;
  transition: width 0.1s linear;
}

.player-scrubber {
  position: absolute;
  left: 0; right: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* YouTube App Badge & Direct Link */
.yt-badge-link {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
}

.yt-badge-link:hover {
  background: rgba(255, 0, 0, 0.85);
  border-color: rgba(255, 0, 0, 0.9);
  transform: scale(1.05);
}

.player-yt-direct {
  margin-left: 4px;
  text-decoration: none;
}
.player-yt-direct:hover {
  transform: scale(1.15);
}

/* Play button overlay on project thumbnails */
.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  padding-left: 3px;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}

.project-card:hover .video-play-overlay {
  background: rgba(16, 185, 129, 0.9);
  border-color: rgba(16, 185, 129, 1);
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}
