/* Custom styles for MaStacks LLC */

:root {
  --mastacks-primary: #0e28e5;
  --mastacks-secondary: #121a5a;
  --mastacks-accent: #c43311;
  --section-spacing: 3rem;
}

/* Navigation menu visibility - light gray with transparency */
#topnav .navigation-menu.nav-light > li > a {
  color: rgb(220 220 220 / 0.9) !important;
}

#topnav .navigation-menu.nav-light > li:hover > a,
#topnav .navigation-menu.nav-light > li.active > a {
  color: rgb(150 150 150) !important;
}

#topnav .navigation-menu.nav-light .has-submenu .menu-arrow {
  border-color: rgb(220 220 220 / 0.9) !important;
}

#topnav .navigation-menu.nav-light > li:hover > .menu-arrow,
#topnav .navigation-menu.nav-light > li.active > .menu-arrow {
  border-color: rgb(150 150 150) !important;
}

/* Section styling */
section {
  scroll-behavior: smooth;
}

/* Alternating section backgrounds */
section:nth-child(odd) {
  background-color: #f8f9fa;
}

section:nth-child(even) {
  background-color: #ffffff;
}

/* Section titles with subtitle */
section h2 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: var(--section-spacing);
}

section h2 span:first-child {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

section h2 span:last-child {
  font-size: 0.9rem;
  color: #718096;
  font-weight: 400;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  section h2 span:first-child {
    font-size: 1.8rem;
  }

  section h2 span:last-child {
    font-size: 0.8rem;
  }
}

/* Fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }

/* Service cards enhancement */
section > div > div > div {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section > div > div > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* About section image styling */
.about-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hero section overlay text styling */
section[id="start"] h1 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 3.5rem;
}

section[id="start"] p {
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
  font-size: 1.5rem;
}

/* Button styling enhancement */
a.inline-block,
button {
  transition: all 0.3s ease;
  border-radius: 4px;
}

a.inline-block:hover,
button:hover {
  transform: scale(1.05);
}

/* Section spacing */
section {
  padding: var(--section-spacing) 0;
}

/* Container max-width optimization */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Grid gap enhancement */
.grid {
  gap: 2rem;
}

/* Text readability */
p {
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
}

/* Feature cards */
section div[class*="grid"] > div {
  padding: 2rem;
  border-radius: 8px;
  background: white;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

section div[class*="grid"] > div:hover {
  border-color: var(--mastacks-primary);
  box-shadow: 0 8px 20px rgba(14, 40, 229, 0.1);
}

/* Icon styling */
i.fa-solid,
i.uil {
  color: var(--mastacks-primary);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  section {
    padding: 2rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  section[id="start"] h1 {
    font-size: 2.5rem;
  }

  section[id="start"] p {
    font-size: 1.2rem;
  }
}
