/* ============================================================
   Kritya Design System — Light Modern / Startup
   Bootstrap 5.3 + Inter font + Bootstrap Icons
   ============================================================ */

/* ---------- Custom Properties ---------- */
:root {
  --k-primary:       #2563EB;
  --k-primary-dark:  #1D4ED8;
  --k-primary-light: #EFF6FF;
  --k-secondary:     #7C3AED;
  --k-accent:        #F59E0B;
  --k-dark:          #0F172A;
  --k-text:          #334155;
  --k-muted:         #64748B;
  --k-border:        #E2E8F0;
  --k-bg:            #F8FAFC;
  --k-white:         #FFFFFF;
  --k-success:       #10B981;
  --k-gradient:      linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --k-radius:        12px;
  --k-radius-lg:     20px;
  --k-shadow:        0 4px 24px rgba(37,99,235,.10);
  --k-shadow-lg:     0 16px 56px rgba(37,99,235,.18);
  --k-transition:    all .3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  color: var(--k-text);
  background: var(--k-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-weight: 700;
  color: var(--k-dark);
  line-height: 1.2;
}

a { color: var(--k-primary); text-decoration: none; transition: var(--k-transition); }
a:hover { color: var(--k-primary-dark); }

img { max-width: 100%; height: auto; }

/* ---------- Navbar ---------- */
.k-navbar {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--k-border);
  padding: .9rem 0;
  transition: var(--k-transition);
}

.k-navbar .navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--k-dark);
  letter-spacing: -0.5px;
}

.k-navbar .navbar-brand span { color: var(--k-primary); }

.k-navbar .navbar-brand img { height: 36px; width: auto; }

.k-navbar .nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--k-text) !important;
  padding: .4rem .9rem !important;
  border-radius: 8px;
  transition: var(--k-transition);
}

.k-navbar .nav-link:hover,
.k-navbar .nav-link.active { color: var(--k-primary) !important; background: var(--k-primary-light); }

.k-navbar .dropdown-menu {
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius);
  box-shadow: var(--k-shadow-lg);
  padding: .5rem;
}

.k-navbar .dropdown-item {
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem .9rem;
  color: var(--k-text);
}

.k-navbar .dropdown-item:hover { background: var(--k-primary-light); color: var(--k-primary); }

.k-navbar .k-cta-btn {
  background: var(--k-gradient);
  color: #fff !important;
  border-radius: 8px;
  padding: .45rem 1.1rem !important;
  font-weight: 600;
}
.k-navbar .k-cta-btn:hover { opacity: .88; background: var(--k-gradient); }

.k-navbar-scrolled {
  box-shadow: var(--k-shadow);
}

/* ---------- Hero ---------- */
.k-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #f0f4ff;
}

.k-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Animated gradient mesh */
.k-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 10% 20%, rgba(37,99,235,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 90% 80%, rgba(124,58,237,.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(245,158,11,.07) 0%, transparent 70%);
  animation: heroShift 12s ease-in-out infinite alternate;
}

@keyframes heroShift {
  0%   { background-position: 10% 20%, 90% 80%, 50% 50%; }
  50%  { background-position: 20% 40%, 80% 60%, 55% 45%; }
  100% { background-position: 15% 30%, 85% 70%, 45% 55%; }
}

/* Floating blobs */
.k-hero-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
  animation: blobFloat 8s ease-in-out infinite;
}

.k-hero-bg .blob-1 {
  width: 500px; height: 500px;
  background: var(--k-primary);
  top: -120px; left: -100px;
  animation-delay: 0s;
}

.k-hero-bg .blob-2 {
  width: 400px; height: 400px;
  background: var(--k-secondary);
  bottom: -80px; right: -80px;
  animation-delay: 3s;
}

.k-hero-bg .blob-3 {
  width: 280px; height: 280px;
  background: var(--k-accent);
  top: 50%; right: 20%;
  animation-delay: 5s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-30px) scale(1.05); }
  66%       { transform: translate(-20px,20px) scale(.95); }
}

.k-hero-content { position: relative; z-index: 1; }

.k-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(37,99,235,.1);
  color: var(--k-primary);
  border: 1px solid rgba(37,99,235,.25);
  border-radius: 50px;
  padding: .35rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.k-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--k-dark);
}

.k-hero h1 .highlight {
  background: var(--k-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.k-hero p.lead {
  font-size: 1.15rem;
  color: var(--k-muted);
  font-weight: 400;
  max-width: 520px;
  margin-top: 1.25rem;
}

/* ---------- Inner Page Hero ---------- */
.k-page-hero {
  padding: 9rem 0 5rem;
  background: var(--k-gradient);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.k-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.k-page-hero h1 { color: #fff; font-size: clamp(2rem,4vw,3rem); letter-spacing: -1px; }
.k-page-hero p   { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 560px; margin: 1rem auto 0; }

/* ---------- Buttons ---------- */
.btn-k-primary {
  background: var(--k-gradient);
  border: none;
  color: #fff;
  border-radius: 10px;
  padding: .75rem 1.75rem;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--k-transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-k-primary:hover { opacity: .88; color: #fff; transform: translateY(-1px); box-shadow: var(--k-shadow-lg); }

.btn-k-outline {
  background: transparent;
  border: 2px solid var(--k-primary);
  color: var(--k-primary);
  border-radius: 10px;
  padding: .7rem 1.75rem;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--k-transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-k-outline:hover { background: var(--k-primary); color: #fff; transform: translateY(-1px); }

.btn-k-white {
  background: #fff;
  border: none;
  color: var(--k-primary);
  border-radius: 10px;
  padding: .75rem 1.75rem;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--k-transition);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.btn-k-white:hover { background: var(--k-primary-light); color: var(--k-primary-dark); transform: translateY(-1px); }

/* ---------- Section Wrappers ---------- */
.k-section { padding: 6rem 0; }
.k-section-sm { padding: 4rem 0; }
.k-section-bg { background: var(--k-bg); }

.k-section-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--k-primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.k-section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--k-dark);
}

.k-section-title span {
  background: var(--k-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.k-divider {
  width: 48px;
  height: 4px;
  background: var(--k-gradient);
  border-radius: 4px;
  margin: 1.2rem 0;
}
.k-divider-center { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.k-card {
  background: var(--k-white);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-lg);
  padding: 2rem;
  transition: var(--k-transition);
}
.k-card:hover { box-shadow: var(--k-shadow-lg); transform: translateY(-4px); border-color: rgba(37,99,235,.2); }

.k-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--k-radius);
  background: var(--k-primary-light);
  color: var(--k-primary);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.k-card-icon.accent   { background: rgba(245,158,11,.12); color: var(--k-accent); }
.k-card-icon.purple   { background: rgba(124,58,237,.1);  color: var(--k-secondary); }
.k-card-icon.success  { background: rgba(16,185,129,.1);  color: var(--k-success); }

.k-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; color: var(--k-dark); }
.k-card p  { font-size: .9rem; color: var(--k-muted); margin: 0; line-height: 1.6; }

/* Feature list cards */
.k-feature-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--k-white);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius);
  transition: var(--k-transition);
}
.k-feature-card:hover { box-shadow: var(--k-shadow); border-color: rgba(37,99,235,.2); }

/* Client cards */
.k-client-card {
  background: var(--k-white);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-lg);
  padding: 2rem;
  transition: var(--k-transition);
}
.k-client-card:hover { box-shadow: var(--k-shadow-lg); transform: translateY(-4px); }
.k-client-card .client-name { font-size: 1.05rem; font-weight: 700; color: var(--k-dark); margin-bottom: .25rem; }
.k-client-card .client-tag {
  display: inline-block;
  background: var(--k-primary-light);
  color: var(--k-primary);
  border-radius: 50px;
  padding: .2rem .75rem;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: .75rem;
}
.k-client-card p { font-size: .875rem; color: var(--k-muted); margin: 0; }

/* Stats */
.k-stat { text-align: center; }
.k-stat .stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--k-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.k-stat .stat-label { font-size: .875rem; color: var(--k-muted); font-weight: 500; margin-top: .4rem; }

/* Badge pills */
.k-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--k-primary-light);
  color: var(--k-primary);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 50px;
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 600;
}

/* Team cards */
.k-team-card {
  text-align: center;
}
.k-team-card .team-photo {
  width: 200px; height: 200px;
  border-radius: 16px;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--k-border);
  margin: 0 auto 1rem;
  display: block;
  transition: var(--k-transition);
}
.k-team-card:hover .team-photo { border-color: var(--k-primary); transform: scale(1.04); }
.k-team-card .team-name { font-weight: 700; color: var(--k-dark); margin-bottom: .1rem; }
.k-team-card .team-role {
  font-size: .8rem;
  color: var(--k-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}
.k-team-card p { font-size: .85rem; color: var(--k-muted); margin: 0; }

/* ---------- Contact cards ---------- */
.k-contact-card {
  background: var(--k-white);
  border: 1px solid var(--k-border);
  border-radius: var(--k-radius-lg);
  padding: 2.5rem;
}
.k-contact-card h2 { font-size: 1.5rem; font-weight: 700; color: var(--k-dark); margin-bottom: .75rem; }
.k-contact-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: .9rem; }
.k-contact-row .icon { font-size: 1.1rem; color: var(--k-primary); margin-top: .1rem; flex-shrink: 0; }
.k-contact-row span, .k-contact-row a { font-size: .9rem; color: var(--k-text); }

/* ---------- Footer ---------- */
.k-footer {
  background: var(--k-dark);
  color: rgba(255,255,255,.75);
  padding: 5rem 0 2rem;
}
.k-footer-brand { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.k-footer-brand span { color: var(--k-primary); }
.k-footer p { font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.7; margin-bottom: 1rem; }
.k-footer h5 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: 1.25rem; }
.k-footer-links { list-style: none; padding: 0; margin: 0; }
.k-footer-links li { margin-bottom: .6rem; }
.k-footer-links a { color: rgba(255,255,255,.65); font-size: .875rem; transition: var(--k-transition); }
.k-footer-links a:hover { color: #fff; }
.k-footer-divider { border-color: rgba(255,255,255,.1); margin: 3rem 0 2rem; }
.k-footer-copy { font-size: .8rem; color: rgba(255,255,255,.4); }

/* ---------- CTA Banner ---------- */
.k-cta-banner {
  background: var(--k-gradient);
  border-radius: var(--k-radius-lg);
  padding: 4rem 3rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.k-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.12) 0%, transparent 60%);
}
.k-cta-banner h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; position: relative; }
.k-cta-banner p  { color: rgba(255,255,255,.8); max-width: 500px; margin: 0 auto 2rem; position: relative; }

/* ---------- Process steps ---------- */
.k-step { display: flex; gap: 1.5rem; margin-bottom: 2.5rem; }
.k-step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--k-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.k-step-content h4 { font-size: 1rem; font-weight: 700; color: var(--k-dark); margin-bottom: .35rem; }
.k-step-content p  { font-size: .875rem; color: var(--k-muted); margin: 0; }

/* ---------- Tag cloud / tech stack ---------- */
.k-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.k-tag {
  background: var(--k-bg);
  border: 1px solid var(--k-border);
  color: var(--k-text);
  border-radius: 8px;
  padding: .35rem .85rem;
  font-size: .8rem;
  font-weight: 500;
}

/* ---------- Scroll-to-top button ---------- */
#k-scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--k-gradient);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--k-shadow-lg);
  z-index: 999;
  transition: var(--k-transition);
}
#k-scroll-top:hover { transform: translateY(-3px); }
#k-scroll-top.show { display: flex; }

/* ---------- Utilities ---------- */
.text-gradient {
  background: var(--k-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-gradient-k { background: var(--k-gradient); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .k-section   { padding: 4rem 0; }
  .k-hero      { min-height: auto; padding: 8rem 0 4rem; }
  .k-hero p.lead { max-width: 100%; }
  .k-cta-banner { padding: 2.5rem 1.5rem; }
  .k-hero-bg .blob-3 { display: none; }
}

@media (max-width: 576px) {
  .k-page-hero { padding: 7rem 0 3.5rem; }
}
