/* --- CSS VARIABLES & RESET --- */
:root {
  --primary: #0056b3;
  --secondary: #00d4ff;
  --dark: #0f172a;
  --light: #f8fafc;
  --white: #ffffff;
  --nav-bg: #ffffff;
  --nav-text: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--white); /* Changed to white for strict theme */
  color: var(--dark);
  overflow-x: hidden;
}

/* --- 1. FLOATING NAVIGATION BAR (Matches Homepage) --- */
.navbar-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  background: var(--nav-bg);
  border-radius: 50px; /* Pill shape */
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-logo {
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #000;
  font-weight: 700;
}

.book-btn {
  background-color: #000;
  color: #fff;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.book-btn:hover {
  transform: scale(1.05);
  background-color: #333;
}
/* --- PARTICLE BACKGROUND FIX --- */
#particles-canvas {
  position: fixed; /* This is key: Fixes it to the window */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* Sends it behind all content */
  pointer-events: none; /* Allows you to click links/buttons on top of it */
}
/* --- 2. TECH HERO SECTION (UPDATED) --- */
.tech-hero {
  position: relative;
  /* Reduced top padding from 160px to 100px to fix the gap */
  padding: 120px 20px 40px;
  text-align: center;
  background: var(--white);
  z-index: 1;
}

.tech-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-top: 0; /* Removes hidden browser spacing */
  margin-bottom: 15px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.tech-hero p {
  font-size: 1.2rem;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- 3. TECHNOLOGIES GRID SECTION (The Fix) --- */
/* This replaces the Marquee code to fix the "too small" issue */

.technologies-section {
  background-color: var(--white);
  padding: 40px 20px 100px; /* Bottom padding for spacing */
  width: 100%;
}

.tech-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* The Grid System */
.logo-grid {
  display: grid;
  /* This creates responsive columns. Each item is at least 120px wide */
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 50px 30px; /* 50px vertical gap, 30px horizontal gap */
  justify-items: center;
  align-items: start;
  margin-top: 40px;
}

/* Individual Tech Item Container */
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  transition: transform 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
}

/* --- IMAGE FIX: Forces logos to be big and visible --- */
.tech-item img {
  width: 64px; /* Fixed larger size */
  height: 64px; /* Fixed larger size */
  object-fit: contain;
  margin-bottom: 15px;

  /* B&W Theme Enforcement */
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

/* Hover Effect: Color returns on hover */
.tech-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Text Styling */
.tech-item span {
  color: #000000;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  opacity: 0.9;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  .navbar-container {
    justify-content: space-between;
    padding: 10px 20px;
    width: 95%;
  }

  .tech-hero h1 {
    font-size: 2rem;
  }

  /* Adjust grid for smaller screens */
  .logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 40px 20px;
  }
}
