/* =========================================================
   GLOBAL / RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

html {
  scroll-behavior: smooth;
}

body {
  padding-top: 90px;
}

.background {
  background-color: #18181c;
}

html, body {
  height: 100%;
  background: #18181c;
  overscroll-behavior: none;
}

/* =========================================================
   CURSOR
========================================================= */
html:not(.no-custom-cursor) body {
  cursor: none;
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 2147483647;
}

#custom-cursor::before,
#custom-cursor::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#custom-cursor::before {
  width: 26px;
  height: 26px;
  border: 2px solid transparent;
}

#custom-cursor::after {
  width: 30px;
  height: 30px;
  border: 1px solid #fff;
  opacity: 0.8;
}
/* =========================================================
   INTRO
========================================================= */
#intro-overlay {
  position: fixed;
  inset: 0;
  background: #f1aa1e;
  z-index: 9999;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Base lines */
.line {
  position: absolute;
  background: #1c0032;
}

.line.vertical {
  top: 0;
  width: 2px;
  height: 100%;
}
.line.v1 { left: 25%; }
.line.v2 { left: 50%; }
.line.v3 { left: 75%; }

/* Expanding box */
.expanding-box {
  position: absolute;
  background: #18181c;
  width: 50%;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}
.intro-text {
  color: #f0eee8;
  opacity: 0;
  text-align: center;
}

.intro-text .title {
  font-size: 4rem;
}
.intro-text .subtitle {
  font-size: 2rem;
  margin-top: 20px;
}

@media screen and (max-width: 900px) {

  .intro-text .title {
  font-size: 2rem;
}
.intro-text .subtitle {
  font-size: 1rem;
  margin-top: 10px;
}
}

@media screen and (max-width: 500px) {

  .intro-text .title {
  font-size: 1.5rem;
}
.intro-text .subtitle {
  font-size: 0.8rem;
  margin-top: 10px;
}
}

/* White overlay lines */
.line.white {
  background: #f0eee8;
  opacity: 0;
}

.line.white.vertical {
  top: 0;
  width: 2px;
  height: 100%;
  background: #f0eee8;
  transform: scaleY(0);
  transform-origin: bottom;
  opacity: 0;
  z-index: 100;   /* ensure above black box */
}



.line.white.vertical.w1 { left: 20%; }
.line.white.vertical.w2 { left: 50%; }
.line.white.vertical.w3 { left: 80%; }

/* Full-screen reveal box */

.reveal-box {
  position: absolute;
  top: 0;         
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #18181c; 
  box-shadow: 0px -2px 0px 0px #f0eee8 inset;
  opacity: 0;        
  z-index: 40;
}

.reveal-box2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;                     /* half screen height */
  background-color: #18181c;        /* same dark color */
  border-top: 2px solid #f0eee8;      /* top border instead of bottom shadow */
  box-shadow: none;
  opacity: 0;                       /* hidden initially */
  z-index: 99;                     /* above everything except vertical lines (z-index: 100) */
}

.reveal-box3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;                     /* half screen height */
  background-color: #18181c;        /* same dark color */
  border-top: 2px solid #f0eee8;      /* top border instead of bottom shadow */
  box-shadow: none;
  opacity: 0;                       /* hidden initially */
  z-index: 99;                     /* above everything except vertical lines (z-index: 100) */
  display: none;
}

.reveal-box4 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10vh;                     /* half screen height */
  background-color: #18181c;        /* same dark color */
  border-top: 2px solid #f0eee8;      /* top border instead of bottom shadow */
  box-shadow: none;
  opacity: 0;                       /* hidden initially */
  z-index: 99;                     /* above everything except vertical lines (z-index: 100) */
  display: none;
}

/*  Banner text */

.banner-wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 30;
  overflow: visible;
  opacity: 0; /* hidden initially for GSAP */
}

.intro-banner {
  position: relative;  /* container for absolutely positioned spans */
  width: 100%;
  font-size: clamp(1rem, 4vw, 6rem);                      
  font-weight: 800;                     
  letter-spacing: 0.2em;                
  color: #f0eee8;
  text-transform: uppercase;           
  line-height: 1.1;                    
}

.intro-banner span {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);  /* center word on its assigned left */
}

/* Correct column centers */
.intro-banner span:nth-child(1) { left: 10%; }
.intro-banner span:nth-child(2) { left: 35%; }
.intro-banner span:nth-child(3) { left: 65%; }
.intro-banner span:nth-child(4) { left: 90%; }


@media screen and (max-width: 800px) {
  /* Hide side vertical lines */
  .line.v1, 
  .line.v3,
  .line.white.vertical.w1,
  .line.white.vertical.w3 {
    display: none;
  }

/* Reset banner wrapper for mobile */
  .banner-wrapper {
    top: 0;              /* no vertical centering */
    transform: none;     /* allow spans to use vh values */
    height: 100vh;       /* make it fill the screen */
  }

  .intro-banner {
    position: relative;
    width: 100%;
    font-size: clamp(1rem, 8vw, 3rem);
    letter-spacing: 0.15em;
  }

  .intro-banner span {
    position: absolute;
    transform: translateX(-50%); /* only horizontal centering */
  }

  /* Row 1 */
  .intro-banner span:nth-child(1) { 
    top: 32vh; 
    left: 25%; 
  }
  .intro-banner span:nth-child(2) { 
    top: 32vh; 
    left: 75%; 
  }

  /* Row 2 */
  .intro-banner span:nth-child(3) { 
    top: 66vh; 
    left: 25%; 
  }
  .intro-banner span:nth-child(4) { 
    top: 65vh; 
    left: 75%; 
  }

  .reveal-box2 {
display: none;
  height: 10vh;                     /* half screen height */
                   /* above everything except vertical lines (z-index: 100) */
}

.reveal-box3{
  display: block;
  height: 10vh;
}

.reveal-box4{
  display: block;
}


}

/* =========================================================
   NAVBAR
========================================================= */

/* Navbar wrapper */
.site-navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);   /* keep navbar centered */
  width: 100%;                   /* full width initially */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #f1aa1e;
  border: none;
  transition: width 0.35s ease, padding 0.25s ease, background 0.25s ease, border-radius 0.25s ease;
  z-index: 9999;
}

/* ================= SCROLLED STATE ================= */
.site-navbar.scrolled {
  background: rgba(18, 15, 31, 0.95);
  border-radius: 50px;
  padding: 10px 15px;
  margin-top: 10px;
}

@media (min-width: 1200px) {
  .site-navbar.scrolled {
    width: 60%;
  }
}

@media (max-width: 1199px) {
  .site-navbar.scrolled {
    width: 90%;
  }
}

/* ================= NAVBAR LINKS ================= */
.navbar-center .navbar-list {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-center .navbar-list li a,
.contact-btn {
  padding: 12px 18px; /* bigger clickable area */
  border-radius: 24px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.navbar-center .navbar-list li a {
  color: #f0eee8;
}

.navbar-center .navbar-list li a:hover {
  background: #e0e0e0;
  color: black;
}

/* ================= NAV ICONS ================= */
.nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  position: relative;
  top: -2px; /* small vertical adjustment */
  filter: brightness(0) invert(1); /* white */
  transition: filter 0.2s ease;
}

.navbar-list li a:hover .nav-icon,
.contact-btn:hover .nav-icon {
  filter: brightness(0) invert(0); /* turn black on hover */
}

/* ================= PROFILE IMAGE ================= */
.navbar-left .mehal {
  height: 50px;
  width: 50px;
  border-radius: 50%; /* circular */
  cursor: pointer;
}

/* ================= CONTACT BUTTON ================= */
.contact-btn {
  color: #f0eee8;
  background-color: #f1b53b;
}

.contact-btn:hover {
  background: #e0e0e0;
  color: black;
  text-decoration: none;
}

/* ================= RESPONSIVENESS ================= */
@media screen and (max-width: 800px) {
  .navbar {
    flex-direction: column;
    padding: 15px;
  }

  .navbar-center .navbar-list {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .navbar-right {
    margin-top: 10px;
  }

  .navdp {
    display: block;
    margin: auto;
  }
}

/* ================= HAMBURGER BASE ================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 10000;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.35s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Cross (X) state */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}



/* ================= DROPDOWN MENU ================= */
.navbar-dropdown {
  display: flex;
  position: absolute;
  top: 100%; /* just below navbar */
  left: 0;
  width: 100%;
  background: rgba(18, 15, 31, 0.95);
  flex-direction: column;
  align-items: center;
  border-radius: 0 0 20px 20px;

  /* hidden state */
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-10px);
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
}

.navbar-dropdown a {
  width: 100%;
  text-align: center;
  padding: 15px 0;
  color: #f0eee8;
  text-decoration: none;
  border-radius: 0;

  /* hidden state for items */
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar-dropdown a:hover {
  background: #e0e0e0;
  color: black;
}

/* visible state */
.navbar-dropdown.show {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.navbar-dropdown.show a {
  opacity: 1;
  transform: translateY(0);
}


/* ================= MOBILE RESPONSIVE ================= */
@media (max-width: 900px) {
  .navbar-center,
  .navbar-right {
    display: none; /* hide old layout */
  }

  .hamburger {
    display: flex; /* show hamburger */
    margin-right: 16px;
  }

  .navbar-dropdown.show {
    display: flex; /* reveal dropdown */
  }

  .navcenter{
    margin: 20px 0 0;
  }

  .contact-btn{
     margin-top: 0;
  }

  /* Keep navbar-center links plain white */
  .navbar-dropdown .navbar-list a {
    background: none !important;
    color: #fff !important;
  }

  .navbar-dropdown .navbar-list a:hover {
    background: none !important;
    color: #fff !important;
  }

  /* Keep icons white (no hover flip) */
  .navbar-dropdown .navbar-list .nav-icon {
    filter: brightness(0) invert(1) !important;
  }

  .navbar-dropdown .navbar-list a:hover .nav-icon {
    filter: brightness(0) invert(1) !important;
  }

}

@media (min-width: 901px){
  .navbar-dropdown{
    display: none;
  }
}


/* ==========================
   DOTS
========================== */
#dotgrid {
  display: flex;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
}

svg {
  width: 100vw;
  height: 100vh;
  display: block;
  overflow: visible !important;
}
  
circle {
  fill: #565666;
}

/* =========================================================
   BANNER
========================================================= */
#dotgrid, 
.banner, 
#portfolio {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

#portfolio{
  z-index: 5;
}

[data-parallax] {
  will-change: transform;
}

.banner {
  position: relative;
  z-index: 3;
  background-size: cover;
  background-position: center;
  height: 88vh;
  justify-content: center;
  align-items: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}


.banner-text {
  position: absolute;   /* escape flexbox */
  top: 65%;             /* adjust vertical placement */
  left: 50%;            /* center horizontally */
  transform: translateX(-50%); /* re-center after left:50% */
  
  width: 100%;          /* full width */
  text-align: center;   /* center text inside */
  color: #fff;
  z-index: 100;
}


#intro {
  position: fixed;
  inset: 0;
  background: #18181c;
  z-index: 2;
  overflow: hidden;
}


.banner-wrapper2 {
  position: absolute;
  top: 46%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  z-index: 2;
  overflow: visible;
    opacity: 1; /* stays visible */ /* not needed anymore, but keep text safe */
}

.intro-banner2 {
  position: relative;  /* container for absolutely positioned spans */
  width: 100%;
  font-size: clamp(1rem, 4vw, 6rem);                       
  font-weight: 800;                     
  letter-spacing: 0.2em;                
  color: #f0eee8;
  text-transform: uppercase;     
  z-index: 2;      
  line-height: 1.1;                     
}

.intro-banner2 span {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);  /* center word on its assigned left */
}

/* Correct column centers */
.intro-banner2 span:nth-child(1) { left: 10%; }
.intro-banner2 span:nth-child(2) { left: 35%; }
.intro-banner2 span:nth-child(3) { left: 65%; }
.intro-banner2 span:nth-child(4) { left: 90%; }


.reveal-box-fix {
  position: absolute;
  top: 40.5vh;
  left: 0;
  width: 100%;
  height: 20vh;                     /* half screen height */
  background-color: #18181c;        /* same dark color */
  border-top: 2px solid #f0eee8;      /* top border instead of bottom shadow */
  box-shadow: none;
  opacity: 1;                       /* hidden initially */
  z-index: 99;                     /* above everything except vertical lines (z-index: 100) */
}

.reveal-shortbox-1 {
  position: absolute;
  top: 25.5vh;
  left: 0;
  width: 100%;
  height: 10vh;                     /* half screen height */
  background-color: #18181c;        /* same dark color */
  border-top: 2px solid #f0eee8;      /* top border instead of bottom shadow */
  box-shadow: none;
  opacity: 1;                       /* hidden initially */
  z-index: 99;                     /* above everything except vertical lines (z-index: 100) */
  display: none;
}

.reveal-shortbox-2 {
  position: absolute;
  top: 58.5vh;
  left: 0;
  width: 100%;
  height: 10vh;                     /* half screen height */
  background-color: #18181c;        /* same dark color */
  border-top: 2px solid #f0eee8;      /* top border instead of bottom shadow */
  box-shadow: none;
  opacity: 1;                       /* hidden initially */
  z-index: 99;                     /* above everything except vertical lines (z-index: 100) */
  display: none;
}

.description {
  position: relative;       /* reference box */
  display: block;
  width: 100%;
  font-size: 2.2rem;        /* smaller than heading */
  font-weight: 500;
  color: #f0eee8;
  text-transform: uppercase;
  margin-top: -10rem;         /* vertical gap under heading */
  line-height: 1.2;
}

.description span {
  position: absolute;
  transform: translate(-50%, -50%);
}

/* Use the same column centers as .intro-banner2 */
.description span:nth-child(1) { left: 10%; }
.description span:nth-child(2) { left: 35%; }
.description span:nth-child(3) { left: 65%; }
.description span:nth-child(4) { left: 90%; }


@media (max-width: 700px) {
  .description span {
    font-size: 1rem;
  }
}

.banner-text h1 {
  text-align: center;
  font-size: 130px;
  text-decoration: solid;
  z-index: 200;
}

.banner-text p {
  text-align: center;
  font-size: 20px;
  font-style: italic;
  z-index: 200;
}

.banner-btn {
  position: absolute;
  text-align: center;
  top: 70vh;
  left: 60%;
  padding: 0;
  z-index: 100;
}

.banner-btn a {
  text-decoration: none;
  width: 150px;
  display: inline-block;
  margin: 0 10px;
  padding: 12px 0;
  color: #fff;
  border: 0.5px solid #fff;
  position: relative;
  z-index: 1;
  transition: color 0.5s;
}

@media (max-width: 800px) {
  .banner-btn {
    left: 50%;       /* move container toward left */
  }

}

@media (max-width: 550px) {
  .banner-btn a {
    width: 100px;          /* smaller width */
    white-space: normal;    /* allow text to wrap to next line */
    text-align: center;     /* center text inside the button */
    padding: 10px 0;        /* adjust vertical padding if needed */
  }
}



.banner-btn a span {
  width: 100%;
  height: 0;
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  z-index: -1;
}

.banner-btn a:hover span {
  width: 100%;
  height: 100%;
  transition: 0.5s;
}

.banner-btn a:hover {
  color: rgb(34, 34, 34);
  text-decoration: none;
}
.imgbg{
  z-index: 2;
}
.banner-text .but-text {
  position: relative;
  max-width: 24vw;
  text-align: left;
  left: 22vw;
  top: 10vh;
  font-size: 15px;
  z-index: 100;
}

@media screen and (max-width: 800px){
  .banner { 
    min-height: 100vh;
    height: max-content;
  }
}

/*Headings*/
h2 {
  font-size: 2.4rem;
  font-family: 'Kaushan Script', cursive;
  margin: 30px;
  color: rgb(34, 34, 34);
}

.Headings {
  padding-top: 5vh;
  padding-bottom: 6vh;
  color: #fff;
  text-decoration: solid;
}

@media screen and (max-width: 400px) {
  .Headings {
    border-top: 0px solid rgba(211, 211, 211, 0.5);
  }
}

/* Banner text animation */
@keyframes slideDownFade {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animation with staggered delays */

.banner-text .description {
  animation: slideDownFade 0.6s ease-out forwards;
  animation-delay: 5.6s;
  opacity: 0;
}

.banner-text .but-text {
  animation: slideDownFade 0.6s ease-out forwards;
  animation-delay: 5.8s;
  opacity: 0;
}

.banner-btn {
  animation: slideDownFade 0.6s ease-out forwards;
  animation-delay: 6s;
  opacity: 0;
}

@media screen and (max-width: 800px) {
  /* Hide side vertical lines */
  .line.v1, 
  .line.v3,
  .line.white.vertical.w1,
  .line.white.vertical.w3 {
    display: none;
  }

/* Reset banner wrapper for mobile */
  .banner-wrapper2 {
    top: 0;              /* no vertical centering */
    transform: none;     /* allow spans to use vh values */
    height: 100vh;       /* make it fill the screen */
  }

  .intro-banner2 {
    position: relative;
    width: 100%;
    font-size: clamp(1rem, 8vw, 3rem);
    letter-spacing: 0.15em;
  }

  .intro-banner2 span {
    position: absolute;
    transform: translateX(-50%); /* only horizontal centering */
  }

  /* Row 1 */
  .intro-banner2 span:nth-child(1) { 
    top: 22.5vh; 
    left: 25%; 
  }
  .intro-banner2 span:nth-child(2) { 
    top: 22.5vh; 
    left: 75%; 
  }

  /* Row 2 */
  .intro-banner2 span:nth-child(3) { 
    top: 55.5vh; 
    left: 25%; 
  }
  .intro-banner2 span:nth-child(4) { 
    top: 55.5vh; 
    left: 75%; 
  }

  .reveal-box-fix{
    display: none;
  }

  .reveal-shortbox-1 {
  display: block;
  height: 10vh;                     /* half screen height */
                   /* above everything except vertical lines (z-index: 100) */
}

.reveal-shortbox-2{
  display: block;
  height: 10vh;
}


/* Apply animation with staggered delays */

.banner-text .description {
  animation-delay: 5.8s;
}

.banner-text .but-text {
  animation-delay: 6s;
}

.banner-btn {
  animation-delay: 6.2s;
}


}

/* =========================================================
   MAIN PROJECTS
========================================================= */

.works {
  position: relative;
  overflow: hidden;
  background: #18181c;
  padding: 50px 0;
  margin-bottom: 80vh;
}

.card-stack {
  position: relative;
  width: 70vw;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.work-card {
  position: sticky;
  top: 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: #202026;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  margin-bottom: 50px;
  color: #fff;
  text-decoration: none;
  height: 70vh;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform-origin: center top;
  opacity: 1;
  z-index: 1;
}

.work-card.shrink {
  transform: scale(0.7);
  opacity: 0.7;
  z-index: 0;
}

.work-card.next-peek {
  transform: scale(0.85);
  opacity: 1;
  z-index: 1;
}

.work-card.active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
}

.card-image {
  flex: 1.5;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-text {
  flex: 1;
  padding: 30px;
  text-align: left;
  color: #fff;
}

.card-text h3 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-align: left;
}

.card-text p {
  font-size: 1.1rem;
  color: #ccc;
  text-align: left;
}

.description-card {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.5;
  text-align: left;
}

.work-card {
  flex: 1.5;
  transform: scale(0.5);   /* start at 50% */
  transition: transform 0.6s ease;
}

.work-card.visible {
  transform: scale(1);     /* animate to 100% */
}

@media (max-width: 1000px) {
  .work-card {
    flex-direction: column;   /* stack image above text */
    height: auto;             /* let height adjust to content */
  }

  .card-image {
    width: 100%;              /* full width for image */
    flex: none;               /* remove flex shrink/grow */
    height: 300px;            /* optional fixed height */
  }

  .card-image img {
    height: 100%;             /* fill container */
    object-fit: cover;        /* crop instead of squish */
  }

  .card-text {
    width: 100%;              /* full width */
    flex: none;
    padding: 20px;            /* adjust padding for small screens */
  }

  .card-text h3 {
    font-size: 1.5rem;        /* smaller heading */
  }

  .card-text p, .description-card {
    font-size: 1rem;          /* smaller text */
  }
}


/* =========================================================
   3D MODELLING
========================================================= */

.video-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #f0eee8;
  z-index: 1;
}

.overlay h1 {
  font-size: 3rem;
  margin: 0;
}

.overlay p {
  font-size: 1.5rem;
  margin-top: 10px;
}


/* =========================================================
   NO CODE TOOLS
========================================================= */

.nocode-section {
  position: relative;
  width: 100%;
  height: 180vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18181c;
}

.nocode-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300%;
  display: flex;
  flex-direction: column;
  z-index: 0;
  pointer-events: none;
}

.nocode-line {
  font-size: 3rem;
  font-weight: 800;
  color: #232329;
  line-height: 1.4;
  white-space: nowrap;
}

.nocode-line::after {
  content: ' NO CODE TOOLS NO CODE TOOLS NO CODE TOOLS NO CODE TOOLS NO CODE TOOLS NO CODE TOOLS NO CODE TOOLS';
}

.nocode-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  width: 80%;
  max-width: 1200px;
}

.nocode-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.nocode-line span {
  display: inline-block;
  margin: 0.3%;
}

.nocode-card img {
  width: 100%;
  height: auto;
  display: block;
}

.nocode-card p {
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  background: #fafafa;
}

.nocode-card.tall { grid-row: span 2; }
.nocode-card.wide { grid-column: span 2; }

.nocode-boxes {
  position: absolute;
  top: 1%;
  left: 1%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  gap: 20px;
  z-index: 1;
  padding: 0;
  width: 98%;
}

.finora {
  position: absolute;
  top:20vh;
  left: 10%;
  z-index: 2;
}

.shopify {
  position: absolute;
  top: 35vh;
  left: 60%;
  z-index: 2;
}

.futura {
  position: absolute;
  top: 60vh;
  left: 25%;
  z-index: 2;
}

.gsa {
  position: absolute;
  top: 80vh;
  left: 70%;
  z-index: 2;
}

.montage {
  position: absolute;
  top: 110vh;
  left: 10%;
  z-index: 2;
}

.bento {
  position: absolute;
  top: 120vh;
  left: 50%;
  z-index: 2;
}

.nocode-box {
  width: 20%;
  min-width: 150px;
  background: #202026;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.nocode-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.nocode-box p {
  padding: 10px;
  font-size: 1rem;
  margin: 0;
}

.nocode-box:hover {
  transform: scale(1.05);
}

.nocode-links{
  color: #f0eee8;
}

.nocode-links:hover{
  text-decoration: none;
  color: #f1b53b;
}

@media (max-width: 1000px) {
  .nocode-boxes {
    position: relative;         /* remove absolute positioning */
    display: grid;              /* turn into a grid */
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 20px;                  /* spacing between boxes */
    width: 90%;                 /* container width */
    margin: 0 auto;             /* center horizontally */
  }

  /* Reset individual boxes */
  .nocode-box {
    position: relative;         /* remove previous absolute positions */
    top: auto;                  /* reset top */
    left: auto;                 /* reset left */
    width: 100%;                /* fill grid column */
    min-width: unset;           /* remove min-width */
  }

  /* Optional: adjust image height for consistency */
  .nocode-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
}

@media (max-width: 800px) {
  .nocode-boxes {
    display: grid;
    grid-template-columns: 1fr;  /* single column */
    width: 65%;                 /* container stays full width */
    gap: 15px;                   /* spacing between boxes */
    justify-items: center;       /* center the single column boxes */
  }

  .nocode-box {
    width: 65%;                  /* each box takes 80% of container */
  }

  .nocode-box img {
    width: 100%;   
    height: auto;            /* adjust image height if needed */
  }
}

@media (max-width: 500px) {
  .nocode-boxes {
 /* single column */
    width: 80%;                 /* container stays full width */
     /* center the single column boxes */
  }

  .nocode-box {
    width: 80%;                  /* each box takes 80% of container */
  }

}



/* =========================================================
   LAST PROJECTS
========================================================= */

#other-projects {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 100px 0;
}

.op-container {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.op-card {
  display: flex;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  border-radius: 16px;
}

.op-card-left,
.op-card-right {
  position: relative;
  overflow: hidden;
  transition: width 0.4s ease;
}

.op-card-left {
  width: 60%;
  position: relative;
}

.op-card-right {
  width: 40%;
  background: #202026;
  color: #f0eee8;
  display: flex;
  align-items: flex-end;   /* top of container */
  justify-content: flex-start; /* left side */
  position: relative;
}

.op-card.inverted .op-card-left {
  width: 40%;
  background: #202026;
  color: #f0eee8;
  display: flex;
  align-items: flex-end;   /* top of container */
  justify-content: flex-start; /* left side */
}

.op-card.inverted .op-card-right {
  width: 60%;
}

.op-card-left img,
.op-card-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.op-overlay {
  position: absolute;
  inset: 0;
  background: #f1aa1e;
  opacity: 60%;
  pointer-events: none;
}

.op-text {
  position: absolute;   /* anchor inside parent */
  bottom: 0;            /* stick  to bottom */
  left: 0;              /* stick to left */
  width: 100%;          /* span full width */
  padding: 20px;
  text-align: left;
  box-sizing: border-box;
}


.op-text h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.op-text p {
  font-size: 1rem;
  line-height: 1.4;
}

.op-card-right:hover {
  width: 60% !important;
}

.op-card.inverted .op-card-left:hover {
  width: 60% !important;
}

.op-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

@media (max-width: 900px) {
  .op-card,
  .op-card.inverted {
    flex-direction: column;
    height: auto;
    width: 100%;          /* full container width */
  }

  .op-card-left,
  .op-card-right {
    width: 100% !important;   /* force full width */
    height: auto;
    flex: none;
    padding: 0;               /* remove any leftover padding */
  }

  /* Image adjustments */
  .op-card-left img,
  .op-card-right img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    display: block;
  }

  /* Ensure text spans full width */
  .op-text {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }

  /* Correct order: image first, text below */
  .op-card:not(.inverted) .op-card-left { order: 0; }
  .op-card:not(.inverted) .op-card-right { order: 1; }

  .op-card.inverted .op-card-right { order: 0; } /* image first */
  .op-card.inverted .op-card-left { order: 1; }  /* text second */
}




/* =========================================================
   LET'S WORK TOGETHER
========================================================= */

.scrolling-text-section {
  width: 100%;
  overflow: hidden;
  background-color: #18181c;
  padding: 40px 0;
  position: relative;
}

.scrolling-wrapper {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: scrollRight 15s linear infinite;
}

.scrolling-text {
  font-size: clamp(2rem, 8vw, 8rem);
  font-weight: bold;
  color: #f1aa1e;
  white-space: nowrap;
}

@keyframes scrollRight {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-20%);
  }
}


/* =========================================================
   FOOTER
========================================================= */

.bottom-footer {
  width: 100%;
  padding: 60px 5% 40px 5%;
  background-color: #18181c;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

/* ---- Top row: links ---- */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-links a {
  color: #fff;
  text-decoration: none; /* remove default underline */
  font-size: 0.95rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.footer-links a .link-text {
  position: relative;
}

.footer-links a .link-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer-links a:hover .link-text::after {
  transform: scaleX(1); /* underline only under text */
}

.footer-links a .icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-links a:hover .icon {
  transform: translateX(4px) rotate(-45deg); /* rotate only the arrow */
}

.footer-links a:hover {
  text-decoration: none !important;
  color: #fff;
}


/* ---- Bottom row: email, text, copyright ---- */
.footer-bottom {
  position: relative;
  text-align: center;
  padding-top: 20px;
}

.footer-email {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

.footer-email a {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-email a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.footer-email a:hover::after {
  transform: scaleX(1);
}

.footer-text {
  font-size: 0.9rem;
  margin: 0;
}

.footer-right {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-size: 0.9rem;
}


@media (max-width: 1400px) {

    .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 15px; /* reduce spacing for stacked look */
    margin-bottom: 30px;
  }

    .footer-links a {
    font-size: 1.1rem; /* increase font size */
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* spacing between stacked items */
    padding-top: 0; /* optional: adjust spacing */
  }

  .footer-email,
  .footer-right {
    position: static;
    transform: none;
  }

  .footer-email{
    padding-bottom: 30px;
  }
}

.footer-email a:visited {
  color: #fff; /* also keep visited white */
}

.footer-email a:hover,
.footer-email a:active {
  color: #fff; /* stay white on hover/click */
}


/* REMOVE BLUE LINKS */
/* Remove link highlight effect */
.work-card,
.op-card,
.op-card.inverted,
.op-card-link {
  text-decoration: none;       /* remove underline */
  color: inherit;              /* keep text color same */
}

/* Prevent blue text selection highlight on hover/focus */
.work-card:hover,
.op-card:hover,
.op-card.inverted:hover,
.op-card-link:hover,
.work-card:focus,
.op-card:focus,
.op-card.inverted:focus,
.op-card-link:focus {
  outline: none;
  text-decoration: none;
  color: inherit;
}

/* Extra: remove the "tap highlight" on mobile */
.work-card,
.op-card,
.op-card.inverted,
.op-card-link {
  -webkit-tap-highlight-color: transparent;
}