/* ============================================
   BENJAMIN MENDY — Portfolio Premium
   Design System & Styles
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-alt: #fafafe;
  --color-bg-dark: #0a0a12;
  --color-text: #1a1a2e;
  --color-text-secondary: #64648c;
  --color-text-light: #9999b8;
  --color-purple: #5b21b6;
  --color-purple-light: #7c3aed;
  --color-purple-dark: #3b0d99;
  --color-orange: #f97316;
  --color-orange-light: #fb923c;
  --color-border: #e5e5f0;
  --color-border-light: #f0f0f8;
  --color-glass: rgba(255, 255, 255, 0.7);
  --color-glass-border: rgba(255, 255, 255, 0.2);

  /* Typography */
  --font-heading: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-padding: 120px;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- UTILITY CLASSES --- */
.text-gradient {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-highlight {
  color: var(--color-purple);
  font-weight: 600;
}

.accent-dot {
  color: var(--color-orange);
}

/* --- REVEAL ANIMATION --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  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);
}

/* --- SECTION HEADER --- */
.section-header {
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-purple);
  background: rgba(91, 33, 182, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-light) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(91, 33, 182, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(91, 33, 182, 0.4);
}

.btn-secondary {
  background: rgba(91, 33, 182, 0.08);
  color: var(--color-purple);
}

.btn-secondary:hover {
  background: rgba(91, 33, 182, 0.14);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-purple);
  color: var(--color-purple);
  transform: translateY(-2px);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: var(--color-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  padding: 12px 0;
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-text);
  background: rgba(0, 0, 0, 0.04);
}

.nav-cta {
  background: var(--color-text);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--color-purple) !important;
  color: white !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-base);
  border-radius: 2px;
}

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border-light);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-purple);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-purple), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   METRICS SECTION
   ============================================ */
.metrics {
  padding: 80px 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.metric-card {
  text-align: center;
  padding: 40px 24px;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-symbol {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-top: 8px;
  font-weight: 500;
}

.metric-bar {
  width: 80%;
  height: 4px;
  background: var(--color-border-light);
  border-radius: 100px;
  margin: 20px auto 0;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-purple), var(--color-orange));
  border-radius: 100px;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.metrics-tagline {
  text-align: center;
  font-size: 18px;
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--section-padding) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
}

.about-image-decoration {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-purple), var(--color-orange));
  opacity: 0.15;
  z-index: -1;
}

.about-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.about-text strong {
  color: var(--color-text);
}

.about-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border-light);
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}

.detail-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

/* ============================================
   CASE STUDIES / PROJECTS
   ============================================ */
.projects {
  padding: var(--section-padding) 0;
  background: var(--color-bg-alt);
}

.case-study {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 32px;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.case-study:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.case-study:last-child {
  margin-bottom: 0;
}

.case-study-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border-light);
}

.case-study-number {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-purple);
  background: rgba(91, 33, 182, 0.08);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-study-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.case-study-step {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
}

.step-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-purple);
  margin-bottom: 12px;
}

.case-study-step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.case-study-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-light) 100%);
  color: white;
}

.result-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.result-label {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 8px;
  text-align: center;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
  padding: var(--section-padding) 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  background: white;
  transition: all var(--transition-base);
}

.skill-card:hover {
  border-color: rgba(91, 33, 182, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(91, 33, 182, 0.08);
}

.skill-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.08) 0%, rgba(249, 115, 22, 0.06) 100%);
  color: var(--color-purple);
  margin-bottom: 20px;
}

.skill-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.skill-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ============================================
   TOOLS SECTION
   ============================================ */
.tools {
  padding: var(--section-padding) 0;
  background: var(--color-bg-alt);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 16px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.tool-icon-wrapper {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
}

.tool-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
  padding: var(--section-padding) 0;
}

.process-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.process-card {
  flex: 1;
  max-width: 260px;
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  background: white;
  transition: all var(--transition-base);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(91, 33, 182, 0.08);
  border-color: rgba(91, 33, 182, 0.2);
}

.process-connector {
  display: flex;
  align-items: center;
  padding-top: 60px;
  color: var(--color-border);
}

.process-number {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-orange);
  margin-bottom: 16px;
}

.process-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(91, 33, 182, 0.08) 0%, rgba(249, 115, 22, 0.06) 100%);
  color: var(--color-purple);
}

.process-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.process-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: var(--section-padding) 0;
  background: var(--color-bg-dark);
  color: white;
}

.contact .section-tag {
  background: rgba(124, 58, 237, 0.2);
  color: var(--color-purple-light);
}

.contact .section-title {
  color: white;
}

.contact .accent-dot {
  color: var(--color-orange);
}

.contact-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-base);
}

.contact-info-item svg {
  color: var(--color-orange);
  flex-shrink: 0;
}

.contact-info-item:hover {
  border-color: var(--color-orange);
  color: white;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.15);
}

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

.contact .btn-primary {
  background: linear-gradient(135deg, var(--color-purple-light) 0%, var(--color-orange) 100%);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.contact .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.contact .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.contact .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.contact .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.contact .btn-outline:hover {
  border-color: var(--color-orange);
  color: var(--color-orange);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  background: var(--color-bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  text-align: center;
}

.footer-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-heart {
  color: var(--color-orange);
}

.footer-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
}

.footer-links {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--color-orange);
}

.footer-separator {
  color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }

  .case-study-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-grid {
    flex-wrap: wrap;
    gap: 20px;
  }

  .process-connector {
    display: none;
  }

  .process-card {
    max-width: none;
    flex: 1 1 calc(50% - 10px);
  }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right var(--transition-base);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-link {
    font-size: 16px;
    padding: 12px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero {
    min-height: 100svh;
    padding: 100px 20px 60px;
  }

  .hero-name {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

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

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .metric-card {
    padding: 32px 20px;
  }

  .metric-value {
    font-size: 2.8rem;
  }

  .case-study {
    padding: 28px;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .case-study-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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

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

  .tool-card {
    padding: 20px 12px;
  }

  .process-card {
    flex: 1 1 100%;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-info {
    flex-direction: column;
    gap: 12px;
  }

  .contact-info-item {
    width: 100%;
    justify-content: center;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .result-value {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-light);
}

/* --- SELECTION --- */
::selection {
  background: rgba(91, 33, 182, 0.15);
  color: var(--color-purple-dark);
}