/* Mwezi Technologies - Premium Global Styles */

:root {
  /* Premium Color Palette */
  --color-primary: #0F172A;
  /* Slate 900 */
  --color-primary-light: #1E293B;
  /* Slate 800 */
  --color-accent: #F59E0B;
  /* Amber 500 */
  --color-water: #0EA5E9;
  /* Sky 500 */
  --color-bg: #F8FAFC;
  /* Slate 50 */
  --color-surface: #FFFFFF;
  --color-text: #334155;
  /* Slate 700 */
  --color-text-light: #64748B;
  /* Slate 500 */

  /* Typography */
  --font-main: 'Inter', sans-serif;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 5rem;

  /* Premium Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Radii */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  --bottom-nav-height: 70px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
  position: relative;
}

/* Header & Nav */
.header {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--spacing-sm) 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  /* Refined size */
  width: auto;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: #f1f5f9;
  color: var(--color-accent);
}

.nav-link .material-symbols-rounded {
  font-size: 1.25rem;
}

/* Mobile Bottom Nav */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e2e8f0;
  padding: 0.5rem 1rem;
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 0.75rem;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
  color: var(--color-primary);
}

.bottom-nav-item .material-symbols-rounded {
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .header .nav {
    display: none;
  }

  .bottom-nav {
    display: flex;
  }

  body {
    padding-bottom: var(--bottom-nav-height);
  }

  /* Ensure logo stays left aligned, not centered */
  .header-container {
    justify-content: flex-start;
  }

  /* If the logo itself has margins causing centering, reset them */
  .logo {
    margin-left: 0;
  }

  /* Hero Mobile Optimization */
  .hero-content h1 {
    font-size: 2.5rem !important;
    /* Force smaller size */
    line-height: 1.1;
  }

  .hero-content h2 {
    font-size: 1rem !important;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    /* Full width buttons */
    justify-content: center;
  }
}

/* Buttons (Premium) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  gap: 0.5rem;
}

.btn:active {
  transform: scale(0.95);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-surface);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--color-surface);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: var(--color-white);
}

.btn-outline {
  border: 1px solid var(--color-text-light);
  color: var(--color-primary);
  background: transparent;
}

.btn-outline:hover {
  color: var(--color-surface);
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-10px) translateX(-50%);
  }

  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Card Styles */
.value-prop-card,
.project-card,
.contact-form,
.service-image-block {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-prop-card:hover,
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Feature Block (Single Column Centered) */
.feature-block {
  display: block;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 6rem auto;
}

.feature-block:last-child {
  margin-bottom: 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- OVERHAULED PROJECT CARD --- */
.project-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* Ensures images stay within rounded corners */
  box-shadow: var(--shadow-xl);
  transition: transform 0.3s ease;
  max-width: 900px;
  /* Increased slightly to accommodate 4 images */
  width: 100%;
  margin: 0 auto;
}

.project-card:hover {
  transform: translateY(-5px);
}

/* 4-Column Image Row */
.project-images-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  /* Tiny gap for separation */
  background-color: #e2e8f0;
  /* Color between images */
  border-bottom: 1px solid #e2e8f0;
}

.image-item {
  aspect-ratio: 4/3;
  /* Consistent height */
  overflow: hidden;
  background-color: #f8fafc;
  position: relative;
  cursor: pointer;
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-item:hover img {
  transform: scale(1.1);
}

.project-content {
  padding: 2.5rem;
  text-align: left;
  /* Reset text align if needed */
}

.project-location {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

@media (max-width: 640px) {

  /* Keep images in a single row (4 cols) even on mobile, just smaller */
  .image-item {
    aspect-ratio: 1/1;
    /* Square on mobile to save vertical space */
  }
}


/* --- CONTACT CARDS --- */
.contact-info-card {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-info-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: #F0F9FF;
  color: var(--color-water);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box span {
  font-size: 1.5rem;
}

.contact-text h4 {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-transform: uppercase;
}

.contact-text a,
.contact-text p {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.2;
}


/* Contact Form Container */
.contact-form {
  padding: 3rem;
  /* Generous padding */
}

@media (max-width: 640px) {
  .contact-form {
    padding: 1.5rem;
  }
}

/* Contact Form Inputs */
.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.2s;
  margin-bottom: 1.25rem;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--color-water);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
}


/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 0 2rem 0;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item:hover {
  color: var(--color-white);
}

.footer-contact-item .material-symbols-rounded {
  color: var(--color-accent);
  font-size: 1.25rem;
}