/* ============================================================
   KROMATIVE — styles.css
   Premium Agency Website
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  /* Brand palette — sourced directly from Kromative logo */
  --navy:        #0C1B6B;   /* dark circle / deep navy         */
  --blue:        #1A45D4;   /* main K body blue                */
  --royal:       #2F6BFF;   /* upper K diagonal                */
  --sky:         #00C4FF;   /* lower cyan accent               */
  --white:       #FFFFFF;
  --off-white:   #F4F5FA;
  --gray-light:  #E9EBF4;
  --ink:         #0A0C18;
  --ink-mid:     #2E3154;
  --ink-soft:    #5C5E78;

  /* Typography */
  --font:        'Poppins', sans-serif;

  /* Spacing */
  --section-pad: 120px 80px;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   28px;

  /* Motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  font-weight: 400;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: var(--font);
  border: none;
  background: none;
}

/* ── Utility ── */
.u-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 16px;
}
.u-tag::before {
  content: '— ';
}
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────
   NAVIGATION
───────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 80px;
  transition: padding 0.4s var(--ease), background 0.4s, box-shadow 0.4s;
}
.site-nav.scrolled {
  padding: 14px 80px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.nav-brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-menu a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--royal);
  transition: width 0.35s var(--ease);
}
.nav-menu a:hover {
  color: var(--royal);
}
.nav-menu a:hover::after {
  width: 100%;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 26px;
  border-radius: 100px;
  background: var(--ink);
  color: var(--white) !important;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.3s, transform 0.3s var(--ease) !important;
}
.nav-cta::after {
  display: none !important;
}
.nav-cta:hover {
  background: var(--royal);
  transform: translateY(-1px);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 899;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.3s;
}
.nav-mobile a:hover {
  color: var(--royal);
}

/* ─────────────────────────────────────
   HERO
───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 80px 100px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 107, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 107, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.hero-bg-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(47, 107, 255, 0.1) 0%,
    rgba(0, 196, 255, 0.05) 45%,
    transparent 70%
  );
  filter: blur(60px);
  animation: glowFloat 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glowFloat {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.18) translate(-40px, 55px); }
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--royal);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease) 0.2s forwards;
}
.hero-headline {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  color: var(--ink);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.35s forwards;
  letter-spacing: -0.02em;
}
.hero-headline .type-line {
  display: block;
  color: var(--royal);
  min-height: 1.05em;
}
.type-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--royal);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 0.85s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: var(--ink-soft);
  letter-spacing: 0.2em;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.65s forwards;
}

/* ─────────────────────────────────────
   BUTTONS
───────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  border-radius: 100px;
  background: var(--royal);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
  box-shadow: 0 10px 40px rgba(47, 107, 255, 0.32);
}
.btn-primary:hover {
  background: var(--navy);
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(47, 107, 255, 0.38);
}
.btn-primary .btn-arrow {
  transition: transform 0.3s var(--ease);
}
.btn-primary:hover .btn-arrow {
  transform: translateX(5px);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  border: 1.5px solid var(--gray-light);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}
.btn-outline:hover {
  border-color: var(--royal);
  color: var(--royal);
}

/* ─────────────────────────────────────
   MARQUEE
───────────────────────────────────── */
.marquee-section {
  overflow: hidden;
  background: var(--ink);
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.marquee-track {
  display: flex;
  animation: marqueeScroll 28s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  padding: 0 36px;
}
.marquee-track span.dot {
  color: var(--sky);
  padding: 0 8px;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────
   SERVICES
───────────────────────────────────── */
.services-section {
  padding: var(--section-pad);
  background: var(--white);
}
.services-header {
  max-width: 640px;
  margin-bottom: 72px;
}
.services-header h2 {
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-item {
  background: var(--white);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease);
}
.service-item::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--royal), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-item:hover {
  background: var(--ink);
}
.service-item:hover::before {
  transform: scaleX(1);
}
.service-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--royal);
  display: block;
  margin-bottom: 20px;
  transition: color 0.4s;
}
.service-icon-wrap {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(47, 107, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.4s;
}
.service-item:hover .service-icon-wrap {
  background: rgba(255, 255, 255, 0.08);
}
.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  transition: color 0.4s;
}
.service-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.75;
  font-weight: 300;
  transition: color 0.4s;
}
.service-item:hover .service-num,
.service-item:hover .service-title {
  color: var(--white);
}
.service-item:hover .service-desc {
  color: rgba(255, 255, 255, 0.5);
}
.service-item:hover .service-icon-wrap svg path,
.service-item:hover .service-icon-wrap svg rect,
.service-item:hover .service-icon-wrap svg circle {
  stroke: var(--sky);
}

/* Stats bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--gray-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 72px;
}
.stat-item {
  background: var(--white);
  padding: 36px 28px;
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--royal);
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 6px;
  display: block;
}

/* ─────────────────────────────────────
   APPROACH
───────────────────────────────────── */
.approach-section {
  padding: var(--section-pad);
  background: var(--ink);
  color: var(--white);
}
.approach-section .u-tag {
  color: var(--sky);
}
.approach-section h2 {
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  font-weight: 700;
  color: var(--white);
  max-width: 560px;
  margin-bottom: 80px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
}
.approach-step {
  position: relative;
}
.step-big-num {
  font-size: 5.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  position: absolute;
  top: -12px; left: -8px;
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.03em;
}
.step-body {
  position: relative;
  padding-top: 16px;
}
.step-accent {
  width: 28px; height: 3px;
  background: linear-gradient(90deg, var(--royal), var(--sky));
  border-radius: 2px;
  margin-bottom: 24px;
}
.step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
}
.step-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.8;
  font-weight: 300;
}

/* ─────────────────────────────────────
   STATEMENT
───────────────────────────────────── */
.statement-section {
  padding: 160px 80px;
  background: linear-gradient(140deg, var(--navy) 0%, var(--blue) 55%, #0B4DB8 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.statement-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(0, 196, 255, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 50%, rgba(47, 107, 255, 0.12) 0%, transparent 45%);
  pointer-events: none;
}
.statement-text {
  font-size: clamp(1.8rem, 5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  max-width: 960px;
  margin: 0 auto;
  position: relative;
  letter-spacing: -0.02em;
}
.statement-text em {
  font-style: normal;
  background: linear-gradient(90deg, var(--sky), #7DF9FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────
   PORTFOLIO
───────────────────────────────────── */
.portfolio-section {
  padding: var(--section-pad);
  background: var(--off-white);
}
.portfolio-section h2 {
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 56px;
  letter-spacing: -0.02em;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portfolio-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}
.portfolio-visual {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease);
}
.portfolio-card:hover .portfolio-visual {
  transform: scale(1.05);
}
.portfolio-glyph {
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.07);
  letter-spacing: -0.02em;
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 24, 0.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.portfolio-info p {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pv-1 { background: linear-gradient(135deg, #E8F0FE, #C2D4FF); }
.pv-2 { background: linear-gradient(135deg, #E0F7FA, #B2EBF2); }
.pv-3 { background: linear-gradient(135deg, #EDE7F6, #D1C4E9); }
.pv-4 { background: linear-gradient(135deg, #FFF8E1, #FFECB3); }
.pv-5 { background: linear-gradient(135deg, #E8F5E9, #C8E6C9); }
.pv-6 { background: linear-gradient(135deg, #FCE4EC, #F8BBD0); }

/* ─────────────────────────────────────
   CALL TO ACTION
───────────────────────────────────── */
.cta-section {
  padding: 160px 80px;
  background: var(--white);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cta-section h2 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  margin-bottom: 24px;
  max-width: 760px;
  letter-spacing: -0.03em;
}
.cta-section h2 span {
  background: linear-gradient(90deg, var(--royal), var(--sky));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-section p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 48px;
  max-width: 460px;
  font-weight: 300;
  line-height: 1.75;
}
.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.38);
  padding: 80px 80px 48px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 72px;
}
.footer-brand img.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.75;
  max-width: 220px;
  font-weight: 300;
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.social-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.social-btn:hover {
  border-color: var(--sky);
  color: var(--sky);
  background: rgba(0, 196, 255, 0.06);
}
.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.38);
  transition: color 0.3s;
  font-weight: 300;
}
.footer-col a:hover {
  color: var(--sky);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-copy {
  font-size: 0.78rem;
  font-weight: 300;
}
.footer-credit {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-credit-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-credit-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  transition: opacity 0.3s;
}
.footer-credit:hover .footer-credit-logo {
  opacity: 0.75;
}

/* ─────────────────────────────────────
   ANIMATIONS
───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 1100px) {
  :root {
    --section-pad: 100px 52px;
  }
  .site-nav,
  .site-nav.scrolled {
    padding-left: 52px;
    padding-right: 52px;
  }
  .hero { padding: 130px 52px 90px; }
  .statement-section { padding: 130px 52px; }
  .cta-section { padding: 130px 52px; }
  .site-footer { padding: 72px 52px 44px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 44px; }
  .approach-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root {
    --section-pad: 80px 24px;
  }
  .site-nav,
  .site-nav.scrolled {
    padding: 16px 24px;
  }
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 110px 24px 72px; }
  .approach-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .statement-section { padding: 100px 24px; }
  .cta-section { padding: 100px 24px; }
  .site-footer { padding: 60px 24px 40px; }
}
