#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    filter: blur(6px);
    opacity: 0.9;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
  pointer-events: none;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}


/* Navigation */
.navbar-pc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 40px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
    --nav-height: 60px;
    --nav-padding: 40px;
    --logo-scale: 1;
    --bg-opacity: 0.6;

    height: var(--nav-height);
    padding: 0 var(--nav-padding);

  transition:
    height 0.25s ease,
    padding 0.25s ease,
    background 0.25s ease,
    backdrop-filter 0.25s ease;
}

.navbar-mobile {
    display: none;
}

.logo-initials {
    font-family: 'auto';
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
  transform: scale(var(--logo-scale));
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
    transition: gap 0.25s ease, transform 0.25s ease;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0 0.2em;
    font-size: 1.05rem;
}

.nav-links a:after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: #f27825;
    transition: width 0.2s;
    position: absolute;
    left: 0;
    bottom: -4px;
}

.nav-links a:hover:after {
    width: 100%;
}

.navbar-pc.shrink {
  --nav-height: 36px;          /* ~50% smaller */
  --nav-padding: 24px;
  --logo-scale: 0.78;
  --bg-opacity: 0.35;

  background: rgba(0, 0, 0, var(--bg-opacity));
  backdrop-filter: blur(16px);
}

.navbar-pc.shrink .nav-links {
  gap: 1.4rem;
  transform: translateX(6px);
}


.logo {
  text-decoration: none;
  cursor: pointer;
}




/* Hero Section */
.hero {
    background: transparent;
    min-height: 74vh;
    display: flex;
    align-items: center;
    padding: 80px 5vw 64px;
    border-radius: 20px;
    margin: 0 auto;
    max-width: 98vw;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    overflow-x: hidden;
}

.hero-content {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
}

.hero-content > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.highlight {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    font-weight: 800;
    font-size: 7em;
    letter-spacing: 0.03em;
    width: 100%;
    text-align: left;
    max-width: 100%;
    box-sizing: border-box;
    letter-spacing: -0.02em;
}

.muted {
    color: #f27825;
    font-family: 'Bebas Neue', sans-serif;
    opacity: 0.5;
    font-weight: 700;
    font-size: 5em;
    text-align: left;
    max-width: 100%;
    box-sizing: border-box;
    letter-spacing: 0.03em;
    margin-top: -0.5em;
    margin-left: 0.05em;
}

.main-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    color: #fff;
    font-weight: 800;
    text-align: left;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0.3em;
}

.accent {
    font-family: 'Bebas Neue', sans-serif;
    color: #f27825;
    font-size: 2rem;
    font-weight: 700;
    opacity: inherit;
    display: inline-block;          /* 🔥 THIS IS THE FIX */
    will-change: transform;         /* 🔒 force animation layer */
    text-align: left;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: -1em;
    margin-left: 0.015em;
}

.hero-desc {
    font-family: 'Poppins', sans-serif;
    margin: 18px 0 34px;
    max-width: 100%;
    color: #bbb;
    text-align: left;
    animation-fill-mode: forwards;
}

.hero-buttons {
    letter-spacing: 0.2rem;
    font-family: 'Bebas Neue', sans-serif;
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: visible;
    flex-direction: row;
    align-items: center;
}

.btn {
    padding: 10px 22px;
    font-weight: 600;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
    font-size: 1.1rem;
    text-align: center;
    text-decoration: none;
    width: auto;
    box-sizing: border-box;
    white-space: nowrap;
}

.primary-btn {
  background: rgba(242,120,37,0.85);
  border-color: rgba(255,255,255,0.35);
    background: #f27825;
    color: #fff;
    display: inline-block;
}

.primary-btn:hover {
    background: #fff;
    color: #f27825;
    transform: translateY(-5px) scale(1.025);
}

.outline-btn {
    background: transparent;
    color: #f27825;
    border: 2px solid #f27825;
    display: inline-block;
}

.outline-btn:hover {
    background: #f27825;
    color: #fff;
    transform: translateY(-5px) scale(1.025);
}

/* Projects Section */
.projects {
    background: rgba(255, 255, 255, 0.85);
    color: #141313;
    padding: 5px 8vw;
    min-height: 60vh;
    border-radius: 18px;
    margin: 36px auto;
    max-width: 980px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    overflow-x: hidden;
    font-family: 'Bebas Neue', sans-serif;
}

.projects h2 {
    font-size: 2.2rem;
    margin-bottom: 34px;
    text-align: center;
}

.projects-grid {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card {
    background: #faf7f2;
    padding: 20px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px #4442;
    min-width: 260px;
    max-width: 320px;
    transition: transform 0.17s;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.025);
}

.project-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 14px;
}

/* About Section */
.about {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: center;
  backdrop-filter: blur(14px);
  padding: 40px 4vw 32px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  margin: 32px auto;
  max-width: 900px; 
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  overflow-x: hidden;
  flex-direction: column;
  align-items: center;
}

.about-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 50px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-info {
  flex: 2;
  max-width: 680px;
  margin: 0 auto;
  max-width: 640px;
  position: relative;
}

.about-achievements {
    flex: 1.2;
    background: rgba(35, 41, 47, 0.9);
    padding: 22px 14px;
    border-radius: 12px;
    min-width: 280px;
}

.about-info h2,
.about-achievements h3 {
    color: #f27825;
    margin-bottom: 12px;
    size: 2rem;
}

.about-info ul,
.about-achievements ul {
    list-style: disc inside;
    padding-left: 18px;
}

.about-achievements ul {
    margin-bottom: 14px;
}

/* Contact Section */
.contact {
    background: rgba(255,255,255,0.08);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
      border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    margin: 36px auto;
    padding: 36px 5vw 24px;
    text-align: center;
    max-width: 480px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    overflow-x: hidden;
     display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 480px;
}

.contact-form {
     display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 26px;
}

.contact-form input,
.contact-form textarea {
     background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  backdrop-filter: blur(10px);
    border-radius: 7px;
    padding: 14px 14px;
    font-size: 1.08rem;
    width: 100%;
    resize: vertical;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 44px;
}

.contact-form textarea {
  min-height: 110px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.6);
}

.contact-form button {
    align-self: center;
    cursor: pointer;
}


.contact-details p {
    margin: 6px 0;
}

/* Footer Section */
.footer {
    padding: 24px;
    background: #121212;
    text-align: center;
    color: #fff;
    margin-top: 12px;
    border-radius: 8px 8px 0 0;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    overflow-x: hidden;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 760px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

.footer a {
    color: #f27825;
    margin-left: 16px;
    font-size: 1.2rem;
}

.footer a:hover {
    color: #f55;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .navbar-pc {
        display: none;
    }
    .navbar-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 50px;
        padding: 0 15px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 100;
        background-color: rgba(0, 0, 0, 0.6);
        box-sizing: border-box;
        overflow-x: hidden;
    }
    .nav-links {
        flex-direction: row;
        gap: 0.8rem;
    }
    .nav-links a {
        font-size: 0.9rem;
    }
    .hero,
    .about,
    .projects,
    .contact {
        padding: 1px 5vw;
        margin: 32px auto;
        box-sizing: border-box;
        max-width: 100%;
        width: 100%;
        overflow-x: visible;
    }
    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        max-width: 100%;
        width: 100%;
        padding: 0;
        box-sizing: border-box;
        overflow-x: visible;
    }
    .hero-buttons {
        gap: 14px;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        align-items: stretch;
        box-sizing: border-box;
        overflow-x: visible;
    }
    .highlight {
        font-size: clamp(5em, 7vw, 2.5em);
        width: 100%;
        word-break: keep-all;
        text-align: left;
        max-width: 100%;
        box-sizing: border-box;
        margin-top: 0.5em;
        margin-bottom: 0.1em;
        margin-left: -0.1em;
    }
    .muted {
        font-size: clamp(4em, 7vw, 2.5em);
        width: 100%;
        text-align: left;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 0.7em;
        margin-left: -0.1em;
    }
    .main-heading {
        font-size: clamp(1.7em, 7vw, 2.5em);
        width: 100%;
        text-align: left;
        max-width: 100%;
        box-sizing: border-box;
        word-break: keep-all;
        margin-left: -0.2em;
        margin-bottom: -0.2em;
    }
    .accent{
        font-size: clamp(1.7em, 7vw, 2.5em);
        width: 100%;
        text-align: left;
        max-width: 100%;
        box-sizing: border-box;
        word-break: keep-all;
        margin-left: -0.2em;
        margin-bottom: 1em;
    }
    .hero-desc{
        margin-left: -0.2em;
    }
    .btn {
        width: 100%;
        font-size: 1.05rem;
        box-sizing: border-box;
        margin-left: -0.2em;
        margin-bottom: 1em;
    }
    .logo-initials {
        font-size: 1.5rem;
    }
    .contact-form {
        padding: 0 10px;
    }
    .contact-form input,
    .contact-form textarea {
        max-width: 100%;
        box-sizing: border-box;
    }
    .footer-content {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
        max-width: 100%;
        box-sizing: border-box;
    }
.about-actions {
    grid-template-columns: 1fr 1fr;
    gap: 14px;                 /* slightly larger gap */
    align-items: stretch;      /* force equal height rows */
  }

  .about-actions a {
    min-width: 0;              /* 🔑 Safari overflow fix */
    height: auto;              /* let content decide height */
    line-height: 1.2;          /* normalize text box */
    padding: 12px 10px;        /* consistent internal spacing */
    white-space: nowrap;       /* prevent text wrap weirdness */
  }

  .about-btn-full {
    grid-column: 1 / -1;
  }
}


.projects-carousel-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0 30px 0;
}
.projects-carousel-box .box {
  background: rgba(255,255,255,0.85);
  padding: 42px 0 34px 0;
  border-radius: 22px;
  max-width: 1200px;  /* inreased width for desktop */
  width: 96vw;
  margin: 0 auto;
  box-shadow: 0 2px 18px #2221;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1em;
}
.projects-title {
  margin: 0 0 26px 0;
  font-size: 2.4rem;
  color: #141313;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 1px;
}
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.carousel-card {
  width: 440px;
  min-height: 340px;
  max-width: 98vw;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
}
.project-card {
  background: #faf7f2;
  box-shadow: 0 2px 10px #4442;
  border-radius: 18px;
  padding: 34px 24px 30px 24px;
  width: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.2s cubic-bezier(0.43,0.05,0.79,0.31);
  font-size: 1.09em;
}
.project-card img {
  width: 97%;
  border-radius: 14px;
  margin-bottom: 22px;
  box-shadow: 0 1px 6px #0003;
}
@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.97);}
  to {opacity: 1; transform: scale(1);}
}
@keyframes fadeOut {
  from {opacity: 1;}
  to {opacity: 0;}
}
.project-card.fade-in {
  animation: fadeIn 1.2s cubic-bezier(0.43,0.05,0.79,0.31) forwards;
}
.project-card.fade-out {
  animation: fadeOut 1.2s cubic-bezier(0.43,0.05,0.79,0.31) forwards;
}
.carousel-dots {
  margin: 18px 0 0;
  display: flex;
  justify-content: center;
  gap: 18px;
}
.carousel-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: none;
  background: #e1e1e1;
  box-shadow: 0 1px 4px #3332;
  cursor: pointer;
  transition: background 0.17s, box-shadow 0.15s;
}
.carousel-dot.active {
  background: #f27825;
  box-shadow: 0 0 7px #f27825aa;
}
@media (max-width: 900px) {
  .projects-carousel-box .box {
    max-width: 99vw;
  }
  .carousel-card {
    width: 95vw;
  }
}
@media (max-width: 600px) {
  .projects-carousel-box .box {
    padding: 14px 0 10px 0;
  }
  .carousel-card {
    width: 99vw;
    min-height: 160px;
  }
  .projects-title {
    font-size: 1.6rem;
  }
  .project-card {
    padding: 7px;
  }
  .carousel-dot {
    width: 13px;
    height: 13px;
  }
}
.carousel-card {
  width: 440px;
  min-height: 400px; /* Increased a bit to prevent shrinking on smaller cards */
  max-width: 98vw;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s;
}

@media (min-width: 601px) {
    .navbar-mobile {
        display: none;
    }
}
/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-content span:not(.accent),
.hero-desc,
.hero-buttons {
  animation: slideUp 1s ease forwards;
  opacity: 0;
  animation-play-state: paused;
}

body.intro-done .hero-content span,
body.intro-done .hero-desc,
body.intro-done .hero-buttons {
  animation-play-state: running;
}

.hero-content span:nth-child(1) { animation-delay: 0.2s; }
.hero-content span:nth-child(2) { animation-delay: 0.4s; }
.hero-content span:nth-child(3) { animation-delay: 0.6s; }
.hero-desc { animation-delay: 0.8s; }
.hero-buttons { animation-delay: 1s; }

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.accent {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: accentSlideUp 1s ease forwards;
  animation-delay: 0.8s;
  animation-play-state: paused;
}

body.intro-done .accent {
  animation-play-state: running;
}

@keyframes accentSlideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.project-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.project-card img {
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.05);
}
.navbar-pc.scrolled,
.navbar-mobile.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.75);
}
/* Intro Screen */
#intro-screen {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
  display: flex;
  flex-direction: column;
  align-items: center;     /* horizontal center */
  justify-content: center; /* vertical center */
  text-align: center;      /* text center */
}

#intro-screen.hide {
  opacity: 0;
  pointer-events: none;
}

#intro-screen h1 {
  color: #ffffff;
  font-family: 'Clash Display', sans-serif;
  font-size: 4rem;
  letter-spacing: 3px;
  opacity: 0;
  transform: translateY(30px);
  animation: introText 0.8s ease forwards, glowPulse 1.6s ease-in-out infinite;
  text-shadow:
    0 0 10px rgba(242,120,37,0.6),
    0 0 20px rgba(242,120,37,0.45),
    0 0 40px rgba(242,120,37,0.25);
}
@keyframes glowPulse {
  0% {
    text-shadow:
      0 0 8px rgba(242,120,37,0.5),
      0 0 16px rgba(242,120,37,0.35),
      0 0 30px rgba(242,120,37,0.2);
  }
  50% {
    text-shadow:
      0 0 14px rgba(242,120,37,0.8),
      0 0 30px rgba(242,120,37,0.55),
      0 0 60px rgba(242,120,37,0.35);
  }
  100% {
    text-shadow:
      0 0 8px rgba(242,120,37,0.5),
      0 0 16px rgba(242,120,37,0.35),
      0 0 30px rgba(242,120,37,0.2);
  }
}

#intro-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(242,120,37,0.15),
    transparent 60%
  );
  opacity: 1;
  transition: opacity 0.8s ease;
}

#intro-screen.hide::after {
  opacity: 0;
}


@keyframes introText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.intro-subtext {
  margin-top: 12px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Filter */
.project-filters {
  display: flex;
  gap: 24px;
  margin-bottom: 60px;
}

.filter-btn {
  background: transparent;
  border: none;
  color: #888;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.2em;
  font-size: 1rem;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  color: #f27825;
}

/* Scroll snapping */
.project-track {
  scroll-snap-type: y proximity;
}
.project-track.snap {
  scroll-snap-type: y mandatory;
}

.project-slide {
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}

.project-slide img,
.project-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Slide */
.project-slide {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  max-height: 80vh;

  scroll-snap-align: center;

  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;

  transform: scale(0.96);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.project-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.project-slide:hover {
  transform: scale(1);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6);
}

.project-slide:hover video {
  transform: scale(1.08);
  filter: brightness(0.9);
}

.project-slide img,
.project-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.project-overlay {
  position: absolute;
  inset: 0;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 60%);
}

.project-tag {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.3em;
  color: #f27825;
}

.project-overlay h2 {
  color: #fff;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;

  text-shadow:
    0 6px 20px rgba(0,0,0,0.85),
    0 2px 8px rgba(0,0,0,0.6);
}

.project-overlay p {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;

  text-shadow:
    0 4px 12px rgba(0,0,0,0.7);
}

.project-track {
  height: calc(100vh - 260px); /* adjust if needed */
  overflow-y: auto;
  overflow-x: hidden;

  overscroll-behavior: auto;

  padding-top: 40px;

  max-height: none;
}


/* Cursor follower */
.cursor-preview {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  background: rgba(242,120,37,0.9);
  color: #000;
  padding: 10px 16px;
  border-radius: 50px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.2em;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s ease;
  z-index: 9999;
}

@media (max-width: 768px) {
  .project-track {
    scroll-snap-type: none;
  }
  .projects-heading {
    overflow: visible;          /* 🔑 stop clipping */
    flex-wrap: wrap;            /* allow natural wrap */
    justify-content: center;
    letter-spacing: 0.25em;     /* reduce Safari overflow bug */
}
}

/* Projects Title */
.projects-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.544);
  text-shadow:
  0 2px 8px rgba(0,0,0,0.5),
  0 0 24px rgba(242,120,37,0.08);
  margin-bottom: 80px;
  display: flex;
  gap: 0.4em;
  overflow: hidden;
}

.projects-heading span {
  display: inline-block;
  transform: translateY(20%);
  opacity: 0.9;
}

.immersive-projects {
  padding-bottom: 80px;
  overflow: visible;
}

.project-slide {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Modern About Section ===== */

.about {
  backdrop-filter: blur(12px);
}

.about-info {
  max-width: 680px;
  color: #ccc;
  line-height: 1.75;
  margin-bottom: 22px;
}

.about-intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #eee;
  margin-bottom: 18px;
}

.about-info p {
  color: #ccc;
  line-height: 1.6;
  font-size: 0.98rem;
  margin-bottom: 16px;
}

/* ===== About section unified scroll reveal ===== */

.overtype-scroll {
  position: relative;
}

/* base grey text */
.overtype-scroll .about-base {
  color: #8f8f8f;
}

/* white reveal overlay */
.overtype-scroll .about-reveal {
  position: absolute;
  inset: 0;
  color: #ffffff;
  pointer-events: none;

  /* hidden initially */
  clip-path: inset(100% 0 0 0);
}


/* Action buttons */
.about-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
  max-width: 680px;
  justify-items: center;
}

.about-btn {
  text-align: center;
  box-sizing: border-box;
  line-height: 1;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.15em;
  padding: 12px 26px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 6px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-btn-full {
  grid-column: 1 / -1;
  margin-top: 6px;
}



/* Variants */
.about-btn.primary {
  background: #f27825;
  background: rgba(242,120,37,0.85);
  border-color: rgba(255,255,255,0.35);
  color: #000;
}

.about-btn.primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(242,120,37,0.35);
}

.about-btn.outline {
  border: 1.5px solid #888;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
  color: #fff;
}

.about-btn.outline:hover {
  border-color: #fff;
  transform: translateY(-4px);
}

.about-btn.accent {
  border: 1.5px solid #f27825;
  background: rgba(242,120,37,0.25);
  border-color: rgba(242,120,37,0.6);
  color: #f27825;
}

.about-btn.accent:hover {
  background: #f27825;
  color: #000;
  transform: translateY(-4px);
}

/* ================= GLASS BUTTON BASE ================= */

.btn,
.about-btn {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 12px 30px rgba(0,0,0,0.35);
}

/* Glass sheen */
.btn::before,
.about-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255,255,255,0.35),
    transparent 80%
  );
  opacity: 0;
  transform: translateX(-120%);
  transition: transform 0.6s ease, opacity 0.6s ease;
}

/* Hover sheen */
.btn:hover::before,
.about-btn:hover::before {
  opacity: 1;
  transform: translateX(120%);
}

.btn:hover,
.about-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 20px 50px rgba(0,0,0,0.45);
}

.btn:active,
.about-btn:active {
  transform: translateY(-1px) scale(0.99);
}

.section-heading {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.32em;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  text-align: center;
  width: 100%;

  color: rgba(255, 255, 255, 0.671);

  text-shadow:
    0 2px 6px rgba(0,0,0,0.45),
    0 0 20px rgba(242,120,37,0.12);

  margin-bottom: 42px;
  margin-top: 10px;
}

/* About heading – frosted active state */
#about .section-heading.is-frosted {
  color: #ffffff;

  text-shadow:
    0 0 12px rgba(255,255,255,0.35),
    0 0 28px rgba(255,255,255,0.18);

}

/* Fix half-window / mid-width layout (tablet & resized desktop) */
@media (max-width: 1200px) and (min-width: 900px) {
  .project-slide {
    min-height: 82vh;
    max-height: 92vh;
  }

  .project-overlay {
    padding: 72px;
  }

  .project-overlay h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
  }
}

@media (max-width: 1200px) and (min-width: 900px) {
  .project-track {
    padding-bottom: 140px;
  }
}

@media (min-width: 1400px) {
  .project-slide {
    max-width: 1300px;
  }
}

/* Hide scrollbar – cross browser */
.project-track {
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE & Edge (legacy) */
}

.project-track::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;              /* Chrome, Safari */
}

.hero-desc.overtype {
  position: relative;
}

/* Grey text */
.hero-desc .base-text .line {
  display: block;
  color: #b5b5b5;
}

/* White overlay */
.hero-desc .type-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-desc .type-layer .line {
  display: block;
  color: #fff;
  line-height: inherit;
}

/* Cursor */
.hero-desc.typing .type-layer .line.active::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: #f27825;
  margin-left: 3px;
  vertical-align: bottom;
}


.hero-desc.done .type-layer .line::after {
  display: none;
}

.hero-desc .type-layer {
  opacity: 0;
}

.hero-desc.typing .type-layer,
.hero-desc.done .type-layer {
  opacity: 1;
}

.project-slide:last-child {
  scroll-snap-align: start;
}
