/* ==========================================================================
   Sahil Prasad — Apple-Inspired Interactive Developer Portfolio
   Crafted with precision dark titanium surfaces, glassmorphism & kinetic UI
   ========================================================================== */

:root {
  --bg-primary: #000000;
  --bg-elevated: #0b0b0f;
  --bg-card: rgba(22, 22, 28, 0.72);
  --bg-card-solid: #141419;
  --bg-glass: rgba(18, 18, 24, 0.76);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.18);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;
  --accent-cyan: #2997ff;
  --accent-teal: #00f5d4;
  --accent-indigo: #5e5ce6;
  --accent-purple: #bf5af2;
  --accent-green: #30d158;
  --accent-red: #ff453a;
  --accent-amber: #ffd60a;
  --accent-orange: #ff9f0a;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.5;
}

/* Ambient Background Glows */
.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.22;
  transition: transform 0.8s var(--ease-apple);
}

.orb-1 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, #00d2ff 0%, #0051ff 70%, transparent 100%);
  top: -180px;
  left: -120px;
}

.orb-2 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #5e5ce6 0%, #bf5af2 70%, transparent 100%);
  top: 28%;
  right: -180px;
}

.orb-3 {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, #00f5d4 0%, #2997ff 70%, transparent 100%);
  bottom: -240px;
  left: 20%;
  opacity: 0.14;
}

/* Apple-Style Global Sticky Navigation */
.apple-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  background: rgba(10, 10, 14, 0.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-container {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.35);
}

.brand-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  display: inline-block;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 13px;
  border-radius: 999px;
  transition: all 0.25s var(--ease-apple);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Apple Pill Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.28s var(--ease-apple);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2997ff 0%, #00d2ff 100%);
  color: #000000;
  box-shadow: 0 4px 20px rgba(41, 151, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 26px rgba(41, 151, 255, 0.55);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border-color: var(--border-highlight);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
}

/* Sub-navigation Product Ribbon (Apple Product Page Style) */
.product-ribbon {
  position: sticky;
  top: 56px;
  z-index: 90;
  background: rgba(16, 16, 22, 0.68);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 8px 24px;
}

.ribbon-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
}

.ribbon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-teal);
  font-weight: 600;
}

/* Main Layout Container */
.section-container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  background: rgba(41, 151, 255, 0.1);
  border: 1px solid rgba(41, 151, 255, 0.24);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Hero Section */
.hero-section {
  padding-top: 72px;
  padding-bottom: 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, #00f5d4 0%, #2997ff 50%, #bf5af2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 28px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
}

.metric-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.metric-lbl {
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ==========================================================================
   iPhone 16 Pro Max Interactive Simulator (Live Crypto App)
   ========================================================================== */

.simulator-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.simulator-mode-bar {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
}

.sim-tab-trigger {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-apple);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sim-tab-trigger.active {
  background: var(--text-primary);
  color: #000000;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.iphone-frame {
  width: 382px;
  height: 770px;
  border-radius: 54px;
  background: linear-gradient(145deg, #2c2c34 0%, #151519 45%, #25252c 100%);
  padding: 12px;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 60px rgba(41, 151, 255, 0.18);
  position: relative;
  transition: transform 0.45s var(--ease-apple), box-shadow 0.45s var(--ease-apple);
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: #08090d;
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Status Bar & Dynamic Island */
.ios-status-bar {
  height: 44px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 600;
  color: #ffffff;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.dynamic-island {
  width: 112px;
  height: 27px;
  background: #000000;
  border-radius: 999px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s var(--ease-spring);
  cursor: pointer;
}

.dynamic-island.pulse {
  width: 186px;
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.4);
}

.island-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
}

.island-label {
  font-size: 0.62rem;
  color: var(--accent-teal);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* iOS Viewport Content Area */
.ios-tab-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding-bottom: 12px;
}

.ios-tab-viewport::-webkit-scrollbar {
  display: none;
}

.ios-screen-pane {
  display: none;
  animation: fadeSlideIn 0.28s var(--ease-apple);
}

.ios-screen-pane.active {
  display: block;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tab 1: HomeView (News Banner + Search + Filter Pills + Coin List) */
.ios-news-banner {
  margin: 4px 12px 10px;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.16) 0%, rgba(41, 151, 255, 0.22) 55%, rgba(94, 92, 230, 0.25) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.news-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.news-source-pill {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--accent-teal);
}

.news-cycle-btn {
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  font-size: 0.62rem;
  padding: 2px 7px;
  border-radius: 999px;
  cursor: pointer;
}

.news-headline-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ios-search-box {
  margin: 0 12px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ios-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.76rem;
  width: 100%;
}

.ios-search-box input::placeholder {
  color: var(--text-muted);
}

.ios-pills-row {
  display: flex;
  gap: 6px;
  padding: 0 12px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ios-pills-row::-webkit-scrollbar {
  display: none;
}

.ios-pill {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-secondary);
  border: none;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ios-pill.active {
  background: #ffffff;
  color: #000000;
}

.ios-col-headers {
  display: flex;
  justify-content: space-between;
  padding: 2px 14px 6px;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ios-col-headers span {
  cursor: pointer;
  user-select: none;
}

.ios-col-headers span:hover {
  color: #ffffff;
}

.ios-coin-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px;
}

.ios-coin-row {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.95fr;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 9px 10px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.ios-coin-row:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: scale(1.01);
}

.coin-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coin-rank {
  font-size: 0.62rem;
  color: var(--text-muted);
  width: 14px;
}

.coin-icon-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  color: #fff;
  flex-shrink: 0;
}

.coin-title-wrap {
  display: flex;
  flex-direction: column;
}

.coin-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.coin-sym {
  font-size: 0.63rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.coin-right {
  text-align: right;
}

.coin-price {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.coin-change {
  font-size: 0.64rem;
  font-weight: 700;
}

.pos {
  color: var(--accent-green);
}

.neg {
  color: var(--accent-red);
}

/* Coin Detail Sheet Modal inside iPhone */
.ios-detail-sheet {
  position: absolute;
  inset: 44px 0 58px 0;
  background: #0d0e14;
  z-index: 25;
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px 24px 0 0;
  animation: slideUpSheet 0.3s var(--ease-apple);
}

.ios-detail-sheet.open {
  display: flex;
}

@keyframes slideUpSheet {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Tab 2: PortfolioView (GoldRush Multi-Chain) */
.ios-portfolio-card {
  margin: 4px 12px 10px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(94, 92, 230, 0.24) 0%, rgba(20, 20, 28, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.wallet-bar {
  display: flex;
  gap: 6px;
  margin: 0 12px 10px;
}

.wallet-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 7px 10px;
  color: #fff;
  font-size: 0.72rem;
  outline: none;
}

.wallet-bar button {
  background: var(--accent-cyan);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 0 11px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.allocation-bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
  margin-top: 10px;
}

/* Tab 3: VDATaxEstimatorView (Sec 115BBH & 194S TDS) */
.vda-card {
  margin: 4px 12px 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vda-seg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.vda-seg-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
}

.vda-seg-btn.active {
  background: var(--accent-cyan);
  color: #000;
}

.vda-input-group {
  margin-bottom: 8px;
}

.vda-input-group label {
  display: block;
  font-size: 0.63rem;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.vda-input-group input,
.vda-input-group select {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 7px 9px;
  color: #fff;
  font-size: 0.74rem;
  outline: none;
}

.vda-breakdown-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  padding: 10px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.68rem;
}

.vda-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* iOS Bottom Tab Bar */
.ios-tab-bar {
  height: 58px;
  background: rgba(16, 16, 22, 0.92);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  flex-shrink: 0;
  padding-bottom: 4px;
}

.ios-tab-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.63rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ios-tab-item.active {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Feature Deep-Dive Cards & Architecture Code Explorer
   ========================================================================== */

.feature-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}

.apple-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-apple), border-color 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple);
}

.apple-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.35rem;
  background: rgba(41, 151, 255, 0.14);
  color: var(--accent-cyan);
  border: 1px solid rgba(41, 151, 255, 0.28);
}

.apple-card h3 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.apple-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.file-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.file-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-teal);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Xcode-Style Swift Code Inspector */
.xcode-window {
  background: #0d0e13;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.xcode-titlebar {
  background: #161720;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.window-dots {
  display: flex;
  gap: 8px;
}

.win-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.win-dot.red { background: #ff5f56; }
.win-dot.yellow { background: #ffbd2e; }
.win-dot.green { background: #27c93f; }

.xcode-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.xcode-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.xcode-tab.active {
  background: rgba(41, 151, 255, 0.16);
  color: #ffffff;
  border-color: rgba(41, 151, 255, 0.4);
}

.xcode-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 410px;
}

.xcode-sidebar {
  background: #101118;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  font-size: 0.78rem;
}

.tree-folder {
  font-weight: 700;
  color: var(--text-secondary);
  margin: 10px 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tree-file {
  padding: 5px 10px;
  border-radius: 7px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.73rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tree-file:hover,
.tree-file.active {
  background: rgba(41, 151, 255, 0.14);
  color: #ffffff;
}

.xcode-editor {
  padding: 22px;
  overflow-x: auto;
  position: relative;
}

.xcode-editor pre {
  font-family: var(--font-mono);
  font-size: 0.81rem;
  line-height: 1.65;
  color: #e4e4ef;
  white-space: pre;
}

.code-kw { color: #ff7ab2; font-weight: 600; }
.code-type { color: #6bdfff; }
.code-str { color: #ff8170; }
.code-cmt { color: #6c7986; font-style: italic; }
.code-num { color: #d9c97c; }

/* ==========================================================================
   Skills Bento Matrix (12 Core Skills)
   ========================================================================== */

.skills-filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.skill-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-apple);
}

.skill-filter-btn.active,
.skill-filter-btn:hover {
  background: var(--text-primary);
  color: #000000;
}

.skills-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 22px;
  transition: all 0.3s var(--ease-apple);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.skill-card.span-2 {
  grid-column: span 2;
}

.skill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.skill-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent-teal);
}

.skill-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.skill-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.skill-meter {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.skill-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-teal));
}

/* ==========================================================================
   Projects & Future Project Slots Section
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-apple);
}

.project-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.9) 0%, rgba(12, 12, 18, 0.95) 100%);
  border-color: rgba(0, 245, 212, 0.32);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
}

.project-card.placeholder-slot {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(18, 18, 24, 0.45);
}

.project-card.placeholder-slot:hover {
  border-color: var(--accent-cyan);
  background: rgba(24, 24, 34, 0.75);
}

.slot-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 214, 10, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 214, 10, 0.28);
  margin-bottom: 16px;
  width: fit-content;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.stack-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
}

/* ==========================================================================
   Contact & Direct Reach Section
   ========================================================================== */

.contact-dock {
  background: linear-gradient(145deg, rgba(22, 22, 32, 0.9) 0%, rgba(10, 10, 14, 0.95) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: 32px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.contact-methods-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.contact-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px 20px;
  transition: border-color 0.25s ease;
}

.contact-item-card:hover {
  border-color: var(--accent-cyan);
}

.contact-meta {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.contact-value {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.contact-form-panel {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 28px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 11px 14px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-cyan);
}

/* Modal for Adding / Customizing Project Slot */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #14151e;
  border: 1px solid var(--border-highlight);
  border-radius: 28px;
  max-width: 540px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85);
}

/* Toast Notification */
.apple-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(255, 255, 255, 0.95);
  color: #000000;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 300;
  opacity: 0;
  transition: all 0.35s var(--ease-spring);
  pointer-events: none;
}

.apple-toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer */
.apple-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 1040px) {
  .hero-grid,
  .contact-dock,
  .project-card.featured {
    grid-template-columns: 1fr;
  }
  .feature-showcase-grid {
    grid-template-columns: 1fr;
  }
  .skills-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .xcode-body {
    grid-template-columns: 1fr;
  }
  .xcode-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
  .hero-metrics-strip,
  .skills-bento-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .skill-card.span-2,
  .project-card.featured {
    grid-column: span 1;
  }
  .iphone-frame {
    width: 340px;
    height: 700px;
  }
  .contact-dock {
    padding: 28px 20px;
  }
}
