/* Custom Fonts and Variables */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap");

:root {
  /* Updated Vibrant Color Palette */
  --primary-color: #5a189a; /* Deep Purple */
  --secondary-color: #9d4edd; /* Medium Purple */
  --accent-color: #ffc300; /* Bright Gold/Yellow for pop */
  --text-color: #2c2c2c;
  --light-text: #f4f4f4;
  --bg-color: #ffffff;
  --dark-bg: #1a0033; /* Very Dark Purple */
  --font-family: "Poppins", sans-serif;
  --transition-speed: 0.4s;
  --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-dark: 0 15px 45px rgba(90, 24, 154, 0.3);
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

h1,
h2,
h3 {
  font-weight: 800;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color var(--transition-speed);
}

.cta-button {
  display: inline-block;
  background: linear-gradient(
    45deg,
    var(--secondary-color),
    var(--primary-color)
  );
  color: var(--light-text);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin-top: 25px;
  box-shadow: 0 8px 25px rgba(90, 24, 154, 0.5);
  transition: all var(--transition-speed) ease-in-out;
  border: 2px solid transparent;
}

.cta-button:hover {
  background: var(--light-text);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 30px rgba(90, 24, 154, 0.7);
}

section {
  padding: 100px 5%;
  text-align: center;
  overflow: hidden;
}

/* -------------------
   1. Navbar Styling
   ------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  z-index: 1000;
}

.navbar .logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
  width: 100px;
}

.navbar nav ul {
  list-style: none;
  display: flex;
}

.navbar nav ul li {
  margin-left: 35px;
}

.navbar nav ul li a {
  color: var(--text-color);
  font-weight: 600;
  position: relative;
  padding: 5px 0;
  transition: color var(--transition-speed);
}

/* Navbar Link Underline Animation */
.navbar nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--accent-color);
  border-radius: 2px;
  transition: width var(--transition-speed) ease-in-out;
}

.navbar nav ul li a:hover {
  color: var(--primary-color);
}

.navbar nav ul li a:hover::after {
  width: 100%;
}

/* Login Button Styling */
.login-button {
  padding: 8px 20px;
  font-size: 0.9rem;
  margin: 0;
  box-shadow: 0 4px 15px rgba(90, 24, 154, 0.3);
}

.login-button:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(90, 24, 154, 0.5);
}

/* Dropdown Menu Styling */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: block;
  position: absolute;
  background-color: var(--bg-color);
  min-width: 180px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  z-index: 10;
  border-radius: 8px;
  overflow: hidden;
  padding: 10px 0;
  top: 100%; /* Position below the main link */
  left: -20px; /* Adjust positioning */

  /* Animation state */
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: visibility 0s, opacity var(--transition-speed),
    transform var(--transition-speed);
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s, padding-left 0.3s;
}

.dropdown-content a:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding-left: 20px;
}

/* -------------------
   2. Hero Section
   ------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  background-color: var(--dark-bg);
}

/* Hero Carousel */
.hero-carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3) saturate(1.1);
  transform: scale(1.05);
  transition: transform 6s ease-out;
}

.carousel-slide.active img {
  transform: scale(1);
}

/* Hero Content Overlay */
.hero-content {
  position: relative;
  z-index: 10;
  color: var(--light-text);
  max-width: 900px;
  padding: 20px;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.hero-content h1 {
  font-size: 4.2rem;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  animation: fadeInDown 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.27);
}

.hero-content p {
  font-size: 1.6rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  animation: fadeInUp 1.2s ease-out 0.4s forwards;
  opacity: 0;
}

/* -------------------
   3. Products Section
   ------------------- */
.products-section {
  background-color: #f7f7ff;
  padding: 120px 5%;
}

.products-section h2 {
  font-size: 3rem;
  margin-bottom: 50px;
  color: var(--primary-color);
  position: relative;
}

.products-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.product-card {
  background-color: var(--bg-color);
  padding: 40px 20px;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  border-top: 5px solid var(--secondary-color);
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Initial state for Scroll Reveal */
  opacity: 1;
  transform: translateY(30px);
}

.product-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

.product-card:nth-child(2).reveal {
  transition-delay: 0.2s;
}

.product-card:nth-child(3).reveal {
  transition-delay: 0.4s;
}

.product-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: var(--shadow-dark);
  border-top-color: var(--accent-color);
  cursor: pointer;
}

.product-card img {
  width: 90px;
  height: 90px;
  margin-bottom: 20px;
  animation: none;
}

.product-card:hover img {
  animation: pulseIcon 1.5s infinite;
}

.product-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* -------------------
   4. Clients & Awards Sections (Autoscroll)
   ------------------- */
.clients-section,
.awards-section {
  background-color: var(--dark-bg);
  color: var(--light-text);
  position: relative;
}

.clients-section h2,
.awards-section h2 {
  color: var(--accent-color);
  margin-bottom: 60px;
  letter-spacing: 1px;
}

.client-carousel-wrapper,
.award-carousel-wrapper {
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
  margin: 0 auto;
  mask-image: linear-gradient(
    to right,
    transparent 5%,
    black 20%,
    black 80%,
    transparent 95%
  );
}

.client-carousel-track,
.award-carousel-track {
  display: flex;
  animation: scroll-left 40s linear infinite;
  padding: 10px 0;
}

.client-carousel-track:hover,
.award-carousel-track:hover {
  animation-play-state: paused;
}

.client-carousel-track img,
.award-carousel-track img {
  height: 70px;
  width: auto;
  margin: 0 50px;
  filter: grayscale(100%) brightness(0.8);
  opacity: 0.7;
  transition: filter 0.6s, opacity 0.6s;
  user-select: none;
  flex-shrink: 0;
}

.client-carousel-track img:hover,
.award-carousel-track img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
  transform: scale(1.1);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* -------------------
   5. Footer Section
   ------------------- */
.footer {
  background-color: #111111;
  color: var(--light-text);
  padding: 60px 5%;
  font-size: 0.9rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.footer-col h4 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  padding-left: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--light-text);
  opacity: 0.8;
  position: relative;
  padding-left: 15px;
}

.footer-col ul li a::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  transition: transform 0.3s;
}

.footer-col ul li a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-col ul li a:hover::before {
  transform: translateX(3px);
}

.footer-logo h3 {
  font-size: 2.5rem;
  color: var(--primary-color);
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
}

.footer-newsletter input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #333;
  border-radius: 8px;
  margin-bottom: 10px;
  background-color: #222;
  color: var(--light-text);
  outline: none;
}

.footer-newsletter button {
  width: 100%;
  padding: 12px;
  background-color: var(--accent-color);
  color: var(--dark-bg);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color var(--transition-speed),
    transform var(--transition-speed);
}

.footer-newsletter button:hover {
  background-color: var(--light-text);
  transform: translateY(-2px);
}

/* .footer-map-right {
    display: flex;
    justify-content: flex-end;
    padding-right: 50px;
  } */

  .map-container {
    justify-self: end; /* Move map to right column edge */
  }
  
/* Global Utility Animations */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseIcon {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive Design (Basic) */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar nav {
    display: none;
  } /* Hide complex navigation on small screens */
  .hero-section {
    height: 70vh;
  }
  .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero-content p {
    font-size: 1.2rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
}