/* Ubuntu CurioTech — About page theme */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css');

:root {
  --ink: #1b2033;
  --muted: #626b7e;
  --purple: #5b35b5;
  --purple-dark: #402281;
  --purple-soft: #eee9fa;
  --cyan: #45d5dc;
  --orange: #ff9b57;
  --white: #fff;
  --line: rgba(91, 53, 181, .13);
  --shadow: 0 18px 55px rgba(39, 25, 76, .09);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body.site-background {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(69, 213, 220, .12), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(91, 53, 181, .14), transparent 32rem),
    linear-gradient(135deg, #fcfbff 0%, #f3efff 100%);
  background-attachment: fixed;
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.navbar {
  position: relative;
  z-index: 5;
  width: min(1180px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-btn {
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #555d70;
  background: rgba(255, 255, 255, .52);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nav-btn:hover,
.nav-btn.active {
  transform: translateY(-1px);
  border-color: rgba(91, 53, 181, .12);
  color: var(--purple);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 7px 20px rgba(50, 31, 91, .08);
}

/* About hero */
.hero {
  position: relative;
  isolation: isolate;
  width: min(1180px, calc(100% - 48px));
  min-height: 490px;
  margin: 20px auto 68px;
  padding: clamp(34px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 30px;
  background: linear-gradient(120deg, rgba(255,255,255,.78), rgba(247,243,255,.68));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -105px;
  bottom: -210px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(255, 155, 87, .09);
  content: "";
  filter: blur(4px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 610px;
}

.small-title {
  margin: 0 0 15px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(44px, 6.2vw, 76px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .98;
}

.hero h1 span {
  color: var(--purple);
}

.hero h2 {
  margin: 20px 0 13px;
  color: var(--purple-dark);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}

.description {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

/* Decorative technology illustration */
.tech-illustration {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
}

.glow-circle {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(91, 53, 181, .16);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 53, 181, .12), rgba(69, 213, 220, .04) 58%, transparent 72%);
  box-shadow: 0 0 80px rgba(91, 53, 181, .12);
}

.earth {
  position: relative;
  z-index: 1;
  width: 48%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 9px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #8362d7, #432482);
  box-shadow: 0 24px 60px rgba(67, 36, 130, .28);
}

.earth i {
  font-size: clamp(48px, 7vw, 78px);
}

.tech-icon {
  position: absolute;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 17px;
  color: var(--purple);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 12px 28px rgba(39, 25, 76, .12);
  font-size: 20px;
}

.icon-code { top: 13%; left: 13%; }
.icon-ai { top: 11%; right: 13%; color: #bb682d; }
.icon-security { right: 5%; top: 47%; color: #398b82; }
.icon-data { right: 20%; bottom: 9%; }
.icon-chart { left: 7%; bottom: 24%; color: #bb682d; }

/* Introduction, mission and vision cards */
.top-cards {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  align-items: stretch;
  gap: 18px;
}

.info-card,
.values-card,
.motto-card,
.bottom-cta {
  border: 1px solid rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.info-card {
  min-width: 0;
  padding: 26px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-radius: 20px;
}

.card-icon,
.cta-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--purple);
  background: var(--purple-soft);
  font-size: 18px;
}

.card-content h3,
.values-card h2,
.motto-card h2 {
  margin: 3px 0 12px;
  color: var(--purple-dark);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .06em;
}

.card-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.line,
.section-line {
  width: 46px;
  height: 3px;
  margin: 0 0 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

/* Core values and motto */
.lower-section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: 1.55fr .85fr;
  align-items: stretch;
  gap: 18px;
}

.values-card,
.motto-card {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 22px;
}

.values-card h2,
.motto-card h2 {
  font-size: 19px;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.value {
  min-height: 150px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(247,244,255,.7));
  transition: transform .2s ease, box-shadow .2s ease;
}

.value:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(39, 25, 76, .09);
}

.value i {
  margin-bottom: 12px;
  color: var(--purple);
  font-size: 20px;
}

.value h4 {
  margin: 0 0 7px;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.motto-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255,255,255,.88), rgba(240,234,255,.82));
}

.quote {
  position: relative;
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
}

.quote p {
  max-width: 320px;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.25;
}

.quote strong {
  color: var(--purple);
}

.quote-mark {
  position: absolute;
  top: 0;
  left: 8px;
  color: rgba(91, 53, 181, .18);
  font-family: Georgia, serif;
  font-size: 88px;
  line-height: 1;
}

.quote-mark.right {
  top: auto;
  right: 8px;
  bottom: -12px;
  left: auto;
}

/* Collaboration call to action */
.bottom-cta {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 52px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 17px;
  border-radius: 20px;
}

.cta-text {
  flex: 1;
}

.cta-text p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.cta-text strong {
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
}

.cta-button {
  min-height: 46px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--purple);
  box-shadow: 0 9px 22px rgba(91, 53, 181, .2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  background: var(--purple-dark);
}

/* Responsive layout */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .tech-illustration {
    width: min(82%, 330px);
  }

  .top-cards {
    grid-template-columns: 1fr 1fr;
  }

  .info-card:first-child {
    grid-column: 1 / -1;
  }

  .lower-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .navbar,
  .hero,
  .top-cards,
  .lower-section,
  .bottom-cta {
    width: calc(100% - 28px);
  }

  .navbar {
    min-height: auto;
    padding: 14px 0;
    justify-content: center;
  }

  .nav-links {
    justify-content: center;
    gap: 5px;
  }

  .nav-btn {
    min-height: 37px;
    padding: 0 11px;
    font-size: 12px;
  }

  .hero {
    min-height: 0;
    margin-top: 12px;
    margin-bottom: 30px;
    padding: 30px 22px;
    border-radius: 23px;
  }

  .hero h1 {
    font-size: clamp(41px, 12vw, 60px);
  }

  .hero h2 {
    font-size: 20px;
  }

  .description {
    font-size: 15px;
  }

  .tech-illustration {
    width: min(100%, 290px);
  }

  .tech-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 17px;
  }

  .top-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-card:first-child {
    grid-column: auto;
  }

  .info-card {
    padding: 21px;
  }

  .lower-section {
    gap: 12px;
  }

  .values-card,
  .motto-card {
    padding: 22px 18px;
  }

  .values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .value {
    min-height: 145px;
    padding: 14px 12px;
  }

  .bottom-cta {
    padding: 20px;
    flex-wrap: wrap;
  }

  .cta-text {
    flex-basis: calc(100% - 64px);
  }

  .cta-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
