/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600&display=swap");

:root {
  --primary-color: #0d0d0d;
  --secondary-color: #1a1a1a;
  --accent-color: #007bff;
  --text-color: #ffffff;
  --neon-glow: 0 0 15px rgba(0, 123, 255, 0.5);
  --brand-gradient: linear-gradient(
    270deg,
    var(--text-color) 0%,
    var(--accent-color) 100%
  );
  --border-color: rgba(255, 255, 255, 0.1);
  --container-padding: 2rem;
  --card-radius: 1rem;
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

/*=============== SERVICES SECTION ===============*/
.section__title {
  font-size: calc(2rem + 4vw);
  /* Responsive size */
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3rem;
  color: var(--text-color);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient 5s ease infinite;
}

.services {
  padding: 5rem 0;
}

.services__container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.services__card {
  background: var(--secondary-color);
  border-radius: var(--card-radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services__card:hover {
  transform: translateY(-5px);
}

.services__icon {
  font-size: 8rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
  transition: color 0.3s ease;
  background-color: var(--neon-glow);
}

.services__title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  text-transform: uppercase;
  font-weight: 600;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient 5s ease infinite;
}

.services__description {
  margin-bottom: 2rem;
  flex-grow: 1;
  padding: 0 1rem;
  color: var(--text-color);
  font-size: 1.2rem;
  line-height: 1.5;
}

/*=============== MODAL STYLES ===============*/
.services__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 1rem;
}

.services__modal.active-modal {
  opacity: 1;
  visibility: visible;
}

.services__modal-content {
  background: var(--secondary-color);
  border-radius: var(--card-radius);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.services__modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.services__modal-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient 5s ease infinite;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}

.services__modal-list {
  list-style: none;
}

.services__modal-item {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 1.2rem;
}

.services__modal-item::before {
  content: "▹";
  color: var(--accent-color);
  position: absolute;
  left: 0;
}

.button {
  background: var(--accent-color);
  color: var(--text-color);
  padding: 0.8rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-weight: 600;
}

.button:hover {
  background: #0069d9;
  box-shadow: var(--neon-glow);
}

@media (max-width: 768px) {
  .services__container {
    grid-template-columns: 1fr;
  }
}
