/*
 * Data Operatives landing page styles
 *
 * This stylesheet defines a clean, modern layout that adapts gracefully
 * across screen sizes. It uses CSS grid and flexbox for layout and
 * includes a handful of custom properties at the top for easy theming.
 */

/* CSS custom properties for theming */
:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --secondary: #343a40;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation */
.nav-bar {
  background: var(--white);
  border-bottom: 1px solid #e5e5e5;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.logo-img {
  height: 50px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu li a {
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  color: var(--secondary);
  transition: color 0.3s ease;
}

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

/* Mobile navigation */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
}

/* Hero section */
.hero {
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 1rem;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Features section */
.features {
  padding: 4rem 0 3rem;
  background: var(--light-bg);
}

.features h2 {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5rem;
}

.features .subtitle {
  max-width: 800px;
  margin: 0 auto 2rem;
  text-align: center;
  color: #555;
}

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

.feature {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature .icon {
  /* spacing for svg icons */
  margin-bottom: 0.75rem;
}

/* General SVG icon styling */
.icon-svg {
  width: 2rem;
  height: 2rem;
  fill: var(--primary);
}

/* Adjust the size and color of the hamburger bars in the nav toggle */
.nav-toggle .icon-svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--secondary);
}

/* Contact info icons */
.info-item .icon-svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 1rem;
  fill: var(--primary);
}

.feature h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5rem;
}

.feature p {
  font-size: 0.95rem;
  color: #555;
}

/* About section */
.about {
  padding: 4rem 0;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.about-text {
  flex: 1 1 350px;
}

.about-text h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 0.75rem;
  color: #555;
}

.about-image {
  flex: 1 1 300px;
  text-align: center;
}

/* Clients section */
.clients {
  padding: 4rem 0;
  background: var(--light-bg);
  text-align: center;
}

.clients h2 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 2rem;
}

.clients-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.clients-list li {
  flex: 0 1 100px;
}

.clients-list img {
  max-height: 45px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.clients-list img:hover {
  opacity: 1;
}

/* Contact section */
.contact {
  position: relative;
  background-image: url('images/contact.jpg');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 4rem 0;
}

.contact-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.contact .container {
  position: relative;
  z-index: 1;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-info {
  flex: 1 1 320px;
}

.contact-info h2 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.contact-info .subtitle {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--primary);
}

.info-item h4 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.25rem;
  color: var(--white);
}

.info-item p,
.info-item a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.contact-form {
  flex: 1 1 350px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 8px;
  backdrop-filter: blur(2px);
}

.contact-form h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
  color: var(--white);
}

.contact-form form {
  width: 100%;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-group label {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: var(--white);
}

.form-group input,
.form-group textarea {
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}

.contact-form .btn {
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    display: none;
  }
  .nav-menu.show {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .contact-content {
    flex-direction: column;
  }
  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero {
    height: 70vh;
  }
  .feature {
    padding: 1.5rem 1rem;
  }
  .about-content {
    flex-direction: column;
    text-align: center;
  }
  .about-image {
    order: -1;
  }
  .clients-list li {
    flex: 0 1 80px;
  }
}