/* ==========================================================================
   PORTFÓLIO GUILHERME RESENDE — APPLE CLEAN / PRO DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Apple Color Palette */
  --bg-body: #fbfbfd;
  --bg-surface: #ffffff;
  --bg-surface-secondary: #f5f5f7;
  --bg-surface-tertiary: #e8e8ed;
  
  /* Text Colors */
  --text-primary: #1d1d1f;
  --text-secondary: #515154;
  --text-muted: #86868b;
  --text-on-accent: #ffffff;

  /* Apple Accent Colors */
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-blue-subtle: rgba(0, 113, 227, 0.08);
  --apple-purple: #5856d6;
  --apple-pink: #ff2d55;
  --apple-green: #34c759;
  --apple-orange: #ff9500;
  --apple-teal: #30b0c7;
  --apple-indigo: #5e5ce6;
  --apple-amber: #f5a623;

  /* Gradients (iOS App Icon Inspired) */
  --gradient-siri: linear-gradient(135deg, #0071e3 0%, #af52de 100%);
  --gradient-blue: linear-gradient(145deg, #0071e3 0%, #004494 100%);
  --gradient-purple: linear-gradient(145deg, #af52de 0%, #5856d6 100%);
  --gradient-pink: linear-gradient(145deg, #ff2d55 0%, #d81b60 100%);
  --gradient-green: linear-gradient(145deg, #34c759 0%, #248a3d 100%);
  --gradient-orange: linear-gradient(145deg, #ff9500 0%, #e65100 100%);
  --gradient-teal: linear-gradient(145deg, #30b0c7 0%, #00796b 100%);
  --gradient-cyan: linear-gradient(145deg, #5ac8fa 0%, #0288d1 100%);
  --gradient-indigo: linear-gradient(145deg, #5e5ce6 0%, #283593 100%);
  --gradient-amber: linear-gradient(145deg, #ffb300 0%, #ef6c00 100%);
  --gradient-red: linear-gradient(145deg, #ff3b30 0%, #c62828 100%);
  --gradient-slate: linear-gradient(145deg, #48484a 0%, #1c1c1e 100%);

  /* Borders & Shadows */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 18px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-app-icon: 0 6px 16px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  --shadow-photo-squircle: 0 10px 28px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.8);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.15s ease-in-out;

  /* Typography */
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", sans-serif;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-system);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, li {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Sections layout */
section {
  padding: 120px 24px;
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--apple-blue-subtle);
  border: 1px solid rgba(0, 113, 227, 0.15);
  border-radius: 980px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--apple-blue);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-system);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 400;
}

/* ==========================================================================
   APP ICON SQUIRCLES (APPLE PREMIUM ICONS)
   ========================================================================== */
.app-icon-squircle {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: var(--shadow-app-icon);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--transition);
}

.app-icon-squircle.sm {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.app-icon-squircle svg {
  width: 26px;
  height: 26px;
  stroke-width: 2px;
}

.app-icon-squircle.sm svg {
  width: 22px;
  height: 22px;
  stroke-width: 2px;
}

/* App Icon Gradients */
.icon-gradient-blue   { background: var(--gradient-blue); }
.icon-gradient-green  { background: var(--gradient-green); }
.icon-gradient-purple { background: var(--gradient-purple); }
.icon-gradient-red    { background: var(--gradient-red); }
.icon-gradient-pink   { background: var(--gradient-pink); }
.icon-gradient-teal   { background: var(--gradient-teal); }
.icon-gradient-orange { background: var(--gradient-orange); }
.icon-gradient-cyan   { background: var(--gradient-cyan); }
.icon-gradient-indigo { background: var(--gradient-indigo); }
.icon-gradient-amber  { background: var(--gradient-amber); }
.icon-gradient-slate  { background: var(--gradient-slate); }

/* ==========================================================================
   1. NAVBAR (APPLE TRANSLUCENT GLASS)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: 60px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-symbol {
  width: 28px;
  height: 28px;
  background: var(--gradient-siri);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.logo-symbol svg {
  width: 16px;
  height: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-cta-btn {
  padding: 8px 18px;
  background: var(--apple-blue);
  color: #ffffff;
  border-radius: 980px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-cta-btn:hover {
  background: var(--apple-blue-hover);
  transform: scale(1.02);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
#hero {
  min-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.hero-bg-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.light-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: floatOrb 12s infinite ease-in-out alternate;
}

.orb-blue {
  width: 500px;
  height: 500px;
  background: #c3e2ff;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}

.orb-purple {
  width: 450px;
  height: 450px;
  background: #eedaff;
  bottom: 0;
  left: 10%;
  animation-duration: 14s;
}

.orb-cyan {
  width: 350px;
  height: 350px;
  background: #d4f7ff;
  bottom: 10%;
  right: 15%;
  animation-duration: 10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -40px) scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 980px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--apple-green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.6);
}

.hero-title {
  font-family: var(--font-system);
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-title .hero-line {
  display: block;
  background: linear-gradient(180deg, #1d1d1f 20%, #515154 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.typing-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--apple-blue);
  margin-bottom: 24px;
  min-height: 32px;
}

.terminal-prefix {
  color: var(--apple-purple);
  font-weight: 700;
}

.cursor {
  font-weight: 300;
  color: var(--apple-blue);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--apple-blue);
  color: #ffffff;
  border-radius: 980px;
  font-weight: 600;
  font-size: 1.02rem;
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.25);
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--apple-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.35);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  border-radius: 980px;
  font-weight: 600;
  font-size: 1.02rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   3. ABOUT SECTION (BENTO APPLE COM FOTO REAL)
   ========================================================================== */
.about-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.about-card-profile {
  background: var(--bg-surface);
  border-radius: 28px;
  border: 1px solid var(--border-subtle);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.profile-photo-frame {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-photo-squircle);
  margin-bottom: 20px;
  border: 3px solid #ffffff;
  background: #f0f0f4;
}

.profile-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.status-indicator {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background: var(--apple-green);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.profile-role {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.profile-ig-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface-secondary);
  border-radius: 980px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
}

.profile-ig-badge:hover {
  background: var(--apple-blue-subtle);
  color: var(--apple-blue);
}

.profile-ig-badge svg {
  width: 16px;
  height: 16px;
}

.about-story-card {
  background: var(--bg-surface);
  border-radius: 28px;
  border: 1px solid var(--border-subtle);
  padding: 44px 40px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.story-paragraph p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.story-paragraph .lead-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Stats Bento Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-surface);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 113, 227, 0.2);
}

.stat-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.stat-icon-wrapper.icon-blue   { background: var(--apple-blue-subtle); color: var(--apple-blue); }
.stat-icon-wrapper.icon-purple { background: rgba(175, 82, 222, 0.1); color: var(--apple-purple); }
.stat-icon-wrapper.icon-green  { background: rgba(52, 199, 89, 0.1); color: var(--apple-green); }
.stat-icon-wrapper.icon-orange { background: rgba(255, 149, 0, 0.1); color: var(--apple-orange); }

.stat-number {
  font-family: var(--font-system);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   4. SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-surface);
  border-radius: 28px;
  border: 1px solid var(--border-subtle);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 113, 227, 0.25);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 20px;
}

.service-pill {
  padding: 5px 14px;
  background: var(--bg-surface-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 980px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.service-card-title {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.25;
}

.service-lead {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.55;
  margin-bottom: 18px;
}

.service-explanation {
  background: var(--bg-surface-secondary);
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border-subtle);
  width: 100%;
  margin-bottom: 20px;
}

.service-explanation strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--apple-blue);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.service-explanation p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  width: 100%;
  padding-top: 10px;
}

.service-tags span {
  padding: 5px 12px;
  background: rgba(0, 113, 227, 0.06);
  color: var(--apple-blue);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   5. CLIENTS SECTION WITH REAL PHOTOS
   ========================================================================== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.client-card {
  background: var(--bg-surface);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 113, 227, 0.2);
}

.client-photo-wrapper {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-photo-squircle);
  border: 3px solid #ffffff;
  background: #f0f0f4;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.client-card:hover .client-real-photo {
  transform: scale(1.08);
}

.global-badge-wrapper {
  background: var(--gradient-slate);
  color: #ffffff;
}

.global-badge-wrapper svg {
  width: 32px;
  height: 32px;
}

.client-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.client-category-pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-surface-secondary);
  border-radius: 980px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.client-badge {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   6. PROJECTS SECTION
   ========================================================================== */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 980px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.filter-btn svg {
  width: 16px;
  height: 16px;
}

.filter-btn:hover {
  background: var(--bg-surface-secondary);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.filter-btn.active {
  background: var(--text-primary);
  color: #ffffff;
  border-color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-surface);
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(0, 113, 227, 0.25);
}

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

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 18px;
}

.project-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--apple-blue);
  background: var(--apple-blue-subtle);
  padding: 4px 12px;
  border-radius: 980px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-title {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.project-client {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--apple-blue);
  margin-bottom: 12px;
}

.project-client svg {
  width: 15px;
  height: 15px;
}

.project-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   7. STORY SECTION (KEYNOTE QUOTE COM FOTO GUILHERME)
   ========================================================================== */
#story {
  background: var(--bg-surface-secondary);
  border-radius: 36px;
  margin: 40px auto;
  padding: 64px 40px;
  max-width: 1160px;
}

.story-container {
  max-width: 1060px;
  margin: 0 auto;
}

.story-keynote-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: center;
}

.story-photo-wrapper {
  width: 100%;
  height: 380px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  border: 4px solid #ffffff;
}

.story-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.story-quote {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.story-quote blockquote {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.story-quote blockquote em {
  font-style: normal;
  color: var(--apple-blue);
  font-weight: 600;
}

.quote-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.author-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.author-title {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
#contact {
  padding-bottom: 60px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
}

.footer-cta-card {
  background: linear-gradient(145deg, #1d1d1f 0%, #000000 100%);
  border-radius: 36px;
  padding: 80px 40px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  margin-bottom: 64px;
}

.cta-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: var(--gradient-siri);
  filter: blur(100px);
  opacity: 0.45;
  pointer-events: none;
}

.cta-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 980px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.footer-cta-card h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
}

.footer-cta-card p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 2;
}

.cta-buttons {
  position: relative;
  z-index: 2;
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 40px;
  background: #ffffff;
  color: #1d1d1f;
  border-radius: 980px;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.btn-primary-large:hover {
  background: #f5f5f7;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

.btn-primary-large svg {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.footer-logo svg {
  width: 18px;
  height: 18px;
  color: var(--apple-blue);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-regions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.region-badge {
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 980px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   ANIMATIONS (REVEAL)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET DEEP OPTIMIZATION)
   ========================================================================== */

/* Tablets & Small Laptops */
@media (max-width: 992px) {
  section {
    padding: 90px 24px;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .story-keynote-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .story-photo-wrapper {
    height: 320px;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
  }

  section {
    padding: 70px 18px;
  }

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

  .section-title {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
    line-height: 1.15;
  }

  .section-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Hamburger Navigation Apple Glass */
  .hamburger {
    display: flex;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    flex-direction: column;
    padding: 40px 24px 60px;
    gap: 20px;
    border-bottom: none;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    padding: 12px 0;
    display: block;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .nav-cta-btn {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 1rem;
    margin-top: 12px;
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* Hero Section */
  #hero {
    min-height: 88vh;
    padding-top: 85px;
    padding-bottom: 40px;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 16px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
  }

  .typing-container {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 1.02rem;
    margin-bottom: 32px;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
    min-height: 50px;
    -webkit-tap-highlight-color: transparent;
  }

  /* About Card Mobile */
  .about-card-profile {
    padding: 32px 20px;
    border-radius: 24px;
  }

  .profile-photo-frame {
    width: 130px;
    height: 130px;
    border-radius: 32px;
  }

  .about-story-card {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .story-paragraph p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .story-paragraph .lead-text {
    font-size: 1.12rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .stat-number {
    font-size: 2.1rem;
  }

  .stat-label {
    font-size: 0.78rem;
  }

  /* Services Grid Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 26px 20px;
    border-radius: 24px;
  }

  .service-card-title {
    font-size: 1.2rem;
  }

  .service-lead {
    font-size: 0.92rem;
    margin-bottom: 14px;
  }

  .service-explanation {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
  }

  .service-explanation strong {
    font-size: 0.75rem;
  }

  .service-explanation p {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .service-tags span {
    font-size: 0.74rem;
    padding: 4px 10px;
  }

  /* Clients Grid Mobile */
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .client-card {
    padding: 22px 14px;
    border-radius: 20px;
  }

  .client-photo-wrapper {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    margin-bottom: 12px;
  }

  .client-name {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .client-category-pill {
    font-size: 0.72rem;
    padding: 3px 8px;
    margin-bottom: 6px;
  }

  .client-badge {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  /* Projects Filter Scroll Apple Store Style */
  .filter-buttons {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 14px;
    gap: 8px;
    justify-content: flex-start;
    scrollbar-width: none;
    margin-bottom: 32px;
  }

  .filter-buttons::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 8px 18px;
    font-size: 0.84rem;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .project-title {
    font-size: 1.15rem;
  }

  .project-desc {
    font-size: 0.9rem;
  }

  /* Story Keynote Mobile */
  #story {
    border-radius: 28px;
    padding: 44px 20px;
    margin: 24px auto;
  }

  .story-keynote-grid {
    gap: 28px;
  }

  .story-photo-wrapper {
    height: 300px;
    border-radius: 22px;
  }

  .story-quote blockquote {
    font-size: 1.15rem;
    line-height: 1.65;
    margin-bottom: 20px;
  }

  /* Footer Mobile */
  .footer-cta-card {
    padding: 50px 20px;
    border-radius: 28px;
    margin-bottom: 40px;
  }

  .footer-cta-card h2 {
    font-size: 1.85rem;
  }

  .footer-cta-card p {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .btn-primary-large {
    width: 100%;
    justify-content: center;
    font-size: 0.95rem;
    padding: 16px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding-top: 24px;
  }

  .footer-regions {
    justify-content: center;
    gap: 8px;
  }

  .region-badge {
    font-size: 0.78rem;
    padding: 5px 12px;
  }
}

/* Small SmartPhones (<= 380px) */
@media (max-width: 380px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    align-items: center;
    text-align: center;
  }

  .story-photo-wrapper {
    height: 250px;
  }
}
