/* ============================================================
   GABRIEL FERNANDES — PORTFOLIO / LANDING PAGE
   Design: Dark luxury + electric blue accents
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        #080d1a;
  --bg-2:      #0c1326;
  --bg-card:   rgba(15, 24, 48, 0.75);
  --border:    rgba(99, 145, 255, 0.12);
  --border-hover: rgba(99, 145, 255, 0.35);

  --blue:      #2f6bff;
  --blue-glow: #3d7bff;
  --blue-soft: rgba(47, 107, 255, 0.18);
  --cyan:      #00e5ff;
  --text:      #e8edf8;
  --text-muted:#7c8db5;
  --text-dim:  #4a5a80;

  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-card: 0 4px 40px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-glow: 0 0 40px rgba(47,107,255,0.35), 0 8px 32px rgba(0,0,0,0.5);

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.6s cubic-bezier(0.4,0,0.2,1);

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
em { font-style: normal; color: var(--cyan); }

/* ── CONTAINER ───────────────────────────────────────────── */
.container {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 99px; }

/* ── AOS (scroll reveal) ─────────────────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
[data-aos].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-aos-delay="80"].is-visible  { transition-delay: 80ms; }
[data-aos-delay="100"].is-visible { transition-delay: 100ms; }
[data-aos-delay="150"].is-visible { transition-delay: 150ms; }
[data-aos-delay="160"].is-visible { transition-delay: 160ms; }
[data-aos-delay="200"].is-visible { transition-delay: 200ms; }
[data-aos-delay="240"].is-visible { transition-delay: 240ms; }
[data-aos-delay="320"].is-visible { transition-delay: 320ms; }
[data-aos-delay="400"].is-visible { transition-delay: 400ms; }

/* ── FADE-IN (number animation) ─────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1),
              transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1.visible { transition-delay: 100ms; }
.fade-in-delay-2.visible { transition-delay: 200ms; }
.fade-in-delay-3.visible { transition-delay: 300ms; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 99px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .02em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover {
  background: var(--blue-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(47,107,255,0.5);
}
.btn--glow {
  box-shadow: 0 0 0 0 rgba(47,107,255,0);
  animation: pulse-btn 3s infinite 2s;
}
@keyframes pulse-btn {
  0%   { box-shadow: 0 0 0 0 rgba(47,107,255,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(47,107,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,107,255,0); }
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-hover);
}
.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}
.btn--nav {
  background: var(--blue-soft);
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: .55rem 1.2rem;
  font-size: .85rem;
}
.btn--nav:hover {
  background: var(--blue);
  color: #fff;
}
.btn--lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

/* ── TYPOGRAPHY HELPERS ──────────────────────────────────── */
.label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: .3rem .9rem;
  border-radius: 99px;
  border: 1px solid rgba(47,107,255,0.25);
  margin-bottom: 1.2rem;
}
.label--light { color: var(--cyan); background: rgba(0,229,255,0.1); border-color: rgba(0,229,255,0.2); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 4rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .8rem;
}
.section-sub { color: var(--text-muted); font-size: 1.05rem; }
.section-sub--light { color: rgba(232,237,248,0.6); }
.section-head--light h2 { color: #fff; }

/* ── HEADER ──────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background var(--transition), backdrop-filter var(--transition),
              box-shadow var(--transition), padding var(--transition);
}
.header.scrolled {
  background: rgba(8,13,26,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), 0 8px 40px rgba(0,0,0,0.4);
  padding: .75rem 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.logo__mark {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.logo__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.logo__text span { color: var(--blue); }

/* desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a:not(.btn) {
  font-size: .9rem;
  color: var(--text-muted);
  transition: color var(--transition);
  font-family: var(--font-display);
  font-weight: 600;
}
.nav a:not(.btn):hover { color: var(--text); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem var(--side-pad, 1.5rem);
  background: rgba(8,13,26,0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

/* blobs */
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__blob--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(47,107,255,0.2) 0%, transparent 70%);
  top: -100px; left: -200px;
  animation: blobMove1 12s ease-in-out infinite alternate;
}
.hero__blob--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,229,255,0.12) 0%, transparent 70%);
  bottom: -100px; right: -150px;
  animation: blobMove2 15s ease-in-out infinite alternate;
}
@keyframes blobMove1 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.08); }
}
@keyframes blobMove2 {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(-40px, -60px) scale(1.1); }
}

/* grid lines decoration */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,145,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,145,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  padding: .4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.6s ease both;
}
@keyframes fadeIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
  animation: fadeIn .8s ease .1s both;
}
.hero__highlight {
  position: relative;
  color: var(--blue-glow);
}
.hero__highlight::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  animation: fadeIn .8s ease .2s both;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeIn .8s ease .3s both;
}
.hero__stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeIn .8s ease .4s both;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.stat span {
  font-size: .8rem;
  color: var(--text-muted);
}
.stat__divider {
  width: 1px;
  height: 36px;
  background: var(--border-hover);
}

/* ── MOCKUP (hero visual) ────────────────────────────────── */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.mockup {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(47,107,255,0.12);
  backdrop-filter: blur(12px);
}
.mockup__bar {
  display: flex;
  gap: .45rem;
  padding: .9rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.mockup__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mockup__bar span:nth-child(1) { background: #ff5f57; }
.mockup__bar span:nth-child(2) { background: #ffbd2e; }
.mockup__bar span:nth-child(3) { background: #28c840; }
.mockup__screen { padding: 1.5rem; }
.mockup__hero-block {
  background: linear-gradient(135deg, rgba(47,107,255,0.15), rgba(0,229,255,0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  margin-bottom: 1rem;
}
.mockup__line {
  height: 10px;
  border-radius: 6px;
  margin-bottom: .7rem;
}
.mockup__line--title { background: rgba(255,255,255,0.3); width: 75%; height: 14px; }
.mockup__line--sub   { background: rgba(255,255,255,0.12); width: 90%; }
.mockup__line--sub.short { width: 60%; }
.mockup__btn {
  width: 110px; height: 32px;
  background: var(--blue);
  border-radius: 99px;
  margin-top: 1rem;
  animation: pulseMockBtn 2.5s ease-in-out infinite;
}
@keyframes pulseMockBtn {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}
.mockup__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.mockup__card {
  aspect-ratio: 1/1.1;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}
.mockup__card::after {
  content: '';
  position: absolute;
  top: 60%; left: 10%; right: 10%;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* floating badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(15,24,48,0.9);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(12px);
  padding: .6rem 1rem;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.fb-icon { font-size: 1rem; }
.floating-badge--1 {
  top: 20%; right: -40px;
  animation: floatBadge1 4s ease-in-out infinite;
}
.floating-badge--2 {
  bottom: 20%; left: -40px;
  animation: floatBadge2 5s ease-in-out infinite .8s;
}
@keyframes floatBadge1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about {
  padding: 7rem 0;
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5rem;
  align-items: center;
}
.about__text .label { margin-bottom: 1rem; }
.about__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.about__text p {
  color: var(--text-muted);
  margin-bottom: .9rem;
}
.about__text strong { color: var(--text); }
.about__techs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}
.about__techs span {
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid rgba(47,107,255,0.2);
  padding: .3rem .8rem;
  border-radius: 99px;
  letter-spacing: .04em;
}

.about__card {
  flex-shrink: 0;
}
.about__card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  min-width: 220px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.about__card-inner:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}
.about__avatar-wrap {
  width: 90px; height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 2px solid var(--blue);
  box-shadow: 0 0 20px rgba(47,107,255,0.35);
}
.about__avatar { width: 100%; height: 100%; object-fit: cover; }
.about__info {
  display: flex; flex-direction: column; gap: .25rem;
  margin-bottom: 1.2rem;
}
.about__info strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.about__info span { font-size: .82rem; color: var(--text-muted); }
.about__loc { font-size: .78rem !important; }
.about__links {
  display: flex;
  gap: .6rem;
  justify-content: center;
}
.about__links a {
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: .3rem .8rem;
  border-radius: 99px;
  border: 1px solid rgba(47,107,255,0.2);
  transition: var(--transition);
}
.about__links a:hover { background: var(--blue); color: #fff; }

/* ── SERVICES ────────────────────────────────────────────── */
.services {
  padding: 7rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  position: relative;
}
.services::before, .services::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}
.services::before { top: 0; }
.services::after  { bottom: 0; }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(47,107,255,0.12);
  transform: translateY(-4px);
}
.service-card:hover::before { opacity: 1; }

.service-card--featured {
  border-color: rgba(47,107,255,0.35);
  background: linear-gradient(160deg, rgba(47,107,255,0.1), rgba(0,229,255,0.04));
}
.service-card--featured::before { opacity: 1; }
.service-card--featured:hover { transform: translateY(-6px); }

.service-card__badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--blue);
  padding: .25rem .7rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}
.service-card__icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: .93rem;
  margin-bottom: 1.4rem;
}
.service-card__list {
  margin-bottom: 1.8rem;
}
.service-card__list li {
  font-size: .85rem;
  color: var(--text-muted);
  padding: .3rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.service-card__list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.service-card__cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--transition), color var(--transition);
}
.service-card:hover .service-card__cta { gap: .6rem; color: var(--cyan); }

/* ── WHY ─────────────────────────────────────────────────── */
.why { padding: 7rem 0; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.why__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  backdrop-filter: blur(8px);
  transition: border-color var(--transition), transform var(--transition);
}
.why__item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.why__icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: .9rem;
}
.why__item h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.why__item p { font-size: .88rem; color: var(--text-muted); }

/* ── PROJECTS ────────────────────────────────────────────── */
.projects {
  padding: 7rem 0;
  background: var(--bg-2);
  position: relative;
}
.projects::before, .projects::after {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}
.projects::before { top: 0; }
.projects::after  { bottom: 0; }

/* ── CAROUSEL CONTAINER ──────────────────────────────── */
.carousel-container {
  position: relative;
  margin: 0 auto 3rem;
  padding: 0;
}

.carousel-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; /* smooth momentum scrolling on iOS */
  
  /* Hide scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 1.5rem;
}

.carousel-item {
  flex: 0 0 calc(100% - 3rem);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
}

/* Tablet: show 2 items */
@media (min-width: 640px) {
  .carousel-track {
    padding: 0.5rem 1rem;
  }
  
  .carousel-item {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

/* Desktop: show 3 items */
@media (min-width: 1024px) {
  .carousel-item {
    flex: 0 0 calc(33.333% - 1rem);
  }
  
  .carousel-container {
    padding: 0 60px;
    margin-left: -60px;
    margin-right: -60px;
  }
  
  .carousel-track {
    padding: 0.5rem 0;
  }
}

/* ── CAROUSEL CARD ───────────────────────────────────── */
.carousel-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  outline: none;
  position: relative;
}

.carousel-card:hover,
.carousel-card:focus-visible {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 1px var(--border-hover), var(--shadow-glow);
  transform: translateY(-4px);
}

.carousel-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
  position: relative;
}

.carousel-card:hover .carousel-card__image,
.carousel-card:focus-visible .carousel-card__image {
  transform: scale(1.05);
}

/* Placeholder gradients */
.carousel-card__image--1 { 
  background: linear-gradient(135deg, #1a2a6c, #2f6bff 60%, #00e5ff);
}
.carousel-card__image--2 { 
  background: linear-gradient(135deg, #0d1b2a, #1a4a6c 50%, #00b4d8);
}
.carousel-card__image--3 { 
  background: linear-gradient(135deg, #0c1326, #2f6bff 70%);
}

.carousel-card__content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.carousel-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.carousel-card__arrow {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all var(--transition);
  opacity: 0;
}

.carousel-card:hover .carousel-card__arrow,
.carousel-card:focus-visible .carousel-card__arrow {
  opacity: 1;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateX(4px);
}

/* ── CAROUSEL NAVIGATION ──────────────────────────────– */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text);
  z-index: 10;
  user-select: none;
}

.carousel-nav:hover,
.carousel-nav:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav--prev {
  left: -60px;
}

.carousel-nav--next {
  right: -60px;
}

/* Hide nav buttons on mobile and tablet */
@media (max-width: 1023px) {
  .carousel-nav {
    display: none;
  }
}

/* ── CAROUSEL INDICATORS ─────────────────────────────– */
.carousel-indicators {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  outline: none;
}

.carousel-indicator:hover {
  background: var(--border-hover);
  transform: scale(1.2);
}

.carousel-indicator:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue);
}

.carousel-indicator.active {
  background: var(--blue);
  width: 24px;
  border-radius: 99px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .carousel-indicators {
    margin-top: 1.5rem;
    gap: 0.5rem;
  }
  
  .carousel-indicator {
    width: 8px;
    height: 8px;
  }
  
  .carousel-indicator.active {
    width: 20px;
  }
}

/* Remove old preview styles */
.projects__preview {
  display: none;
}
.proj-window,
.proj-window__bar,
.proj-window__body,
.proj-thumb {
  display: none;
}
/* ── MOCKUP NOTEBOOK ───────────────────────────── */

.mockup-notebook {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Tela */
.mockup-screen {
  width: 100%;
  height: 85%;
  background: #0b1220;
  border-radius: 12px 12px 6px 6px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  position: relative;
}

/* Imagem dentro */
.mockup-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Zoom no hover */
.carousel-card:hover .mockup-screen img {
  transform: scale(1.05);
}

/* Top bar (câmera / detalhes) */
.mockup-screen::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

/* Base do notebook */
.mockup-base {
  width: 110%;
  height: 14px;
  background: linear-gradient(to bottom, #1f2937, #0b1220);
  border-radius: 0 0 12px 12px;
  margin-top: -2px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  position: relative;
}

/* Detalhe trackpad */
.mockup-base::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
}

/* ── PROJECTS CTA ────────────────────────────────────────── */
.projects__cta {
  text-align: center;
}

.projects__cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── CTA SECTION ─────────────────────────────────────────── */
.cta-section {
  padding: 8rem 0;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.cta-section__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(47,107,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 30%, rgba(0,229,255,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section__inner {
  position: relative;
  z-index: 1;
}
.cta-section__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta-section__inner p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}
.cta-section__alts {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}
.cta-alt-link {
  font-size: .88rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.cta-alt-link:hover { color: var(--text); }

/* ── WHATSAPP FLOAT ──────────────────────────────────── */
#whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}
.wf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #1a1a2e;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}
.wf-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(16, 185, 129, 0.4);
}
.wf-btn svg {
  width: 32px;
  height: 32px;
  fill: #10b981;
  position: relative;
  z-index: 2;
}
.wf-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #10b981;
  animation: wf-pulse-animation 2s ease-in-out infinite;
  opacity: 0.3;
}
@keyframes wf-pulse-animation {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.1;
  }
}
.wf-tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #1a1a2e;
  color: #10b981;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
#whatsapp-float:hover .wf-tooltip {
  opacity: 1;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy {
  font-size: .8rem;
  color: var(--text-dim);
}
.footer__links {
  display: flex;
  gap: 1.2rem;
}
.footer__links a {
  font-size: .82rem;
  color: var(--text-muted);
  transition: color var(--transition);
  font-weight: 600;
}
.footer__links a:hover { color: var(--blue); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero__inner { gap: 2.5rem; }
  .floating-badge--1 { right: -10px; }
  .floating-badge--2 { left: -10px; }
}

@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .why__grid { grid-template-columns: repeat(2,1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 3rem; }
  .about__card { width: 100%; }
  .about__card-inner { display: flex; gap: 1.5rem; text-align: left; align-items: center; }
  .about__avatar-wrap { flex-shrink: 0; }
  .about__links { justify-content: flex-start; }
}

@media (max-width: 768px) {
  /* nav */
  .nav { display: none; }
  .hamburger { display: flex; }

  /* hero */
  .hero { padding: 6rem 0 4rem; }
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__visual {
    order: -1;
  }
  .mockup { max-width: 340px; margin-inline: auto; }
  .floating-badge--1 { top: -14px; right: 0; }
  .floating-badge--2 { bottom: -14px; left: 0; }
  .hero__title { font-size: clamp(2rem, 8vw, 2.8rem); }
  .hero__sub { font-size: 1rem; }

  .why__grid { grid-template-columns: 1fr; }
  .proj-window__body { grid-template-columns: 1fr; }
  .proj-thumb { aspect-ratio: 16/5; }

  .footer__inner { flex-direction: column; text-align: center; }
  .wf-btn { width: 50px; height: 50px; }
  .wf-btn svg { width: 26px; height: 26px; }
}
@media (max-width: 480px) {
  .hero__cta { flex-direction: column; }
  .hero__stats { gap: 1rem; }
  .cta-section__alts { flex-direction: column; align-items: center; }
  .about__card-inner { flex-direction: column; text-align: center; }
  .about__links { justify-content: center; }
}
