 /* Updated file structure - moved from assets/css/ to css/ */
/* Main Styles for Mai Daraja Global Website */

/* Custom Properties */
:root {
  --primary-blue: #264b73;
  --accent-orange: #f28c28;
  --secondary-blue: #3b82c4;
  --success-green: #10b981;
  --warning-red: #ef4444;
  --bg-gray: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
}

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

body {
  font-family: "Open Sans", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-gray);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Header Styles */
.header-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Fixed mobile menu icon visibility */
#mobile-menu-btn {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1000;
}

/* Ensure mobile menu is properly styled */
#mobile-menu {
  position: relative;
  z-index: 999;
  transition: all 0.3s ease;
}

#mobile-menu.show {
  display: block !important;
}

/* Make sure Remix icons are visible */
.ri-menu-line {
  font-size: 1.5rem !important;
  color: var(--primary-blue) !important;
  display: inline-block !important;
}

/* Particles Background */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Custom Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), #e67e22);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(242, 140, 40, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-blue);
  padding: 12px 24px;
  border: 2px solid var(--primary-blue);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
}

/* Card Styles */
.service-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(38, 75, 115, 0.1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Added project gallery styles */
.project-gallery {
  padding: 4rem 0;
  background: white;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Added filter button styles */
.filter-btn {
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.filter-btn.active {
  background-color: var(--primary-blue) !important;
  color: white !important;
}

.filter-btn:not(.active):hover {
  background-color: var(--primary-blue) !important;
  color: white !important;
}

/* Form Styles */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: white;
  resize: vertical;
  min-height: 120px;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.1);
}

/* Loading States */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .service-card,
  .project-card {
    margin-bottom: 2rem;
  }

  /* Ensure mobile menu button is always visible on mobile */
  #mobile-menu-btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
}
