/* =============================================
   MENA INFINOX DMCC - Custom Styles
   Built on Bootstrap 5.1.3
   ============================================= */

/* --- Variables --- */
:root {
  --color-primary: #00b894;
  --color-primary-dark: #00a07a;
  --color-secondary: #00cec9;
  --color-dark: #1a1a2e;
  --color-dark-bg: #16213e;
  --color-text: #333;
  --color-text-light: #ccc;
  --color-white: #fff;
  --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* --- Base --- */
body {
  font-family: 'acumin-pro', 'Helvetica Neue', Arial, sans-serif;
  color: var(--color-text);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--color-primary-dark);
}

/* --- Utility --- */
.py-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.py-lg-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

/* --- Navbar --- */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
}

.navbar .btn-outline-success {
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.navbar .btn-outline-success:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* --- Header Section --- */
.header-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.home-header-section {
  background: var(--gradient-dark);
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.home-header-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(0, 184, 148, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 206, 201, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.home-header-section::after {
  content: '';
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(0,184,148,0.2), rgba(0,206,201,0.1));
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.home-header-section h1 {
  font-size: 3rem;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.home-header-section .lead {
  font-size: 1.15rem;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}

/* --- Section Titles --- */
.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.section-title-sm {
  font-size: 2rem;
}

.bg-dark .section-title,
.gradient-bg .section-title {
  color: var(--color-white);
}

/* --- Features / Solutions --- */
#solutions {
  background: #f8f9fa;
}

.features-container .feature {
  background: var(--color-white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.features-container .feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.features-container .feature h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
}

.features-container .feature h2.text-primary {
  color: var(--color-primary) !important;
}

.features-container .feature p {
  flex: 1;
  color: #666;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.features-container .btn-outline-success {
  border-color: var(--color-primary);
  color: var(--color-primary);
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.features-container .btn-outline-success:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* --- Gradient Background (Dark sections) --- */
.gradient-bg {
  background: var(--gradient-dark);
  color: var(--color-white);
}

/* --- Knowledge / Key Numbers --- */
.knowledge {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.knowledge-title {
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.knowledge-desc {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.knowledge-desc:last-child {
  border-bottom: none;
}

.knowledge img {
  border-radius: 12px;
}

/* --- About Us --- */
#about-us {
  position: relative;
  background: #f8f9fa;
}

#about-us p {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* --- Values --- */
.values-container .value {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e9ecef;
}

.value-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value1-title {
  color: var(--color-primary);
}

.value2-title {
  color: #0984e3;
}

.value3-title {
  color: #6c5ce7;
}

.value-desc,
.values-container .knowledge-desc {
  color: #666;
  line-height: 1.7;
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

/* --- Triangle Decorations --- */
#triangle1, #triangle2, #triangle3, #triangle4,
#triangle5, #triangle6, #triangle7 {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  z-index: 0;
}

#triangle1 {
  right: 0;
  bottom: 0;
  width: 200px;
}

#triangle2 {
  left: 0;
  top: 0;
  width: 150px;
}

#triangle3 {
  left: 0;
  top: 0;
  width: 180px;
}

#triangle4 {
  right: 0;
  bottom: 20%;
  width: 120px;
}

#triangle5 {
  left: 0;
  top: 0;
  width: 180px;
}

#triangle6 {
  right: 0;
  bottom: 0;
  width: 160px;
}

#triangle7 {
  right: 10%;
  top: 0;
  width: 100px;
}

/* --- Footer --- */
footer {
  color: rgba(255, 255, 255, 0.8);
}

footer .fw-bold {
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

footer a {
  color: var(--color-primary);
}

footer a:hover {
  color: var(--color-secondary);
}

footer p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Contact Page --- */
.contact-header-section {
  background: var(--gradient-dark);
  min-height: 300px;
}

.contact-form {
  background: var(--color-white);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-form .form-control {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
}

.contact-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 184, 148, 0.15);
}

.contact-form .btn-success {
  background: var(--gradient-primary);
  border: none;
  border-radius: 25px;
  padding: 0.75rem 2.5rem;
  font-weight: 600;
}

.contact-form .btn-success:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.contact-info-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.contact-info-card .icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .home-header-section h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .knowledge-title {
    font-size: 2.25rem;
  }

  .py-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .knowledge {
    padding: 1.5rem;
  }
}

@media (min-width: 769px) {
  .home-header-section {
    min-height: 550px;
  }
}
