/* =========================================
   SERVICES PAGE SPECIFIC STYLES
   ========================================= */

/* --- HERO SECTION --- */
/* FIXED: Removed conflicting .page-title-section and .page-title-content rules. 
   These are now universally controlled by the master style.css to prevent banner opacity gaps. */

.scroll-down-icon {
  font-size: 20px;
  color: var(--accent-primary);
  animation: bounce 2s infinite;
  display: inline-block;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

/* --- SERVICES MAIN LAYOUT --- */
.services-page-main {
  padding: 100px 0;
  background-color: var(--bg-main);
  position: relative;
  border-top: 1px solid var(--border-glass);
}

.services-page-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 80px;
  flex-wrap: wrap;
  gap: 40px;
}

.header-left { 
  flex: 1; 
  min-width: 300px; 
}

.header-right { 
  flex: 1; 
  min-width: 300px; 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-end; 
  gap: 20px; 
}

.header-right p { 
  color: var(--text-muted); 
  font-size: 16px; 
  line-height: 1.7; 
}

.page-subtitle { 
  color: var(--accent-primary); 
  font-weight: 700; 
  letter-spacing: 3px; 
  font-size: 12px; 
  text-transform: uppercase; 
  display: block; 
  margin-bottom: 15px; 
}

.page-title { 
  font-size: clamp(38px, 5vw, 58px); 
  line-height: 1.1; 
  font-weight: 600; 
  color: #ffffff; 
  font-family: "Semplice Pro", sans-serif; 
  margin: 0; 
  text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
}

/* --- 3 COLUMN GRID --- */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-page-card {
  padding: 50px 40px;
  text-decoration: none; 
  display: flex; 
  flex-direction: column;
  color: inherit; 
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-icon { 
  font-size: 40px; 
  margin-bottom: 35px; 
  color: var(--accent-primary); 
  transition: all 0.4s; 
}

.service-page-card h3 { 
  font-size: 22px; 
  line-height: 1.3; 
  margin-bottom: 20px; 
  font-weight: 600; 
  font-family: "Semplice Pro", sans-serif; 
  color: #ffffff; 
  transition: color 0.4s; 
}

.service-page-card p { 
  font-size: 15px !important; 
  color: var(--text-muted) !important; 
  line-height: 1.7; 
  margin-bottom: 40px !important; 
  flex-grow: 1; 
}

.card-footer { 
  height: 30px; 
  overflow: hidden; 
  position: relative; 
  margin-top: auto; 
  border-top: 1px solid var(--border-glass); 
  padding-top: 20px;
}

.read-more-wrapper { 
  display: flex; 
  align-items: center; 
  position: relative; 
  width: 100%; 
  height: 100%; 
}

.read-more-text { 
  position: absolute; 
  left: -120px; 
  opacity: 0; 
  font-size: 13px; 
  font-weight: 700; 
  color: var(--accent-primary); 
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
  text-transform: uppercase; 
  letter-spacing: 1px; 
}

.arrow-icon { 
  font-size: 20px; 
  color: var(--accent-primary); 
  transition: all 0.4s ease; 
  transform: translateX(0); 
}

/* Hover Effects */
.service-page-card:hover .card-icon { 
  transform: translateY(-10px) scale(1.1); 
  color: #fff; 
}
.service-page-card:hover .read-more-text { 
  left: 0; 
  opacity: 1; 
}
.service-page-card:hover .arrow-icon { 
  transform: translateX(200px); 
  opacity: 0; 
}

/* --- GLASSMORPHISM MODALS --- */
.custom-modal { 
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  background-color: rgba(6, 9, 15, 0.85); 
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px); 
  align-items: center; 
  justify-content: center; 
  opacity: 0; 
  transition: opacity 0.4s ease; 
}

.custom-modal.active { 
  display: flex; 
  opacity: 1; 
}

.modal-content {
  background: linear-gradient(135deg, rgba(26, 35, 47, 0.9) 0%, rgba(17, 24, 33, 0.95) 100%);
  border: 1px solid var(--border-glass);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 50px 40px;
  width: 90%;
  max-width: 450px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal.active .modal-content { 
  transform: translateY(0) scale(1); 
}

.close-modal { 
  position: absolute; 
  top: 15px; 
  right: 25px; 
  color: var(--text-muted); 
  font-size: 32px; 
  font-weight: 400; 
  cursor: pointer; 
  transition: color 0.3s, transform 0.3s; 
}

.close-modal:hover { 
  color: var(--accent-primary); 
  transform: rotate(90deg); 
}

.modal-title { 
  color: #ffffff; 
  font-family: "Semplice Pro", sans-serif; 
  font-size: 26px; 
  margin-bottom: 30px; 
  font-weight: 600; 
}

.modal-buttons { 
  display: flex; 
  flex-direction: column; 
  gap: 15px; 
}

/* RESPONSIVE OVERRIDES */
@media (max-width: 1024px) { 
  .services-page-grid { grid-template-columns: repeat(2, 1fr); } 
}

@media (max-width: 768px) { 
  .services-page-grid { grid-template-columns: 1fr; } 
  .services-page-header { flex-direction: column; gap: 20px; margin-bottom: 50px; } 
  .page-title { font-size: 38px; } 
}