/* ===== MEDKON AGENCY — GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ===== VARIABLES ===== */
:root {
  --black: #080808;
  --white: #ffffff;
  --off-white: #f7f7f7;
  --gray-100: #efefef;
  --gray-200: #dcdcdc;
  --gray-300: #c0c0c0;
  --gray-400: #9a9a9a;
  --gray-500: #707070;
  --gray-600: #505050;
  --gray-700: #3a3a3a;
  --gray-800: #242424;
  --gray-900: #141414;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-width: 1280px;
  --nav-height: 76px;
  --section-pad: 120px;
  --transition: 0.3s ease;
  --transition-fast: 0.15s ease;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 3px; }

/* ===== SELECTION ===== */
::selection { background: var(--white); color: var(--black); }

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 48px; }
.section { padding: var(--section-pad) 0; }
.section-sm { padding: 80px 0; }
.divider { width: 100%; height: 1px; background: var(--gray-800); }

/* ===== TYPOGRAPHY ===== */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.heading-md {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.heading-sm {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.body-lg { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.75; color: var(--gray-300); }
.body-md { font-size: 16px; line-height: 1.7; color: var(--gray-400); }
.body-sm { font-size: 14px; line-height: 1.6; color: var(--gray-500); }
.label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-500);
}

/* ===== TAG ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 7px 16px;
  border: 1px solid var(--gray-700);
  margin-bottom: 28px;
}
.tag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--white); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
  text-decoration: none;
}
.btn-primary { background: var(--white); color: var(--black); padding: 16px 36px; }
.btn-primary:hover { background: var(--gray-200); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 15px 35px;
  border: 1px solid var(--gray-600);
}
.btn-outline:hover { border-color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--gray-400); padding: 0; gap: 8px; }
.btn-ghost:hover { color: var(--white); }
.btn-arrow { display: inline-flex; align-items: center; transition: transform var(--transition-fast); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  display: flex;
  align-items: center;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.nav.scrolled {
  background: rgba(8,8,8,0.93);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--gray-800);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 34px; width: auto; }
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: block;
}
.nav-cta:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 24px; height: 1.5px; background: var(--white); transition: all var(--transition); }
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: var(--black);
  z-index: 999;
  padding: 48px 40px;
  flex-direction: column;
  gap: 28px;
  border-top: 1px solid var(--gray-800);
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { font-size: 28px; font-weight: 700; color: var(--gray-400); }
.nav-mobile-cta { margin-top: auto; font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--white); }

/* ===== ANNOUNCEMENT BAR ===== */
.announce-bar {
  background: var(--white);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 52px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
  transition: transform var(--transition), opacity var(--transition);
}
.announce-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--black);
  opacity: 0.55;
  cursor: pointer;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}
.announce-close:hover { opacity: 1; border-color: rgba(0,0,0,0.5); }

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  border: 1px solid var(--gray-800);
  border-bottom: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 16px 28px;
  background: none;
  border: none;
  border-right: 1px solid var(--gray-800);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.filter-tab:last-child { border-right: none; }
.filter-tab:hover { color: var(--white); background: var(--gray-900); }
.filter-tab.active { color: var(--black); background: var(--white); }

/* Case action link */
.case-action {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-800);
}
.case-action-link {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}
.case-action-link:hover { color: var(--white); }
.case-badge {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--gray-700);
  color: var(--gray-500);
}
.case-badge.live { border-color: #4ade80; color: #4ade80; }
.case-badge.dev { border-color: var(--gray-600); color: var(--gray-600); }

/* ===== SECTION HEADER ===== */
.section-header { margin-bottom: 72px; }
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

/* ===== STATS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--gray-800);
  margin-top: 80px;
}
.stat-item {
  padding: 40px 44px;
  border-right: 1px solid var(--gray-800);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.stat-label { font-size: 13px; color: var(--gray-600); }

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--gray-800);
}
.service-card {
  padding: 48px 40px;
  border-right: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card:hover { background: var(--gray-900); }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 44px; height: 44px; margin-bottom: 28px; }
.service-number {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gray-700);
  margin-bottom: 14px;
}
.service-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.2;
}
.service-desc { font-size: 14px; color: var(--gray-500); line-height: 1.7; margin-bottom: 28px; }
.service-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.pill {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  color: var(--gray-600);
  padding: 4px 12px;
  border: 1px solid var(--gray-800);
}
.service-link {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}
.service-card:hover .service-link { color: var(--white); }

/* ===== CASE CARDS ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-800);
}
.case-card {
  background: var(--black);
  padding: 64px 56px;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
}
.case-card:hover { background: var(--gray-900); }
.case-card-num {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--gray-700);
  margin-bottom: 24px;
}
.case-client {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 14px;
}
.case-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.case-desc { font-size: 15px; color: var(--gray-500); line-height: 1.7; margin-bottom: 36px; }
.case-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.case-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  border-top: 1px solid var(--gray-800);
  padding-top: 32px;
  margin-top: auto;
}
.case-metric-val {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 4px;
}
.case-metric-lbl { font-size: 12px; color: var(--gray-600); }

/* ===== PROCESS ===== */
.process-step {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-800);
  transition: all var(--transition);
}
.process-step:last-child { border-bottom: none; }
.process-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1;
  letter-spacing: -0.04em;
}
.process-step:hover .process-num { color: var(--gray-700); }
.process-sub {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-600); margin-bottom: 12px;
}
.process-step-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.process-step-desc { font-size: 15px; color: var(--gray-500); line-height: 1.7; }
.process-list { margin-top: 24px; }
.process-list li {
  font-size: 14px; color: var(--gray-500);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-800);
  display: flex; align-items: center; gap: 12px;
}
.process-list li:last-child { border-bottom: none; }
.process-list li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gray-700); flex-shrink: 0; }

/* ===== TECH GRID ===== */
.tech-categories { border: 1px solid var(--gray-800); }
.tech-cat {
  display: grid;
  grid-template-columns: 260px 1fr;
  border-bottom: 1px solid var(--gray-800);
}
.tech-cat:last-child { border-bottom: none; }
.tech-cat-info {
  padding: 44px 40px;
  border-right: 1px solid var(--gray-800);
}
.tech-cat-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  margin-bottom: 8px;
}
.tech-cat-desc { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.tech-items { padding: 44px 40px; display: flex; flex-wrap: wrap; gap: 12px; align-content: flex-start; }
.tech-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--gray-800);
  transition: all var(--transition-fast);
}
.tech-item:hover { border-color: var(--white); background: var(--gray-900); }
.tech-item-name {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--gray-800);
}
.testi-card { padding: 48px 40px; border-right: 1px solid var(--gray-800); }
.testi-card:last-child { border-right: none; }
.testi-quote { font-size: 36px; color: var(--gray-700); font-family: var(--font-display); line-height: 1; margin-bottom: 20px; }
.testi-text { font-size: 15px; color: var(--gray-300); line-height: 1.75; margin-bottom: 32px; }
.testi-author { display: flex; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--gray-800); }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gray-800);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  flex-shrink: 0;
}
.testi-name { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.testi-role { font-size: 12px; color: var(--gray-600); }

/* ===== CLIENTS MARQUEE ===== */
.marquee-section { padding: 52px 0; border-top: 1px solid var(--gray-800); border-bottom: 1px solid var(--gray-800); overflow: hidden; }
.marquee-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gray-700); margin-bottom: 28px;
}
.marquee-track { display: flex; gap: 80px; animation: marquee 22s linear infinite; width: max-content; }
.client-text {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-600); white-space: nowrap;
  transition: color var(--transition-fast);
}
.client-text:hover { color: var(--white); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== WHY GRID ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--gray-800);
}
.why-item {
  padding: 52px 44px;
  border-right: 1px solid var(--gray-800);
  border-bottom: 1px solid var(--gray-800);
  transition: background var(--transition);
}
.why-item:hover { background: var(--gray-900); }
.why-num { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--gray-700); margin-bottom: 20px; }
.why-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 14px; }
.why-desc { font-size: 14px; color: var(--gray-500); line-height: 1.7; }

/* ===== CTA SECTION ===== */
.cta-section { padding: 160px 0; text-align: center; border-top: 1px solid var(--gray-800); }
.cta-section .display-lg { max-width: 800px; margin: 0 auto 52px; }
.cta-buttons { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ===== PAGE HERO ===== */
.page-hero { padding: 50px 0 80px; border-bottom: 1px solid var(--gray-800); }
.page-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 100px; align-items: start; }
.contact-info-row { padding: 28px 0; border-bottom: 1px solid var(--gray-800); }
.contact-info-label { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 8px; }
.contact-info-val { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--white); transition: color var(--transition-fast); }
.contact-info-val:hover { color: var(--gray-300); }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); }
.form-input, .form-select, .form-textarea {
  width: 100%; background: transparent;
  border: 1px solid var(--gray-700);
  color: var(--white);
  font-family: var(--font-body); font-size: 15px;
  padding: 16px 20px;
  outline: none;
  transition: border-color var(--transition-fast);
  appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-700); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--white); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-select option { background: var(--gray-900); color: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--gray-800); padding: 80px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 60px; margin-bottom: 60px; }
.footer-brand-desc { font-size: 14px; color: var(--gray-600); margin-top: 20px; line-height: 1.7; max-width: 280px; }
.footer-logo img { height: 30px; width: auto; }
.footer-logo-text { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.footer-col-title { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 24px; }
.footer-links { display: flex; flex-direction: column; gap: 14px; }
.footer-link { font-size: 14px; color: var(--gray-600); transition: color var(--transition-fast); }
.footer-link:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--gray-800); }
.footer-copy { font-size: 13px; color: var(--gray-700); }
.footer-socials { display: flex; gap: 24px; }
.footer-social { font-size: 13px; color: var(--gray-600); transition: color var(--transition-fast); }
.footer-social:hover { color: var(--white); }

/* ===== ANIMATIONS — UPGRADED ===== */

/* Base transitions — smooth cubic-bezier */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1);
}
.fade-in.visible { opacity: 1; }

.slide-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.slide-left.visible { opacity: 1; transform: translateX(0); }

.slide-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1), transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.slide-right.visible { opacity: 1; transform: translateX(0); }

.scale-up {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.scale-up.visible { opacity: 1; transform: scale(1); }

/* Stagger children — smooth cascade */
.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.stagger.visible > * {
  opacity: 1; 
  transform: none;
  transition-delay: 0.5s; /* Default for 9+ items */
}
.stagger.visible > *:nth-child(1)  { transition-delay: 0.00s; }
.stagger.visible > *:nth-child(2)  { transition-delay: 0.07s; }
.stagger.visible > *:nth-child(3)  { transition-delay: 0.14s; }
.stagger.visible > *:nth-child(4)  { transition-delay: 0.21s; }
.stagger.visible > *:nth-child(5)  { transition-delay: 0.28s; }
.stagger.visible > *:nth-child(6)  { transition-delay: 0.35s; }
.stagger.visible > *:nth-child(7)  { transition-delay: 0.42s; }
.stagger.visible > *:nth-child(8)  { transition-delay: 0.49s; }

/* Word reveal animation */
.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.word.word-visible { transform: translateY(0); }

/* Tilt card — transition on mouseleave */
.tilt-card {
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
  will-change: transform;
}

/* Draw line */
.draw-line {
  position: relative;
  overflow: hidden;
}
.draw-line::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--white);
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
}
.draw-line.line-drawn::after { width: 100%; }

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--white);
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-dot, .cursor-outline {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--white);
  margin: -3px 0 0 -3px;
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-outline {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.35);
  margin: -18px 0 0 -18px;
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-dot.cursor-hover  { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--white); }
.cursor-outline.cursor-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: rgba(255,255,255,0.6); }
@media (hover: none) { .cursor-dot, .cursor-outline { display: none; } }

/* ===== NAV HIDE ON SCROLL ===== */
.nav { transition: background var(--transition), border-color var(--transition), transform 0.4s cubic-bezier(0.22,1,0.36,1); }

/* Delay utilities */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }

/* ===== ABOUT PAGE ===== */
.about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.section-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  :root { --section-pad: 90px; }
  .container { padding: 0 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .page-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .process-step { grid-template-columns: 80px 1fr; }
  .tech-cat { grid-template-columns: 1fr; }
  .tech-cat-info { border-right: none; border-bottom: 1px solid var(--gray-800); }
}
@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .container { padding: 20px 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; gap: 1px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--gray-800); }
  .process-step { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cta-buttons { flex-direction: column; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .about-story, .section-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero { padding: 60px 0 60px; }
}
@media (max-width: 480px) {
  .case-card { padding: 40px 28px; }
  .service-card { padding: 36px 28px; }
  .cta-section { padding: 100px 0; }
}
/* ===== SCROLL NAV (single toggle — bottom right) ===== */
.scroll-nav {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 890;
}
.scroll-nav-btn {
  width: 40px;
  height: 40px;
  background: rgba(8,8,8,0.78);
  border: 1px solid var(--gray-700);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.scroll-nav-btn:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
@media (max-width: 768px) {
  .scroll-nav { right: 14px; bottom: 20px; }
}


/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  border: 1px solid var(--gray-800);
  border-bottom: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 16px 28px;
  background: none;
  border: none;
  border-right: 1px solid var(--gray-800);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.filter-tab:last-child { border-right: none; }
.filter-tab:hover { color: var(--white); background: var(--gray-900); }
.filter-tab.active { color: var(--black); background: var(--white); }
@media (max-width: 768px) {
  .filter-tab { padding: 14px 18px; font-size: 10px; }
}

/* ===== CASE CARD LINK ===== */
.case-store-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-800);
  width: 100%;
  transition: color var(--transition-fast);
}
.case-store-link:hover { color: var(--white); }

/* Hidden case cards (filter) */
.case-card.hidden { display: none; }

