/* ==========================================================
   NOVA EDUSPACE — HOME ABOUT SECTION
   File: home-about.css
   Matches the supplied light, premium About-section reference.
   Scope: styles only the homepage .about-section.
   ========================================================== */

.about-section {
  --ha-ink: #102747;
  --ha-blue: #0878f9;
  --ha-blue-dark: #075bd8;
  --ha-muted: #607796;
  --ha-line: rgba(43, 126, 237, .13);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 4vw, 58px) clamp(24px, 4.5vw, 72px) clamp(36px, 4vw, 56px);
  color: var(--ha-ink);
  background:
    radial-gradient(ellipse at 35% 100%, rgba(126, 201, 255, .25), transparent 35%),
    radial-gradient(ellipse at 90% 10%, rgba(194, 225, 255, .32), transparent 30%),
    linear-gradient(112deg, #ffffff 0%, #f7fbff 54%, #eef6ff 100%);
  font-family: inherit;
}

.about-section,
.about-section * { box-sizing: border-box; }

.about-section::before,
.about-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(48, 132, 246, .12);
  border-radius: 50%;
  pointer-events: none;
}

.about-section::before {
  width: 510px;
  height: 510px;
  top: -340px;
  right: -95px;
}

.about-section::after {
  width: 420px;
  height: 420px;
  left: -275px;
  bottom: -335px;
}

.about-section-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 1.24fr) minmax(220px, .86fr);
  align-items: center;
  gap: clamp(22px, 3.1vw, 48px);
  width: min(100%, 1540px);
  margin-inline: auto;
}

.about-content { position: relative; z-index: 2; min-width: 0; }

.about-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 17px;
  color: #1675f5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .28em;
  line-height: 1.4;
}

.about-label-line {
  display: inline-block;
  width: 0;
  height: 2px;
  background: var(--ha-blue);
}

.about-heading {
  margin: 0;
  color: #101f38;
  font-size: clamp(2.25rem, 3.15vw, 3.75rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: 1.04;
}

.about-heading span {
  display: inline;
  color: var(--ha-blue);
}

.about-tagline {
  margin: 13px 0 15px;
  color: #0875f8;
  font-size: clamp(.98rem, 1.25vw, 1.16rem);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.45;
}

.about-text {
  max-width: 550px;
  margin: 0 0 14px;
  color: #5c7190;
  font-size: clamp(.78rem, .94vw, .93rem);
  font-weight: 450;
  line-height: 1.75;
}

.about-text-small {
  margin-top: 15px;
  color: #6b7f9a;
  font-size: clamp(.75rem, .88vw, .87rem);
  line-height: 1.75;
}

.about-rocket-area {
  position: absolute;
  z-index: 4;
  right: -18px;
  bottom: -60px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 120px;
  height: 145px;
  pointer-events: none;
}

.about-rocket {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 114px;
  transform: rotate(12deg);
  animation: homeAboutRocketFloat 4.6s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(25, 117, 235, .18));
}

.about-rocket svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rocket-glow { animation: homeAboutGlow 1.5s ease-in-out infinite alternate; }
.about-main-flame { transform-origin: 120px 270px; animation: homeAboutFlame .2s ease-in-out infinite alternate; }
.about-inner-flame { transform-origin: 120px 270px; animation: homeAboutFlame .17s ease-in-out infinite alternate-reverse; }

.about-smoke {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 120px;
  height: 35px;
  opacity: .9;
}

.about-smoke span {
  position: absolute;
  bottom: 0;
  width: 35px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff 0%, #eaf6ff 58%, #cce8ff 100%);
  box-shadow: 0 5px 13px rgba(53, 140, 225, .13);
  animation: homeAboutSmoke 2.7s ease-in-out infinite;
}
.about-smoke span:nth-child(1) { left: 0; }
.about-smoke span:nth-child(2) { left: 18px; bottom: 9px; animation-delay: -.7s; }
.about-smoke span:nth-child(3) { left: 39px; bottom: 1px; animation-delay: -1.4s; }
.about-smoke span:nth-child(4) { left: 62px; bottom: 7px; animation-delay: -.4s; }
.about-smoke span:nth-child(5) { left: 84px; animation-delay: -1.8s; }

.about-explore-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 51px;
  margin-top: 15px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(110deg, #0878ff 0%, #1769ed 100%);
  box-shadow: 0 10px 24px rgba(0, 105, 244, .2);
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.about-explore-btn:hover {
  transform: translateY(-3px);
  background: linear-gradient(110deg, #006be9, #1459d5);
  box-shadow: 0 15px 30px rgba(0, 105, 244, .28);
}

.about-btn-arrow {
  display: inline-block;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform .25s ease;
}
.about-explore-btn:hover .about-btn-arrow { transform: translateX(4px); }

.about-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.about-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.36;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 34px;
  background: #dcecff;
  box-shadow: 0 17px 40px rgba(28, 72, 128, .17);
  transform: rotate(-.3deg);
  transition: transform .45s ease, box-shadow .45s ease;
}

.about-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(4, 20, 42, .12));
  pointer-events: none;
}

.about-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.about-visual:hover .about-image-wrap {
  transform: translateY(-3px) rotate(0);
  box-shadow: 0 23px 48px rgba(28, 72, 128, .22);
}
.about-visual:hover .about-image-wrap img { transform: scale(1.035); }

.about-features {
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 1.7vw, 25px);
  min-width: 0;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform .25s ease;
}
.about-feature:hover { transform: translateX(4px); }

.about-feature-icon {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(38, 130, 250, .05);
  border-radius: 50%;
  color: #0878f9;
  background: linear-gradient(145deg, #e6f3ff, #d9eaff);
  box-shadow: 0 5px 16px rgba(39, 123, 222, .06);
}

.about-feature-icon > span { font-size: 1.45rem; line-height: 1; }

.about-feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-feature h4 {
  margin: 0 0 4px;
  color: #142844;
  font-size: clamp(.84rem, 1vw, .99rem);
  font-weight: 800;
  line-height: 1.35;
}

.about-feature p {
  margin: 0;
  color: #647b99;
  font-size: clamp(.72rem, .85vw, .83rem);
  line-height: 1.55;
}

/* Fine orbit lines and small dots in the reference design */
.about-orbit {
  position: absolute;
  z-index: 0;
  border: 1px solid var(--ha-line);
  border-radius: 50%;
  pointer-events: none;
}
.about-orbit-1 {
  width: 650px;
  height: 180px;
  left: -170px;
  top: 28%;
  transform: rotate(-27deg);
}
.about-orbit-2 {
  width: 680px;
  height: 205px;
  right: -260px;
  top: 31%;
  transform: rotate(-17deg);
}
.about-orbit-3 {
  width: 480px;
  height: 480px;
  right: -280px;
  top: -340px;
  border-color: rgba(43, 126, 237, .1);
}
.about-dot {
  position: absolute;
  z-index: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4e8ff;
  box-shadow: 0 0 0 5px rgba(203, 228, 255, .16);
  pointer-events: none;
  animation: homeAboutDot 4s ease-in-out infinite;
}
.about-dot-1 { left: 2%; top: 72%; }
.about-dot-2 { left: 26%; top: 9%; animation-delay: -1s; }
.about-dot-3 { right: 29%; top: 61%; animation-delay: -2s; }
.about-dot-4 { right: 8%; bottom: 16%; animation-delay: -3s; }

@keyframes homeAboutRocketFloat {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-7px) rotate(8deg); }
}
@keyframes homeAboutGlow { from { opacity: .3; } to { opacity: .8; } }
@keyframes homeAboutFlame { from { transform: scaleY(.86); } to { transform: scaleY(1.1); } }
@keyframes homeAboutSmoke {
  0%, 100% { transform: translateY(0) scale(.92); opacity: .65; }
  50% { transform: translateY(-4px) scale(1.08); opacity: 1; }
}
@keyframes homeAboutDot {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}

/* Mid-sized screens */
@media (max-width: 1100px) {
  .about-section { padding: 42px 30px 52px; }
  .about-section-inner {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
    gap: 28px 34px;
  }
  .about-content { grid-column: 1; grid-row: 1; }
  .about-visual { grid-column: 2; grid-row: 1; }
  .about-features {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
    padding-top: 4px;
  }
  .about-heading { font-size: clamp(2.5rem, 5vw, 3.6rem); }
  .about-rocket-area { right: -5px; bottom: -55px; }
}

/* Mobile */
@media (max-width: 700px) {
  .about-section { padding: 44px 22px 48px; }
  .about-section-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .about-content, .about-visual, .about-features { grid-column: 1; }
  .about-content { grid-row: 1; padding-bottom: 6px; }
  .about-visual { grid-row: 2; width: min(100%, 560px); margin-inline: auto; }
  .about-features {
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
  .about-heading { font-size: clamp(2.55rem, 10vw, 3.8rem); }
  .about-tagline { font-size: 1.02rem; }
  .about-text { max-width: 100%; font-size: .9rem; }
  .about-image-wrap { aspect-ratio: 1.2; border-radius: 25px; }
  .about-rocket-area { right: 0; bottom: -34px; transform: scale(.8); transform-origin: bottom right; }
  .about-explore-btn { min-height: 49px; }
  .about-feature { align-items: flex-start; gap: 10px; }
  .about-feature-icon { flex-basis: 42px; width: 42px; height: 42px; }
  .about-feature-icon svg { width: 23px; height: 23px; }
  .about-feature h4 { font-size: .82rem; }
  .about-feature p { font-size: .72rem; }
  .about-orbit-1 { left: -320px; top: 20%; }
  .about-orbit-2 { right: -460px; top: 40%; }
}

@media (max-width: 420px) {
  .about-section { padding-inline: 17px; }
  .about-label { font-size: 10px; letter-spacing: .23em; }
  .about-features { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .about-feature { align-items: center; }
  .about-feature h4 { font-size: .9rem; }
  .about-feature p { font-size: .78rem; }
  .about-rocket-area { right: -8px; transform: scale(.7); }
}

/* Scroll reveal class is added by home-about.js */
.about-section.about-reveal-ready .about-content,
.about-section.about-reveal-ready .about-visual,
.about-section.about-reveal-ready .about-feature {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s ease, transform .65s ease;
}
.about-section.about-reveal-ready .about-visual { transition-delay: .12s; }
.about-section.about-reveal-ready .about-feature:nth-child(2) { transition-delay: .08s; }
.about-section.about-reveal-ready .about-feature:nth-child(3) { transition-delay: .16s; }
.about-section.about-reveal-ready .about-feature:nth-child(4) { transition-delay: .24s; }
.about-section.about-is-visible .about-content,
.about-section.about-is-visible .about-visual,
.about-section.about-is-visible .about-feature {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .about-section *,
  .about-section *::before,
  .about-section *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .about-section.about-reveal-ready .about-content,
  .about-section.about-reveal-ready .about-visual,
  .about-section.about-reveal-ready .about-feature {
    opacity: 1;
    transform: none;
  }
}
