﻿/* ==========================================
   Theme & Variables
   ========================================== */
:root {
  --bg: #faf9f6;
  --bg-alt: #f2f0ed;
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.07);
  --text: #1d1d1f;
  --text-dim: #6e6e73;
  --text-muted: #a1a1a6;
  --accent: #c1121f;
  --accent-hover: #a4161a;
  --accent-soft: rgba(193, 18, 31, 0.06);
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Work Sans", sans-serif;
  --nav-h: 72px;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   Base
   ========================================== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: white;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================
   Navigation
   ========================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(250, 249, 246, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.site-nav.scrolled {
  background: rgba(250, 249, 246, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}
.site-nav .container {
  height: 100%;
}
.site-nav .navbar-nav {
  gap: 0.1rem;
}
.site-nav .nav-link {
  font-family: var(--body) !important;
  font-size: 0.82rem !important;
  font-weight: 500;
  color: var(--text-dim) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.7rem !important;
  transition: color 0.3s !important;
  position: relative;
}
.site-nav .nav-link:hover, .site-nav .nav-link:focus {
  color: var(--text) !important;
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
  border-radius: 1px;
}
.site-nav .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.site-nav .navbar-toggler {
  border: 1px solid var(--border) !important;
  padding: 0.35rem 0.55rem;
  box-shadow: none !important;
}
.site-nav .navbar-toggler:focus {
  box-shadow: none !important;
}
.site-nav .navbar-toggler-icon {
  width: 1.2em;
  height: 1.2em;
}

.nav-brand {
  font-family: var(--display) !important;
  font-weight: 800 !important;
  font-size: 1.3rem !important;
  color: var(--text) !important;
  letter-spacing: -0.03em;
}
.nav-brand:hover {
  color: var(--text) !important;
}

/* ==========================================
   Buttons
   ========================================== */
.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: white !important;
  background: var(--accent);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
  text-decoration: none !important;
  letter-spacing: 0.01em;
}
.btn-accent:hover {
  color: white !important;
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(193, 18, 31, 0.2);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text) !important;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
  text-decoration: none !important;
  letter-spacing: 0.01em;
}
.btn-ghost:hover {
  color: var(--text) !important;
  border-color: var(--text-dim);
  background: rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
}

/* ==========================================
   Hero
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--nav-h);
  background: var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -15%;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 18, 31, 0.04) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}
.hero > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 620px;
}

.hero-greeting {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.2s forwards;
}

.hero-name {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.4s forwards;
  outline: none;
}
.hero-name span {
  background: linear-gradient(135deg, var(--text) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  line-height: 1.65;
  max-width: 460px;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.8s forwards;
}

.hero-photo {
  flex-shrink: 0;
  margin-right: 5%;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease) 0.5s forwards;
}
.hero-photo img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid white;
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg);
}

/* ==========================================
   Sections
   ========================================== */
.section {
  padding: clamp(80px, 10vw, 120px) 0;
  position: relative;
}

.section--dark {
  background: var(--bg);
}

.section--alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3.5rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* ==========================================
   About
   ========================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.about-text a:not(.linkedin-link) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-highlight {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.about-highlight-number {
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
}

.about-highlight-label {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.55rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim) !important;
  font-size: 0.85rem;
  font-weight: 500;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
  text-decoration: none !important;
}
.linkedin-link:hover {
  border-color: var(--text-dim);
  color: var(--text) !important;
  box-shadow: var(--shadow-sm);
}
.linkedin-link img {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* ==========================================
   Experience / Timeline
   ========================================== */
.timeline {
  position: relative;
  padding-left: 48px;
  max-width: 820px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border) 85%, transparent);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  transition: transform 0.3s var(--ease);
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -48px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  z-index: 1;
  transition: background 0.3s, box-shadow 0.3s;
}
.timeline-item:hover::before {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(193, 18, 31, 0.1);
}
.timeline-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.timeline-item > p {
  color: var(--text-dim);
  font-size: 0.93rem;
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.section--alt .timeline-item::before {
  background: var(--bg-alt);
}

.timeline-date {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-company {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.timeline-product-link {
  font-weight: 600;
  padding: 0.15rem 0.65rem;
  background: var(--accent-soft);
  border-radius: 6px;
  transition: background 0.3s var(--ease), color 0.3s;
}
.timeline-product-link:hover {
  background: rgba(193, 18, 31, 0.12);
}

.tech-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.7rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  letter-spacing: 0.02em;
}

/* ==========================================
   Values
   ========================================== */
.section-values {
  background: var(--bg-alt);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.value-card {
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.value-card h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.value-card p {
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

.value-number {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.04em;
}

/* ==========================================
   Skills
   ========================================== */
.skills-section {
  max-width: 700px;
}

.skill-item {
  margin-bottom: 1.75rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.skill-percent {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent);
}

.skill-track {
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #e85d3a);
  border-radius: 6px;
  transition: width 1.2s var(--ease);
}

.skill-item--featured {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.skill-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  background: linear-gradient(135deg, #da7756, #c1121f);
  color: white;
  border-radius: 100px;
  vertical-align: middle;
  margin-left: 0.4rem;
  position: relative;
  top: -1px;
}

.skill-track--ai {
  height: 8px;
  background: rgba(218, 119, 86, 0.1);
}

.skill-fill--ai {
  background: linear-gradient(90deg, #da7756, #c1121f);
}

.skills-all {
  margin-top: 3.5rem;
}
.skills-all h3 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skill-chip {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.38rem 0.95rem;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  transition: border-color 0.3s, color 0.3s, background 0.3s, box-shadow 0.3s;
}
.skill-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-sm);
}
.skill-chip--featured {
  background: linear-gradient(135deg, #da7756, #c1121f);
  color: white;
  border-color: transparent;
  font-weight: 600;
}
.skill-chip--featured:hover {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, #c96a4a, #a4161a);
  box-shadow: 0 4px 12px rgba(193, 18, 31, 0.2);
}

/* ==========================================
   Pricing
   ========================================== */
.section-pricing {
  background: var(--bg);
}

.pricing-intro {
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 700px;
}

.pricing-card {
  padding: 2.75rem 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.25rem;
}
.pricing-card p {
  color: var(--text-dim);
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.pricing-amount {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: auto;
  padding-top: 1.75rem;
  letter-spacing: -0.02em;
}

/* ==========================================
   Contact
   ========================================== */
.contact-list {
  max-width: 600px;
}

.contact-item {
  display: flex;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:first-child {
  border-top: 1px solid var(--border);
}

.contact-label {
  flex: 0 0 160px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-label .preferred {
  display: block;
  font-family: var(--body);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.15rem;
}

.contact-value {
  color: var(--text-dim);
  font-size: 0.95rem;
}
.contact-value a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================
   Footer
   ========================================== */
.site-footer {
  padding: 2rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.site-footer a {
  color: var(--text-muted) !important;
  text-decoration: none;
  transition: color 0.3s;
}
.site-footer a:hover {
  color: var(--accent) !important;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.visible > *:nth-child(1) {
  transition-delay: 0s;
}
.reveal-stagger.visible > *:nth-child(2) {
  transition-delay: 0.08s;
}
.reveal-stagger.visible > *:nth-child(3) {
  transition-delay: 0.16s;
}
.reveal-stagger.visible > *:nth-child(4) {
  transition-delay: 0.24s;
}
.reveal-stagger.visible > *:nth-child(5) {
  transition-delay: 0.32s;
}
.reveal-stagger.visible > *:nth-child(6) {
  transition-delay: 0.4s;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 991.98px) {
  .hero > .container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .hero-role {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-photo img {
    width: 220px;
    height: 220px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-nav .navbar-collapse {
    position: absolute;
    top: var(--nav-h);
    left: 1rem;
    right: 1rem;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem;
    box-shadow: var(--shadow-md);
  }
  .site-nav .navbar-nav {
    flex-direction: column;
    gap: 0;
  }
  .site-nav .nav-link::after {
    display: none;
  }
}
@media (max-width: 767.98px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .contact-item {
    flex-direction: column;
    gap: 0.25rem;
  }
  .contact-label {
    flex: none;
  }
}
@media (max-width: 575.98px) {
  .hero-name {
    font-size: 2.4rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .about-highlight {
    flex-direction: column;
    gap: 0.5rem;
  }
}
