/* ── SCROLL ANIMATIONS ── */
.anim {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity, transform;
}
.anim.from-up    { transform: translateY(48px); }
.anim.from-down  { transform: translateY(-32px); }
.anim.from-left  { transform: translateX(-56px); }
.anim.from-right { transform: translateX(56px); }
.anim.visible    { opacity: 1; transform: none; }

/* ── FONT AWESOME HELPERS ── */
.card-icon i, .pj-icon i, .cta-icon i, .wi-icon i { font-size: inherit; color: var(--silver); }
.wa-float i { font-size: 26px; }
.btn-primary i, .btn-whatsapp i, .btn-outline i, .footer-wa i { margin-right: 7px; }
.plink i { margin-right: 5px; }
.nav-whatsapp i { font-size: 1.1rem; line-height: 1; margin-right: 0; }
.footer-col p i { margin-right: 9px; width: 16px; text-align: center; color: var(--silver); }
.skill-badge i { margin-right: 6px; }

/* ── SHARED STYLES ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #040d1a;
  --bg2:     #071428;
  --card:    #0d1f35;
  --card2:   #0a1929;
  --border:  rgba(6,182,212,0.18);
  --accent:  #06b6d4;
  --accent2: #0ea5e9;
  --gold:    #f59e0b;
  --green:   #25d366;
  --silver:  #c0c8d8;
  --text:    #e2e8f0;
  --muted:   #94a3b8;
  --heading: #f8fafc;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(6,182,212,0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(14,165,233,0.05) 0%, transparent 50%);
  pointer-events: none; z-index: 0;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; }

/* ── NAV ── */
nav {
  background: rgba(4,13,26,0.40);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(192,200,216,0.10);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed; top: 0; width: 100%; z-index: 999;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
nav.nav-scrolled {
  background: rgba(4,13,26,0.65);
  border-bottom-color: rgba(192,200,216,0.18);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo i {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 900;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--card), var(--card2));
  border: 2.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(6,182,212,0.4), inset 0 0 8px rgba(6,182,212,0.08);
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent); border-bottom-color: var(--accent);
}
.nav-whatsapp {
  display: flex; align-items: center; gap: 6px;
  background: transparent; color: #25d366 !important;
  border: 1.5px solid rgba(37,211,102,0.50) !important;
  padding: 7px 16px; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
  border-bottom: none !important;
  transition: all 0.2s !important;
  backdrop-filter: blur(8px);
}
.nav-whatsapp:hover { background: rgba(37,211,102,0.12); color: #fff !important; }
.hamburger {
  display: none; background: none; border: 1px solid var(--border);
  color: var(--accent); font-size: 20px; cursor: pointer;
  border-radius: 8px; padding: 4px 10px;
}
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--card2); border-bottom: 1px solid var(--border);
  flex-direction: column; gap: 0; z-index: 998;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
  padding: 15px 24px;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
  display: flex; align-items: center; gap: 10px;
}
.mobile-menu a:last-child { border-bottom: none; background: rgba(37,211,102,0.08); color: #25d366; }
.mobile-menu a:last-child:hover { background: rgba(37,211,102,0.15); color: #25d366; }
.mobile-menu a:hover { color: var(--accent); background: rgba(6,182,212,0.06); padding-left: 32px; }

/* ── PAGE WRAPPER ── */
.page { padding-top: 64px; position: relative; z-index: 1; }

/* ── HERO ── */
.hero {
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
  background: transparent;
}
.hero-inner { max-width: 780px; }
.hero-badge {
  display: inline-block;
  background: rgba(6,182,212,0.1); border: 1px solid var(--border);
  color: var(--accent); padding: 6px 18px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 24px; text-transform: uppercase;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  color: var(--heading); margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.1rem; color: var(--muted);
  line-height: 1.8; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: transparent;
  border: 1.5px solid rgba(6,182,212,0.55);
  color: var(--accent);
  padding: 13px 28px; border-radius: 30px;
  font-weight: 700; font-size: 0.95rem; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  backdrop-filter: blur(8px);
}
.btn-primary:hover { border-color: var(--accent); background: rgba(6,182,212,0.12); color: #fff; transform: translateY(-2px); }
.btn-whatsapp {
  background: transparent;
  border: 1.5px solid rgba(37,211,102,0.55);
  color: #25d366;
  padding: 13px 28px; border-radius: 30px;
  font-weight: 700; font-size: 0.95rem; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  backdrop-filter: blur(8px);
}
.btn-whatsapp:hover { border-color: #25d366; background: rgba(37,211,102,0.12); color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(192,200,216,0.40);
  color: var(--text);
  padding: 13px 28px; border-radius: 30px;
  font-weight: 600; font-size: 0.95rem; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--silver); color: var(--silver); background: rgba(192,200,216,0.08); }

/* ── SECTIONS ── */
section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }
section h2.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700; color: var(--heading);
  text-align: center; margin-bottom: 12px;
}
.section-sub {
  text-align: center; color: var(--muted);
  font-size: 1rem; margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.accent-line {
  width: 60px; height: 3px; background: var(--accent);
  margin: 12px auto 40px; border-radius: 2px;
}

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: rgba(13,31,53,0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(192,200,216,0.35);
  border-radius: 18px; padding: 28px 24px;
  transition: all 0.3s;
}
.card:hover {
  border-color: rgba(192,200,216,0.65);
  box-shadow: 0 0 30px rgba(192,200,216,0.08);
  transform: translateY(-4px);
}
.card-icon {
  font-size: 2.2rem; margin-bottom: 16px;
}
.card h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--heading); margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ── WHY DIGITAL ── */
.why-section {
  background: rgba(10,25,41,0.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(192,200,216,0.35);
  border-radius: 24px; padding: 60px 40px; margin: 0 24px;
}

/* ── STACK CARDS: sticky "stairs" scroll-stacking effect ──
   Each card is position:sticky with a slightly larger `top` than the one
   before it. As the page scrolls, a card sticks in place until the next
   card's sticky point is reached, at which point the next card comes to
   rest a little lower and a lot higher in z-index — covering the bottom of
   the previous card while leaving its top edge peeking out above, like a
   flight of stairs. Works for both the photo variant (services) and the
   icon-only "simple" variant (why-reasons / why-choose-us). ── */
.stack-cards {
  display: flex;
  flex-direction: column;
  max-width: 880px;
  margin: 0 auto;
}
.stack-card {
  position: sticky;
  display: flex;
  align-items: stretch;
  min-height: 200px;
  margin-bottom: 22px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(13,31,53,0.96), rgba(8,18,32,0.98));
  border: 1px solid rgba(192,200,216,0.30);
  box-shadow: 0 24px 50px rgba(0,0,0,0.45);
  transition: border-color 0.3s;
}
.stack-card:hover { border-color: rgba(192,200,216,0.55); }
.stack-card:last-child { margin-bottom: 0; }

.stack-media { flex: 0 0 40%; position: relative; min-height: 200px; }
.stack-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stack-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4,13,26,0.05) 0%, rgba(4,13,26,0.55) 68%, rgba(4,13,26,0.94) 100%);
}
.stack-media .stack-icon {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(4,13,26,0.82); border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--accent);
}

.stack-body { flex: 1; padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
.stack-body h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; color: var(--heading); margin-bottom: 10px; }
.stack-body p { color: var(--muted); font-size: 0.92rem; line-height: 1.75; }

/* Simple variant — no media split, icon sits inline above the text */
.stack-card.simple { display: block; padding: 30px 34px 32px; }
.stack-card.simple .stack-icon-inline {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(6,182,212,0.10); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--accent); margin-bottom: 16px;
}
.stack-card.simple h3, .stack-card.simple h4 {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; color: var(--heading); margin-bottom: 8px;
}
.stack-card.simple p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* Incrementing sticky offsets → the actual staircase. Shared with
   .project-card so Recent Projects / the Projects page stack the same way. */
.stack-card:nth-child(1),  .project-card:nth-child(1)  { top: 84px;  z-index: 1; }
.stack-card:nth-child(2),  .project-card:nth-child(2)  { top: 112px; z-index: 2; }
.stack-card:nth-child(3),  .project-card:nth-child(3)  { top: 140px; z-index: 3; }
.stack-card:nth-child(4),  .project-card:nth-child(4)  { top: 168px; z-index: 4; }
.stack-card:nth-child(5),  .project-card:nth-child(5)  { top: 196px; z-index: 5; }
.stack-card:nth-child(6),  .project-card:nth-child(6)  { top: 224px; z-index: 6; }
.stack-card:nth-child(7),  .project-card:nth-child(7)  { top: 252px; z-index: 7; }
.stack-card:nth-child(8),  .project-card:nth-child(8)  { top: 280px; z-index: 8; }
.stack-card:nth-child(9),  .project-card:nth-child(9)  { top: 308px; z-index: 9; }
.stack-card:nth-child(10), .project-card:nth-child(10) { top: 336px; z-index: 10; }

@media (max-width: 768px) {
  .stack-card { flex-direction: column; min-height: auto; }
  .stack-media { flex-basis: auto; height: 170px; }
  .stack-card:nth-child(1),  .project-card:nth-child(1)  { top: 74px; }
  .stack-card:nth-child(2),  .project-card:nth-child(2)  { top: 96px; }
  .stack-card:nth-child(3),  .project-card:nth-child(3)  { top: 118px; }
  .stack-card:nth-child(4),  .project-card:nth-child(4)  { top: 140px; }
  .stack-card:nth-child(5),  .project-card:nth-child(5)  { top: 162px; }
  .stack-card:nth-child(6),  .project-card:nth-child(6)  { top: 184px; }
  .stack-card:nth-child(7),  .project-card:nth-child(7)  { top: 206px; }
  .stack-card:nth-child(8),  .project-card:nth-child(8)  { top: 228px; }
  .stack-card:nth-child(9),  .project-card:nth-child(9)  { top: 250px; }
  .stack-card:nth-child(10), .project-card:nth-child(10) { top: 272px; }
}

/* ── SKILLS GRID ── */
.skills-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.skill-badge {
  background: rgba(13,31,53,0.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(192,200,216,0.35);
  color: var(--text); padding: 8px 18px; border-radius: 20px;
  font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s;
}
.skill-badge:hover { border-color: rgba(192,200,216,0.65); color: var(--silver); }

/* ── PROJECTS ──
   Stacks the same sticky "stairs" way as .stack-cards (shared nth-child
   offsets above) — kept as its own class since the content/visual style
   (icon + title + description + links) stays exactly as it was. */
.projects-grid {
  display: flex;
  flex-direction: column;
  max-width: 880px;
  margin: 0 auto;
}
.project-card {
  position: sticky;
  background: linear-gradient(160deg, rgba(13,31,53,0.96), rgba(8,18,32,0.98));
  border: 1px solid rgba(192,200,216,0.30);
  border-radius: 20px;
  overflow: hidden;
  display: flex; align-items: stretch;
  min-height: 190px;
  margin-bottom: 22px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.45);
  transition: border-color 0.3s;
}
.project-card:last-child { margin-bottom: 0; }
.project-card:hover { border-color: rgba(192,200,216,0.65); }
.project-card .stack-media { flex: 0 0 32%; }
.pj-body { flex: 1; padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.project-card h3 { color: var(--heading); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.project-card p { color: var(--muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px; }

/* Big icon panel — same size/position as the .stack-media photo panel above,
   but a large centered icon instead of an image. */
.pj-icon-panel {
  flex: 0 0 32%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, rgba(6,182,212,0.12), rgba(10,25,41,0.55));
  border-right: 1px solid rgba(192,200,216,0.15);
}
.pj-icon-panel i { font-size: 3.6rem; color: var(--silver); }

@media (max-width: 768px) {
  .project-card { flex-direction: column; min-height: auto; }
  .project-card .stack-media { flex-basis: auto; height: 160px; }
  .pj-icon-panel { flex-basis: auto; height: 130px; border-right: none; border-bottom: 1px solid rgba(192,200,216,0.15); }
  .pj-icon-panel i { font-size: 2.8rem; }
}
.project-links { display: flex; flex-wrap: wrap; gap: 10px; }
.plink {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid rgba(192,200,216,0.40);
  color: var(--silver); padding: 5px 14px; border-radius: 20px;
  font-size: 0.82rem; font-weight: 600; transition: all 0.2s;
  backdrop-filter: blur(6px);
}
.plink:hover { background: rgba(192,200,216,0.10); border-color: var(--silver); color: #fff; }
.projects-list { display: flex; flex-direction: column; gap: 18px; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; }
.contact-form {
  background: rgba(13,31,53,0.30);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(192,200,216,0.35);
  border-radius: 18px; padding: 32px;
}
.contact-form h3 { color: var(--heading); font-weight: 700; font-size: 1.1rem; margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.3px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--card2); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 11px 16px; color: var(--text);
  font-size: 0.92rem; font-family: 'Inter', sans-serif; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { height: 110px; resize: vertical; }
.form-group select option { background: var(--card2); }

/* ── FOOTER ── */
footer {
  background: #020810;
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}
.footer-brand .footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 800;
  color: var(--heading); margin-bottom: 14px;
}
.footer-brand .footer-logo span { color: var(--accent); }
.footer-brand p {
  color: var(--muted); font-size: 0.88rem; line-height: 1.75;
  margin-bottom: 20px; max-width: 260px;
}
.footer-wa {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: #25d366;
  border: 1.5px solid rgba(37,211,102,0.50);
  padding: 9px 20px; border-radius: 22px;
  font-size: 0.85rem; font-weight: 700;
  transition: all 0.2s; backdrop-filter: blur(8px);
}
.footer-wa:hover { background: rgba(37,211,102,0.12); color: #fff; }
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--heading); font-size: 0.95rem;
  font-weight: 700; margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.footer-col a, .footer-col p {
  display: block; color: var(--muted);
  font-size: 0.87rem; line-height: 1.6;
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  max-width: 1100px; margin: 0 auto;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { color: var(--muted); font-size: 0.82rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--muted); font-size: 0.82rem; }
.footer-bottom-links a:hover { color: var(--accent); }
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 1000;
  background: var(--green); color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  transition: all 0.3s; text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }

/* ── STATS ── */
.stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; margin-top: 48px; }
.stat { text-align: center; }
.stat .num { font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.stat .lbl { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* ── PAGE HERO ── */
.page-hero {
  background: transparent;
  padding: 100px 24px 60px; text-align: center;
}
.page-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 800; color: var(--heading); margin-bottom: 14px; }
.page-hero p { color: var(--muted); font-size: 1rem; max-width: 580px; margin: 0 auto; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .why-section { padding: 36px 20px; margin: 0 12px; }
  section[style*="grid-template-columns:1fr 1.2fr"] { grid-template-columns: 1fr !important; }
  .about-intro-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 480px) {
  nav { padding: 0 16px; }
  .hero h1 { font-size: 1.9rem; }
}
