.page-header{
  position:relative;
  padding:0;
  min-height:600px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.page-header::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      to right,
      rgba(2,6,23,0.85) 0%,
      rgba(2,6,23,0.78) 40%,
      rgba(2,6,23,0.68) 70%,
      rgba(2,6,23,0.55) 100%
    ),
    url('/assets/images/ThreePowerfulportals.png') center/ cover no-repeat;
  animation:heroZoom 18s ease-in-out infinite alternate;
  z-index:0;
  transform-origin:center;
}

.page-header .container{
  position:relative;
  z-index:1;
}

.portals-hero{
  text-align:center;
  color:#ffffff;
  padding:120px 20px;
  max-width:900px;
  margin:0 auto;
}

@keyframes heroZoom{
  0%{ transform:scale(1) translateY(0px); }
  100%{ transform:scale(1.08) translateY(-15px); }
}

.portals-hero h1{
  font-size:60px;
  font-weight:900;
  margin:0 0 18px;
  animation:fadeUp 1.2s ease forwards;
  text-shadow:0 10px 30px rgba(0,0,0,0.45);
}

.portals-hero p{
  font-size:20px;
  max-width:720px;
  margin:0 auto;
  color:rgba(255,255,255,0.92);
  animation:fadeUp 1.6s ease forwards;
  text-shadow:0 8px 22px rgba(0,0,0,0.35);
}

@keyframes fadeUp{
  0%{ opacity:0; transform:translateY(30px); }
  100%{ opacity:1; transform:translateY(0); }
}

.portal-wrap{
  padding:40px 0 80px;
  background:transparent;
}

.portal-head{
  text-align:center;
  max-width:900px;
  margin:0 auto 30px;
}

.portal-head h2{
  font-size:40px;
  margin-bottom:14px;
  color: #334155;
  font-weight:800;
}

.portal-head p{
  font-size:18px;
  color:#64748b;
}

.portal-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:30px;
}

.portal-card{
  background:#ffffff;
  border-radius:20px;
  padding:40px;
  box-shadow:0 20px 60px rgba(0,0,0,0.06);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  border:1px solid rgba(15,23,42,0.08);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.portal-card:hover{
  transform:translateY(-6px);
  box-shadow:0 25px 70px rgba(0,0,0,0.10);
  border-color:rgba(47,111,163,0.28);
}

.portal-card i{
  font-size:48px;
  margin-bottom:20px;
  color:#2F6FA3;
}

.portal-card h3{
  margin-bottom:14px;
  color: #334155;
  font-weight:800;
}

.portal-card p{
  font-size:16px;
  line-height:1.7;
  color:#475569;
  margin:0;
}

.cta-section{
  padding:90px 0;
  text-align:center;
  background:transparent;
}

.cta-section h2{
  font-size:40px;
  margin-bottom:20px;
  color: #334155;
  font-weight:800;
}

.cta-section p{
  font-size:18px;
  color:#64748b;
  margin-bottom:30px;
}

@media (max-width:1100px){
  .portal-grid{ grid-template-columns:repeat(2, 1fr); }
}

@media (max-width:992px){
  .page-header{ min-height:520px; }
  .portals-hero{ padding:90px 20px; }
}

@media (max-width:560px){
  .portal-grid{ grid-template-columns:1fr; }
  .portal-card{ padding:30px; }
}

@media (max-width:576px){
  .page-header{ min-height:460px; }
  .portals-hero{ padding:70px 18px; }
  .portals-hero h1{ font-size:36px; }
  .portals-hero p{ font-size:16px; }
  .portal-head h2{ font-size:28px; }
  .cta-section h2{ font-size:28px; }
}

@media (prefers-reduced-motion: reduce){
  .page-header::before{ animation:none !important; }
  .portals-hero h1,
  .portals-hero p{ animation:none !important; }
}