/* ─────────────────────────────────────────────────────────────
   DESIGN SYSTEM (COMPACT & HIGH-CONTRAST LIGHT THEME)
   ───────────────────────────────────────────────────────────── */
:root {
  --bg-light: #f5f5f7;
  --bg-white: #ffffff;
  --border-color: rgba(0, 0, 0, 0.05);
  --border-hover: rgba(0, 0, 0, 0.12);
  --text-primary: #1d1d1f;
  --text-secondary: #86868b;
  --accent-blue: #0071e3;
  --accent-blue-hover: #147ce5;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-pill: 980px;
  --radius-card: 20px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  
  --shadow-subtle: 0 8px 30px rgba(0, 0, 0, 0.015), 0 1px 4px rgba(0, 0, 0, 0.005);
  --shadow-hover: 0 18px 45px rgba(0, 0, 0, 0.04), 0 3px 10px rgba(0, 0, 0, 0.01);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-light);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-light);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.22);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: rgba(245, 245, 247, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: 860px;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 2px;
  position: relative;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px;
  border-radius: 30px;
  border: 1px solid rgba(0, 0, 0, 0.01);
}

.nav-pill {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 30px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.2s ease, background-color 0.25s ease, transform 0.15s ease;
}

.nav-pill:hover, .nav-pill.active {
  color: var(--text-primary);
}

.nav-pill:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.04);
}

.nav-pill:active {
  transform: scale(0.96);
}

.nav-indicator {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  background: var(--bg-white);
  border-radius: 30px;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), 
              width 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.nav-cta-btn {
  background: var(--text-primary);
  color: var(--bg-white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.nav-cta-btn:hover {
  opacity: 0.9;
}
.nav-cta-btn:active {
  transform: scale(0.96);
}

/* Page Layout Container */
.app-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 24px 100px 24px;
}

.content-area {
  width: 100%;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 120px; /* Space between sections */
}

/* ─────────────────────────────────────────────────────────────
   SECTION STRUCTURAL ELEMENTS (CENTERED STACK)
   ───────────────────────────────────────────────────────────── */
.page-section {
  width: 100%;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  scroll-margin-top: 60px;
}

.hero-section {
  min-height: 80vh;
}

.section-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "<";
  margin-right: 6px;
}

.eyebrow::after {
  content: ">";
  margin-left: 6px;
}


/* Massive Title, Compact Description */
.headline {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  margin-bottom: 20px;
  max-width: 760px;
}

.title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 12px;
  max-width: 640px;
}

.description {
  font-size: clamp(0.98rem, 1.8vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 580px;
}

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

/* Apple Buttons */
.apple-btn-primary {
  background: var(--text-primary);
  color: var(--bg-white);
  font-size: 0.9rem;
  font-weight: 600;
  height: 42px;
  padding: 0 24px;
  box-sizing: border-box;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: 1px solid var(--text-primary);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}
.apple-btn-primary:hover {
  background-color: #2c2c2e;
  border-color: #3a3a3c;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.apple-btn-primary:active {
  transform: scale(0.97);
}
.apple-btn-primary.copy-success {
  background-color: #30d158 !important;
  border-color: #30d158 !important;
  color: #ffffff !important;
}

#copy-email-btn {
  font-size: 1.05rem;
  height: 50px;
  padding: 0 32px;
}
.apple-btn-primary i {
  font-size: 1.05rem;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  line-height: 1;
}
.btn-arrow {
  transition: transform 0.2s ease;
}
.apple-btn-primary:hover .btn-arrow {
  transform: translateY(2px);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Social icons under contact buttons */
.social-icons-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 0;
}
.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.social-icon-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
}
.social-icon-btn.li-hover:hover {
  background-color: #0077b5;
  border-color: #0077b5;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.2);
}
.social-icon-btn.dc-hover:hover {
  background-color: #5865f2;
  border-color: #5865f2;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.25);
}
.social-icon-btn.gh-hover:hover {
  background-color: #24292e;
  border-color: #24292e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(36, 41, 46, 0.2);
}
.social-icon-btn.tg-hover:hover {
  background-color: #229ed9;
  border-color: #229ed9;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 158, 217, 0.25);
}
.social-icon-btn:active {
  transform: scale(0.93);
}


.apple-link-action {
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}
.apple-link-action:hover {
  color: var(--accent-blue-hover);
}
.apple-link-action .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}
.apple-link-action:hover .arrow {
  transform: translateX(3px);
}

/* Visual Wrapper */
.visual-wrapper {
  width: 100%;
  max-width: 620px;
  margin-top: 10px;
}

/* ─────────────────────────────────────────────────────────────
   COMPACT SKILLS PANEL
   ───────────────────────────────────────────────────────────── */
.compact-skills-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-subtle);
  width: 100%;
  text-align: left;
}

.widget-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 20px;
}

.compact-skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.compact-skill-item {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
}

.compact-skill-item.large {
  grid-column: span 2; /* Large Skills span full width */
}

.compact-skill-item.small {
  grid-column: span 1; /* Small Skills span half width */
}

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

.skill-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.skill-pct {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
}

/* Slim progress loader */
.progress-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--text-primary);
  width: 0%;
  border-radius: 4px;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.compact-skill-item:hover .progress-bar-fill {
  background: var(--accent-blue);
}

/* ─────────────────────────────────────────────────────────────
   WORKS GRID (SIZE CONTRAST)
   ───────────────────────────────────────────────────────────── */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.work-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: left;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.work-card.large {
  grid-column: span 2; /* Large job milestones span full width */
}

.work-card.small {
  grid-column: span 1; /* Smaller job milestones span half width */
}

.work-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.work-date {
  font-weight: 700;
  color: var(--accent-blue);
}

.work-company {
  font-weight: 700;
  color: var(--text-secondary);
}

.work-role {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.work-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ─────────────────────────────────────────────────────────────
   GITHUB GRID (SIZE CONTRAST)
   ───────────────────────────────────────────────────────────── */
.repos-contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
}

.repo-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 24px;
  text-decoration: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 160px;
}

.repo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.repo-card.large {
  grid-column: span 2; /* Large Repository spans full width */
  min-height: 140px;
}

.repo-card.small {
  grid-column: span 1; /* Small Repository spans half width */
}

.repo-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.repo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.repo-stars {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.repo-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
  flex-grow: 1;
}

.repo-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.repo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.repo-badge {
  background: rgba(0,0,0,0.03);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.02);
}

/* ─────────────────────────────────────────────────────────────
   CONTACT BADGES
   ───────────────────────────────────────────────────────────── */
.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}

.contact-link-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.contact-link-item strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.contact-btn-link {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 600;
}

/* Footer Section */
.app-footer {
  border-top: 1px solid var(--border-color);
  padding: 28px 0;
  margin-top: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────
   SCROLL REVEALS & INTRO FADES
   ───────────────────────────────────────────────────────────── */
.fade-up-init {
  opacity: 0;
  transform: translateY(15px) scale(0.99);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.eyebrow.fade-up-active { transition-delay: 0.05s; }
.headline.fade-up-active { transition-delay: 0.12s; }
.description.fade-up-active { transition-delay: 0.2s; }
.visual-wrapper.fade-up-active { transition-delay: 0.28s; }

.scroll-reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Projects Showcase Masonry Grid */
.projects-grid {
  display: block;
  column-count: 3;
  column-gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.project-card {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 24px;
  text-align: left;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 0;
  box-shadow: var(--shadow-subtle);
  box-sizing: border-box;
  overflow: visible;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}

.project-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--border-color);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Card formats for Pinterest chaos */
.project-card.format-vertical .project-image-container {
  aspect-ratio: 3 / 4;
  border-radius: 19px 19px 0 0;
}
.project-card.format-square .project-image-container {
  aspect-ratio: 1 / 1;
  border-radius: 19px 19px 0 0;
}
.project-card.format-horizontal .project-image-container {
  aspect-ratio: 16 / 10;
  border-radius: 19px 19px 0 0;
}

.project-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-image {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Metadata below the image */
.project-meta {
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}



.project-meta-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.project-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin: 0;
  max-width: 100%;
}

.project-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0;
}

.project-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Secondary Button Style for Dynamic Card Links */
.apple-btn-secondary {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.apple-btn-secondary:hover {
  background-color: #e5e5e7;
  border-color: rgba(0, 0, 0, 0.15);
}

.apple-btn-secondary:active {
  transform: scale(0.95);
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN (APPLE GRID SPECIFICATION)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-container {
    padding: 70px 16px 0 16px;
  }
  
  .page-section {
    min-height: 65vh;
    padding: 40px 0;
  }

  .headline {
    font-size: 2.1rem;
    line-height: 1.1;
    margin-bottom: 16px;
  }

  .title {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .description {
    font-size: 1rem;
    line-height: 1.5;
  }


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

  .compact-skill-item.small, .compact-skill-item.large {
    grid-column: span 1;
  }

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

  .work-card.small, .work-card.large {
    grid-column: span 1;
  }

  .repos-contrast-grid {
    grid-template-columns: 1fr;
  }

  .repo-card.small, .repo-card.large {
    grid-column: span 1;
  }

  .projects-grid {
    column-count: 2;
    column-gap: 16px;
    margin-bottom: 30px;
  }

  .app-footer {
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .projects-grid {
    column-count: 1;
    margin-bottom: 24px;
  }
}



