/*=============== 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=============================== */











/* ===================================Contact Section ==================================== */
.contact-section {
  margin-top: 120px;
  padding: 100px 5%;
  display: flex;
  justify-content: center;
}

/* Grid Layout */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start; /* aligns form + text at the top */
  max-width: 1200px;
  width: 100%;
}

/* Left Text Content */
.contact-info {
  padding-right: 20px;
  padding-top: 140px;
}

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #9FF14E;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.7;
  max-width: 500px;
}
/* Contact details under text */
.contact-details {
  margin-top: 25px;
}

.contact-details p {
  font-size: 1rem;
  color: #fff;
  margin: 8px 0;
}

.contact-details strong {
  color: #9FF14E;
  font-weight: 600;
}

.contact-details a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.contact-details a:hover {
  color: #9FF14E;
}


/* Right Form */
/* Right Form */
.contact-form {
  position: relative; /* required for shine overlay */
  background: rgba(255, 255, 255, 0.15);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.15);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  overflow: hidden; /* ensures shine stays inside */
}

/* Shine Effect */
.contact-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 20%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.02) 0%,
    rgba(255, 255, 255, 0.03) 30%,
    rgba(255, 255, 255, 0.05) 100%
  );
  transform: skewX(-20deg);
  animation: shine 6s infinite;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}


/* Form Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #9FF14E;
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: 0.3s;
}

.form-group input:focus {
  border-color: #9FF14E;
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 8px rgba(159, 241, 78, 0.4);
}
/* Message Textarea */
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transition: 0.3s;
  resize: none; /* prevent dragging resize */
  min-height: 120px; /* fixed height similar to inputs but larger */
}

.form-group textarea:focus {
  border-color: #9FF14E;
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 8px rgba(159, 241, 78, 0.4);
}


/* Submit Button */
button {
  width: 100%;
  padding: 16px;
  background: #9FF14E;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #27ae60;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-section {
    margin-top: -70px;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-info {
    text-align: center;
    padding-right: 0;
  }
}










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;
  }
}