/* =========================================================
   03. Drupal Performance Optimization Banner
   ========================================================= */

.performance-banner {
  min-height: 100vh;
  padding: 70px 0 38px;
  color: #ffffff;
  background:
    radial-gradient(circle at 48% 22%, rgba(0, 89, 255, 0.15), transparent 28%),
    radial-gradient(
      circle at 100% 75%,
      rgba(0, 96, 255, 0.14),
      transparent 25%
    ),
    linear-gradient(135deg, #010817 0%, #03142f 52%, #020a1b 100%);
}

.performance-banner-image{
  width: 600px;
}

.performance-banner-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.performance-banner-glow-one {
  top: -220px;
  left: 25%;
  width: 600px;
  height: 600px;
  background: rgba(0, 85, 255, 0.08);
}

.performance-banner-glow-two {
  right: -180px;
  bottom: 70px;
  width: 480px;
  height: 480px;
  background: rgba(0, 91, 255, 0.1);
}

.performance-banner-main {
  position: relative;
  z-index: 2;
}

.performance-banner-content {
  max-width: 720px;
}

.performance-banner-badge {
  color: #ff6a00;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.performance-badge-line {
  position: relative;
  width: 42px;
  height: 2px;
  background: #ff6a00;
}

.performance-badge-line::before,
.performance-badge-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6a00;
  transform: translateY(-50%);
}

.performance-badge-line::before {
  left: 0;
}

.performance-badge-line::after {
  right: 0;
}

.performance-banner-title h1 {
  color: #ffffff;
  font-size: 55px;
  line-height: 1.24;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.performance-banner-title h1 span {
  color: #ff5a00;
}

.performance-banner-description {
  max-width: 690px;
  color: #dce6f7;
  font-size: 18px;
  line-height: 1.75;
}

.performance-primary-btn,
.performance-secondary-btn {
  min-height: 66px;
  padding: 16px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.performance-primary-btn {
  background: linear-gradient(135deg, #ff7a00, #ff4d00);
  box-shadow: 0 12px 28px rgba(255, 90, 0, 0.25);
}

.performance-secondary-btn {
  border-color: #8ca3c8;
  background: rgba(4, 20, 47, 0.75);
}

.performance-primary-btn:hover,
.performance-secondary-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
}

.performance-secondary-btn:hover {
  border-color: #1687ff;
}

.performance-service-grid {
  max-width: 700px;
}

.performance-service-item {
  min-height: 90px;
  padding: 18px 22px;
  border-right: 1px solid rgba(78, 121, 180, 0.45);
  border-bottom: 1px solid rgba(78, 121, 180, 0.45);
}

.performance-service-grid .col-sm-4:nth-child(3n) .performance-service-item {
  border-right: 0;
}

.performance-service-grid .col-sm-4:nth-child(n + 4) .performance-service-item {
  border-bottom: 0;
}

.performance-service-icon {
  width: 48px;
  color: #3388ff;
  font-size: 36px;
  text-align: center;
}

.performance-service-item p {
  min-width: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.performance-dashboard {
  padding: 0 28px 28px;
  border: 2px solid #1677ff;
  border-radius: 25px;
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 94, 255, 0.14),
      transparent 34%
    ),
    linear-gradient(145deg, rgba(2, 14, 35, 0.98), rgba(3, 27, 64, 0.98));
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.36),
    inset 0 0 34px rgba(0, 80, 255, 0.08);
}

.performance-dashboard-head {
  min-height: 90px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(45, 112, 197, 0.35);
}

.performance-dashboard-logo {
  width: 45px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(180deg, #2e8cff, #0062e6);
  font-size: 28px;
  box-shadow: 0 0 20px rgba(21, 117, 255, 0.32);
}

.performance-dashboard-head h2 {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.performance-report-btn {
  min-height: 43px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(0, 103, 255, 0.55);
  border-radius: 9px;
  color: #4594ff;
  background: rgba(0, 46, 109, 0.22);
  font-size: 14px;
}

.performance-dashboard-overview {
  padding: 20px 0;
}

.performance-score-gauge {
  width: 270px;
  height: 190px;
  overflow: hidden;
}

.performance-gauge-circle {
  width: 270px;
  height: 270px;
  border: 22px solid transparent;
  border-top-color: #ffe500;
  border-right-color: #28bc4d;
  border-bottom-color: #087a3a;
  border-left-color: #ff4e1a;
  border-radius: 50%;
  transform: rotate(-45deg);
}

.performance-score-value {
  margin-top: 12px;
  white-space: nowrap;
}

.performance-score-value strong {
  color: #ffffff;
  font-size: 76px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.performance-score-value span {
  color: #becbe0;
  font-size: 22px;
  font-weight: 700;
}

.performance-gauge-marker {
  position: absolute;
  right: 20px;
  top: 112px;
  width: 40px;
  height: 6px;
  border-radius: 6px;
  background: #ffffff;
  transform: rotate(-19deg);
  transform-origin: right center;
}

.performance-optimized-badge {
  margin-top: -5px;
  padding: 9px 18px;
  border-radius: 50px;
  color: #ffffff;
  background: linear-gradient(135deg, #16a448, #00823e);
  font-size: 15px;
  font-weight: 700;
}

.performance-chart-wrap {
  padding-left: 18px;
  border-left: 1px solid rgba(42, 105, 182, 0.4);
}

.performance-chart-wrap h3 {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
}

.performance-chart {
  display: flex;
  gap: 10px;
}

.performance-chart-y {
  height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #dce8fa;
  font-size: 12px;
}

.performance-chart-area {
  flex: 1;
  min-width: 0;
  height: 175px;
  border-left: 1px solid rgba(23, 93, 172, 0.45);
  border-bottom: 1px solid rgba(23, 93, 172, 0.45);
}

.performance-grid-line {
  position: absolute;
  left: 0;
  width: 100%;
  border-top: 1px solid rgba(23, 93, 172, 0.26);
}

.performance-grid-line::after {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 175px;
  background-image: linear-gradient(
    90deg,
    transparent calc(20% - 1px),
    rgba(23, 93, 172, 0.2) 20%,
    transparent calc(20% + 1px)
  );
  background-size: 20% 100%;
}

.line-100 {
  top: 0;
}

.line-75 {
  top: 25%;
}

.line-50 {
  top: 50%;
}

.line-25 {
  top: 75%;
}

.line-0 {
  top: 100%;
}

.performance-chart-svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 145px;
  color: #117cff;
  overflow: visible;
}

.performance-banner-description p {
  color: #ffffff;
}

.performance-chart-svg circle {
  fill: #167cff;
}

.performance-chart-labels {
  position: relative;
  z-index: 3;
  margin-top: 6px;
  color: #ffffff;
  font-size: 10px;
  white-space: nowrap;
}

.performance-metric {
  min-height: 65px;
  padding: 10px 22px;
  border: 1px solid rgba(16, 91, 182, 0.42);
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(2, 36, 82, 0.92),
    rgba(2, 20, 47, 0.88)
  );
}

.performance-metric-icon {
  width: 46px;
  color: #2f83ff;
  font-size: 33px;
  text-align: center;
}

.performance-metric strong {
  min-width: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.performance-metric-status {
  color: #54dd37;
  font-size: 17px;
}

.performance-check {
  color: #64dd45;
  font-size: 35px;
}

.performance-trust-bar {
  position: relative;
  z-index: 3;
  margin-top: 68px;
  border: 1px solid rgba(37, 100, 180, 0.45);
  border-radius: 22px;
  background: linear-gradient(
    90deg,
    rgba(2, 27, 64, 0.96),
    rgba(3, 20, 48, 0.94)
  );
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.performance-trust-item {
  min-height: 102px;
  padding: 18px 28px;
  border-right: 1px solid rgba(64, 113, 178, 0.45);
}

.performance-trust-bar .col-xl:last-child .performance-trust-item {
  border-right: 0;
}

.performance-trust-icon {
  width: 56px;
  color: #3889ff;
  font-size: 43px;
  text-align: center;
}

.performance-trust-icon-orange {
  color: #ff8a00;
}

.performance-trust-item p {
  min-width: 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.performance-trust-item strong {
  font-size: 22px;
}

.performance-wave {
  z-index: 1;
  height: 200px;
  opacity: 0.8;
  pointer-events: none;
}

.performance-wave-line {
  position: absolute;
  left: -5%;
  width: 110%;
  height: 130px;
  border-top: 4px dotted #006bff;
  border-radius: 50%;
  transform: rotate(2deg);
}

.performance-wave-line-one {
  bottom: 50px;
}

.performance-wave-line-two {
  bottom: 20px;
  opacity: 0.6;
  transform: rotate(-2deg);
}

.performance-wave-line-three {
  right: -10%;
  bottom: -20px;
  left: auto;
  width: 48%;
  border-color: #ff6400;
  opacity: 0.9;
  transform: rotate(-8deg);
}

/* =========================================================
   Drupal Performance Optimization Banner Responsive
   ========================================================= */

@media (max-width: 1600px) {
  .performance-banner {
    padding-top: 58px;
  }

  .performance-banner-badge {
    font-size: 14px;
  }

  .performance-banner-title h1 {
    font-size: 40px;
  }

  .performance-banner-description {
    font-size: 15px;
  }

  .performance-primary-btn,
  .performance-secondary-btn {
    min-height: 58px;
    padding: 14px 18px;
    font-size: 14px;
  }

  .performance-service-item {
    padding: 15px;
  }

  .performance-service-item p {
    font-size: 12px;
  }

  .performance-service-icon {
    width: 38px;
    font-size: 29px;
  }

  .performance-dashboard-head h2 {
    font-size: 20px;
  }

  .performance-score-gauge {
    width: 235px;
    height: 170px;
  }

  .performance-gauge-circle {
    width: 235px;
    height: 235px;
  }

  .performance-score-value strong {
    font-size: 64px;
  }

  .performance-metric {
    padding: 10px 16px;
  }

  .performance-metric strong {
    font-size: 16px;
  }

  .performance-metric-status {
    font-size: 14px;
  }

  .performance-trust-item {
    padding: 16px 20px;
  }

  .performance-trust-item p {
    font-size: 14px;
  }

  .performance-trust-item strong {
    font-size: 19px;
  }
}

@media (max-width: 1199px) {
  .performance-banner-content {
    max-width: 100%;
  }

  .performance-dashboard {
    max-width: 780px;
    margin: 0 auto;
  }

  .performance-trust-bar {
    margin-top: 45px;
  }

  .performance-trust-item {
    border-right: 1px solid rgba(64, 113, 178, 0.45);
    border-bottom: 1px solid rgba(64, 113, 178, 0.45);
  }

  .performance-trust-bar .col-sm-6:nth-child(2n) .performance-trust-item {
    border-right: 0;
  }

  .performance-trust-bar .col-xl:last-child .performance-trust-item {
    border-bottom: 0;
  }
  .performance-banner-image img {
    width: 500px !important;
  }
  .performance-impact-image img {
    width: 300px !important;
  }
}

@media (max-width: 991px) {
  .performance-banner {
    min-height: auto;
  }

  /* .performance-banner-actions {
    justify-content: center;
  } */

  /* .performance-banner-description {
    margin-right: auto;
    margin-left: auto;
  } */

  .performance-dashboard {
    padding-right: 22px;
    padding-left: 22px;
  }

  .performance-dashboard-overview .row {
    justify-content: center;
  }

  .performance-chart-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid rgba(42, 105, 182, 0.4);
    border-left: 0;
  }

  .performance-trust-icon {
    font-size: 38px;
  }
  .performance-banner-image img {
    width: 300px !important;
  }
}

@media (max-width: 767px) {
  .performance-banner {
    padding: 44px 0 30px;
  }

  .performance-banner-badge {
    justify-content: flex-start;
    gap: 10px !important;
    font-size: 12px;
    text-align: left;
  }

  .performance-badge-line {
    width: 30px;
  }

  .performance-banner-title h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .performance-banner-title h1 br {
    display: none;
  }

  .performance-banner-description {
    font-size: 15px;
    line-height: 1.65;
  }

  .performance-banner-actions {
    flex-direction: column;
  }

  .performance-primary-btn,
  .performance-secondary-btn {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 12px 16px;
    font-size: 14px;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .performance-service-item {
    min-height: 78px;
    border-right: 0;
    border-bottom: 1px solid rgba(78, 121, 180, 0.45);
  }

  .performance-service-grid
    .col-sm-4:nth-child(n + 4)
    .performance-service-item {
    border-bottom: 1px solid rgba(78, 121, 180, 0.45);
  }

  .performance-service-grid .col-sm-4:last-child .performance-service-item {
    border-bottom: 0;
  }

  .performance-service-item p {
    font-size: 14px;
  }

  .performance-dashboard {
    padding-right: 14px;
    padding-bottom: 18px;
    padding-left: 14px;
    border-radius: 18px;
  }

  .performance-dashboard-head {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .performance-dashboard-head h2 {
    font-size: 18px;
  }

  .performance-report-btn {
    width: 100%;
  }

  .performance-score-gauge {
    width: 220px;
    height: 155px;
  }

  .performance-gauge-circle {
    width: 220px;
    height: 220px;
    border-width: 18px;
  }

  .performance-score-value strong {
    font-size: 58px;
  }

  .performance-score-value span {
    font-size: 18px;
  }

  .performance-gauge-marker {
    right: 15px;
    top: 94px;
  }

  .performance-chart {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .performance-chart-area {
    min-width: 340px;
  }

  .performance-metric {
    min-height: 60px;
    padding: 10px 12px;
    gap: 10px !important;
  }

  .performance-metric-icon {
    width: 34px;
    font-size: 26px;
  }

  .performance-metric strong {
    font-size: 14px;
  }

  .performance-metric-status {
    display: none;
  }

  .performance-check {
    margin-left: auto;
    font-size: 28px;
  }

  .performance-trust-bar {
    border-radius: 16px;
  }

  .performance-trust-item {
    min-height: 88px;
    justify-content: flex-start !important;
    border-right: 0;
    border-bottom: 1px solid rgba(64, 113, 178, 0.45);
  }

  .performance-trust-bar .col-sm-6:nth-child(2n) .performance-trust-item {
    border-right: 0;
  }

  .performance-trust-bar .col-xl:last-child .performance-trust-item {
    border-bottom: 0;
  }

  .performance-trust-icon {
    width: 46px;
    font-size: 35px;
  }

  .performance-trust-item p {
    font-size: 14px;
  }
  .performance-trust-text {
    font-size: 12px;
  }
  .performance-banner {
    padding: 5% 3%;
  }
}

@media (max-width: 575.98px) {
  .performance-banner-title h1 {
    font-size: 32px;
  }

  .performance-banner-badge {
    line-height: 1.45;
  }

  .performance-badge-line:last-child {
    display: none;
  }

  .performance-dashboard-logo {
    width: 40px;
    height: 48px;
    font-size: 24px;
  }

  .performance-dashboard-head h2 {
    font-size: 16px;
  }

  .performance-score-gauge {
    width: 190px;
    height: 140px;
  }

  .performance-gauge-circle {
    width: 190px;
    height: 190px;
    border-width: 16px;
  }

  .performance-score-value {
    margin-top: 2px;
  }

  .performance-score-value strong {
    font-size: 48px;
  }

  .performance-gauge-marker {
    top: 83px;
    width: 32px;
  }

  .performance-optimized-badge {
    padding: 8px 14px;
    font-size: 13px;
  }

  .performance-metric strong {
    font-size: 13px;
  }
}

/* base styles */
h2 {
  font-size: 44px !important;
}

@media (max-width: 1599.98px) {
  h2 {
    font-size: 32px !important;
  }
}

@media (max-width: 1399.98px) {
  h2 {
    font-size: 30px !important;
  }
}

@media (max-width: 1199.98px) {
  h2 {
    font-size: 28px !important;
  }
}

@media (max-width: 991.98px) {
  h2 {
    font-size: 26px !important;
  }
}

@media (max-width: 767.98px) {
  h2 {
    font-size: 22px !important;
  }
}

@media (max-width: 575.98px) {
  h2 {
    font-size: 21px !important;
  }
}

@media (max-width: 374.98px) {
  h2 {
    font-size: 20px !important;
  }
}

