/* ============================================
   NEW GLAS 2026 - About2 Shortcode
   Crystal Architecture: Premium glass aesthetics
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&display=swap');

.ng-about2-wrapper {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background:
    radial-gradient(ellipse at 20% 30%, rgba(0, 188, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(10, 126, 163, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #0A7EA3 0%, #00BCD4 100%);
  padding: 80px 0 90px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.ng-about2-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 20%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.5) 80%,
    transparent 100%
  );
}

.ng-about2-container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 30px;
}

.ng-about2-heading {
  font-family: 'Sora', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin: 0 0 60px 0;
  line-height: 1.15;
  letter-spacing: -1.5px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.ng-about2-accent {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 42px;
  font-weight: 700;
  margin-top: 12px;
  letter-spacing: -1.2px;
}

.ng-about2-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ng-about2-card {
  position: relative;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.ng-about2-card::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(
    135deg,
    rgba(0, 188, 212, 0.6) 0%,
    rgba(0, 136, 204, 0.4) 50%,
    rgba(10, 126, 163, 0.6) 100%
  );
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  filter: blur(12px);
}

.ng-about2-card:hover::before {
  opacity: 1;
}

.ng-about2-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 10;
}

.ng-about2-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  overflow: hidden;
  background: #000000;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.1) inset,
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ng-about2-card:hover .ng-about2-card-inner {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 30px 70px rgba(0, 0, 0, 0.5),
    0 15px 35px rgba(0, 136, 204, 0.4);
}

.ng-about2-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(0.85) contrast(1.1) saturate(0.95);
}

.ng-about2-card:hover .ng-about2-image {
  transform: scale(1.08);
  filter: brightness(0.5) contrast(1.15) saturate(1.1);
}

.ng-about2-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(10, 126, 163, 0.3) 60%,
    rgba(10, 126, 163, 0.85) 100%
  );
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.ng-about2-card:hover .ng-about2-overlay {
  background:
    linear-gradient(
      135deg,
      rgba(0, 188, 212, 0.75) 0%,
      rgba(0, 136, 204, 0.85) 50%,
      rgba(10, 126, 163, 0.95) 100%
    );
}

.ng-about2-card-border {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.ng-about2-card-border::before,
.ng-about2-card-border::after {
  content: '';
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 50%,
    transparent 100%
  );
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ng-about2-card-border::before {
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
}

.ng-about2-card-border::after {
  bottom: 0;
  right: -100%;
  width: 100%;
  height: 2px;
}

.ng-about2-card:hover .ng-about2-card-border::before {
  left: 100%;
}

.ng-about2-card:hover .ng-about2-card-border::after {
  right: 100%;
}

.ng-about2-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.4;
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.3px;
}

.ng-about2-card:hover .ng-about2-text {
  bottom: 50%;
  transform: translateY(50%);
  font-size: 20px;
  letter-spacing: 0.5px;
  padding: 36px 28px;
}

.ng-about2-card:nth-child(1) {
  animation: card-float-1 6s ease-in-out infinite;
}

.ng-about2-card:nth-child(2) {
  animation: card-float-2 6.5s ease-in-out infinite;
}

.ng-about2-card:nth-child(3) {
  animation: card-float-3 7s ease-in-out infinite;
}

.ng-about2-card:nth-child(4) {
  animation: card-float-4 6.8s ease-in-out infinite;
}

@keyframes card-float-1 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes card-float-2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes card-float-3 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes card-float-4 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
  .ng-about2-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .ng-about2-heading {
    font-size: 40px;
    margin-bottom: 50px;
  }

  .ng-about2-accent {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .ng-about2-wrapper {
    padding: 60px 0 70px;
  }

  .ng-about2-container {
    padding: 0 20px;
  }

  .ng-about2-heading {
    font-size: 32px;
    margin-bottom: 40px;
    letter-spacing: -1px;
  }

  .ng-about2-accent {
    font-size: 28px;
    margin-top: 8px;
  }

  .ng-about2-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ng-about2-card-inner {
    border-width: 2px;
  }

  .ng-about2-text {
    font-size: 15px;
    padding: 20px 16px;
  }

  .ng-about2-card:hover .ng-about2-text {
    font-size: 17px;
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .ng-about2-wrapper {
    padding: 50px 0 60px;
  }

  .ng-about2-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ng-about2-heading {
    font-size: 26px;
  }

  .ng-about2-accent {
    font-size: 24px;
  }

  .ng-about2-text {
    font-size: 16px;
    padding: 22px 18px;
  }

  .ng-about2-card:hover .ng-about2-text {
    font-size: 18px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  .ng-about2-card,
  .ng-about2-card-inner,
  .ng-about2-image,
  .ng-about2-overlay,
  .ng-about2-text,
  .ng-about2-card-border::before,
  .ng-about2-card-border::after {
    animation: none !important;
    transition: none !important;
  }

  .ng-about2-card:hover .ng-about2-card-inner {
    transform: none;
  }

  .ng-about2-card:hover .ng-about2-image {
    transform: none;
  }

  .ng-about2-card:hover .ng-about2-text {
    transform: translateY(50%);
  }
}
