/* --- CSS VARIABLES & RESET --- */
:root {
  --bg-dark: #0b1116;
  --bg-card: #141d24;
  --primary-green: #00e676;
  --secondary-blue: #00b0ff;
  --text-white: #f5f9ff;
  --text-grey: #a0b3c6;
  --glow-green: rgba(0, 230, 118, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes floatSpore {
  0% {
    transform: translateY(0px) scale(1) rotate(0deg);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-40px) scale(1.1) rotate(180deg);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0px) scale(1) rotate(360deg);
    opacity: 0.2;
  }
}
@keyframes pulseRing {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(3);
    opacity: 0;
  }
}
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 5px var(--glow-green);
  }
  50% {
    box-shadow: 0 0 25px var(--glow-green);
  }
  100% {
    box-shadow: 0 0 5px var(--glow-green);
  }
}
@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --- NAVBAR & MOBILE MENU --- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 17, 22, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.logo span {
  color: var(--primary-green);
}

.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-green);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--primary-green);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-white);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(11, 17, 22, 0.98);
    padding: 20px;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: none; /* Hidden by default */
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links a {
    text-align: center;
    padding: 10px 0;
  }
}

/* --- HERO SECTION --- */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(0, 230, 118, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(0, 176, 255, 0.05) 0%,
      transparent 40%
    ),
    var(--bg-dark);
  overflow: hidden;
}
.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.spore {
  position: absolute;
  background: radial-gradient(circle at 30% 30%, #fff, var(--primary-green));
  border-radius: 50%;
  box-shadow: 0 0 15px var(--glow-green);
  animation: floatSpore linear infinite;
  opacity: 0;
}
.spore:nth-child(1) {
  width: 6px;
  height: 6px;
  left: 10%;
  top: 20%;
  animation-duration: 8s;
}
.spore:nth-child(2) {
  width: 12px;
  height: 12px;
  left: 30%;
  top: 60%;
  animation-duration: 11s;
  animation-delay: 1s;
}
.spore:nth-child(3) {
  width: 4px;
  height: 4px;
  left: 70%;
  top: 30%;
  animation-duration: 6s;
  animation-delay: 2s;
}
.spore:nth-child(4) {
  width: 8px;
  height: 8px;
  left: 85%;
  top: 70%;
  animation-duration: 9s;
  animation-delay: 0.5s;
}
.spore:nth-child(5) {
  width: 15px;
  height: 15px;
  left: 50%;
  top: 80%;
  animation-duration: 12s;
  animation-delay: 3s;
}
.drone-ping {
  position: absolute;
  border: 2px solid var(--secondary-blue);
  border-radius: 50%;
  animation: pulseRing 4s linear infinite;
  opacity: 0;
}
.drone-ping:nth-child(6) {
  width: 40px;
  height: 40px;
  left: 20%;
  top: 40%;
  animation-delay: 0s;
}
.drone-ping:nth-child(7) {
  width: 60px;
  height: 60px;
  left: 75%;
  top: 50%;
  animation-delay: 1.5s;
}
.drone-ping:nth-child(8) {
  width: 80px;
  height: 80px;
  left: 55%;
  top: 25%;
  animation-delay: 3s;
}
.drone-grid {
  position: absolute;
  right: -100px;
  top: -100px;
  width: 500px;
  height: 500px;
  border: 1px dashed rgba(0, 176, 255, 0.1);
  border-radius: 50%;
  transform: rotate(45deg);
  animation: spinSlow 60s linear infinite;
}
.drone-grid::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  border: 1px dashed rgba(0, 176, 255, 0.05);
  border-radius: 50%;
}

#hero h1,
#hero p,
.hero-motto,
.hero-cta {
  position: relative;
  z-index: 1;
}
#hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 10px;
  animation: fadeInUp 1s ease forwards;
}
#hero h1 span.glow-text {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--secondary-blue)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-motto {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  animation: fadeInUp 1.1s ease forwards;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.hero-motto .dot {
  color: var(--primary-green);
  font-size: 1.5rem;
  line-height: 0;
}
#hero p {
  font-size: 1.2rem;
  color: var(--text-grey);
  max-width: 700px;
  margin-bottom: 40px;
  animation: fadeInUp 1.2s ease forwards;
}
.hero-cta {
  display: flex;
  gap: 20px;
  animation: fadeInUp 1.4s ease forwards;
}

.btn-primary {
  padding: 15px 40px;
  background: var(--primary-green);
  color: var(--bg-dark);
  font-weight: 700;
  border-radius: 50px;
  font-size: 1rem;
  letter-spacing: 1px;
  box-shadow: 0 0 15px var(--glow-green);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--glow-green);
}
.btn-outline {
  padding: 15px 40px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-outline:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}
.floating-icon {
  position: absolute;
  bottom: 50px;
  font-size: 2rem;
  color: var(--text-grey);
  animation: floatSpore 3s infinite ease-in-out;
  cursor: pointer;
  z-index: 1;
}

/* --- ABOUT & SERVICES --- */
.section-padding {
  padding: 100px 50px;
}
.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

/* --- FIXED UNDERLINE FOR TITLES --- */
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
.section-title::before {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--primary-green);
  bottom: -10px;
  left: 0;
  border-radius: 2px;
}
@media (max-width: 992px) {
  .section-title {
    display: block;
    text-align: center;
  }
  .section-title::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* --- CURRENT WORK SECTION --- */
.current-work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.card-image-service {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  position: relative;
}
.card-image-service:hover {
  transform: translateY(-8px);
  border-color: var(--primary-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.card-image-service .img-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}
.card-image-service .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-image-service:hover .img-wrapper img {
  transform: scale(1.1);
}
.card-image-service .content {
  padding: 25px;
}
.card-image-service h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--text-white);
}
.card-image-service p {
  color: var(--text-grey);
  font-size: 0.95rem;
  margin-bottom: 15px;
}
.status-badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(0, 230, 118, 0.15);
  color: var(--primary-green);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

/* --- FUTURE INNOVATIONS --- */
.sub-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.card-service {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: 0.3s;
}
.card-service:hover {
  transform: translateY(-10px);
  border-color: var(--primary-green);
}
.card-service i {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 15px;
}
.card-service h3 {
  margin-bottom: 10px;
}
.card-service p {
  color: var(--text-grey);
  font-size: 0.95rem;
}
.status-future {
  background: rgba(0, 176, 255, 0.2);
  color: var(--secondary-blue);
  border: 1px solid rgba(0, 176, 255, 0.2);
}

/* --- PROPRIETOR --- */
#proprietor {
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.proprietor-img {
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  border: 3px solid var(--primary-green);
  box-shadow: 0 0 30px var(--glow-green);
  object-fit: cover;
}
.bio-text h3 {
  font-size: 2rem;
  margin-bottom: 5px;
}
.bio-text .location {
  color: var(--primary-green);
  margin-bottom: 20px;
  display: block;
}

/* --- GALLERY --- */
#gallery {
  background: var(--bg-dark);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 1/1;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.4s;
  background: #000;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  opacity: 0.85;
}
.gallery-item:hover img {
  transform: scale(1.1);
  opacity: 1;
  filter: brightness(1.1);
}
.gallery-item .overlay {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: white;
  transition: 0.4s ease;
}
.gallery-item:hover .overlay {
  bottom: 0;
}
.gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* --- ENHANCED CTA SECTION WITH SIDE GRAPHICS --- */
#home-cta {
  text-align: center;
  padding: 100px 20px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden; /* Ensures graphics don't spill out */
}

/* Background pattern for the CTA section */
#home-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(0, 230, 118, 0.05),
      transparent 50%
    ),
    radial-gradient(circle at 80% 50%, rgba(0, 176, 255, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- LEFT GRAPHIC: Mycelium Spores (Hidden on Mobile) --- */
#home-cta .side-graphic-left {
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 0;
  opacity: 0.6;
}
#home-cta .side-graphic-left span {
  display: block;
  border-radius: 50%;
  background: var(--primary-green);
  box-shadow: 0 0 15px var(--glow-green);
  animation: floatSpore 4s ease-in-out infinite alternate;
}
#home-cta .side-graphic-left span:nth-child(1) {
  width: 10px;
  height: 10px;
  margin-left: 20px;
  animation-delay: 0s;
}
#home-cta .side-graphic-left span:nth-child(2) {
  width: 20px;
  height: 20px;
  animation-delay: 1s;
}
#home-cta .side-graphic-left span:nth-child(3) {
  width: 8px;
  height: 8px;
  margin-left: 30px;
  animation-delay: 2s;
}

/* --- RIGHT GRAPHIC: Drone Radar Ping (Hidden on Mobile) --- */
#home-cta .side-graphic-right {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}
#home-cta .side-graphic-right .ping-ring {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid var(--secondary-blue);
  border-radius: 50%;
  animation: pulseRing 3s linear infinite;
  opacity: 0;
}
#home-cta .side-graphic-right .ping-ring:nth-child(1) {
  width: 50px;
  height: 50px;
  animation-delay: 0s;
}
#home-cta .side-graphic-right .ping-ring:nth-child(2) {
  width: 100px;
  height: 100px;
  animation-delay: 1s;
}
#home-cta .side-graphic-right .ping-ring:nth-child(3) {
  width: 150px;
  height: 150px;
  animation-delay: 2s;
}

/* --- CTA BOX STYLING --- */
#home-cta h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
#home-cta .cta-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 50px 40px;
  border: 1px solid rgba(0, 230, 118, 0.2);
  border-radius: 20px;
  animation: pulseGlow 3s infinite;
  background: rgba(0, 230, 118, 0.03);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(5px); /* Gives a slight frosted glass effect */
}
#home-cta p {
  margin-bottom: 30px;
  color: var(--text-grey);
  font-size: 1.1rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.cta-actions .btn-primary {
  background: var(--primary-green);
  color: var(--bg-dark);
}
.cta-actions .btn-outline-phone {
  padding: 15px 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--secondary-blue);
  border-radius: 50px;
  font-weight: 600;
  color: var(--secondary-blue);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta-actions .btn-outline-phone:hover {
  background: var(--secondary-blue);
  color: var(--bg-dark);
  transform: scale(1.05);
}

/* Hide side graphics on mobile/tablets to keep it clean */
@media (max-width: 992px) {
  #home-cta .side-graphic-left,
  #home-cta .side-graphic-right {
    display: none;
  }
}

/* --- FLOATING WHATSAPP CHAT --- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25d366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 25px rgba(37, 211, 102, 0.6);
  color: white;
}

/* --- FOOTER WITH BADGES --- */
footer {
  background: #080c10;
  padding: 60px 50px 20px 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
}
.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-white);
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col ul li a {
  color: var(--text-grey);
  font-weight: 300;
}
.footer-col ul li a:hover {
  color: var(--primary-green);
  padding-left: 5px;
}
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}
.social-icons a:hover {
  background: var(--primary-green);
  color: var(--bg-dark);
  border-color: var(--primary-green);
  transform: translateY(-3px);
}

/* Badge Styling */
.badge-container {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reg-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  width: fit-content;
  font-size: 0.85rem;
  color: var(--text-grey);
}
.reg-badge i {
  font-size: 1.2rem;
}
.reg-badge.gst i {
  color: #ffd700;
}
.reg-badge.msme i {
  color: var(--secondary-blue);
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  color: var(--text-grey);
  font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .grid-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .proprietor-img {
    margin-bottom: 20px;
  }
}
@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }
  #hero h1 {
    font-size: 2.8rem;
  }
  .hero-motto {
    font-size: 0.9rem;
    letter-spacing: 3px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .section-padding {
    padding: 60px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item:nth-child(1) {
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 1/1;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn-primary,
  .cta-actions .btn-outline-phone {
    width: 100%;
    justify-content: center;
  }
  .hero-motto {
    flex-direction: row;
    gap: 5px;
    letter-spacing: 1px;
    font-size: 0.8rem;
  }
  #home-cta h2 {
    font-size: 2rem;
  }
}
