/* ==========================================================================
   MAIN.CSS — Antonio Cabezas Personal Website
   Single-file CSS architecture: Tokens → Reset → Base → Layout → Components
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Colors - Dark Theme */
  --color-bg: #0a0a0a;
  --color-bg-elevated: #141414;
  --color-text: #e5e5e5;
  --color-text-muted: #9a9a9a;
  --color-accent: #22c55e;
  --color-accent-hover: #16a34a;
  --color-border: #262626;

  /* Typography - System Font Stack (no web fonts for maximum performance) */
  --font-heading: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;

  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 800px;
  --header-height: 64px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;

  /* Animation Durations */
  --duration-instant: 100ms;
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;
  --duration-entrance: 500ms;

  /* Easing Functions */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Animation Distances */
  --slide-sm: 8px;
  --slide-md: 16px;

  /* Background Enhancement */
  --bg-glow-accent: rgba(34, 197, 94, 0.15);
  --bg-glow-secondary: rgba(34, 197, 94, 0.05);
}


/* ==========================================================================
   2. CSS RESET (Modern, Minimal)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Reveal elements shown immediately */
  .reveal,
  .reveal-group,
  .reveal-item,
  .hero.js-animate .hero__greeting,
  .hero.js-animate .hero__name,
  .hero.js-animate .hero__tagline,
  .hero.js-animate .hero__location,
  .hero.js-animate .hero__status,
  .hero.js-animate .hero__cta {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Mobile nav: instant show/hide without motion */
  .nav-mobile {
    transform: none !important;
  }

  .nav-mobile__list > li {
    transform: none !important;
    opacity: 1 !important;
  }

  /* Hamburger icon: instant state change */
  .nav-toggle__line {
    transition: none !important;
  }

  /* Disable hover transforms */
  .hero__cta-link:hover,
  .hero__cta-link--secondary:hover,
  .contact__channel:hover,
  .contact__channel--primary:hover,
  .skills__group:hover,
  .experience__item::before {
    transform: none !important;
  }
}

body {
  min-height: 100vh;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    /* Primary accent orb - top right, large */
    radial-gradient(
      ellipse 50% 80% at 85% 20%,
      rgba(34, 197, 94, 0.12) 0%,
      rgba(34, 197, 94, 0.04) 40%,
      transparent 70%
    ),
    /* Secondary accent orb - bottom left, diffuse */
    radial-gradient(
      ellipse 70% 50% at 15% 85%,
      rgba(34, 197, 94, 0.08) 0%,
      transparent 60%
    ),
    /* Subtle blue/cool counterpoint - center left */
    radial-gradient(
      ellipse 40% 60% at 5% 50%,
      rgba(100, 150, 200, 0.04) 0%,
      transparent 50%
    ),
    /* Deep vignette for depth */
    radial-gradient(
      ellipse 120% 100% at 50% 0%,
      transparent 40%,
      rgba(0, 0, 0, 0.5) 100%
    );
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 639px) {
  body {
    background-image:
      radial-gradient(
        ellipse 60% 50% at 90% 15%,
        rgba(34, 197, 94, 0.1) 0%,
        transparent 60%
      ),
      radial-gradient(
        ellipse 50% 40% at 10% 90%,
        rgba(34, 197, 94, 0.06) 0%,
        transparent 50%
      ),
      radial-gradient(
        ellipse 120% 100% at 50% 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.5) 100%
      );
    /* Prevent tiling on iOS - each gradient covers full viewport */
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-attachment: scroll;
  }
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}


/* ==========================================================================
   3. BASE STYLES
   ========================================================================== */

/* Headings */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--leading-tight);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-xl);
}

h3 {
  font-size: var(--text-lg);
}

@media (min-width: 640px) {
  h1 {
    font-size: var(--text-5xl);
  }
}

/* Links */
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

/* Focus styles - enhanced for visibility against all backgrounds */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/*
 * Focus visibility note: The 3px offset creates a dark gap between
 * the element and the green outline, ensuring visibility even in
 * regions where the green background glow overlays exist.
 */

/* Selection */
::selection {
  background-color: var(--color-accent);
  color: var(--color-bg);
}


/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

main {
  padding-top: var(--header-height);
}


/* ==========================================================================
   5. UTILITIES
   ========================================================================== */

/* Visually hidden but accessible to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   6. SKIP LINK
   ========================================================================== */

.skip-link {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform var(--transition-base);
}

.skip-link:focus {
  transform: translateY(0);
  outline-offset: 4px;
}


/* ==========================================================================
   6. HEADER
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
}

.header__logo:hover {
  color: var(--color-accent);
}

/* Desktop navigation */
.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: var(--space-8);
  list-style: none;
}

.nav__link {
  position: relative;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav__link:hover {
  color: var(--color-accent);
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Mobile navigation toggle */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.nav-toggle__icon {
  width: 24px;
  height: 24px;
}

/* Hamburger icon lines - animate to X */
.nav-toggle__line {
  transform-origin: 12px 12px; /* Center of 24x24 viewBox */
  transition:
    transform var(--transition-base),
    opacity var(--transition-fast);
}

/* Open state: hamburger transforms to X */
.nav-toggle[aria-expanded="true"] .nav-toggle__line--top {
  transform: rotate(45deg) translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line--middle {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line--bottom {
  transform: rotate(-45deg) translateY(-6px);
}

/* Mobile navigation menu */
.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);

  /* Animation: slide down + fade in */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base),
    visibility 0s linear var(--transition-base);
}

.nav-mobile.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base),
    visibility 0s linear 0s;
}

.nav-mobile__list {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  list-style: none;
}

.nav-mobile__list > li {
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base);
}

/* Staggered entrance for menu items */
.nav-mobile.is-open .nav-mobile__list > li {
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile.is-open .nav-mobile__list > li:nth-child(1) { transition-delay: 50ms; }
.nav-mobile.is-open .nav-mobile__list > li:nth-child(2) { transition-delay: 100ms; }
.nav-mobile.is-open .nav-mobile__list > li:nth-child(3) { transition-delay: 150ms; }
.nav-mobile.is-open .nav-mobile__list > li:nth-child(4) { transition-delay: 200ms; }
.nav-mobile.is-open .nav-mobile__list > li:nth-child(5) { transition-delay: 250ms; }

.nav-mobile__link {
  display: block;
  padding: var(--space-4) 0;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile__link:hover {
  color: var(--color-accent);
}

/* Desktop styles - must come after mobile base styles */
@media (min-width: 640px) {
  .nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }

  .nav-mobile {
    visibility: hidden !important;
    opacity: 0 !important;
  }
}


/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100dvh - var(--header-height));
  padding-block: var(--space-16);
}

.hero__greeting {
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__name {
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.hero__tagline {
  max-width: 600px;
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

.hero__tagline strong {
  color: var(--color-text);
  font-weight: 600;
}

.hero__company-link {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 3px;
}

.hero__company-link:hover {
  color: var(--color-accent);
}

.hero__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero__cta-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-accent);
  color: var(--color-bg);
  transition:
    background-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-spring),
    box-shadow var(--duration-fast) var(--ease-out);
}

.hero__cta-link:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.hero__cta-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.hero__cta-link--secondary {
  background-color: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.hero__cta-link--secondary:hover {
  background-color: var(--color-bg-elevated);
  color: var(--color-text);
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero__cta-link--secondary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Hero Location */
.hero__location {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background-color: var(--color-bg-elevated);
  border-left: 2px solid var(--color-accent);
}

.hero__location-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-accent);
  opacity: 0.7;
}

.hero__location-text {
  letter-spacing: 0.02em;
}

/* Hero Status Block (Monospace Code Comment Style) */
.hero__status {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.hero__status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.5ch;
  color: var(--color-text-muted);
}

.hero__status-prefix {
  color: var(--color-accent);
  opacity: 0.6;
  user-select: none;
}

.hero__status-key {
  color: var(--color-text-muted);
}

.hero__status-sep {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.hero__status-value {
  color: var(--color-text);
}

@media (min-width: 640px) {
  .hero__tagline {
    font-size: var(--text-xl);
  }

  .hero__status {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-6);
  }
}

/* Hero Entrance Animations */
.hero.js-animate .hero__greeting,
.hero.js-animate .hero__name,
.hero.js-animate .hero__tagline,
.hero.js-animate .hero__location,
.hero.js-animate .hero__status,
.hero.js-animate .hero__cta {
  opacity: 0;
  transform: translateY(var(--slide-md));
  /* Transition must be defined BEFORE .is-visible is added */
  transition:
    opacity var(--duration-entrance) var(--ease-out-expo),
    transform var(--duration-entrance) var(--ease-out-expo);
}

.hero.is-visible .hero__greeting,
.hero.is-visible .hero__name,
.hero.is-visible .hero__tagline,
.hero.is-visible .hero__location,
.hero.is-visible .hero__status,
.hero.is-visible .hero__cta {
  opacity: 1;
  transform: translateY(0);
}

.hero.is-visible .hero__greeting { transition-delay: 0ms; }
.hero.is-visible .hero__name { transition-delay: 80ms; }
.hero.is-visible .hero__tagline { transition-delay: 160ms; }
.hero.is-visible .hero__location { transition-delay: 240ms; }
.hero.is-visible .hero__status { transition-delay: 320ms; }
.hero.is-visible .hero__cta { transition-delay: 400ms; }

/* GPU acceleration hints for iOS */
.hero.js-animate .hero__greeting,
.hero.js-animate .hero__name,
.hero.js-animate .hero__tagline,
.hero.js-animate .hero__location,
.hero.js-animate .hero__status,
.hero.js-animate .hero__cta {
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero.is-visible .hero__greeting,
.hero.is-visible .hero__name,
.hero.is-visible .hero__tagline,
.hero.is-visible .hero__location,
.hero.is-visible .hero__status,
.hero.is-visible .hero__cta {
  will-change: auto;
}

/* ==========================================================================
   8. SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(var(--slide-md));
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group.is-visible .reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group .reveal-item {
  opacity: 0;
  transform: translateY(var(--slide-sm));
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-group.is-visible .reveal-item:nth-child(1) { transition-delay: 0ms; }
.reveal-group.is-visible .reveal-item:nth-child(2) { transition-delay: 60ms; }
.reveal-group.is-visible .reveal-item:nth-child(3) { transition-delay: 120ms; }
.reveal-group.is-visible .reveal-item:nth-child(4) { transition-delay: 180ms; }
.reveal-group.is-visible .reveal-item:nth-child(5) { transition-delay: 240ms; }
.reveal-group.is-visible .reveal-item:nth-child(6) { transition-delay: 300ms; }

/* GPU acceleration hints for scroll reveal */
.reveal,
.reveal-group .reveal-item {
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.reveal.is-visible,
.reveal-group.is-visible .reveal-item {
  will-change: auto;
}


/* ==========================================================================
   9. SECTION STYLES
   ========================================================================== */

.section {
  padding-block: var(--space-16);
  border-top: 1px solid var(--color-border);
}

.section__header {
  margin-bottom: var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section__header::before {
  content: '// ';
  color: var(--color-accent);
}


/* ==========================================================================
   9. ABOUT SECTION
   ========================================================================== */

.about__text {
  max-width: 600px;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.about__text p {
  margin-bottom: var(--space-4);
}

.about__text p:last-child {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .about__text {
    font-size: var(--text-lg);
  }
}


/* ==========================================================================
   10. EXPERIENCE SECTION
   ========================================================================== */

.experience__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.experience__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  padding: var(--space-4);
  padding-bottom: var(--space-6);
  margin-inline: calc(var(--space-4) * -1);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--duration-base) var(--ease-out);
}

.experience__item:hover {
  background-color: var(--color-bg-elevated);
}

.experience__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-accent);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform var(--duration-base) var(--ease-out);
}

.experience__item:hover::before {
  transform: scaleY(1);
  transform-origin: top center;
}

.experience__item:last-child {
  padding-bottom: var(--space-4);
  border-bottom: none;
}

.experience__company {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
}

.experience__role {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.experience__period {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.experience__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

@media (min-width: 640px) {
  .experience__item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    gap: var(--space-1) var(--space-8);
  }

  .experience__company {
    grid-column: 1;
    grid-row: 1;
  }

  .experience__role {
    grid-column: 1;
    grid-row: 2;
  }

  .experience__period {
    grid-column: 2;
    grid-row: 1 / 3;
    text-align: right;
    align-self: center;
  }

  .experience__description {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}


/* ==========================================================================
   11. EXPLORING SECTION
   ========================================================================== */

.exploring__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.exploring__tag {
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  transition:
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
}

.exploring__tag:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background-color: rgba(34, 197, 94, 0.08);
}


/* ==========================================================================
   11b. SKILLS SECTION
   ========================================================================== */

.skills__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.skills__group {
  padding: var(--space-4);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  transition:
    border-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

.skills__group:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.skills__group-title {
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
}

.skills__group-items {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

@media (min-width: 640px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================================================================
   12. CONTACT SECTION
   ========================================================================== */

.contact__intro {
  max-width: 480px;
  margin-bottom: var(--space-8);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
}

@media (min-width: 640px) {
  .contact__intro {
    font-size: var(--text-lg);
  }
}

.contact__response-time {
  margin-bottom: var(--space-8);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .contact__channels {
    flex-direction: row;
    gap: var(--space-8);
  }
}

.contact__channel {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  transition:
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-spring);
}

.contact__channel:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.contact__channel-icon {
  transition: transform var(--duration-fast) var(--ease-spring);
}

.contact__channel:hover .contact__channel-icon {
  transform: scale(1.1);
}

.contact__channel--primary {
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-bg-elevated);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  transition:
    background-color var(--duration-base) var(--ease-out),
    color var(--duration-base) var(--ease-out),
    transform var(--duration-fast) var(--ease-spring),
    box-shadow var(--duration-base) var(--ease-out);
}

.contact__channel--primary:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.contact__channel--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.contact__channel--primary:hover .contact__channel-icon {
  color: var(--color-bg);
  transform: none;
}

.contact__channel-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact__channel-label {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
}


/* ==========================================================================
   13. FOOTER
   ========================================================================== */

.footer {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.footer__text {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
