/* ═══════════════════════════════════════
   KLINK4 — Landing Page Styles
   ═══════════════════════════════════════ */

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Inter:wght@300;400;500&display=swap");

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #008cad;
  --blue-dim: rgba(0, 140, 173, 0.13);
  --yellow: #dedc00;
  --yellow-dim: rgba(222, 220, 0, 0.09);
  --dark: #06090f;
  --dark-2: #0b0f18;
  --dark-3: #141820;
  --text: #dfe3ec;
  --muted: #5a6278;
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.13);

  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.c-blue {
  color: var(--blue);
}
.c-yellow {
  color: var(--yellow);
}

/* ══ NAVBAR ══ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.75rem 3rem;
  transition:
    padding 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar--scrolled {
  padding: 1rem 3rem;
  background: rgba(6, 9, 15, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Syne", sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  text-decoration: none;
}

.logo-k {
  color: var(--blue);
}

.logo-img {
  width: 120px;
  height: auto;
  cursor: pointer;
}

.logo-rest {
  color: var(--yellow);
}

nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  transition:
    opacity 0.2s,
    color 0.2s;
}

nav a:hover {
  opacity: 1;
  color: var(--yellow);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border-2);
  opacity: 1 !important;
  transition:
    border-color 0.2s,
    color 0.2s !important;
}

.nav-cta:hover {
  border-color: var(--yellow);
  color: var(--yellow) !important;
}

/* ══ HERO ══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 3rem;
  overflow: hidden;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.hero-bg-blob--blue {
  top: -15%;
  right: -8%;
  width: 680px;
  height: 680px;
  background: var(--blue-dim);
}

.hero-bg-blob--yellow {
  bottom: -15%;
  left: -5%;
  width: 480px;
  height: 480px;
  background: var(--yellow-dim);
}

.hero-content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding-top: 7rem;
}

.hero-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.hero-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(3.2rem, 5.5vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 3rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  border: none;
  padding: 0.9rem 2.25rem;
  font-family: "Syne", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-block;
  background: none;
  border: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.6;
  text-decoration: none;
  transition:
    opacity 0.2s,
    color 0.2s;
  padding: 0;
}

.btn-ghost:hover {
  opacity: 1;
  color: var(--blue);
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.scroll-hint__label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.scroll-hint__line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scaleY(0.85);
  }
  55% {
    opacity: 1;
    transform: scaleY(1.15);
  }
}

/* ══ SECTIONS shared ══ */
.section {
  padding: 7rem 3rem;
}
.section--alt {
  background: var(--dark-2);
}
.section--tight {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.section-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
}

/* ══ ABOUT ══ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 6rem;
  align-items: start;
  margin-top: 0.5rem;
}

.about-body p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}

.stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-num {
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--yellow);
}

.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ══ EXPERTISE ══ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 3.5rem;
}

.expertise-card {
  padding: 2.75rem 3rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.expertise-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.expertise-card:hover {
  background: var(--dark-3);
}
.expertise-card:hover::after {
  transform: scaleX(1);
}

.card-num {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}

.card-title {
  font-family: "Syne", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.9rem;
  line-height: 1.2;
}

.card-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border-2);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.expertise-card:hover .tag {
  border-color: rgba(38, 153, 191, 0.35);
  color: var(--text);
}

/* ══ SPECIALIZATIONS ══ */
.spec-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.5rem;
}

.spec-pillar {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  position: relative;
  transition: background 0.3s;
}

.spec-pillar:hover {
  background: var(--dark-3);
}

.spec-pillar__accent {
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  margin-bottom: 1.5rem;
  transition: width 0.35s ease;
}

.spec-pillar:hover .spec-pillar__accent {
  width: 100%;
}

.spec-pillar__title {
  font-family: "Syne", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.spec-pillar__desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.spec-pillar__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.spec-pillar__list li {
  font-size: 0.82rem;
  color: var(--text);
  padding-left: 1rem;
  position: relative;
  opacity: 0.7;
  transition:
    opacity 0.2s,
    color 0.2s;
}

.spec-pillar__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--blue);
  border-radius: 50%;
}

.spec-pillar:hover .spec-pillar__list li {
  opacity: 1;
}

/* ══ VISION ══ */
.vision-quote {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.55;
  color: #fff;
  max-width: 880px;
  margin-top: 3rem;
  padding-left: 2rem;
  border-left: 3px solid var(--yellow);
  quotes: none;
}

/* ══ FOOTER ══ */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 5rem 3rem 3rem;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-family: "Syne", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
  flex-shrink: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  flex: 1;
}

.footer-col h4 {
  font-family: "Syne", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.footer-col a,
.footer-col p {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 2.1;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ══ ANIMATIONS ══ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  35% {
    transform: translate(28px, -38px) scale(1.07);
  }
  70% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

@keyframes highlightIn {
  from {
    background-size: 0% 3px;
  }
  to {
    background-size: 100% 3px;
  }
}

/* ── Hero entrance (pure CSS, no JS) ── */
.hero-label {
  animation: fadeInUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) both 0.05s;
}
.hero-title {
  animation: fadeInUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both 0.22s;
}
.hero-sub {
  animation: fadeInUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both 0.42s;
}
.hero-actions {
  animation: fadeInUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both 0.58s;
}
.scroll-hint {
  animation: fadeIn 1.2s ease both 1.1s;
}

/* ── Floating background blobs ── */
.hero-bg-blob--blue {
  animation: floatBlob 15s ease-in-out infinite;
}
.hero-bg-blob--yellow {
  animation: floatBlob 19s ease-in-out infinite reverse;
}

/* ── Highlighted words shimmer on hero title ── */
.hero-title .c-blue,
.hero-title .c-yellow {
  background-image: linear-gradient(120deg, currentColor 0%, currentColor 100%);
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0% 3px;
  animation: highlightIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-title .c-blue {
  animation-delay: 0.75s;
}
.hero-title .c-yellow {
  animation-delay: 0.95s;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--d1 {
  transition-delay: 0.08s;
}
.reveal--d2 {
  transition-delay: 0.18s;
}
.reveal--d3 {
  transition-delay: 0.28s;
}
.reveal--d4 {
  transition-delay: 0.38s;
}

/* ── Navbar slide in ── */
.navbar {
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both 0s;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .spec-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .stats-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .navbar,
  .navbar--scrolled {
    padding: 1rem 1.25rem;
  }
  nav {
    display: none;
  }
  .hero {
    padding-inline: 1.25rem;
    padding-bottom: 6rem;
    align-items: flex-start;
    padding-top: 0;
  }
  .section {
    padding-inline: 1.25rem;
  }
  .section {
    padding-block: 4rem;
  }
  .hero-content {
    padding-top: 5rem;
  }
  .scroll-hint {
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.5rem;
    flex-direction: column;
    align-items: center;
  }

  .scroll-hint__label {
    writing-mode: horizontal-tb;
    letter-spacing: 0.15em;
  }
  .footer {
    padding: 3.5rem 1.25rem 2rem;
  }
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .expertise-card {
    padding: 2rem 1.5rem;
  }
  .spec-pillars {
    grid-template-columns: 1fr;
  }
}
