/* =============================================
   Ayotunde Ejiko Portfolio — CSS
   Cornell-themed, athletic, professional
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&family=Crimson+Pro:wght@400;600;700&display=swap');

:root {
  /* Cornell palette + modern accents */
  --cornell-red: #B31B1B;
  --accent: var(--cornell-red);
  --cornell-dark: #222222;
  --cornell-gray: #6B6B6B;
  --accent-gold: #F7B538;
  --bg: #FAFAFA;
  --card-bg: #FFFFFF;
  --border: #E5E5E5;
  --text: #1A1A1A;
  --text-muted: #666666;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(179, 27, 27, 0.12);
  
  /* Typography */
  --font-display: 'Crimson Pro', serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  
  /* Spacing */
  --gap: 16px;
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
   
   /* =============================================
      RESET & BASE
      ============================================= */
   
   *, *::before, *::after {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
   }
   
   html {
     scroll-behavior: smooth;
     scroll-padding-top: 80px;
   }
   
   body {
     font-family: var(--font-body);
     font-size: 16px;
     line-height: 1.7;
     color: var(--text);
     background: var(--bg);
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
   }
   
   /* =============================================
      SKIP LINK (Accessibility)
      ============================================= */
   
   .skip {
     position: absolute;
     top: -40px;
     left: 0;
     background: var(--cornell-red);
     color: white;
     padding: 8px 16px;
     text-decoration: none;
     z-index: 100;
     border-radius: 0 0 4px 0;
   }
   
   .skip:focus {
     top: 0;
   }
   
   /* =============================================
      NAVIGATION
      ============================================= */
   
   .nav {
     position: sticky;
     top: 0;
     z-index: 50;
     background: rgba(250, 250, 250, 0.98);
     backdrop-filter: blur(10px);
     border-bottom: 1px solid var(--border);
     padding: 16px 0;
     animation: slideDown 0.5s ease-out;
   }

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .nav {
    background: rgba(250, 250, 250, 0.95);
  }
}
   
   @keyframes slideDown {
     from {
       opacity: 0;
       transform: translateY(-20px);
     }
     to {
       opacity: 1;
       transform: translateY(0);
     }
   }
   
   .nav-inner {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 24px;
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 24px;
   }
   
   .logo {
     display: flex;
     align-items: center;
     gap: 10px;
     font-weight: 700;
     font-size: 16px;
     color: var(--cornell-dark);
     letter-spacing: -0.02em;
   }

.logo a {
  color: inherit;
  text-decoration: none;
}

.logo a:hover {
  color: var(--cornell-red);
}
   
   .logo .dot {
     width: 10px;
     height: 10px;
     background: var(--cornell-red);
     border-radius: 50%;
     animation: pulse 2s ease-in-out infinite;
   }
   
   @keyframes pulse {
     0%, 100% { transform: scale(1); opacity: 1; }
     50% { transform: scale(1.2); opacity: 0.8; }
   }
   
   .links {
     display: flex;
     gap: 8px;
     flex-wrap: wrap;
   }
   
   .pill {
     padding: 8px 16px;
     border-radius: 20px;
     text-decoration: none;
     color: var(--text-muted);
     font-size: 13px;
     transition: all var(--transition);
     border: 1px solid transparent;
     font-family: var(--font-mono);
   }
   
   .pill:hover {
     color: var(--cornell-red);
     background: rgba(179, 27, 27, 0.05);
     border-color: var(--cornell-red);
   }

.pill:focus-visible {
  color: var(--cornell-red);
  background: rgba(179, 27, 27, 0.08);
  border-color: rgba(179, 27, 27, 0.35);
}

.pill.active {
  color: var(--cornell-red);
  background: rgba(179, 27, 27, 0.08);
  border-color: rgba(179, 27, 27, 0.35);
}

.pill:focus-visible,
.btn:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(179, 27, 27, 0.35);
  outline-offset: 3px;
}
   
   /* =============================================
      LAYOUT
      ============================================= */
   
   .wrap {
     max-width: 1200px;
     margin: 0 auto;
     padding: 32px 24px 80px;
   }
   
   .grid {
     display: grid;
     gap: var(--gap);
     animation: fadeInUp 0.6s ease-out;
   }
   
   @keyframes fadeInUp {
     from {
       opacity: 0;
       transform: translateY(30px);
     }
     to {
       opacity: 1;
       transform: translateY(0);
     }
   }
   
   .grid-2 {
     grid-template-columns: 1fr;
   }
   
   @media (min-width: 768px) {
     .grid-2 {
       grid-template-columns: repeat(2, 1fr);
     }
     
     .grid-hero {
       grid-template-columns: 1.5fr 1fr;
     }
   }
   
   /* =============================================
      CARD
      ============================================= */
   
   .card {
     background: var(--card-bg);
     border: 1px solid var(--border);
     border-radius: var(--radius);
     padding: 32px;
     box-shadow: 0 2px 8px var(--shadow);
     transition: all var(--transition);
     position: relative;
     overflow: hidden;
   }
   
   .card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 3px;
     background: linear-gradient(90deg, var(--cornell-red), var(--accent-gold));
     transform: scaleX(0);
     transform-origin: left;
     transition: transform var(--transition);
   }
   
   .card:hover::before {
     transform: scaleX(1);
   }
   
   .card:hover {
     box-shadow: 0 8px 24px var(--shadow-hover);
     transform: translateY(-2px);
   }
   
   /* =============================================
      HERO
      ============================================= */
   
   .hero-top {
     display: flex;
     align-items: center;
     gap: 16px;
     margin-bottom: 16px;
     flex-wrap: wrap;
   }
   
   .avatar {
     width: 56px;
     height: 56px;
     border-radius: 16px;
     background: rgba(179, 27, 27, 0.08);
     border: 1px solid rgba(179, 27, 27, 0.22);
     display: grid;
     place-items: center;
     overflow: hidden;
     box-shadow: 0 4px 12px rgba(179, 27, 27, 0.18);
     animation: rotateIn 0.6s ease-out;
   }
   
   .headshot {
     width: 100%;
     height: 100%;
     object-fit: cover;
     display: block;
   }
   
   @keyframes rotateIn {
     from {
       opacity: 0;
       transform: rotate(-180deg) scale(0.5);
     }
     to {
       opacity: 1;
       transform: rotate(0) scale(1);
     }
   }
   
   .name {
     font-size: 20px;
     font-weight: 700;
     font-family: var(--font-display);
     color: var(--cornell-dark);
   }
   
   .role {
     font-size: 12px;
     color: var(--text-muted);
   }

   /* =============================================
      TYPOGRAPHY
      ============================================= */
   
   .kicker {
     font-size: 11px;
     text-transform: uppercase;
     letter-spacing: 0.1em;
     color: var(--cornell-red);
     font-weight: 700;
     margin-bottom: 8px;
     font-family: var(--font-mono);
   }
   
   h1, h2, h3 {
     font-family: var(--font-display);
     line-height: 1.2;
     font-weight: 700;
   }
   
   .headline {
     font-size: 36px;
     margin: 8px 0 16px;
     color: var(--cornell-dark);
     letter-spacing: -0.02em;
   }
   
   h2 {
     font-size: 28px;
     margin: 8px 0 16px;
     color: var(--cornell-dark);
   }
   
   h3 {
     font-size: 16px;
     margin: 0 0 4px;
     color: var(--text);
   }
   
   .sub {
     font-size: 14px;
     line-height: 1.7;
     color: var(--text-muted);
     margin-bottom: 20px;
     max-width: 62ch;
   }
   
   .muted {
     color: var(--text-muted);
   }
   
   .small {
     font-size: 12px;
   }
   
   b {
     color: var(--cornell-dark);
     font-weight: 700;
   }
   
   /* =============================================
      BADGES & TAGS
      ============================================= */
   
   .badges {
     display: flex;
     flex-wrap: wrap;
     gap: 8px;
     margin: 20px 0;
   }
   
   .badge {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     padding: 8px 16px;
     background: rgba(179, 27, 27, 0.08);
     border: 1px solid rgba(179, 27, 27, 0.2);
     border-radius: 20px;
     font-size: 13px;
     color: var(--cornell-red);
     font-weight: 600;
     transition: all var(--transition);
   }
   
   .badge:hover {
     background: rgba(179, 27, 27, 0.12);
     transform: translateY(-2px);
   }
   
   .mini {
     width: 6px;
     height: 6px;
     background: var(--cornell-red);
     border-radius: 50%;
     animation: pulse 2s ease-in-out infinite;
   }
   
   .tagrow {
     display: flex;
     flex-wrap: wrap;
     gap: 6px;
     margin-top: 12px;
   }
   
   .tag {
     display: inline-block;
     padding: 4px 12px;
     background: var(--bg);
     border: 1px solid var(--border);
     border-radius: 12px;
     font-size: 11px;
     color: var(--text-muted);
     transition: all var(--transition);
     font-family: var(--font-mono);
   }
   
   .tag:hover {
     border-color: var(--cornell-red);
     color: var(--cornell-red);
     background: rgba(179, 27, 27, 0.05);
   }
   
   /* =============================================
      BUTTONS & CTAs
      ============================================= */
   
   .cta-row {
     display: flex;
     flex-wrap: wrap;
     gap: 12px;
     margin-top: 24px;
   }
   
   .btn {
     display: inline-block;
     padding: 12px 24px;
     border-radius: 8px;
     text-decoration: none;
     font-size: 13px;
     font-weight: 600;
     transition: all var(--transition);
     border: 2px solid var(--border);
     background: white;
     color: var(--text);
     cursor: pointer;
     font-family: var(--font-mono);
   }
   
   .btn:hover {
     border-color: var(--cornell-red);
     transform: translateY(-2px);
     box-shadow: 0 4px 12px var(--shadow-hover);
   }

.btn:focus-visible {
  border-color: var(--cornell-red);
  box-shadow: 0 0 0 3px rgba(179, 27, 27, 0.35);
}

.btn:active {
  transform: translateY(0);
}

/* Disabled / Coming-soon buttons */
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.65);
  background: rgba(0, 0, 0, 0.02);
}

.btn[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.12);
}
   
   .btn.primary {
     background: var(--cornell-red);
     color: white;
     border-color: var(--cornell-red);
   }
   
   .btn.primary:hover, .btn.primary:focus {
     background: #9A1616;
     border-color: #9A1616;
   }
   
   /* =============================================
      STATS & SPLITS
      ============================================= */
   
   .split {
     display: grid;
     gap: 20px;
     margin: 20px 0;
   }
   
   @media (min-width: 640px) {
     .split {
       grid-template-columns: repeat(2, 1fr);
     }
   }
   
   .stat b {
     display: block;
     margin-top: 4px;
     font-size: 16px;
   }
   
   .hr {
     height: 1px;
     background: var(--border);
     margin: 24px 0;
   }
   
   /* =============================================
      LISTS & ITEMS
      ============================================= */
   
   .list {
     display: flex;
     flex-direction: column;
     gap: 20px;
   }
   
   .item {
     padding: 16px 0;
     border-bottom: 1px solid var(--border);
     transition: transform var(--transition);
     will-change: transform;
   }
   
   .item:last-child {
     border-bottom: none;
   }
   
   .item:hover {
     transform: translateX(6px);
   }
   
   .row {
     display: flex;
     justify-content: space-between;
     align-items: center;
     gap: 16px;
     margin-bottom: 8px;
   }
   
   @media (max-width: 640px) {
     .row {
       flex-direction: column;
       gap: 4px;
     }
   }

   /* =============================================
      EXPERIENCE + SELECTED WORK (Upgrades)
      ============================================= */

   .experience-card {
     border-left: 4px solid var(--accent);
     padding-left: 16px;
   }

   /* Don’t shift these cards horizontally on hover (keeps the left accent aligned) */
   .experience-card:hover,
   .work-card:hover {
     transform: none;
   }

   .impact {
     margin-top: 10px;
     font-size: 14px;
     line-height: 1.7;
     color: var(--text);
     max-width: 78ch;
   }

   .meta-line {
     margin-top: 12px;
   }

   .label {
     font-size: 11px;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     opacity: 0.75;
     margin-bottom: 8px;
     font-family: var(--font-mono);
   }

   .bullets {
     margin: 0;
     padding-left: 18px;
   }

   .bullets li {
     margin: 6px 0;
   }

   @media (max-width: 720px) {
     .experience-card {
       padding-left: 14px;
     }
   }
   
   /* =============================================
      FOOTER
      ============================================= */
   
   footer {
     text-align: center;
     padding-top: 40px;
     margin-top: 40px;
     border-top: 1px solid var(--border);
     color: var(--text-muted);
   }

   footer a {
     color: var(--cornell-red);
     text-decoration: none;
     border-bottom: 1px solid rgba(179, 27, 27, 0.35);
     padding-bottom: 1px;
   }

   footer a:hover {
     border-bottom-color: var(--cornell-red);
   }

   footer a:focus-visible {
     outline: 3px solid rgba(179, 27, 27, 0.35);
     outline-offset: 3px;
   }
   
   /* =============================================
      RESPONSIVE
      ============================================= */
   
   @media (max-width: 768px) {
     .headline {
       font-size: 28px;
     }
     
     h2 {
       font-size: 24px;
     }
     
     .card {
       padding: 24px;
     }
     
     .wrap {
       padding: 24px 16px 60px;
     }
     
     .nav-inner {
       flex-direction: column;
       align-items: flex-start;
     }

     .links {
       display: flex;
       width: 100%;
       gap: 8px;
       flex-wrap: nowrap;
       overflow-x: auto;
       -webkit-overflow-scrolling: touch;
       padding-bottom: 8px;
       scroll-snap-type: x mandatory;
     }

     .pill {
       white-space: nowrap;
       scroll-snap-align: start;
     }
     .item:hover {
       transform: none;
     }

     /* Disable card lift on touch devices */
     .card:hover {
       transform: none;
       box-shadow: 0 2px 8px var(--shadow);
     }
   }
   
   /* =============================================
      PRINT STYLES
      ============================================= */
   
   @media print {
     .nav, .cta-row, footer {
       display: none;
     }
     
     .card {
       page-break-inside: avoid;
       box-shadow: none;
       border: 1px solid #ddd;
     }
   }
   
/* =============================================
   REDUCED MOTION (Accessibility)
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}