/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --white-color: hsl(0, 0%, 100%);
  --black-color: hsl(0, 0%, 0%);
  --bg-color: hsl(0, 2%, 10%);
  --bg-transparent: hsla(0, 2%, 10%);
  --bg2-transparent: hsla(0, 2%, 10%, 0.99);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font:"Montserrat", sans-serif;
  --h1-font-size: 1.5rem;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
    background: 
    radial-gradient(circle at 30% 30%, #20282D, transparent 70%),  /* dark top-left */
    radial-gradient(circle at 70% 70%, #20282D, transparent 70%),  /* dark bottom-right */
    radial-gradient(circle at 60% 50%, #9FF14E, transparent 70%); /*  green glow bottom center */
  background-color: #1a1919; /* base fallback */
  background-size: 200% 200%;
  animation: auroraShift 10s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { background-position: 20% 20%, 80% 80%, 50% 100%; }
  50%  { background-position: 80% 30%, 20% 70%, 50% 90%; }
  100% { background-position: 30% 80%, 70% 20%, 50% 95%; }
}
ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  /* max-width: 1120px; */
  max-width: 1800px;
  margin-inline: 1.5rem;
}








/* ================= PRELOADER ================= */
/* Preloader container */
#preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #000; /* change if needed */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

/* Hidden state (when finished) */
#preloader.hidden {
  opacity: 0;
  transform: translateY(-30px); /* slide up */
  visibility: hidden;
}

/* Loader text styling */
#loader-text {
  margin-bottom: 20px; /* space between % and loader */
  font-weight: bold;
  font-size: 2rem;
  color: #9ff14e; /* your theme color */
  text-align: center;
}

/* Loader animation */
.loader {
  width: 48px;
  height: 48px;
  position: relative;
}

.loader:before {
  content: '';
  width: 48px;
  height: 5px;
  background: #000;
  opacity: 0.25;
  position: absolute;
  top: 60px;
  left: 0;
  border-radius: 50%;
  animation: shadow 0.5s linear infinite;
}

.loader:after {
  content: '';
  width: 100%;
  height: 100%;
  background: #fff;
  animation: bxSpin 0.5s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 4px;
}

@keyframes bxSpin {
  17% { border-bottom-right-radius: 3px; }
  25% { transform: translateY(9px) rotate(22.5deg); }
  50% { transform: translateY(18px) scale(1, .9) rotate(45deg); border-bottom-right-radius: 40px; }
  75% { transform: translateY(9px) rotate(67.5deg); }
  100% { transform: translateY(0) rotate(90deg); }
}

@keyframes shadow {
  0%, 100% { transform: scale(1, 1); }
  50% { transform: scale(1.2, 1); }
}

/* ================= PRELOADER /END ================= */






/*=============== HEADER & NAV ===============*/
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  /* background-color: var(--bg-transparent); */
  background-color: transparent;
  transition: background-color 0.4s ease;
  z-index: var(--z-fixed);
}

/* When scrolled */
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.099);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* border: 1px solid rgba(255, 255, 255, 0.18); */
}

.nav {
  position: relative;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--white-color);
  font-weight: var(--font-medium);
}

/* Style the picture container */
.nav__logo picture {
  display: block;
  width: 200px;
  height: auto;
}

/* Make the image fill the picture container responsively */
.nav__logo picture img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-width: 100%;
}

/* Responsive scaling */
@media screen and (max-width: 1150px) {
  .nav__logo picture {
    width: 120px;
  }
}

@media screen and (max-width: 480px) {
  .nav__logo picture {
    width: 120px;
  }
}

.nav__close, 
.nav__toggle {
  display: flex;
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {

  .nav__menu {
    position: fixed;
    left: -100%;
    top: 0;
    background-color: var(--bg2-transparent);
    width: 100%;
    height: 100%;
    padding: 6rem 3.5rem 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: left .4s;
  }

  .nav__item {
    transform: translateX(-150px);
    visibility: hidden;
    transition: transform .4s ease-out, visibility .4s;
  }

  .nav__social__desk {
    display: none;
  }
  
  .nav__item:nth-child(1) {
    transition-delay: .1s;
  }
  .nav__item:nth-child(2) {
    transition-delay: .2s;
  }
  .nav__item:nth-child(3) {
    transition-delay: .3s;
  }
  .nav__item:nth-child(4) {
    transition-delay: .4s;
  }
  .nav__item:nth-child(5) {
    transition-delay: .5s;
  }
}


.nav__list, 
.nav__social {
  display: flex;
}

.nav__list {
  flex-direction: column;
  row-gap: 3rem;
}

.nav__link {
  position: relative;
  color: var(--white-color);
  font-size: var(--h1-font-size);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  transition: opacity .4s;
}

.nav__link i {
  font-size: 2rem;
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}

.nav__link span {
  position: relative;
  transition: margin .4s;
}

.nav__link span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: #78ff00;
  transition: width .4s ease-out;
  box-shadow: 0px 02px 6px #78ff00, 0px 02px 6px #78ff00;
}

/* Animation link on hover */
.nav__link:hover span {
  margin-left: 2.5rem;
}

.nav__link:hover i {
  opacity: 1;
  visibility: visible;
  /* box-shadow: 8px 8px 80px #78ff00, 8px 8px 80px #78ff00; */
}

.nav__link:hover span::after {
  width: 100%;
}

/* Sibling fade animation */
.nav__list:has(.nav__link:hover) .nav__link:not(:hover) {
  opacity: .4;
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.nav__social {
  column-gap: 1rem;
}

.nav__social-link {
  color: var(--white-color);
  font-size: 1.5rem;
  transition: all .4s ease;
}

.nav__social-link:hover {
  transform: translateY(-.25rem);
  color: #78ff00;
}

/* Show menu */
.show-menu {
  left: 0;
}

/* Animation link when displaying menu */
.show-menu .nav__item {
  visibility: visible;
  transform: translateX(0);
}

/*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (min-width: 1150px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + .5rem);
  }

  .nav__toggle, 
  .nav__close {
    display: none;
  }

  .nav__link {
    font-size: var(--normal-font-size);
  }

  .nav__link i {
    font-size: 1.5rem;
  }

  .nav__list {
    flex-direction: row;
    column-gap: 3.5rem;
    margin-right: 90px;
  }

  .nav__menu {
    display: flex;
    align-items: center;
    column-gap: 3.5rem;
  }

  .nav__social__desk {
    display: flex;
    column-gap: 1rem;
  }

  .nav__social {
    display: none;
  }

}
/* ================================NAVBAR-END=============================== */



/* ======================== WHY NOXBLOC ========================== */
.noxbloc-section-whynox {
  position: relative;
  background: linear-gradient(to bottom, rgba(26, 25, 25, 0) 0%, #1a1919 100%);
  color: #fff;
  padding: clamp(40px, 6vw, 80px) 20px;
  overflow: hidden;
  margin-top: 80px;
}

/* Logo overlay (background) */
.noxbloc-section-whynox::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(180px, 40vw, 400px); /* responsive size */
  height: clamp(180px, 40vw, 400px);
  background: url("assets/img/logo6.png") no-repeat center center;
  background-size: contain;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* Content above overlay */
.noxbloc-container-whynox {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.noxbloc-subtitle-whynox {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: clamp(12px, 1.5vw, 14px);
  color: #9ff14e;
  margin-bottom: 10px;
  text-align: left;
}

.noxbloc-title-whynox {
  font-size: clamp(20px, 4vw, 32px);
  line-height: 1.4;
  margin-bottom: 40px;
  text-align: left;
}

.noxbloc-title-whynox .highlight-whynox {
  color: #9FF14E;
}

.noxbloc-grid-whynox {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 35px);
}

/* Card Styling */
.noxbloc-card-whynox {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 32px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Shine effect */
.noxbloc-card-whynox::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.03);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
}

.noxbloc-card-whynox:hover::after {
  left: 200%;
}

.noxbloc-card-whynox:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0px 8px 25px rgba(159, 241, 78, 0.35);
}

/* Icons */
.noxbloc-icon-whynox {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  color: #ffffff;
}

.noxbloc-icon-whynox svg {
  width: clamp(42px, 6vw, 56px);
  height: clamp(42px, 6vw, 56px);
}

.noxbloc-card-whynox h3 {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 12px;
  color: #9FF14E;
}

.noxbloc-card-whynox p {
  font-size: clamp(13px, 1.8vw, 15px);
  line-height: 1.6;
  color: #e0e0e0;
  margin: 0;
}

/* Scroll animation */
.noxbloc-card-whynox {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.noxbloc-card-whynox.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation effect */
.noxbloc-card-whynox.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Add delay for wave effect */
.noxbloc-card-whynox.reveal:nth-child(1) {
  transition-delay: 0.1s;
}
.noxbloc-card-whynox.reveal:nth-child(2) {
  transition-delay: 0.25s;
}
.noxbloc-card-whynox.reveal:nth-child(3) {
  transition-delay: 0.4s;
}
.noxbloc-card-whynox.reveal:nth-child(4) {
  transition-delay: 0.55s;
}
.noxbloc-card-whynox.reveal:nth-child(5) {
  transition-delay: 0.7s;
}
.noxbloc-card-whynox.reveal:nth-child(6) {
  transition-delay: 0.85s;
}

/* ================= RESPONSIVE ================= */

/* Tablet tweaks */
@media (max-width: 1024px) {
  .noxbloc-title-whynox {
    text-align: center;
  }
  .noxbloc-subtitle-whynox {
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .noxbloc-grid-whynox {
    grid-template-columns: 1fr;
  }
  .noxbloc-card-whynox {
    min-height: auto; /* let it expand naturally */
    padding: 20px;
  }
}

/* ======================== WHY NOXBLOC /END ========================== */





/* ================================ INVERTED =================================== */

/* ===== Section Background ===== */
.inverted-project-section {
  padding: 60px;
  background: #1a1919;
  color: #ffffff;
}

/* ===== Centered Container ===== */
.inverted-project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== Content Styling ===== */
.inverted-project-content {
  max-width: 50%;
}

.inverted-project-content h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.inverted-project-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  opacity: 0.9;
}

.inverted-contact-btn {
  display: inline-block;
  padding: 12px 25px;
  background: #9FF14E;
  color: #20282D;
  font-weight: bold;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
}

.inverted-contact-btn:hover {
  background: #ffffff;
  color: #20282D;
}

/* Stats layout */
.inverted-stats {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

/* Each row */
.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  line-height: 1.3;
  color: #fff;
}

/* The green tick */
.tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #9FF14E;
  font-weight: 700;
  font-size: 0.9rem;
  flex: 0 0 22px;   /* prevents squish */
  line-height: 1;   /* perfect centering */
}




.inverted-stats span {
  display: block;
  margin-bottom: 8px;
}

/* ===== Image Container ===== */
.inverted-project-images {
  max-width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inverted-main-img {
  width: 450px;
  animation: inverted-floatMain 6s ease-in-out infinite;
}

/* ===== Animations ===== */
@keyframes inverted-floatMain {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .inverted-project-container {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  .inverted-project-content {
    max-width: 100%;
    margin-top: 30px; /* 👈 content now below image */
  }

  .inverted-project-images {
    max-width: 70%;
  }

  .inverted-main-img {
    width: 180px;
  }
}

@media (max-width: 480px) {
  .inverted-project-section {
    padding: 30px 15px;
  }

  .inverted-project-content h2 {
    font-size: 1.8rem;
  }

  .inverted-project-content p {
    font-size: 1rem;
  }

  .inverted-contact-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .inverted-main-img {
    width: 140px;
  }
}

/* ================================ INVERTED /END =================================== */






/* ===================================FOOTER================================= */
footer {
  position: relative;
  background: #000;
  color: #fff;
  padding: 90px 8%;
  overflow: hidden;
  z-index: 1;
}

footer {
  position: relative;
  overflow: hidden;
}

/* First Logo */
footer::before {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 35%; /* shifted a bit left */
  transform: translateX(190%); /* hidden initially */
  width: 400px;
  height: 400px;
  background: url("../img/rahul.webp") no-repeat center center;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  filter: brightness(0) invert(1);
  transition: transform 1.8s ease-out, opacity 1.8s ease-out;
}

/* Second Logo */
footer::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 65%; /* shifted a bit right */
  transform: translateX(220%); /* hidden initially */
  width: 300px;
  height: 400px;
  background: url("../img/Icon-01.webp") no-repeat center center;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  filter: brightness(0) invert(1);
  transition: transform 1.8s ease-out 0.6s, opacity 1.8s ease-out 0.6s; 
  /* delay for "after" effect */
}

/* Active State */
footer.show-logo::before {
  transform: translateX(-90%);
  opacity: 0.07;
}

footer.show-logo::after {
  transform: translateX(-50%);
  opacity: 0.07;
}


footer * {
  position: relative;
  z-index: 2; /* keeps text & links above logo */
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-bottom: 40px;
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #aaa;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
  font-size: 1rem;
}

.footer-column ul li a:hover {
  color: #9FF14E; /* accent color */
}

.footer-column ul li a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer-column ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: #9FF14E; /* green */
  transform: scaleX(0);
  transform-origin: left; /* start from left */
  transition: transform 0.6s ease;
}

.footer-column ul li a:hover {
  color: #9FF14E;
}

.footer-column ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: right; /* collapse to right when leaving */
}



.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #aaa;
}

.footer-bottom a {
  color: #fff;
  text-decoration: none;
  margin: 0 5px;
  transition: 0.3s;
}

.footer-bottom a:hover {
  color: #9FF14E;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
.glow-text {
  font-size: 1rem;
  color: #fff;
  text-align: center;
  letter-spacing: 2px;
  animation: greenGlow 1s infinite alternate;
}

@keyframes greenGlow {
  0% {
    text-shadow: 0 0 0px #9FF14E;
    color: #fff;
  }
  100% {
    text-shadow: 0 0 10px #9FF14E, 0 0 30px #9FF14E;
    color: #9FF14E;
  }
}
@media (max-width: 900px) {
  /* Hide first logo on mobile */
  footer::before {
    display: none;
  }

  /* Center second logo on mobile */
  footer::after {
    left: 50%;
    transform: translateX(-50%); /* center horizontally */
    width: 250px; /* scale down a bit if needed */
    height: 250px;
    transition: transform 1.8s ease-out, opacity 1.8s ease-out;
    margin-bottom: 300px;
  }

  /* Keep text above */
  footer * {
    position: relative;
    z-index: 2;
  }
}