/*=============== 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;
}

/*=============== 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=============================== */




/* =========== 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;
  }
}



/*=============== UNDER CONSTRUCTION BOX ===============*/
main {
  flex: 1;
  display: flex;
  flex-direction: column; /* stack items vertically */
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  margin-top: 100px;
}

/*=============== PAGE TITLE ABOVE BOX ===============*/
main > h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem; /* space between title and box */
}

.box {
  background: #1a1919;
  border-radius: 20px;
  padding: 3rem 2rem;
  max-width: 800px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

.box h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #fff;
}

.box p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 2rem;
  color: #fff;
}

/*=============== LOADER ===============*/
.loader {
  width: 175px;
  height: 80px;
  display: block;
  margin: 2rem auto;
  background-image: 
    radial-gradient(circle 25px at 25px 25px, #FFF 100%, transparent 0),
    radial-gradient(circle 50px at 50px 50px, #FFF 100%, transparent 0),
    radial-gradient(circle 25px at 25px 25px, #FFF 100%, transparent 0),
    linear-gradient(#FFF 50px, transparent 0);
  background-size: 50px 50px, 100px 76px, 50px 50px, 120px 40px;
  background-position: 0px 30px, 37px 0px, 122px 30px, 25px 40px;
  background-repeat: no-repeat;
  position: relative;
}

.loader::before {
  content: '';  
  left: 60px;
  bottom: 18px;
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1a1919; /* match box bg */
  background-image: 
    radial-gradient(circle 8px at 18px 18px, #FFF 100%, transparent 0),
    radial-gradient(circle 4px at 18px 0px, #FFF 100%, transparent 0),
    radial-gradient(circle 4px at 0px 18px, #FFF 100%, transparent 0),
    radial-gradient(circle 4px at 36px 18px, #FFF 100%, transparent 0),
    radial-gradient(circle 4px at 18px 36px, #FFF 100%, transparent 0),
    radial-gradient(circle 4px at 30px 5px, #FFF 100%, transparent 0),
    radial-gradient(circle 4px at 30px 30px, #FFF 100%, transparent 0),
    radial-gradient(circle 4px at 5px 30px, #FFF 100%, transparent 0),
    radial-gradient(circle 4px at 5px 5px, #FFF 100%, transparent 0);
  background-repeat: no-repeat;
  animation: rotationBack 3s linear infinite;
}

.loader::after {
  content: '';  
  left: 94px;
  bottom: 15px;
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #1a1919; /* match box bg */
  background-image: 
    radial-gradient(circle 5px at 12px 12px, #FFF 100%, transparent 0),
    radial-gradient(circle 2.5px at 12px 0px, #FFF 100%, transparent 0),
    radial-gradient(circle 2.5px at 0px 12px, #FFF 100%, transparent 0),
    radial-gradient(circle 2.5px at 24px 12px, #FFF 100%, transparent 0),
    radial-gradient(circle 2.5px at 12px 24px, #FFF 100%, transparent 0),
    radial-gradient(circle 2.5px at 20px 3px, #FFF 100%, transparent 0),
    radial-gradient(circle 2.5px at 20px 20px, #FFF 100%, transparent 0),
    radial-gradient(circle 2.5px at 3px 20px, #FFF 100%, transparent 0),
    radial-gradient(circle 2.5px at 3px 3px, #FFF 100%, transparent 0);
  background-repeat: no-repeat;
  animation: rotationBack 4s linear infinite reverse;
}

@keyframes rotationBack {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}


/* ================================ 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 =================================== */