/*
 * Style sheet for Kibrom Wendem IT Services
 *
 * The palette uses deep blues with lighter accents to reflect
 * professionalism and trust.  The layout leverages flexbox for
 * responsive design and includes a drop‑down navigation for the
 * Projects section.  Each page shares the same header and footer
 * for a consistent look and feel.
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

:root {
  /* Softer colour palette inspired by fellowmind.com: a warm gradient with pastel tones.
     These lighter hues retain the orange‑to‑magenta character while avoiding
     overly intense saturation. */
  --primary-color: #ff7f66;      /* pastel orange */
  --secondary-color: #f265a3;    /* light magenta */
  --light-color: #faf4fa;        /* very pale lavender background */
  --dark-color: #2d2d2d;         /* near‑black for text */
  --accent-color: #ff9f86;       /* softened coral for buttons and highlights */
  --hover-color: #ea8374;        /* slightly deeper coral on hover */
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--dark-color);
  /* Use a soft pastel background with a hint of warmth.
     This slightly darker tone reduces contrast while preserving the clean look. */
  background-color: #f7ecec;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

/* Header and navigation */
header {
  /* A warm horizontal gradient inspired by Fellowmind's hero */
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: #ffffff;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  display: block;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent-color);
}

/* Drop‑down menu for projects */
.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 200;
}

.dropdown-content li {
  width: 100%;
}

.dropdown-content li a {
  padding: 0.5rem 1rem;
}

nav ul li:hover > .dropdown-content {
  display: block;
}

/* Hero section */
.hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  display: flex;
  align-items: stretch;
  /* Align content to the left to allow the right side of the hero image to be visible.
     The hero-left and hero-right containers each occupy 50% of the width. */
  justify-content: flex-start;
  color: #ffffff;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* keep the head visible by positioning the top of the image */
  object-position: center top;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* gradient overlay with reduced opacity so the portrait remains visible
     while still tinting the background with our warm palette */
  background: linear-gradient(135deg, rgba(255,127,102,0.18), rgba(242,101,163,0.18));
  z-index: 1;
}

/* decorative angled gradient shape on hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
  transform: rotate(-45deg);
  /* reduce opacity further to let the vibrant colours of the hero shine through */
  opacity: 0.25;
  z-index: 0;
}

.hero-content {
  /* Position relative so it participates in the flow of hero-left; text is left‑aligned. */
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 2rem;
  max-width: 100%;
}

/* Layout for hero halves */
.hero-left, .hero-right {
  flex: 1 1 50%;
  position: relative;
  height: 100%;
}

/* Hero left panel: a translucent panel to host the introduction text. The
   semi‑transparent background ensures good contrast against the page while
   allowing some of the underlying gradient to show through. */
.hero-left {
  background-color: rgba(250, 244, 250, 0.9);
  color: var(--dark-color);
  display: flex;
  align-items: center;
}

/* Ensure text in the hero appears dark on the light panel */
.hero-left h1,
.hero-left p,
.hero-left a {
  color: var(--dark-color);
}


.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin: 0 0 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.15rem;
  margin: 0.5rem 0;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 1rem;
}

.btn {
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  margin: 0 0.25rem;
  display: inline-block;
  transition: background-color 0.3s ease;
}

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

/* Main content area */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

main h1 {
  color: var(--primary-color);
  margin-top: 0;
}

main h2 {
  color: var(--secondary-color);
  margin-top: 2rem;
}

main h3 {
  color: var(--primary-color);
  margin-top: 1.5rem;
  font-size: 1.15rem;
}

main ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
}

main ul li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Card component for service descriptions
 * Each card uses a subtle box shadow and rounded corners to give a professional and modern feel.
 */
.service-card {
  background-color: var(--light-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-top: 4px solid var(--accent-color);
}

.service-card h2 {
  margin-top: 0;
  color: var(--primary-color);
}

.service-card h3 {
  color: var(--secondary-color);
}

/* App marketplace preview */
.app-intro {
  max-width: 760px;
}

.marketplace-preview {
  display: block;
  margin-top: 2rem;
  color: inherit;
  text-decoration: none;
}

.marketplace-screen {
  display: block;
  overflow: hidden;
  background-color: var(--light-color);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(242, 101, 163, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.marketplace-preview:hover .marketplace-screen,
.marketplace-preview:focus .marketplace-screen {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.marketplace-topbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 1rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.marketplace-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.75);
}

.marketplace-content {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.25rem 2rem;
  padding: 2rem;
}

.marketplace-badge,
.marketplace-title,
.marketplace-subtitle,
.marketplace-copy {
  grid-column: 1;
}

.marketplace-badge {
  color: var(--secondary-color);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketplace-title {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.marketplace-subtitle {
  color: var(--dark-color);
  font-weight: 600;
}

.marketplace-copy {
  max-width: 620px;
  line-height: 1.7;
}

.marketplace-meta {
  display: grid;
  gap: 0.75rem;
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: start;
  padding: 1.25rem;
  background-color: #ffffff;
  border-radius: 8px;
  border-top: 4px solid var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  font-size: 0.92rem;
}

.marketplace-meta span {
  display: block;
}

.marketplace-cta {
  grid-column: 1 / -1;
  justify-self: start;
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 0.7rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.marketplace-preview:hover .marketplace-cta,
.marketplace-preview:focus .marketplace-cta {
  background-color: var(--hover-color);
}

/* Contact section */
.contact {
  background-color: var(--light-color);
  padding: 2rem 1rem;
  text-align: center;
}

.contact h2 {
  margin-top: 0;
  color: var(--primary-color);
}

.contact p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.contact a {
  color: var(--secondary-color);
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  padding: 1rem;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}

/* Customer logo gallery */
.customer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.logo-row-break {
  flex-basis: 100%;
  height: 0;
}

.customer-logos img {
  display: block;
  max-height: 70px;
  max-width: 200px;
  width: auto;
  /* desaturate and brighten logos for a cohesive look; hover restores original colours */
  filter: grayscale(100%) brightness(1.2);
  transition: filter 0.3s ease;
}

.customer-logos img:hover {
  filter: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-align: center;
  }
  nav {
    width: 100%;
  }
  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.25rem 0.75rem;
  }
  nav ul li a {
    padding: 0.35rem 0.25rem;
  }
  .dropdown-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: static;
    box-shadow: none;
    background-color: transparent;
    min-width: 0;
    padding: 0;
    gap: 0 0.75rem;
  }
  .dropdown-content li a {
    color: #ffffff;
    padding: 0.15rem 0.25rem;
    font-size: 0.9rem;
  }
  .hero {
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .hero::after {
    display: none;
  }
  .hero-left,
  .hero-right {
    flex: none;
    width: 100%;
    height: auto;
  }
  .hero-content {
    padding: 1.5rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-right {
    min-height: 260px;
  }
  .hero-img {
    height: 260px;
  }
  .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .btn {
    margin: 0;
  }
  main {
    padding: 1.5rem 1rem;
  }
  main ul {
    margin-left: 0;
    padding-left: 1.25rem;
  }
  .service-card {
    padding: 1.25rem;
  }
  .marketplace-content {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .marketplace-meta {
    grid-column: 1;
    grid-row: auto;
  }
  .marketplace-title {
    font-size: 1.6rem;
  }
  .customer-logos {
    justify-content: flex-start;
    gap: 1.25rem;
  }
  .customer-logos img {
    max-height: 56px;
    max-width: min(42vw, 160px);
  }
  .contact {
    padding: 1.5rem 1rem;
  }
}

@media (max-width: 420px) {
  .logo {
    font-size: 1.5rem;
  }
  nav ul {
    gap: 0.15rem 0.55rem;
  }
  nav ul li a {
    font-size: 0.9rem;
  }
  .dropdown-content {
    gap: 0 0.55rem;
  }
  .hero-content h1 {
    font-size: 1.75rem;
  }
  .marketplace-content {
    padding: 1.25rem;
  }
  .marketplace-cta {
    width: 100%;
    text-align: center;
  }
  .customer-logos img {
    max-width: min(70vw, 150px);
  }
  footer {
    padding: 0.85rem 1rem;
  }
}
