/* CSS Variables for easy theme management */
:root {
  --color-dark-bg: #0a0a0a; /* Deep black */
  --color-light-bg: rgba(
    26,
    26,
    26,
    0.4
  ); /* Glass surface: Dark + 40% opacity */
  --color-accent-green: #00ff4c; /* Bright, neon green */
  --color-text-light: #e0e0e0; /* Off-white for main text */
  --color-text-dark: #b0b0b0; /* Slightly lighter grey for subtle text */
  --border-radius-lg: 16px;
  --border-radius-md: 10px;

  /* Glassmorphism Variables */
  --glass-border: 1px solid rgba(255, 255, 255, 0.15); /* Light inner border */
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4); /* Stronger, deeper shadow */
}

/* Base Styles */
body {
  font-family: "Inter", sans-serif;
  color: var(--color-text-light);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Fallback Background for Glass Effect Visibility */
  background: radial-gradient(
      circle at 10% 90%,
      rgba(0, 255, 76, 0.06),
      transparent 45%
    ),
    radial-gradient(circle at 90% 10%, rgba(0, 255, 76, 0.06), transparent 45%),
    var(--color-dark-bg);
  background-attachment: fixed;
}

/* Global Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Container for main content */
.containerHeader {
  height: 100vh;
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* --- VIDEO BACKGROUND STYLES (CRITICAL FIXES) --- */
.home {
  position: relative; /* Essential for positioning the video and overlay */
  min-height: 100vh; /* Ensure it takes up the full viewport height */
  overflow: hidden; /* Hide any overflow from the video */
  display: flex; /* Use flex to center content */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 6rem;
  background: none;
  width: 100%; /* Ensure container takes full width */
}

/* Video Background Element - Ensured full coverage */
.video-background {
  position: absolute;
  /* top: 50%;
            left: 50%; */
  min-width: 100vw;
  min-height: 100vh;
  width: auto;
  height: auto;
  z-index: 0;
  /* transform: translate(-50%, -50%); */
  object-fit: cover; /* Ensures video covers the entire container while maintaining aspect ratio */
}

/* Content Overlay for Readability over video */
.content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(
    0,
    0,
    0,
    0.65
  ); /* Dark semi-transparent layer for contrast */
  z-index: 1; /* Place above video */
  /* display: flex;
            align-items: center;
            justify-content: center; */
  padding: 0 2rem;
}

/* Ensure the main content is layered correctly */
.home-content {
  z-index: 2; /* Place content above the overlay */
  max-width: 55%;
  text-align: left;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
/* --- END VIDEO BACKGROUND STYLES --- */

/* Typography */
h1 {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-accent-green);
  text-align: center;
  margin-bottom: 2.5rem;
  text-shadow: 0 0 15px rgba(0, 255, 76, 0.6);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 0;
  color: var(--color-text-light);
}

p {
  color: var(--color-text-dark);
}

a {
  color: var(--color-accent-green);
  text-decoration: none;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:hover {
  color: #33ff77;
}

/* Navbar: LIQUID GLASS EFFECT */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  background: rgba(10, 10, 10, 0.4); /* Transparent dark background */
  backdrop-filter: blur(15px); /* Strong blur for liquid feel */
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.navbar-container {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent-green);
  text-shadow: 0 0 8px rgba(0, 255, 76, 0.8);
  letter-spacing: 1px;
  display: flex; /* ADDED for logo alignment */
  align-items: center; /* ADDED for logo alignment */
  gap: 0.5rem; /* ADDED spacing between logo and text */
}

/* NEW: Logo Icon Styling */
.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--color-accent-green);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  /* Neon glow effect for the icon */
  filter: drop-shadow(0 0 6px rgba(0, 255, 76, 0.8));
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-links .link {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--color-text-light);
  font-weight: 400;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent-green);
  text-shadow: 0 0 5px rgba(0, 255, 76, 0.5);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent-green);
  box-shadow: 0 0 8px var(--color-accent-green);
}

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1010;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: var(--color-accent-green);
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 5px rgba(0, 255, 76, 0.5);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Sections */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
  min-height: 20vh;
  padding-top: 8rem;
}

.home.section {
  padding-top: 6rem;
  min-height: 100vh;
}

.home h1 {
  font-size: 4.5rem;
  text-shadow: 0 0 15px rgba(0, 255, 76, 0.6);
}

.home p {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.9);
}

/* CTA Buttons - Kept Solid for Contrast */
.cta-group {
  display: flex;
  gap: 1.5rem;
}

.cta-button {
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--color-accent-green);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-button.primary {
  background-color: var(--color-accent-green);
  color: var(--color-dark-bg);
  box-shadow: 0 0 25px rgba(0, 255, 76, 0.8);
}

.cta-button.primary:hover {
  background-color: #33ff77;
  box-shadow: 0 0 40px rgba(0, 255, 76, 1);
  transform: translateY(-4px);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--color-accent-green);
}

.cta-button.secondary:hover {
  background-color: rgba(0, 255, 76, 0.1);
  color: #33ff77;
  transform: translateY(-4px);
}

/* Stats Styling (About Section) */
.about-stats {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 3rem;
  gap: 1.5rem;
}

.stat-item {
  flex-basis: 30%;
  background-color: rgba(26, 26, 26, 0.2);
  padding: 1.5rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-accent-green);
  text-shadow: 0 0 8px rgba(0, 255, 76, 0.5);
}

.stat-item p {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: var(--color-text-dark);
}

/* Services and Projects Grid Styling: LIQUID GLASS CARDS */
.services-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.service-card,
.project-card,
.product-card {
  background-color: var(--color-light-bg); /* Transparent dark background */
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  border: var(--glass-border); /* White inner highlight */
  backdrop-filter: blur(12px); /* Glass blur */
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease, background-color 0.4s ease;
}

.service-card:hover,
.project-card:hover,
.product-card:hover {
  transform: translateY(-10px);
  background-color: rgba(0, 255, 76, 0.1); /* Light green hover layer */
  box-shadow: 0 0 6px rgba(0, 255, 153, 0.7); /* Stronger shadow/glow */
  border-color: rgba(0, 255, 76, 0.4);
}

.service-card h3,
.project-card h3,
.product-card h3,.highlight  {
  color: var(--color-accent-green);
}
.product-card h3 {
    text-align: center;
}

.product-image-container {
  width: 100%;
  height: 45vh;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
 .middle-column {
    grid-column: 2;
 }

/* Process Section - Lighter Glass Steps */
.process-flow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 3rem;
  gap: 1.5rem;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  background-color: rgba(26, 26, 26, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.process-step:hover {
  background-color: rgba(26, 26, 26, 0.4);
}

.process-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -1.25rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2px;
  background: none;
  color: var(--color-accent-green);
  font-size: 2rem;
  line-height: 1;
}

.step-icon {
  display: inline-block;
  padding: 1rem;
  border-radius: 50%;
  background: rgba(0, 255, 76, 0.2);
  margin-bottom: 1rem;
  box-shadow: 0 0 10px rgba(0, 255, 76, 0.3);
}

/* Icon Styling (For Font Awesome) */
.icon-neon {
  color: var(--color-accent-green);
  text-shadow: 0 0 8px rgba(0, 255, 76, 0.7);
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
}

.project-card .icon-neon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Tech Stack Section */
.tech-items-grid {
  display: flex;
  
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.tech-item {
  flex-direction: column;
  background-color: rgba(0, 255, 76, 0.05);
  color: var(--color-accent-green);
  border: 1px solid rgba(0, 255, 76, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  justify-content: center;
  height: 120px;
  width:fit-content;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  text-shadow: 0 0 3px rgba(0, 255, 76, 0.3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background-color: rgba(0, 255, 76, 0.15);
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 255, 76, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
  .home-content {
    max-width: 100%;
    text-align: center;
  }
  .content-overlay {
    height: 120vh;
  }

  .home h1 {
    font-size: 1rem;
  }

  .cta-group {
    justify-content: center;
  }

  .process-flow {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }

  /* Mobile Process Flow Divider/Arrow */
  .process-step:not(:last-child) {
    margin-bottom: 40px;
  }

  .process-step:not(:last-child)::after {
    content: "↓";
    position: absolute;
    top: auto;
    bottom: -25px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .navbar-container {
    /* Resetting this for better mobile behavior based on the JS */
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 1.5rem;
  }

  .home h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .cta-group {
    flex-direction: column;
    gap: 1rem;
  }

  .navbar-container {
    padding: 0 1.5rem;
  }

  .menu-toggle {
    display: flex;
    position: static;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9); /* Darker background for menu */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
    transition: all 0.3s ease-in-out;
  }

  .nav-links .link {
    margin: 0.5rem 0;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 0.5rem 2rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 2rem;
  }

  .logo-icon {
    /* Slightly smaller logo on mobile */
    width: 24px;
    height: 24px;
  }

  .menu-toggle {
    position: absolute;
    right: 1.5rem; /* Adjusted for better spacing */
  }
}
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  margin: auto;
}
.logo {
  width: 60px;
  height: 60px;
  border-radius: 0%;
  overflow: hidden;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 480px) {
  .navbar {
    width: 100%;
    max-width: 480px;
  }
  .section {
    width: 100%;
  }
  .contact-info {
    flex-direction: column;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  .cta-button {
    width: 100%;
    justify-content: center;
  }
  .navbar {
    max-width: 460px;
  }
  .home {
    width: 100%;
    max-width: 480px;
  }
}
