/* ═══════════════════════════════════════════════════════════
   LORETO SALATAMBUS — PORTFOLIO
   Google Workspace Material Design System
   Font: DM Serif Display (headings) + DM Sans (body)
═══════════════════════════════════════════════════════════ */

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

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #FAFAFA;
  color: #1C1C1E;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── DESIGN TOKENS ─── */
:root {
  --blue:   #4285F4;
  --green:  #34A853;
  --yellow: #FBBC05;
  --red:    #EA4335;
  --gray-50:  #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-300: #E0E0E0;
  --gray-500: #9E9E9E;
  --gray-700: #616161;
  --gray-900: #212121;
  --ink:    #1C1C1E;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── CONTAINER ─── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; font-family: 'DM Sans', sans-serif; font-weight: 700; }
h4 { font-size: 1.1rem; font-family: 'DM Sans', sans-serif; font-weight: 700; }
p  { color: var(--gray-700); }
a  { text-decoration: none; color: inherit; }

/* ─── SECTION STRUCTURE ─── */
.section-header { margin-bottom: 3rem; }
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.section-title { color: var(--ink); }
.section-intro  { color: var(--gray-700); margin-top: 0.75rem; max-width: 560px; font-size: 1.05rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 14px rgba(66,133,244,0.35);
}
.btn-primary:hover {
  background: #2c6ee0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(66,133,244,0.40);
}
.btn-outline {
  border-color: var(--gray-300);
  color: var(--ink);
  background: white;
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.logo-g { color: var(--blue); }
.logo-rest { color: var(--ink); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  color: var(--gray-700);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); background: rgba(66,133,244,0.08); }
.btn-nav-cta {
  background: var(--blue);
  color: white !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: var(--transition);
}
.btn-nav-cta:hover {
  background: #2c6ee0 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(66,133,244,0.35);
}

/* ─── HERO ─── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  background: white;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(66,133,244,0.06) 0%,
    rgba(52,168,83,0.04) 40%,
    transparent 70%);
  pointer-events: none;
}
.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-blue   { background: var(--blue); }
.dot-green  { background: var(--green); }
.dot-yellow { background: var(--yellow); }
.dot-red    { background: var(--red); }
.eyebrow-text {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin-left: 0.3rem;
}
.hero-heading { color: var(--ink); margin-bottom: 1.5rem; }
.heading-italic { font-style: italic; color: var(--blue); }
.hero-bio { font-size: 1.05rem; line-height: 1.75; color: var(--gray-700); margin-bottom: 2rem; max-width: 500px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  width: fit-content;
}
.proof-item { text-align: center; }
.proof-num {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--ink);
  line-height: 1;
}
.proof-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); }
.proof-divider { width: 1px; height: 36px; background: var(--gray-300); }

/* ─── HERO VISUAL: Workspace Grid ─── */
.hero-visual { position: relative; }
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.ws-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--transition);
  animation: tileFloat 0.6s ease backwards;
  cursor: default;
}
.ws-tile:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: var(--shadow-md);
}
.ws-tile svg {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}
.ws-tile span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray-700);
}
.ws-connector-lines { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

@keyframes tileFloat {
  from { opacity: 0; transform: translateY(20px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── SERVICES ─── */
.services-section {
  padding: 100px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--svc-color, var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--svc-color) 12%, white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.2rem;
  color: var(--svc-color);
}
.service-card h3 { color: var(--ink); margin-bottom: 0.75rem; font-size: 1.1rem; }
.service-card p  { font-size: 0.93rem; margin-bottom: 1rem; }
.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.service-features li {
  font-size: 0.83rem;
  color: var(--gray-700);
  padding-left: 1.1rem;
  position: relative;
}
.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--svc-color, var(--blue));
  font-size: 0.7rem;
  top: 2px;
}

/* ─── SKILLS ─── */
.skills-section {
  padding: 80px 0;
  background: white;
  border-top: 1px solid var(--gray-200);
}
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.skill-tag {
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--ink);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.skill-tag:hover {
  background: rgba(66,133,244,0.08);
  border-color: var(--blue);
  color: var(--blue);
}

/* ─── CASE STUDY ─── */
.case-study-section {
  padding: 100px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
.case-study-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.case-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 1rem;
}
.integration-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.75rem;
}
.integration-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-700);
}
.int-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

/* Metrics Panel */
.metrics-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.metric-item {
  padding: 1.5rem;
  text-align: center;
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.metric-item:nth-child(2), .metric-item:nth-child(4) { border-right: none; }
.metric-item:nth-child(3), .metric-item:nth-child(4) { border-bottom: none; }
.metric-num {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0.35rem;
}
.metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
}

/* Mockup Window */
.mockup-window {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.window-chrome {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.window-dots { display: flex; gap: 6px; }
.wd {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.wd.red    { background: #FF5F57; }
.wd.yellow { background: #FEBC2E; }
.wd.green  { background: #28C840; }
.window-url {
  font-size: 0.78rem;
  color: var(--gray-500);
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 0.2rem 0.75rem;
  margin: 0 auto;
}
.window-body { display: flex; height: 200px; }
.mock-sidebar {
  width: 48px;
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mock-nav-item {
  height: 8px;
  border-radius: 4px;
  background: var(--gray-300);
}
.mock-nav-item.active { background: var(--blue); }
.mock-content { flex: 1; padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.mock-header-bar { height: 10px; background: var(--gray-200); border-radius: 4px; width: 60%; margin-bottom: 0.25rem; }
.mock-row { display: flex; align-items: center; gap: 0.5rem; }
.mock-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-badge.green  { background: var(--green); }
.mock-badge.blue   { background: var(--blue); }
.mock-badge.yellow { background: var(--yellow); }
.mock-text { height: 7px; background: var(--gray-200); border-radius: 4px; }
.mock-text.long   { flex: 2; }
.mock-text.medium { flex: 1.5; }
.mock-text.short  { flex: 1; }

/* ─── PROJECTS ─── */
.projects-section {
  padding: 100px 0;
  background: white;
  border-top: 1px solid var(--gray-200);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.project-card {
  padding: 1.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.project-card:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tag-color, var(--blue));
  background: color-mix(in srgb, var(--tag-color, var(--blue)) 10%, transparent);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.project-card h4 { color: var(--ink); margin-bottom: 0.5rem; }
.project-card p  { font-size: 0.9rem; }

/* ─── EXPERIENCE ─── */
.experience-section {
  padding: 100px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
.experience-list { display: flex; flex-direction: column; gap: 1.25rem; }
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}
.card-title h3 { font-size: 1rem; font-weight: 700; color: var(--ink); }
.card-subtitle { font-size: 0.85rem; color: var(--gray-700); margin-top: 0.2rem; display: block; }
.card-date {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-500);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 1rem;
}
.card-body { padding: 1rem 1.5rem; }
.card-body ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.card-body li {
  font-size: 0.9rem;
  color: var(--gray-700);
  padding-left: 1.25rem;
  position: relative;
}
.card-body li::before {
  content: '·';
  position: absolute;
  left: 0.3rem;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* ─── CONTACT ─── */
.contact-section {
  padding: 100px 0 60px;
  background: var(--ink);
  border-top: 1px solid #2c2c2e;
}
.contact-container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-heading-wrap { margin-bottom: 3rem; }
.contact-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: white;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.contact-heading em { font-style: italic; color: var(--blue); }
.contact-sub { color: rgba(255,255,255,0.55); font-size: 1rem; line-height: 1.7; }

.contact-methods {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}
.contact-link:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.contact-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}
.copyright {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

/* ─── FADE-IN ANIMATION ─── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-container      { grid-template-columns: 1fr; }
  .hero-visual         { display: none; }
  .services-grid       { grid-template-columns: 1fr; }
  .case-study-layout   { grid-template-columns: 1fr; }
  .projects-grid       { grid-template-columns: 1fr; }
  .metrics-panel       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav-links a:not(.btn-nav-cta) { display: none; }
  .hero-proof { flex-direction: column; gap: 1rem; }
  .proof-divider { width: 40px; height: 1px; }
  .contact-methods { flex-direction: column; align-items: center; }
}
