/* ============================================
   AI HOUSE — MADEby.agency
   Premium One-Pager CSS
   ============================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black:      #080808;
  --black-2:    #111111;
  --black-3:    #1a1a1a;
  --orange:     #E8500A;
  --orange-2:   #FF6B2B;
  --orange-glow:#FF6B2B44;
  --red:        #C0392B;
  --white:      #FAFAFA;
  --grey-1:     #999999;
  --grey-2:     #555555;
  --grey-3:     #2a2a2a;

  --font-sans:  'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;  --nav-h: 120px;
  --container: 1280px;
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 120px 0;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: all var(--transition);
}

#navbar.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,80,10,0.15);
  height: 110px;
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.logo-box {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  border: 2px solid var(--white);
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  line-height: 1;
  box-sizing: border-box;
}
.logo-sub {
  font-size: 18.5px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.logo-sub span {
  color: var(--orange);
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-1);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--grey-1);
  transition: color var(--transition);
  padding: 4px 0;
}
.lang-btn:hover { color: var(--orange); }

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 22px;
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-cta:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.nav-cta.nav-whatsapp-only {
  width: 44px;
  height: 44px;
  border-radius: 12px; /* squircle style exactly as in the photo */
  padding: 0;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.25) !important;
  color: #ffffff !important;
  background: transparent !important;
  box-shadow: none;
  transition: all var(--transition);
}
.nav-cta.nav-whatsapp-only:hover {
  background: rgba(255,255,255,0.1) !important;
  box-shadow: none;
  transform: translateY(-1px);
}
.nav-cta.nav-whatsapp-only svg {
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  fill: #ffffff !important;
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

#heroVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,8,0.25) 0%,
    rgba(8,8,8,0.1) 40%,
    rgba(8,8,8,0.7) 80%,
    rgba(8,8,8,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px 100px;
  max-width: 900px;
}

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(42px, 6.5vw, 85px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-line-1 {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s 0.35s forwards;
  display: block;
}
.hero-line-2 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--orange);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s 0.5s forwards;
  display: block;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 300;
  color: rgba(250,250,250,0.85);
  letter-spacing: 0.05em;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.9s 0.65s forwards; /* adjusted delay */
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.95s forwards;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--orange);
  padding: 16px 36px;
  border-radius: 2px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover {
  background: var(--orange-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--orange-glow);
}

.btn-ghost {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 16px 36px;
  border-radius: 2px;
  transition: all var(--transition);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 48px;
  z-index: 3;
}
.scroll-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s infinite;
}

/* ============================================
   MODAL (demo reel)
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}
.modal.open {
  visibility: visible;
  opacity: 1;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  cursor: pointer;
}
.modal-content {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 800px;
  max-height: 90vh;
  background: var(--black-2);
  border-radius: 4px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.modal.open .modal-content { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 20px; right: 30px;
  z-index: 2;
  font-size: 20px;
  color: var(--white);
  opacity: 0.7;
  transition: opacity var(--transition);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { opacity: 1; }

.modal-back-btn {
  position: absolute;
  top: 20px; left: 30px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-1);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  line-height: 36px;
}
.modal-back-btn:hover {
  color: var(--orange);
}
.modal-content video {
  width: 100%;
  display: block;
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 24px;
}
.section-tag.light {
  color: var(--orange-2);
  border-color: var(--orange-2);
}

.section-header {
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-title.light { color: var(--white); }

.section-sub {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 300;
  color: var(--grey-1);
}

/* ============================================
   ABOUT
   ============================================ */
.about-section {
  background: var(--black);
}

.about-intro {
  max-width: 800px;
  margin-bottom: 80px;
}

.about-headline {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.about-desc {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(250,250,250,0.7);
}

/* Founders */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--grey-3);
}

.founder-card {
  background: var(--black-2);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: background var(--transition);
}
.founder-card:hover { background: var(--black-3); }

.founder-img-wrap {
  width: 100px; height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--orange);
  flex-shrink: 0;
}
.founder-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(30%);
  transition: filter var(--transition);
}
.founder-card:hover .founder-img { filter: grayscale(0%); }

.founder-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.founder-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-top: 4px;
}
.founder-bio {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--grey-1);
}

/* ============================================
   SERVICES
   ============================================ */
.services-section {
  background: var(--black-2);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: transparent;
}

.service-card {
  background: var(--black-2);
  padding: 48px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: all var(--transition);
  min-height: 400px;
  border: 1px solid var(--grey-3);
  margin-top: -1px;
  margin-left: -1px;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: var(--black-3); }

.service-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--orange);
  opacity: 0.8;
}

.service-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.service-list li {
  font-size: 13px;
  font-weight: 300;
  color: var(--grey-1);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.service-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-size: 18px;
  line-height: 1;
}

.service-arrow {
  font-size: 20px;
  color: var(--orange);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all var(--transition);
  margin-top: auto;
}
.service-card:hover .service-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================
   RESULTS
   ============================================ */
.results-section {
  background: var(--black-3);
  position: relative;
  overflow: hidden;
}

.results-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,80,10,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.stats-big {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--grey-2);
  margin-bottom: 64px;
}

.stat-item {
  background: var(--black-3);
  padding: 56px 40px;
  text-align: center;
  position: relative;
}

.stat-num {
  font-size: clamp(56px, 6vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--white) 30%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* 3x variant — no animation, just static display */
.stat-num--x {
  font-size: clamp(56px, 6vw, 88px);
}

.stat-label {
  font-size: 13px;
  font-weight: 300;
  color: var(--grey-1);
  line-height: 1.5;
  margin-top: 16px;
}

/* Bars */
.results-bars {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 900px;
}

.bar-item {}

.bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(250,250,250,0.8);
}
.bar-pct {
  font-weight: 700;
  color: var(--orange);
  font-size: 16px;
}

.bar-track {
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  border-radius: 2px;
  width: 0;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.results-source {
  margin-top: 40px;
  font-size: 11px;
  color: var(--grey-2);
  font-style: italic;
}

/* ============================================
   PARTNERS
   ============================================ */
.partners-section {
  background: var(--black-2);
  overflow: hidden;
}

.partners-track-wrap {
  overflow: hidden;
  position: relative;
  margin-top: 48px;
}
.partners-track-wrap::before,
.partners-track-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.partners-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, var(--black-2), transparent);
}
.partners-track-wrap::after {
  right: 0;
  background: linear-gradient(-90deg, var(--black-2), transparent);
}

.partners-track {
  display: flex;
  gap: 0;
  animation: scrollTrack 28s linear infinite;
  width: max-content;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px;
  border-right: 1px solid var(--grey-3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-2);
  white-space: nowrap;
  transition: color var(--transition);
}
.partner-logo:hover { color: var(--orange); }

/* ============================================
   BLOG
   ============================================ */
.blog-section {
  background: var(--black);
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.cat-btn {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid var(--grey-3);
  border-radius: 2px;
  color: var(--grey-1);
  transition: all var(--transition);
}
.cat-btn:hover, .cat-btn.active {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(232,80,10,0.06);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--grey-3);
}

.blog-card {
  background: var(--black);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.blog-card::after {
  content: '↗';
  position: absolute;
  top: 36px; right: 32px;
  font-size: 18px;
  color: var(--orange);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all var(--transition);
}
.blog-card:hover { background: var(--black-2); }
.blog-card:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

.blog-card.hidden {
  display: none;
}

.blog-cat-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

.blog-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.blog-excerpt {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--grey-1);
  flex: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 400;
  color: var(--grey-2);
  padding-top: 12px;
  border-top: 1px solid var(--grey-3);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  background: var(--black-3);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-text .section-title { font-size: clamp(30px, 4vw, 52px); }
.contact-sub {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 300;
  color: var(--grey-1);
  line-height: 1.7;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-1);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  background: rgba(232,80,10,0.04);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select option { background: var(--black-3); color: var(--white); }

.form-submit {
  align-self: flex-start;
  margin-top: 8px;
}

.form-success {
  display: none;
  font-size: 14px;
  color: var(--orange);
  font-weight: 400;
  padding: 12px 0;
}
.form-success.show { display: block; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  border-top: 1px solid var(--grey-3);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.footer-copy {
  font-size: 12px;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.6);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer-links a {
  font-size: 12px;
  color: var(--grey-1);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--orange); }

.footer-socials {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--grey-1);
  transition: color var(--transition);
}
.social-link:hover {
  color: var(--orange);
}

.linkedin-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

@keyframes scrollTrack {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-big { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 900;
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 24px rgba(232,80,10,0.35);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--orange-2);
  box-shadow: 0 8px 32px rgba(232,80,10,0.5);
}

@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }

  #navbar {
    height: 80px !important;
    background: #080808 !important;
    border-bottom: 1px solid rgba(232, 80, 10, 0.15) !important;
    padding: 0 24px !important;
    z-index: 3000 !important;
  }
  #navbar.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .logo-box {
    width: 50px !important;
    height: 50px !important;
    padding: 4px 6px !important;
    font-size: 9px !important;
  }
  .logo-sub {
    font-size: 14px !important;
  }
  .nav-logo {
    gap: 4px !important;
  }
  .lang-btn {
    font-size: 12px !important;
  }
  .nav-cta.nav-whatsapp-only {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
  }
  .nav-cta.nav-whatsapp-only svg {
    width: 18px !important;
    height: 18px !important;
  }
  .hamburger span {
    width: 20px !important;
  }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* Keep logo and menu button on top of overlay */
  .nav-logo, .nav-right {
    position: relative;
    z-index: 2000;
  }

  /* Mobile nav overlay */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #080808 !important; /* solid background to prevent overlaps! */
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 1900;
    padding-top: 80px;
    box-sizing: border-box;
  }
  .nav-links.mobile-open a {
    font-size: 20px;
    font-weight: 600;
  }

  .founders-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-big { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  #navbar { padding: 0 20px; }
  .hero-content { padding: 0 20px 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .founders-grid { grid-template-columns: 1fr; }
  .founder-card { padding: 40px 24px; }
  .stats-big { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { order: 1; }
  .footer-copy { order: 2; }
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .footer-socials {
    flex-direction: column;
    gap: 12px;
  }
}

/* ============================================
   BLOG READER OVERLAY (Premium styles)
   ============================================ */
.blog-reader {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: var(--black);
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blog-reader.open {
  transform: translateY(0);
}

  /* Progress Bar */
  .blog-reader-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange), var(--orange-2));
    width: 0%;
    z-index: 2600;
    transition: width 0.1s ease-out;
  }

  /* Header / Navigation */
  .blog-reader-header {
    height: 80px;
    min-height: 80px;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
  }

  .blog-reader-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .blog-reader-close {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--grey-1);
    transition: color var(--transition);
    cursor: pointer;
  }
  .blog-reader-close span:first-child {
    font-size: 16px;
    color: var(--orange);
    transition: transform var(--transition);
  }
  .blog-reader-close:hover {
    color: var(--white);
  }
  .blog-reader-close:hover span:first-child {
    transform: translateX(-4px);
  }

  /* Scrollable Content wrapper */
  .blog-reader-content-wrap {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 80px 0 120px 0;
    -webkit-overflow-scrolling: touch;
  }

  .blog-reader-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 80px;
    align-items: start;
  }

  /* Article details */
  .blog-reader-article {
    max-width: 760px;
  }

  .blog-reader-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
  }

  .blog-reader-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--orange);
  }

  .blog-reader-sep {
    color: var(--grey-2);
  }

  .blog-reader-time {
    font-size: 12px;
    font-weight: 400;
    color: var(--grey-1);
  }

  .blog-reader-title {
    font-family: var(--font-sans);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 48px;
  }

  .blog-reader-body {
    font-size: 17px;
    font-weight: 300;
    line-height: 1.85;
    color: rgba(250, 250, 250, 0.85);
  }

  .blog-reader-body p {
    margin-bottom: 28px;
    letter-spacing: 0.01em;
  }

  .blog-reader-body h3 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 56px 0 24px 0;
    color: var(--white);
    border-left: 3px solid var(--orange);
    padding-left: 20px;
  }

  .blog-reader-body ul {
    margin-bottom: 36px;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .blog-reader-body ul li {
    font-size: 16px;
    font-weight: 300;
    color: rgba(250, 250, 250, 0.8);
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
  }

  .blog-reader-body ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--orange);
    font-size: 20px;
    line-height: 1;
    top: -1px;
  }

  /* Sources footer style */
  .blog-reader-body .article-sources {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--grey-3);
    font-size: 13px;
    color: var(--grey-1);
    font-style: italic;
    line-height: 1.6;
  }

  /* Case study styled blocks */
  .blog-reader-body .article-block-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    margin-top: 40px;
    margin-bottom: 8px;
  }

  /* Sidebar styling */
  .blog-reader-sidebar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 32px;
    border-radius: 4px;
  }

  .sidebar-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--grey-3);
  }

  .blog-reader-related {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .related-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: opacity var(--transition);
  }

  .related-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .related-card:hover {
    opacity: 0.7;
  }

  .related-cat {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
  }

  .related-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--white);
  }

  /* Body lock when open */
  body.reader-open {
    overflow: hidden !important;
  }

  /* Media Queries for Reader */
  @media (max-width: 1024px) {
    .blog-reader-container {
      grid-template-columns: 1fr;
      gap: 64px;
    }
    .blog-reader-sidebar {
      position: static;
      padding: 24px;
    }
  }

  @media (max-width: 600px) {
    .blog-reader-content-wrap {
      padding: 40px 0 80px 0;
    }
    .blog-reader-title {
      margin-bottom: 32px;
    }
    .blog-reader-body {
      font-size: 16px;
      line-height: 1.75;
    }
  }

/* ============================================
   VIDEO THUMBNAILS IN MODAL
   ============================================ */
.modal-player-container {
  padding: 75px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--black-2);
  overflow: hidden;
  flex: 1;
}

.modal-content video {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  background: var(--black-1);
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.modal-thumbnails-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--grey-1);
  margin-top: 10px;
}

.modal-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  overflow-y: auto;
  padding-right: 10px;
  padding-bottom: 20px;
  flex: 1;
  min-height: 0;
}
.modal-thumbnails-grid::-webkit-scrollbar {
  width: 6px;
}
.modal-thumbnails-grid::-webkit-scrollbar-thumb {
  background: var(--grey-3);
  border-radius: 3px;
}

.modal-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--black-3);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
}

.modal-thumb.active {
  border-color: var(--orange);
  box-shadow: 0 0 15px var(--orange-glow);
}

.modal-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.modal-thumb:hover .modal-thumb-video {
  transform: scale(1.06);
}

.modal-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 2;
}

.modal-thumb:hover .modal-thumb-overlay {
  background: rgba(232, 80, 10, 0.35);
}

.modal-thumb .play-icon {
  font-size: 16px;
  color: var(--white);
  opacity: 0.8;
  transition: transform var(--transition), opacity var(--transition);
}

.modal-thumb:hover .play-icon {
  opacity: 1;
  transform: scale(1.2);
}

.modal-thumb-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%);
  padding: 8px;
  z-index: 3;
}

.modal-thumb-name {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Modal responsive fixes */
@media (max-width: 768px) {
  .modal-thumbnails-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .modal-thumbnails-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-player-container {
    padding: 30px 15px 15px;
  }
}

/* ============================================
   WHATSAPP IN NAVBAR
   ============================================ */
.nav-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--grey-1);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 30px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.nav-whatsapp:hover {
  color: #25D366;
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.25);
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.15);
}
.whatsapp-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .nav-whatsapp span {
    display: none; /* hide label on small screens to avoid clutter */
  }
  .nav-whatsapp {
    padding: 8px;
    border-radius: 50%;
  }
}

@media (max-width: 600px) {
  .footer-logo {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .modal-close {
    top: 15px !important;
    right: 15px !important;
  }
  .modal-back-btn {
    top: 15px !important;
    left: 15px !important;
    font-size: 10px !important;
  }
  .modal-player-container {
    padding: 75px 15px 15px !important;
  }
}


/* ============================================
   MADEby.agency BANNER
   ============================================ */
.madeby-banner {
  background: var(--black-2);
  padding: 80px 0;
  border-top: 1px solid var(--grey-3);
}
.madeby-banner-inner {
  display: block;
}
.madeby-banner-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.madeby-banner-content .section-tag {
  margin-bottom: 24px;
}
.madeby-banner-content .section-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.madeby-banner-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--grey-1);
  margin-bottom: 40px;
}
