/* ==========================================================================
   DIEGO COLÍN - PORTFOLIO STYLES
   Apple Design Language (Cupertino Minimalist & High-Performance UI)
   ========================================================================== */

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

:root {
  /* Apple Signature Color Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;       /* Apple signature product specs & store light gray */
  --bg-tertiary: #e8e8ed;        /* Apple track & segmented control background */
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.8);
  --bg-nav-scrolled: rgba(255, 255, 255, 0.92);

  /* Apple Text Hierarchy */
  --text-primary: #1d1d1f;       /* Apple signature deep charcoal/black */
  --text-secondary: #515154;     /* Apple neutral dark gray */
  --text-muted: #86868b;         /* Apple caption and secondary text gray */

  /* Apple Brand & System Accents */
  --accent-blue: #0071e3;        /* Official Apple Royal Blue */
  --accent-blue-hover: #0077ed;
  --accent-blue-active: #0062c4;
  --accent-emerald: #34c759;     /* Apple iOS Green */
  --accent-amber: #ff9500;       /* Apple iOS Amber */
  --accent-rose: #ff3b30;        /* Apple iOS Red */
  --accent-purple: #af52de;      /* Apple iOS Purple */

  /* Apple Subtle Hairline Borders */
  --border-hairline: rgba(0, 0, 0, 0.08);
  --border-subtle: #d2d2d7;      /* Classic Apple hardware outline */
  --border-strong: #a1a1a6;

  /* Apple Corner Radii - NO PILL-SHAPED BUTTONS */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-btn: 8px;            /* Standard Apple CTA button radius */
  --radius-input: 8px;
  --radius-segmented: 10px;      /* Apple segmented track radius */
  --radius-card: 18px;          /* Apple squircle card radius */
  --radius-modal: 20px;
  --radius-circle: 50%;

  /* Apple Soft Natural Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(0, 0, 0, 0.08);

  /* Apple Spring & Smooth Curves */
  --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.16s ease-out;
  --transition-smooth: 0.28s var(--ease-apple);
  --transition-bounce: 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --max-width: 1180px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

/* Apple Minimalist Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #d2d2d7;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1a6;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, "Inter", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

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

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Apple Chevron Link Icon Helper */
.chevron-apple {
  display: inline-block;
  font-size: 1.15em;
  font-weight: 500;
  margin-left: 3px;
  transition: transform var(--transition-fast);
}

/* ==========================================================================
   Header & Navigation (Apple Global Navigation Bar)
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-hairline);
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth);
}

.header-nav.scrolled {
  background: var(--bg-nav-scrolled);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: #1d1d1f;
  color: #fff;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: var(--shadow-xs);
}

.logo-text {
  color: var(--text-primary);
  font-weight: 600;
}

.logo-tag {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-hairline);
  margin-left: 0.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.8;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition-fast), background-color var(--transition-fast);
  letter-spacing: -0.01em;
}

.nav-link:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  opacity: 1;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(0, 113, 227, 0.06);
}

/* Header Actions & Clean Apple Button (NO PILL) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-btn);
  font-size: 0.82rem;
  font-weight: 500;
  color: #ffffff;
  background: var(--accent-blue);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 113, 227, 0.2);
}

.btn-nav-cta:hover {
  background: var(--accent-blue-hover);
}

.btn-nav-cta:active {
  background: var(--accent-blue-active);
  transform: scale(0.98);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  line-height: 1;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Section (Apple Keynote Style)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 88vh;
  padding-top: 110px;
  padding-bottom: 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--border-hairline);
}

.hero-glow-blob {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

/* Hero Content */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(52, 199, 89, 0.08);
  border: 1px solid rgba(52, 199, 89, 0.25);
  font-size: 0.8rem;
  font-weight: 500;
  color: #1b873f;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.5);
  animation: pulse-ring 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.6); }
  70% { box-shadow: 0 0 0 7px rgba(52, 199, 89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.65rem);
  line-height: 1.1;
  margin-bottom: 1.35rem;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(180deg, #1d1d1f 20%, #434344 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 540px;
  font-weight: 400;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Apple CTA Buttons - CLEAN RECTANGULAR WITH SUBTLE RADIUS (NO PILLS) */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.45rem;
  border-radius: var(--radius-btn);
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 1px 3px rgba(0, 113, 227, 0.25);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.28);
}

.btn-primary:active {
  background: var(--accent-blue-active);
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-btn);
  background: transparent;
  border: 1px solid rgba(0, 113, 227, 0.35);
  color: var(--accent-blue);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.05);
  border-color: var(--accent-blue);
}

.btn-secondary:hover .chevron-apple {
  transform: translateX(3px);
}

/* Hero Stats - Clean Apple Spec Layout */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-hairline);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}

.stat-number span {
  color: var(--accent-blue);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ==========================================================================
   macOS Window Frame (Hero Visual)
   ========================================================================== */
.hero-visual {
  position: relative;
}

.code-window-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.code-window-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f5f5f7;
  border-bottom: 1px solid var(--border-hairline);
}

.window-controls {
  display: flex;
  gap: 0.45rem;
}

/* Genuine macOS Traffic Light Controls */
.control-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.control-dot.red { background: #ff5f56; border: 0.5px solid rgba(0, 0, 0, 0.12); }
.control-dot.yellow { background: #ffbd2e; border: 0.5px solid rgba(0, 0, 0, 0.12); }
.control-dot.green { background: #27c93f; border: 0.5px solid rgba(0, 0, 0, 0.12); }

.window-title {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.window-actions {
  display: flex;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.code-content {
  padding: 1.4rem;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #1d1d1f;
  background: #ffffff;
  overflow-x: auto;
}

/* Apple SF Mono Code Tokens */
.code-token-keyword { color: #cf222e; font-weight: 600; }
.code-token-var { color: #0071e3; font-weight: 600; }
.code-token-prop { color: #1d1d1f; }
.code-token-string { color: #116329; }
.code-token-bool { color: #953800; font-weight: 600; }
.code-token-comment { color: #86868b; font-style: italic; }

/* Apple Floating Hardware/Feature Badges (NO PILL) */
.floating-tech-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  z-index: 2;
  animation: float 4s ease-in-out infinite alternate;
}

.floating-tech-badge.badge-react {
  top: -12px;
  right: 16px;
  color: #0071e3;
}

.floating-tech-badge.badge-perf {
  bottom: -16px;
  left: 16px;
  color: var(--accent-emerald);
  animation-delay: 2s;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

/* ==========================================================================
   Section Headers & Common
   ========================================================================== */
.section {
  padding: 96px 0;
  position: relative;
}

/* Apple Alternating Sections */
#about { background: var(--bg-secondary); }
#skills { background: #ffffff; }
#projects { background: var(--bg-secondary); }
#process { background: #ffffff; }
#contact { background: var(--bg-secondary); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

/* Apple Clean Eyebrow Headline (NO PILL) */
.section-tag {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-blue);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 400;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 3.5rem;
  align-items: center;
}

.about-profile-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem auto;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-sm);
}

.avatar-glow-ring {
  display: none;
}

.profile-name {
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  font-weight: 600;
}

.profile-role {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 1.35rem;
}

/* Apple Spec Tags (NO PILL) */
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.profile-tag {
  font-size: 0.75rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  font-weight: 500;
}

.profile-contact-quick {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* About Narrative */
.about-text h3 {
  font-size: 1.65rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  font-weight: 600;
}

.about-text p {
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.pillar-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  font-weight: 600;
}

.pillar-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Apple Segmented Controls (Tab & Filter Switchers - NO PILLS)
   ========================================================================== */
.skills-tabs, .projects-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  background: var(--bg-tertiary);
  padding: 3px;
  border-radius: var(--radius-segmented);
  margin: 0 auto 3rem auto;
  width: fit-content;
  border: 1px solid var(--border-hairline);
}

.tab-btn, .filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: none;
}

.tab-btn:hover, .filter-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active, .filter-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Skills Grid
   ========================================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.skill-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(0, 113, 227, 0.06);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 113, 227, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-category {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
}

.skill-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.skill-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent-blue);
}

/* ==========================================================================
   Projects Section (Apple Safari Mockups)
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.25rem;
}

.project-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Safari Window Chrome */
.browser-mockup-frame {
  background: #f5f5f7;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.browser-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: #f5f5f7;
  border-bottom: 1px solid var(--border-hairline);
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot.dot-red { background-color: #ff5f56; }
.dot.dot-yellow { background-color: #ffbd2e; }
.dot.dot-green { background-color: #27c93f; }

/* Safari Address Bar (NO PILL) */
.browser-address-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-xs);
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  color: var(--text-secondary);
  width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid var(--border-hairline);
}

.ssl-icon {
  display: inline-flex;
  align-items: center;
  color: var(--accent-emerald);
}

.browser-header-actions {
  display: flex;
  gap: 0.5rem;
  color: var(--text-muted);
}

.browser-action-icon {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.browser-action-icon:hover {
  color: var(--text-primary);
}

.browser-viewport-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  background: #f5f5f7;
}

.mockup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-smooth);
}

.project-card:hover .mockup-image {
  transform: scale(1.02);
}

.mockup-inspect-overlay {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 31, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.project-card:hover .mockup-inspect-overlay {
  opacity: 1;
}

/* Inspect overlay button (NO PILL) */
.btn-inspect-action {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  transform: translateY(4px);
  transition: transform var(--transition-smooth);
}

.project-card:hover .btn-inspect-action {
  transform: translateY(0);
}

/* Card Body */
.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: #ffffff;
}

.project-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.project-category-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(0, 113, 227, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
}

.project-badge-mockup {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  font-weight: 500;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1.15rem;
  flex-grow: 1;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
}

.tech-tag {
  font-size: 0.72rem;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-hairline);
}

/* Project Card Actions (NO PILLS) */
.project-actions {
  display: flex;
  gap: 0.6rem;
}

.btn-card-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-btn);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-card-action.primary {
  background: var(--accent-blue);
  color: #ffffff;
  border: none;
}

.btn-card-action.primary:hover {
  background: var(--accent-blue-hover);
}

.btn-card-action.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
}

.btn-card-action.secondary:hover {
  background: var(--bg-tertiary);
}

.btn-card-action.secondary:hover .chevron-apple {
  transform: translateX(3px);
}

/* ==========================================================================
   Project Detail / Mockup Inspector Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-modal);
  width: 100%;
  max-width: 1040px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  transform: scale(0.97);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-hairline);
  background: #ffffff;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-title {
  font-size: 1.15rem;
  color: var(--text-primary);
  font-weight: 600;
}

.modal-category-badge {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-blue);
  border-radius: var(--radius-xs);
  font-weight: 600;
}

/* Device Viewport Switcher - Apple Segmented Control (NO PILL) */
.device-switcher {
  display: flex;
  background: var(--bg-tertiary);
  padding: 3px;
  border-radius: var(--radius-btn);
  gap: 2px;
}

.device-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.device-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.modal-close-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #e8e8ed;
  color: var(--text-primary);
}

/* Modal Body */
.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #ffffff;
}

.modal-mockup-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 14px;
  border: 1px solid var(--border-hairline);
  min-height: 400px;
}

/* Desktop Viewport Mockup */
.mockup-desktop-frame {
  width: 100%;
  max-width: 920px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
}

.mockup-desktop-frame .browser-img-holder {
  width: 100%;
  max-height: 460px;
  overflow-y: auto;
  background: #f5f5f7;
}

.mockup-desktop-frame .browser-img-holder img {
  width: 100%;
  height: auto;
  display: block;
}

/* Apple iPhone Frame with Dynamic Island */
.mockup-mobile-frame {
  width: 300px;
  height: 560px;
  border-radius: 40px;
  background: #ffffff;
  border: 6px solid #1d1d1f;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mobile-dynamic-island {
  width: 80px;
  height: 20px;
  background: #000000;
  border-radius: 20px;
  margin: 10px auto 6px auto;
  z-index: 10;
}

.mobile-screen-content {
  flex: 1;
  overflow-y: auto;
  background: #f5f5f7;
}

.mobile-screen-content img {
  width: 100%;
  height: auto;
  display: block;
}

/* Modal Info & Spec Details */
.modal-spec-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
}

.modal-section-h4 {
  font-size: 1.05rem;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
  font-weight: 600;
}

.modal-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.feature-checklist li span.check-icon {
  color: var(--accent-emerald);
  margin-top: 2px;
}

.modal-sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: 1.25rem;
}

.modal-spec-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.modal-spec-row:last-child {
  margin-bottom: 0;
}

.spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.spec-value {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

.spec-mono-url {
  font-family: "SF Mono", Menlo, monospace;
  color: var(--accent-blue);
  font-size: 0.82rem;
}

.spec-status-badge {
  color: var(--accent-emerald);
  font-weight: 600;
}

.spec-arch-text {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ==========================================================================
   Process / Workflow Section (Apple Sequential Architecture)
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  position: relative;
  text-align: left;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.process-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.process-step-num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  line-height: 1;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.process-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.process-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  font-weight: 600;
}

.contact-info-card p {
  margin-bottom: 2rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--accent-blue);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.channel-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
}

.channel-placeholder {
  color: #94a3b8;
  font-weight: 400;
  cursor: default;
}

.channel-value:not(.channel-placeholder):hover {
  color: var(--accent-blue);
}

/* Contact Form */
.contact-form-card {
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-input);
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Form Submit Button (NO PILL) */
.btn-submit {
  width: 100%;
  padding: 0.85rem;
  border-radius: var(--radius-btn);
  background: var(--accent-blue);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 1px 3px rgba(0, 113, 227, 0.25);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn-submit:hover {
  background: var(--accent-blue-hover);
}

.btn-submit:active {
  background: var(--accent-blue-active);
  transform: scale(0.99);
}

/* Apple Loading Spinner */
.apple-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: apple-spin 0.7s linear infinite;
}

@keyframes apple-spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Toast Notification (macOS Banner Notification)
   ========================================================================== */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  background: rgba(29, 29, 31, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-bounce);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-title {
  font-weight: 600;
  font-size: 0.85rem;
}

.toast-msg {
  font-size: 0.78rem;
  color: #a1a1a6;
}

/* ==========================================================================
   Back To Top Button (NO PILL)
   ========================================================================== */
.btn-back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 900;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-btn);
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition-fast);
}

.btn-back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-back-to-top:hover {
  background: var(--bg-secondary);
  color: var(--accent-blue);
  transform: translateY(-2px);
}

/* ==========================================================================
   Footer (Apple Cupertino Minimalist Footer)
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-hairline);
  padding: 50px 0 24px 0;
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.85rem;
  font-size: 0.86rem;
  max-width: 320px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-col-title {
  font-size: 0.86rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    max-width: 580px;
    margin: 0 auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-hairline);
    transform: translateY(-150%);
    transition: transform var(--transition-smooth);
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-actions .btn-nav-cta {
    display: none;
  }

  .hero-section {
    padding-top: 90px;
    padding-bottom: 50px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .skills-tabs, .projects-filter {
    flex-wrap: wrap;
    justify-content: center;
  }

  .modal-spec-grid {
    grid-template-columns: 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
