/*
 * csz Portfolio
 * Minimal, clean aesthetic inspired by cswxyz.github.io
 */

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

:root {
  /* Clean white */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-tertiary: #EBEBEB;
  --bg-card: #FFFFFF;

  /* Black text */
  --text-primary: #000000;
  --text-secondary: #333333;
  --text-muted: #666666;

  /* Black accent */
  --accent: #000000;
  --accent-hover: #333333;

  /* Gray borders */
  --border: #E0E0E0;
  --border-hover: #CCCCCC;

  --success: #4A6A4E;

  /* Main accent colors */
  --brown: #000000;
  --brown-light: #333333;
  --brown-dark: #000000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: var(--text-secondary);
  color: var(--bg-primary);
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--brown) 0%, var(--brown-light) 100%);
  z-index: 1001;
  transition: width 0.1s ease-out;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand img.nav-cross {
  width: 28px;
  height: auto;
  opacity: 0.85;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--brown);
  border-color: var(--brown);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

/* Hero */
.hero {
  padding-top: 5rem;
  padding-bottom: 0;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  z-index: 10;
}

.hero-cowboy {
  width: 100%;
  border-bottom: 20px solid #000000;
}

.hero-cowboy img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.75rem;
}

.profile-image {
  background: none;
  border: none;
  box-shadow: none;
  margin-bottom: 1rem;
}

.profile-image img {
  width: 80px;
  height: auto;
  object-fit: contain;
  border: none;
  background: none;
  box-shadow: none;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.bio {
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin: 0;
}

.hero-action {
  margin-top: 1.5rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  gap: 2rem;
}

.project-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 12px rgba(114, 47, 55, 0.1);
}

.project-preview {
  border-radius: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-preview img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

.preview-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 0;
}

.course-preview {
  background: linear-gradient(135deg, #1a0a2e 0%, #09090b 100%);
  position: relative;
}

.course-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(45deg, transparent 48%, #a855f7 48%, #a855f7 52%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, #a855f7 48%, #a855f7 52%, transparent 52%);
  background-size: 30px 30px;
  opacity: 0.1;
}

.event-preview {
  background: linear-gradient(135deg, #5C4A3D 0%, #8B7355 100%);
  position: relative;
}

.event-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
}

.sesa-preview {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
  position: relative;
}

.sesa-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 30px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 4px;
}

.bakery-preview {
  background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);
  position: relative;
}

.bakery-preview::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 2px dashed rgba(0,0,0,0.15);
  border-radius: 8px;
}

.tracer-preview {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.tracer-preview::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 2px solid rgba(59, 130, 246, 0.5);
  border-radius: 50%;
}

.tracer-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: rgba(59, 130, 246, 0.3);
  border-radius: 50%;
}

.guitar-preview {
  background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #7c2d12 100%);
  position: relative;
}

.guitar-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.rl-preview {
  background: linear-gradient(135deg, #14532d 0%, #22c55e 50%, #14532d 100%);
  position: relative;
}

.rl-preview::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 4px;
}

.chip8-preview {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
}

.chip8-preview::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 40px;
  border: 2px solid rgba(0, 255, 136, 0.4);
}

.chip8-preview::after {
  content: '';
  position: absolute;
  top: calc(50% - 8px);
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  background: rgba(0, 255, 136, 0.6);
}

.regression-preview {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  position: relative;
}

.regression-preview::before {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 20%;
  width: 60%;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(-20deg);
}

.regression-preview::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: rgba(251, 191, 36, 0.8);
  box-shadow:
    -20px 10px 0 rgba(251, 191, 36, 0.6),
    15px -8px 0 rgba(251, 191, 36, 0.6),
    -10px -15px 0 rgba(251, 191, 36, 0.6),
    25px 5px 0 rgba(251, 191, 36, 0.6);
}

.preview-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(59, 130, 245, 0.9);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 0;
}

.project-card.featured {
  border-color: var(--border-hover);
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
}

.project-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.project-info {
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-muted);
}

.project-links {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: inherit;
  border: 1px solid;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--brown);
  border-color: var(--brown);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--brown);
  color: var(--brown);
}

.btn-secondary:hover {
  background: var(--brown);
  border-color: var(--brown);
  color: #ffffff;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
}

/* Showcases */
.showcases-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.showcase-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.showcase-item:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(114, 47, 55, 0.1);
}

.showcase-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 0;
}

.showcase-icon svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.showcase-info {
  flex: 1;
}

.showcase-info h3 {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 0.125rem;
}

.showcase-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.showcase-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: transform 0.2s;
}

.showcase-item:hover .showcase-arrow {
  transform: translateX(4px);
}

/* CTA Section */
.cta-section {
  border-top: 1px solid var(--border);
}

.cta-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cta-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Top Banner */
.top-banner {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #000000;
  height: 20px;
  z-index: 1001;
  transition: background 0.2s;
}

.top-banner:hover {
  background: #333333;
}

/* Footer Banner */
.footer-banner {
  display: block;
  background: #000000;
  height: 20px;
  transition: background 0.2s;
}

.footer-banner:hover {
  background: #333333;
}

/* Footer */
.footer {
  padding: 2rem 0;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-divider {
  color: var(--text-muted);
}

.footer-year {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-contact a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--text-primary);
}

.footer-contact .github-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-contact .github-link svg {
  width: 14px;
  height: 14px;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contact-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(114, 47, 55, 0.1);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 0;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

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

.contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.contact-value {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.contact-cta {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.contact-cta p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero .container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 1rem;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 1rem;
  }

  .bio {
    max-width: none;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-preview {
    max-width: 300px;
    margin: 0 auto;
  }

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

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-contact {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-contact .footer-divider {
    display: none;
  }

    .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .navbar .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Work Split - Frontend/Backend Cards */
.work-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.work-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(114, 47, 55, 0.12);
}

.work-card-preview {
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
}

.work-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.work-card:hover .work-card-preview img {
  transform: scale(1.05);
}

.dashboard-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-muted);
}

.dashboard-iframe-preview {
  width: 300%;
  height: 300%;
  border: none;
  transform: scale(0.333);
  transform-origin: top left;
  pointer-events: none;
}

.work-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.work-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.work-card.frontend .work-card-label {
  color: var(--brown);
}

.work-card.backend .work-card-label {
  color: var(--brown-dark);
}

.work-card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.work-card-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.work-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.work-features li {
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  background: var(--bg-tertiary);
  border-radius: 0;
  color: var(--text-muted);
}

.work-card-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.work-card-link::after {
  content: '\2192';
  transition: transform 0.2s ease;
}

.work-card:hover .work-card-link::after {
  transform: translateX(4px);
}

.work-cta {
  text-align: center;
  padding-top: 1rem;
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.process-step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.process-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brown);
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 600;
}

.process-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Testimonial */
.testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem 0;
}

.testimonial blockquote {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-weight: 600;
  color: var(--brown);
}

.author-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Divider Scene */
.divider-scene {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: -1px 0;
}

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

/* Cowboy Scene */
.cowboy-scene {
  background: var(--bg-primary);
  padding: 0;
  margin: 0;
}

.cowboy-scene .divider-img {
  width: 100%;
  max-width: none;
  display: block;
  border: none;
  background: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .work-split {
    grid-template-columns: 1fr;
  }

  .work-card-preview {
    height: 150px;
  }
}
