:root {
  --ink: #15202b;
  --muted: #53606f;
  --line: #d8e1e8;
  --panel: #ffffff;
  --soft: #eef5f8;
  --brand: #076b6d;
  --brand-strong: #054c54;
  --accent: #d84f2a;
  --accent-soft: #fff0ea;
  --green-soft: #e5f5ef;
  --shadow: 0 18px 50px rgba(20, 43, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8fbfc;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 225, 232, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-logo-mini {
  display: flex;
  gap: 3px;
  perspective: 240px;
}

.brand-logo-mini span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 36px;
  color: #fff;
  background: #0066ff;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 3px 3px 0 #003da3, 6px 6px 0 #001f5c, 0 10px 18px rgba(0, 100, 255, 0.26);
  transform: rotateX(6deg) rotateY(-8deg);
}

.brand-logo-mini span:nth-child(2) {
  background: #0055dd;
  box-shadow: 3px 3px 0 #002f88, 6px 6px 0 #001644, 0 10px 18px rgba(0, 80, 220, 0.26);
}

.brand-logo-mini span:nth-child(3) {
  background: #0044cc;
  box-shadow: 3px 3px 0 #002266, 6px 6px 0 #000e33, 0 10px 18px rgba(0, 60, 200, 0.26);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: #283846;
  font-size: 14px;
  font-weight: 600;
}

.header-cta,
.primary-btn,
.secondary-btn,
.panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.header-cta,
.primary-btn {
  color: #fff;
  background: var(--accent);
}

.secondary-btn,
.panel-btn {
  color: var(--brand-strong);
  background: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}

.header-cta svg,
.primary-btn svg,
.secondary-btn svg,
.panel-btn svg {
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(780px, calc(100vh - 74px));
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 33, 43, 0.88) 0%, rgba(8, 33, 43, 0.68) 48%, rgba(8, 33, 43, 0.28) 100%),
    linear-gradient(0deg, rgba(8, 33, 43, 0.54), rgba(8, 33, 43, 0.1));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  color: #fff;
}

.hero-logo-3d {
  width: min(560px, 100%);
  margin-bottom: 30px;
  padding: clamp(20px, 4vw, 30px);
  background: linear-gradient(160deg, rgba(10, 22, 40, 0.9), rgba(13, 34, 68, 0.82), rgba(10, 22, 40, 0.9));
  border: 1px solid rgba(102, 153, 204, 0.35);
  border-radius: 12px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  transform: perspective(900px) rotateX(4deg) rotateY(-5deg);
  transform-origin: left center;
}

.hero-logo-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 26px);
}

.hero-logo-letters {
  display: flex;
  gap: 8px;
  perspective: 480px;
}

.logo-cube {
  display: grid;
  place-items: center;
  width: clamp(46px, 8vw, 62px);
  height: clamp(56px, 9vw, 72px);
  color: #fff;
  border-radius: 8px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 900;
  animation: logoFloat 3s ease-in-out infinite;
}

.cube-one {
  background: #0066ff;
  box-shadow: 5px 5px 0 #003da3, 10px 10px 0 #001f5c, 0 18px 34px rgba(0, 100, 255, 0.46);
}

.cube-two {
  background: #0055dd;
  box-shadow: 5px 5px 0 #002f88, 10px 10px 0 #001644, 0 18px 34px rgba(0, 80, 220, 0.46);
  animation-delay: 0.18s;
}

.cube-three {
  background: #0044cc;
  box-shadow: 5px 5px 0 #002266, 10px 10px 0 #000e33, 0 18px 34px rgba(0, 60, 200, 0.46);
  animation-delay: 0.36s;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg);
  }

  50% {
    transform: translateY(-8px) rotateX(7deg);
  }
}

.hero-logo-divider {
  width: 2px;
  height: 64px;
  background: linear-gradient(to bottom, transparent, #3d78c8, transparent);
}

.hero-logo-name strong,
.hero-logo-name span {
  display: block;
}

.hero-logo-name strong {
  font-size: clamp(20px, 4vw, 28px);
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0, 100, 255, 0.45);
}

.hero-logo-name span {
  margin-top: 8px;
  color: #8fb8de;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-logo-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(102, 153, 204, 0.28);
  color: #6eb1ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-logo-tagline span:not(:last-child)::after {
  content: ".";
  margin-left: 8px;
  color: #ffd166;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffbe9f;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.trust-strip div {
  padding: 24px clamp(18px, 3vw, 36px);
  border-right: 1px solid var(--line);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.section,
.split-section,
.values-section,
.contact-section {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.vision-panel,
.service-card,
.student-panel,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vision-panel {
  padding: 26px;
}

.vision-panel p,
.service-card p,
.student-panel p,
.contact-section p {
  color: var(--muted);
  line-height: 1.7;
}

.services-section {
  background: #fff;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.text-link {
  color: var(--brand);
  font-weight: 800;
}

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

.service-card {
  min-height: 220px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  border-color: rgba(7, 107, 109, 0.35);
  box-shadow: 0 12px 36px rgba(20, 43, 58, 0.1);
  transform: translateY(-3px);
}

.service-card svg,
.consultancy-item svg,
.student-panel svg {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.service-card h3 {
  margin-top: 24px;
}

.projects-section {
  background: #f7fafb;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(20, 43, 58, 0.08);
}

.featured-project {
  grid-column: span 2;
}

.project-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 24px;
  color: #fff;
  overflow: hidden;
}

.project-preview::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.study-preview {
  background: linear-gradient(135deg, #0f5f68, #2d8f7a);
}

.flashcard-ui {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: min(330px, 100%);
  min-height: 145px;
  padding: 22px;
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.18);
  transform: rotate(-2deg);
}

.flashcard-ui span {
  width: max-content;
  padding: 6px 10px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.flashcard-ui strong {
  font-size: 22px;
  line-height: 1.2;
}

.flashcard-ui small {
  color: var(--muted);
  font-weight: 700;
}

.supermarket-preview {
  align-content: center;
  gap: 18px;
  background: linear-gradient(135deg, #263846, #55707a);
}

.store-shelves {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 46px);
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.store-shelves span {
  height: 62px;
  background: linear-gradient(#ffd166 0 35%, #ef476f 35% 68%, #06d6a0 68%);
  border-radius: 6px;
}

.billing-strip {
  position: relative;
  z-index: 1;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.24);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.ecommerce-preview,
.clinic-preview,
.dashboard-preview,
.portfolio-preview,
.marketing-preview {
  gap: 12px;
}

.ecommerce-preview {
  background: linear-gradient(135deg, #22577a, #38a3a5);
}

.clinic-preview {
  background: linear-gradient(135deg, #22543d, #53a77a);
}

.dashboard-preview {
  grid-template-columns: repeat(3, 36px);
  align-items: end;
  background: linear-gradient(135deg, #343a52, #6771a3);
}

.portfolio-preview {
  background: linear-gradient(135deg, #5b2b62, #b65073);
}

.marketing-preview {
  background: linear-gradient(135deg, #7a3b22, #d9853b);
}

.project-preview svg {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
}

.project-preview > span {
  position: relative;
  z-index: 1;
  font-weight: 800;
}

.bar {
  position: relative;
  z-index: 1;
  display: block;
  width: 36px;
  background: #fff;
  border-radius: 6px 6px 0 0;
}

.bar.one {
  height: 58px;
}

.bar.two {
  height: 104px;
  background: #ffd166;
}

.bar.three {
  height: 78px;
  background: #06d6a0;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.project-type {
  width: max-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  color: var(--brand-strong);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.project-body p {
  color: var(--muted);
  line-height: 1.65;
}

.project-output {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.project-output strong {
  color: var(--accent);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  background: var(--soft);
}

.split-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li,
.consultancy-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.student-panel {
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow);
}

.panel-btn {
  margin-top: 10px;
  color: #fff;
  background: var(--brand);
}

.consultancy-section {
  background: #fff;
}

.consultancy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.consultancy-item {
  min-height: 118px;
  padding: 22px;
  background: var(--green-soft);
  border: 1px solid #c8e6dc;
  border-radius: 8px;
  font-weight: 700;
}

.values-section {
  background: var(--brand-strong);
  color: #fff;
}

.values-section .section-kicker {
  color: #9ae3d4;
}

.values-section h2 {
  max-width: 760px;
}

.values-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.values-row span {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  background: var(--accent-soft);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.contact-card a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  overflow-wrap: anywhere;
  color: var(--brand-strong);
  font-weight: 700;
}

.contact-card svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.site-footer {
  padding: 24px clamp(18px, 5vw, 72px);
  color: #fff;
  background: #111a22;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.chat-launcher svg {
  width: 28px;
  height: 28px;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 40;
  display: none;
  flex-direction: column;
  width: min(410px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 112px));
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.chat-widget.is-open {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  color: #fff;
  background: var(--brand-strong);
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.4;
}

.chat-header button,
.chat-form button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.chat-header button {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  overflow-y: auto;
  background: #f7fafb;
}

.message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}

.message.bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
}

.message.user {
  align-self: flex-end;
  color: #fff;
  background: var(--brand);
}

.quick-prompts {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.quick-prompts button {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: var(--brand-strong);
  background: var(--green-soft);
  border: 1px solid #c8e6dc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.chat-form input:focus {
  border-color: var(--brand);
}

.chat-form button {
  color: #fff;
  background: var(--accent);
}

@media (max-width: 1060px) {
  .nav-links {
    display: none;
  }

  .service-grid,
  .project-grid,
  .consultancy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-project {
    grid-column: span 1;
  }

  .intro-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-cta {
    display: none;
  }

  .hero {
    min-height: calc(100vh - 68px);
    padding: 28px 18px 44px;
  }

  .hero-logo-3d {
    transform: none;
  }

  .hero-logo-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-logo-divider {
    width: 100%;
    height: 1px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions,
  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .trust-strip,
  .service-grid,
  .project-grid,
  .consultancy-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-widget {
    right: 14px;
    bottom: 86px;
  }

  .chat-launcher {
    right: 16px;
    bottom: 16px;
  }
}
