/* =========================================================
   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;
}

/* =========================================================
   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;
  }
}

/* =========================================================
   BACK BUTTON 
========================================================= */

.back-btn {
  position: fixed;
  top: 16vh;
  left: 14vw;
  font-size: 2rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 9999;
  transition: transform 0.2s ease, color 0.2s ease;

  outline: none; /* removes the focus outline */
}

.back-btn:focus {
  outline: none; /* ensures no outline when clicked or tabbed */
}

.back-btn:hover {
  transform: scale(1.2);
  color: #ddd;
}


/* =========================================================
   PROJECT
========================================================= */

h3{
    width: 56vw;
    margin: auto;
}
/* BACKGROUND LINES */
.project-section {
  position: relative;
  width: 100%;
  padding: 6rem 10vw;
  color: white;

  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-position: 20% 0, 50% 0, 80% 0;
  background-repeat: no-repeat;
  background-size: 1px 100%, 1px 100%, 1px 100%;
}



    /* FIRST SECTION */
    .first-section h5 {
      font-size: 1rem;
      opacity: 0.7;
      margin-bottom: 00;
    }

    .first-section h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    .first-section h3 {
      font-size: 1.2rem;
      font-weight: 400;
      opacity: 0.8;
      margin-bottom: 2rem;
    }

    .first-section img {
      width: 60vw;
      max-width: 1000px;
      border-radius: 10px;
      margin-top: 2rem;
    }

    .image-zoom-container {
  width: 60vw;                /* keep same as before */
  max-width: 1000px;
  margin: 2rem auto 0;
  overflow: hidden;           /* important: prevents image from overflowing */
  border-radius: 10px;
}

.image-zoom-container img {
  width: 100%;
  transition: transform 0.2s ease-out;
  transform-origin: center center;
}


/* SECOND SECTION */
.second-section {
  max-width: 54vw; /* entire section won't exceed 60vw */
  margin:  0 auto;  /* center the section itself horizontally */
  padding: 2rem 0; /* optional vertical padding */
}

.second-section .info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 5rem; /* spacing below grid */
}

.second-section .info-grid div {
  font-size: 1rem;
  opacity: 0.8;
}

.second-section h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: left; /* left-align heading */
}

.second-section .section-line {
  width: 0; /* start from 0 */
  height: 2px;
  background-color: #f1aa1e;
  margin: 1rem 0;
  transition: width 1s ease-in-out;
}
.second-section .section-line.active {
  width: 54vw; /* final width */
}

.second-section p {
  max-width: 100%;      /* span full width of section */
  margin: 0 0 2rem 0;   /* left-align by removing auto margins */
  opacity: 0.8;
  line-height: 1.6;
  text-align: left;     /* left-align paragraph */
}

.second-section .button-row {
  display: flex;
  flex-wrap: wrap;      
  max-width: 100%;      
  margin: 2rem 0 3rem 0;
}

.second-section .button-box {
  display: inline-block; 
  background-color: white;
  color: #1c0032;
  border-radius: 2px;        
  padding: 0.5rem 0.8rem;    
  text-align: center;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(255,255,255,0.2); 
  cursor: default;            
  white-space: nowrap;        
  transition: transform 0.2s ease;
  
  margin: 0.25rem; /* add margin on all sides for proper gaps */
}

.second-section .button-box:hover {
  transform: translateY(-2px); /* subtle hover lift */
}

    /* CONTENT SECTIONS */
    .content-section{
    position: relative;
  width: 100%;
  padding: 6rem 10vw;
  color: white;

  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-position: 20% 0, 80% 0;
  background-repeat: no-repeat;
  background-size: 1px 100%, 1px 100%, 1px 100%;
}

    .content-section h2 {
      font-size: 2rem;
      margin: 0 auto;
    }

.content-section .line {
  width: 0;                  /* start from 0 */
  height: 3px;
  background: #f1aa1e;
  margin: 0.5rem auto 1.5rem;
  transition: width 0.8s ease-out; /* smooth animation */
}

    .content-section p {
      max-width: 50vw;
      margin: 0 auto;
      opacity: 0.8;
      line-height: 1.6;
    }

    /* Keep everything centered within 60vw */
.content-section {
  position: relative;
  width: 100%;
  padding: 6rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}

.content-section > * {
  max-width: 56vw;
  margin-left: auto;
  margin-right: auto;
}

/* Subheadings */
.sub-heading {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.sub-heading.primary {
  font-size: 1.4rem;
  color: #f1aa1e;
}

.sub-heading.insights {
  font-size: 1.2rem;
  color: white;
}

.sub-heading.secondary {
  font-size: 1.4rem;
  color: #f1aa1e;
}



    /*  SIDE NAVIGATION */
    .side-nav {
      position: fixed;
      top: 50%;
      right: 2vw;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 1rem;
      z-index: 10;
    }

    .side-nav a {
      display: block;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.5);
      transition: all 0.3s ease;
    }

    .side-nav a.active {
      height: 30px;
      width: 12px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 1);
    }


/* =========================================================
   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;
}



/* =========================================================
   ALL RESPONSIVE MEDIA
========================================================= */
@media (max-width: 700px) {
  .description span {
    font-size: 1rem;
  }

}

@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 */
  }
}

@media screen and (max-width: 800px){
  .banner { 
    min-height: 100vh;
    height: max-content;
  }
}

@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 */
  }
}

@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 */
  }

}

@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 */
}


@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 */
}


/* Video */
.video-section {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .video-wrapper {
      position: relative;
      width: min(900px, 90%);
      aspect-ratio: 16/9;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
    video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
.mute-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  outline: none;        /* 🔥 removes white outline */
}
.mute-btn:focus {
  outline: none;        /* extra safety */
  box-shadow: none;     /* removes glow on some browsers */
}
.mute-btn:hover {
  background: rgba(0,0,0,0.8);
}