:root {
  --bg-color: #0a0a0a;
  --text-color: #e0e0e0;
  --accent-color: #00f3ff;
  /* Neon Cyan */
  --accent-secondary: #bc13fe;
  /* Neon Purple */
  --card-bg: rgba(255, 255, 255, 0.05);
  --nav-bg: rgba(10, 10, 10, 0.8);
  --font-main: 'Outfit', sans-serif;
  --transition-speed: 0.3s;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Utilities */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed);
  cursor: pointer;
  border: 1px solid transparent;
  /* Ensure border exists for layout */
}

.btn-primary {
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.4);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.6);
}

.btn-secondary {
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
}

.btn-secondary:hover {
  background: var(--accent-secondary);
  color: #fff;
  box-shadow: 0 0 15px rgba(188, 19, 254, 0.4);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: padding 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.7)), url('assets/hero-bg.webp');
  /* Placeholder */
  background-size: cover;
  background-position: center;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #bbb;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
  border-color: var(--accent-color);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

/* Metrics Section */
.metrics {
  background: rgba(255, 255, 255, 0.03);
  padding: 3rem 0;
}

.metrics-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.metric-item h3 {
  font-size: 2.5rem;
  color: var(--accent-secondary);
}

.metric-item p {
  color: #aaa;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Domains Section */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.domain-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-speed);
  /* added transition */
}

.domain-card:hover {
  /* Added hover effect explicitly */
  transform: translateY(-5px);
}

.domain-content {
  padding: 2rem;
}

.domain-card h3 {
  margin-bottom: 0.5rem;
  color: #fff;
}

.domain-card:hover {
  background: rgba(255, 255, 255, 0.08);
}


/* Products Section */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.product-card {
  min-width: 300px;
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.product-img {
  height: 250px;
  /* Taller for showcase feel */
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-img::after {
  font-family: 'Phosphor';
  font-size: 4rem;
  color: #333;
  position: absolute;
  z-index: 1;
}

/* Specific Placeholder Styles */
.product-img.macropad {
  background: radial-gradient(circle at center, #2a2a2a 0%, #111 100%);
}

.product-img.macropad::after {
  content: '\e99a';
  /* Grid/Keypad icon */
  color: var(--accent-color);
  opacity: 0.5;
  text-shadow: 0 0 20px var(--accent-color);
}

.product-img.ambilight {
  background: #000;
  box-shadow: inset 0 0 50px rgba(188, 19, 254, 0.3);
}

.product-img.ambilight::after {
  content: '\e9ca';
  /* Monitor icon */
  color: var(--accent-secondary);
  opacity: 0.8;
  filter: drop-shadow(0 0 15px var(--accent-secondary));
}

.product-img.pixbot {
  background: linear-gradient(135deg, #222 0%, #111 100%);
}

.product-img.pixbot::after {
  content: '\e9d7';
  /* Robot icon */
  color: #fff;
  opacity: 0.7;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  z-index: 2;
  /* Sit above placeholder */
  position: relative;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  margin-bottom: 0.5rem;
}

/* Impact Section */
.impact {
  background: rgba(255, 255, 255, 0.03);
  /* Contrasting background similar to metrics */
  padding: 4rem 2rem;
  margin-top: 2rem;
}

.impact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.impact-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #e0e0e0;
}

.impact-text strong {
  color: var(--accent-color);
}


/* Awards Section */
.awards-list {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.award-item {
  text-align: center;
  border: 1px solid var(--accent-secondary);
  padding: 2.5rem;
  /* Increased padding */
  border-radius: 8px;
  min-width: 250px;
  /* Increased min-width */
  background: var(--card-bg);
  transition: transform var(--transition-speed);
}

.award-item:hover {
  transform: scale(1.05);
}

.award-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #FFD700;
}

/* Contact/Footer */
footer {
  background: #050505;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  /* Changed from grid to flex for better edge alignment */
  justify-content: space-between;
  flex-wrap: wrap;
  /* Wrap on smaller screens */
  gap: 3rem;
}

.footer-col {
  flex: 1;
  /* Distribute space, but allow content to define edges better */
  min-width: 250px;
}

/* Specific alignment for last column to touch the right edge visually? 
   Actually, flex:1 distributes space. If we want strict edge alignment:
   We can let them be auto width or keep flex:1 but check text alignment.
   
   If we keep flex:1, the column box hits the edge. Content inside is left-aligned.
   So visual gap remains.
   
   The user wants the CONTENT to look even.
   Let's try text-align right for the last column?
   Or align-items: flex-end?
   
   If I remove flex:1, they take natural width. 
   'justify-content: space-between' puts the 1st on left, last on right.
   This is likely what the user wants.
*/
.footer-col {
  flex: 0 1 auto;
  /* Reset flex:1 to allow space-between to do the work */
  min-width: 250px;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col a:hover {
  color: var(--accent-color);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(4, auto);
  /* 4 icons per row */
  gap: 0.8rem 1.5rem;
  /* Reduced row-gap (0.8rem), kept col-gap (1.5rem) */
  justify-content: start;
  /* Align to left */
  margin-bottom: 1rem;
}

.social-icon {
  font-size: 1.5rem;
}

.copyright {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
    /* Mobile menu implementation needed in JS */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    flex-direction: column;
    padding: 2rem;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* Testimonials Section */
.testimonials-wrapper {
  position: relative;
  max-width: 1200px;
  /* Increased from 1000px to match section-container */
  margin: 0 auto;
  padding: 0 40px;
  /* Space for buttons */
}

.testimonials-track-container {
  overflow: hidden;
  padding: 20px 0;
  /* Space for shadow/hover transform */
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 2rem;
}

.testimonial-card {
  flex: 0 0 calc(50% - 1rem);
  /* 2 cards visible minus gap logic: (100% - 2rem gap) / 2 */
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(5px);
  position: relative;
  min-height: 250px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Placard feel */
}

.reviewer-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.8rem;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #fff;
  font-size: 1.2rem;
  background: #555;
}

.reviewer-info h4 {
  color: #fff;
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.stars {
  color: #FFD700;
  font-size: 0.9rem;
}

.review-text {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}

.review-photos {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.review-photo {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.2s;
  background-color: #333;
  /* Fallback */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.review-photo:hover {
  transform: scale(1.1);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s;
  z-index: 10;
}

.nav-btn:hover {
  background: var(--accent-color);
  color: #000;
  box-shadow: 0 0 10px var(--accent-color);
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

/* Responsive Testimonials Override */
@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 100%;
    /* 1 card on mobile */
  }
}