/* ===================================================
   TechXNavaya — lightweight rebuild
   Vars
=================================================== */
:root {
  --accent: #36B6D7;
  --accent-dark: #2496b4;
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, .75);
  --font-head: 'Raleway', sans-serif;
  --font-alt: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --gap-section: 100px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .3s;
}

a:hover {
  color: #fff;
  text-decoration: none;
}

section {
  padding: var(--gap-section) 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-head p {
  color: var(--text-dim);
}

.separator {
  width: 70px;
  height: 3px;
  background: var(--accent);
  margin: 18px auto;
  border-radius: 2px;
}

.separator.left {
  margin: 18px 0;
}

/* Buttons */
.btn {
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: 1px;
  padding: 1rem 2rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: all .6s;
}

.btn-cyan {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-cyan:hover {
  background: #eee;
  border-color: #eee;
  color: var(--accent);
}

.btn-outline-light2 {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

.btn-outline-light2:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===================== Preloader ===================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
}

.animation-preloader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  transition: opacity .3s ease-out;
}

/* Spinner with logo inside */
.spinner-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
}

.spinner-wrap .spinner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.spinner {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotateZ(360deg);
  }
}

.spinner-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 62px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
}

.spinner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  animation: spinnerLogoSpin 2.5s linear infinite;
}

@keyframes spinnerLogoSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.txt-loading {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: 2px;
  user-select: none;
}

.letters-loading {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, .18);
}

.letters-loading::before {
  content: attr(data-text-preloader);
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  opacity: 0;
  transform: rotateY(-90deg);
  animation: lettersLoading 4s infinite;
}

.letters-loading:nth-child(1)::before {
  animation-delay: .1s
}

.letters-loading:nth-child(2)::before {
  animation-delay: .2s
}

.letters-loading:nth-child(3)::before {
  animation-delay: .3s
}

.letters-loading:nth-child(4)::before {
  animation-delay: .4s
}

.letters-loading:nth-child(5)::before {
  animation-delay: .5s
}

.letters-loading:nth-child(6)::before {
  animation-delay: .6s
}

.letters-loading:nth-child(7)::before {
  animation-delay: .7s
}

.letters-loading:nth-child(8)::before {
  animation-delay: .8s
}

.letters-loading:nth-child(9)::before {
  animation-delay: .9s
}

.letters-loading:nth-child(10)::before {
  animation-delay: 1s
}

.letters-loading:nth-child(11)::before {
  animation-delay: 1.1s
}

@keyframes lettersLoading {

  0%,
  75%,
  100% {
    opacity: 0;
    transform: rotateY(-90deg);
  }

  25%,
  50% {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

.preloader-curtain {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.preloader-curtain .row {
  display: flex;
  height: 100%;
  margin: 0;
}

.loader-section {
  flex: 1;
  padding: 0;
  overflow: hidden;
}

.loader-section .bg {
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  border-right: 1px solid rgba(255, 255, 255, .03);
  transition: transform .8s cubic-bezier(.77, 0, .175, 1);
}

.section-left .bg {
  transform-origin: left;
}

.section-right .bg {
  transform-origin: right;
}

#preloader.loaded .animation-preloader {
  opacity: 0;
}

#preloader.loaded .loader-section .bg {
  transform: scaleX(0);
}

#preloader.loaded .loader-section:nth-child(2) .bg {
  transition-delay: .08s;
}

#preloader.loaded .loader-section:nth-child(3) .bg {
  transition-delay: .08s;
}

#preloader.loaded .loader-section:nth-child(4) .bg {
  transition-delay: .16s;
}

/* ===================== Navbar ===================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  background: transparent;
  transition: background .35s, padding .35s, box-shadow .35s;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  border-radius: 0px;
  background-color: #ffffff00;
  border: none;
  border-bottom: solid 1px #e0e0e0;
  z-index: 9;
  backdrop-filter: blur(10px);
}

.navbar-brand img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
}

.navbar .nav-link {
  color: #fff !important;
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: .5rem 1rem !important;
  position: relative;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--accent) !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, .4);
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* ===================== Hero ===================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: url("../images/hero-bg.webp") center top / cover no-repeat;
}

.accordion-header {
  border: 1px solid white;
  padding-left: 10px;
  padding-right: 10px;
  margin-top: 10px;
}

.accordion-collapse {
  border: 1px solid white;
  padding-left: 10px;
  padding-right: 10px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 15%;
  margin-left: 8%;
}

.hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 4.286rem;
  font-weight: 700;
  line-height: 6.5rem;
}

.hero h4 {
  font-weight: 400;
  letter-spacing: 3px;
  margin-top: 1rem;
  color: var(--text-dim);
  font-family: var(--font-alt);
}

.hero-btns {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================== Reveal on scroll ===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* ===================== About ===================== */
.about-copy p {
  color: var(--text-dim);
}

.accordion-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0 !important;
}

.accordion-button {
  background: transparent;
  color: #fff;
  font-family: var(--font-alt);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 1rem 0;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--accent);
  background: transparent;
}

.accordion-button::after {
  filter: invert(1);
}

.accordion-button:not(.collapsed)::after {
  filter: invert(56%) sepia(45%) saturate(720%) hue-rotate(150deg);
}

.accordion-body {
  color: var(--text-dim);
  padding: 20px;
}

.about-features {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 60px;
  padding-top: 60px;
}

.feat-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(54, 182, 215, .18);
}

.feat-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feat-item h6 {
  font-family: var(--font-alt);
  font-size: .85rem;
  letter-spacing: .5px;
  margin-bottom: .6rem;
}

.feat-item p {
  color: var(--text-dim);
  margin: 0;
}

/* ===================== Featured strip (auto-scroll, CSS only) ===================== */
.featured-banner {
  width: 100%;
  overflow: hidden;
  margin-bottom: 50px;
}

.featured-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.webdesign-banner {
  max-width: 938px;
  margin: 0 auto 40px;
  overflow: hidden;
}

.webdesign-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.featured-strip {
  overflow: hidden;
  position: relative;
  margin: 40px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.featured-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: scrollX 32s linear infinite;
}

.featured-strip:hover .featured-track {
  animation-play-state: paused;
}

.featured-track img {
  height: 400px;
  width: 400px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .6s;
}

.featured-track img:hover {
  transform: scale(1.08);
}

@keyframes scrollX {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ===================== Services ===================== */
.service-item {
  padding: 30px 10px;
  text-align: left;
}

.service-item i {
  font-size: 2rem;
  color: var(--accent);
}

.service-item h6 {
  font-family: var(--font-alt);
  font-size: .85rem;
  letter-spacing: .5px;
  margin-top: 1.2rem;
}

.service-item p {
  color: var(--text-dim);
  margin: 0;
}

/* ===================== Impress CTA ===================== */
.impress {
  position: relative;
  background: url("https://i.ibb.co/CpBDrzFP/image.png") center/cover no-repeat fixed;
  text-align: center;
}

.bkp {
  position: relative;
  background: url("https://techxnavaya.com/assets/images/bkg.jpg") center/cover no-repeat fixed;
  text-align: center;
}

.impress-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.impress h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  text-transform: uppercase;
}

.impress-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

/* ===================== Portfolio ===================== */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity .4s;
}

.portfolio-item:hover .portfolio-hover {
  opacity: 1;
}

.portfolio-hover i {
  color: #fff;
  font-size: 1.2rem;
  border: 1px solid #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .3s;
}

.portfolio-hover i:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.portfolio-tall {
  height: 100%;
  min-height: 280px;
}

/* ===================== Skills ===================== */
.skill-copy p {
  color: var(--text-dim);
}

.skillbar {
  margin-bottom: 28px;
}

.skillbar h6 {
  font-family: var(--font-alt);
  font-size: .8rem;
  letter-spacing: .5px;
  margin-bottom: .6rem;
}

.skillbar-track {
  height: 6px;
  background: rgba(255, 255, 255, .12);
  border-radius: 4px;
  overflow: hidden;
}

.skillbar-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 4px;
  transition: width 1.4s ease;
}

/* ===================== Testimonials ===================== */
.testimonial-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-card p {
  font-size: 1.05rem;
  color: var(--text-dim);
  font-style: italic;
}

.testimonial-card h6 {
  font-family: var(--font-alt);
  font-size: .85rem;
  margin-top: 1.4rem;
}

.testimonial-card .bi-star-fill {
  color: #ffbf00;
  font-size: .8rem;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
  width: 5%;
  opacity: .5;
}

#testimonialCarousel .carousel-control-prev:hover,
#testimonialCarousel .carousel-control-next:hover {
  opacity: 1;
}

/* ===================== Map ===================== */
.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  filter: grayscale(.2);
}

/* ===================== Contact ===================== */
.contact {
  position: relative;
  background: url(../images/contact-bg.webp) center/cover no-repeat fixed;
}

.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact-info p {
  color: var(--text-dim);
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 1.6rem;
}

.social-row a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: .3s;
}

.social-row a:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.form-control {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  border-radius: 2px;
  padding: .8rem 1rem;
}

.form-control:focus {
  background: rgba(255, 255, 255, .09);
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(54, 182, 215, .2);
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, .5);
}

/* ===================== Footer ===================== */
.footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 26px 0;
}

.footer p {
  margin: 0;
  color: var(--text-dim);
  font-size: .85rem;
}

.footer i {
  color: var(--accent);
}

/* ===================== Scroll top ===================== */
#scrollTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .35s;
  z-index: 900;
  border: 0;
}

#scrollTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTop:hover {
  background: #fff;
  color: var(--accent);
}

/* ===================== Lightbox modal ===================== */
#lightboxModal .modal-content {
  background: transparent;
  border: 0;
}

#lightboxModal .btn-close {
  filter: invert(1);
  position: absolute;
  right: 0;
  top: -40px;
}

#lightboxModal img {
  width: 100%;
  border-radius: 4px;
}

/* ===================== Responsive ===================== */

/* Tablet landscape */
@media (max-width: 1199px) {
  .hero h1 {
    font-size: 3.2rem;
    line-height: 4.5rem;
  }
}

/* Tablet portrait */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.6rem;
    line-height: 3.6rem;
  }

  .hero-inner {
    margin-left: 4%;
    margin-top: 20%;
  }

  .navbar-collapse {
    background: rgba(0, 0, 0, 0.92);
    padding: 10px 16px;
    border-radius: 6px;
    margin-top: 8px;
  }

  .navbar .nav-link {
    padding: .6rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .navbar .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .featured-track img {
    height: 280px;
    width: 280px;
  }

  .portfolio-tall {
    min-height: 220px;
  }

  .map-wrap iframe {
    height: 300px;
  }

  .impress {
    background-attachment: scroll;
  }

  .contact {
    background-attachment: scroll;
  }
}

/* Mobile */
@media (max-width: 767px) {
  section {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 2.8rem;
  }

  .hero h4 {
    font-size: .9rem;
    letter-spacing: 2px;
  }

  .hero-inner {
    margin-left: 0;
    margin-top: 0;
    padding: 120px 20px 60px 20px;
  }

  .hero-inner .ms-5 {
    margin-left: 0 !important;
  }

  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
  }

  .hero-btns .btn {
    width: auto;
    min-width: 160px;
    text-align: center;
  }

  .about-features {
    margin-top: 40px;
    padding-top: 40px;
  }

  .feat-item {
    margin-bottom: 24px;
  }

  .featured-track img {
    height: 200px;
    width: 200px;
  }

  .section-head {
    margin-bottom: 35px;
    padding: 0 10px;
  }

  .portfolio-tall {
    min-height: 180px;
  }

  .impress {
    background-attachment: scroll;
  }

  .contact {
    background-attachment: scroll;
  }

  .map-wrap iframe {
    height: 250px;
  }

  #testimonialCarousel .carousel-control-prev,
  #testimonialCarousel .carousel-control-next {
    width: 10%;
  }

  .testimonial-card {
    padding: 0 20px;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info .separator.left {
    margin-left: auto;
    margin-right: auto;
  }

  .social-row {
    justify-content: center;
  }

  .spinner-wrap {
    width: 80px;
    height: 80px;
  }

  .spinner-wrap .spinner {
    width: 80px;
    height: 80px;
  }

  .spinner-logo {
    width: 50px;
    height: 50px;
  }

  .txt-loading {
    font-size: 1.4rem;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
    line-height: 2.4rem;
  }

  .hero h4 {
    font-size: .8rem;
    letter-spacing: 1.5px;
  }

  .hero-inner {
    padding: 110px 16px 50px 16px;
  }

  .featured-track img {
    height: 150px;
    width: 150px;
  }

  .portfolio-tall {
    min-height: 150px;
  }

  .feat-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.2rem;
  }

  .spinner-wrap {
    width: 65px;
    height: 65px;
  }

  .spinner-wrap .spinner {
    width: 65px;
    height: 65px;
  }

  .spinner-logo {
    width: 42px;
    height: 42px;
  }

  .txt-loading {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  .btn {
    font-size: .75rem;
    padding: .85rem 1.6rem;
  }

  #testimonialCarousel .carousel-control-prev,
  #testimonialCarousel .carousel-control-next {
    width: 12%;
  }
}

/* Very small mobile */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.4rem;
    line-height: 2.1rem;
  }

  .hero-inner {
    padding: 100px 14px 40px 14px;
  }

  .featured-track img {
    height: 130px;
    width: 130px;
  }

  .navbar-brand img {
    height: 40px;
    width: 40px;
  }

  .spinner-wrap {
    width: 55px;
    height: 55px;
  }

  .spinner-wrap .spinner {
    width: 55px;
    height: 55px;
  }

  .spinner-logo {
    width: 36px;
    height: 36px;
  }

  .txt-loading {
    font-size: .95rem;
  }
}