/* ==========================================================================
   Travis Jones — Developer Portfolio Theme
   main.css — Complete Design System
   Desert sunset theme — deep purples, warm oranges, sandy tones
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Backgrounds — deep indigo/purple night sky */
  --bg-primary: #0d0a14;
  --bg-secondary: #15101f;
  --bg-card: #1e1529;
  --bg-card-hover: #291d36;

  /* Accent Colors — sunset orange & warm red */
  --accent-primary: #e8693c;
  --accent-secondary: #c44a2a;
  --accent-glow: rgba(232, 105, 60, 0.15);

  /* Text Colors — warm sand & dusty rose */
  --text-primary: #f0e4d8;
  --text-secondary: #b8998e;
  --text-muted: #7a5e68;

  /* Borders — purple tones */
  --border: #2e1e3a;
  --border-accent: #e8693c33;

  /* Code — dark purple bg, sunset orange text */
  --code-bg: #130d1c;
  --code-text: #e8693c;

  /* Spacing */
  --nav-height: 64px;
  --container-max: 1200px;
  --section-padding: 80px;
  --card-radius: 8px;
}


/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

code,
pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: var(--code-bg);
  color: var(--code-text);
}

code {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

pre {
  padding: 16px;
  border-radius: var(--card-radius);
  overflow-x: auto;
}


/* ==========================================================================
   3. Scrollbar Styling
   ========================================================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-secondary) var(--bg-primary);
}


/* ==========================================================================
   4. Selection Highlight
   ========================================================================== */

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

::-moz-selection {
  background: var(--accent-primary);
  color: var(--bg-primary);
}


/* ==========================================================================
   5. Background Texture (Subtle Dot Grid)
   ========================================================================== */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle, var(--text-muted) 1px, transparent 1px);
  background-size: 24px 24px;
}


/* ==========================================================================
   6. Container & Layout Utilities
   ========================================================================== */

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}


/* ==========================================================================
   7. Navigation (.site-nav)
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Solid background when scrolled (JS adds .scrolled class) */
.site-nav.scrolled {
  background-color: var(--bg-primary);
  border-bottom-color: var(--border);
}

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

/* Logo / Site Title */
.nav-logo {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

.nav-logo .logo-accent {
  color: var(--accent-primary);
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

.nav-menu a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

.nav-menu a.active {
  color: var(--accent-primary);
}

/* Hamburger Toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger to X transition */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 0;
  }

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

  .nav-menu a {
    display: block;
    padding: 12px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }
}


/* ==========================================================================
   8. Hero Section (.hero-section)
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Particle canvas background */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

/* Hero Title */
.hero-title {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow:
    0 0 20px rgba(232, 105, 60, 0.3),
    0 0 60px rgba(232, 105, 60, 0.1);
}

/* Hero Subtitle with Typing Cursor */
.hero-subtitle {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  min-height: 2em;
  line-height: 1.5;
}

/* Blinking cursor for typed text */
.typing-cursor {
  display: inline-block;
  border-right: 2px solid var(--accent-primary);
  margin-left: 2px;
  animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { border-color: var(--accent-primary); }
  50% { border-color: transparent; }
}

/* CTA Buttons Row */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.5;
  color: var(--accent-primary);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}


/* ==========================================================================
   9. Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}

.btn:hover {
  text-decoration: none;
}

/* Primary Button */
.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.btn-primary:hover {
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(232, 105, 60, 0.1);
  transform: translateY(-2px);
  color: var(--bg-primary);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}


/* ==========================================================================
   10. Sections (General)
   ========================================================================== */

.section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding) 0;
}

/* Alternate section backgrounds */
.section:nth-child(even) {
  background-color: var(--bg-secondary);
}

.section:nth-child(odd) {
  background-color: var(--bg-primary);
}

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}


/* ==========================================================================
   11. Section Titles
   ========================================================================== */

.section-title {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: lowercase;
  margin-bottom: 60px;
  letter-spacing: 0.02em;
}

.section-title .comment-slash {
  color: var(--accent-primary);
  margin-right: 8px;
}


/* ==========================================================================
   12. Cards
   ========================================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.card-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--accent-primary);
}

.card-title {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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


/* ==========================================================================
   13. Cards Grid
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ==========================================================================
   14. About Section (.about-section)
   ========================================================================== */

.about-section .about-bio {
  max-width: 720px;
  margin: 0 auto 48px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
}


/* ==========================================================================
   15. Timeline (.timeline) — Experience Section
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: 32px;
}

/* Vertical line */
.timeline-line {
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

/* Individual timeline item */
.timeline-item {
  position: relative;
  padding-left: 32px;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Timeline dot */
.timeline-dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  z-index: 1;
}

/* Timeline content area */
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  padding: 24px;
  transition: border-color 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--border-accent);
}

/* Timeline header */
.timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.timeline-role {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.timeline-company {
  color: var(--text-secondary);
  font-size: 1rem;
}

.timeline-date {
  display: inline-block;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  background: var(--code-bg);
  color: var(--accent-primary);
  padding: 2px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

/* Timeline details list */
.timeline-details {
  margin-top: 12px;
}

.timeline-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.timeline-details li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* Desktop alternating timeline layout */
@media (min-width: 1024px) {
  .timeline {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    width: 100%;
    display: flex;
    padding-left: 0;
  }

  .timeline-dot {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Odd items: content on left */
  .timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: calc(50% + 32px);
  }

  .timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
  }

  .timeline-item:nth-child(odd) .timeline-header {
    justify-content: flex-end;
  }

  .timeline-item:nth-child(odd) .timeline-details li {
    text-align: right;
    padding-left: 0;
    padding-right: 20px;
  }

  .timeline-item:nth-child(odd) .timeline-details li::before {
    left: auto;
    right: 0;
  }

  /* Even items: content on right */
  .timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: calc(50% + 32px);
  }
}


/* ==========================================================================
   16. Portfolio Section (.portfolio-section)
   ========================================================================== */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

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

/* Project Card */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-4px);
}

/* Project Thumbnail */
.project-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-thumbnail img {
  transform: scale(1.05);
}

/* Placeholder for projects without images */
.project-placeholder {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 2rem;
  opacity: 0.5;
}

/* Project Content */
.project-content {
  padding: 24px;
}

.project-title {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Tech Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tech-tag {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  padding: 4px 12px;
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  color: var(--accent-secondary);
  background: transparent;
  transition: background 0.3s ease;
}

.tech-tag:hover {
  background: var(--accent-glow);
}

/* Project Link */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  margin-top: 16px;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.project-link:hover {
  gap: 10px;
  text-decoration: none;
}

.project-link::after {
  content: '\2192';
  transition: transform 0.3s ease;
}

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


/* ==========================================================================
   17. Gallery Section (.gallery-section)
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 200px;
  }

  /* Masonry-like effect: some items span two rows */
  .gallery-grid .gallery-item:nth-child(3n+1) {
    grid-row: span 2;
  }
}

/* Gallery Item */
.gallery-item {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Hover Overlay */
.gallery-item::after {
  content: 'View';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 13, 0.7);
  color: var(--accent-primary);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Gallery Placeholder (for items without images) */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
}

.gallery-placeholder:nth-child(2n) {
  min-height: 260px;
}

.gallery-placeholder:nth-child(3n) {
  min-height: 320px;
}

/* Gallery Caption */
.gallery-caption {
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  padding: 8px;
  text-align: center;
}


/* ==========================================================================
   18. Lightbox (.lightbox)
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 2rem;
  cursor: pointer;
  transition: text-shadow 0.3s ease;
  line-height: 1;
  z-index: 2001;
}

.lightbox-close:hover {
  text-shadow: 0 0 12px var(--accent-glow);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-caption {
  text-align: center;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  margin-top: 16px;
}


/* ==========================================================================
   19. Contact Section (.contact-section)
   ========================================================================== */

.contact-intro {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 48px;
  text-align: center;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

/* Honeypot spam protection */
.honeypot {
  display: none;
}

/* Form Feedback Messages */
.form-success {
  padding: 14px 20px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  background: rgba(232, 105, 60, 0.1);
  border: 1px solid var(--accent-secondary);
  color: var(--accent-primary);
  margin-top: 16px;
}

.form-error {
  padding: 14px 20px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  background: rgba(224, 0, 60, 0.1);
  border: 1px solid #e0003c;
  color: #ff4d6d;
  margin-top: 16px;
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.social-links a {
  color: var(--text-secondary);
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--accent-primary);
  transform: translateY(-2px);
  text-decoration: none;
}

.social-links svg {
  width: 24px;
  height: 24px;
}


/* ==========================================================================
   20. Footer (.site-footer)
   ========================================================================== */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-tagline {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 767px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}


/* ==========================================================================
   21. Scroll Animations
   ========================================================================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for child elements */
.fade-in-up:nth-child(2) {
  transition-delay: 0.1s;
}

.fade-in-up:nth-child(3) {
  transition-delay: 0.2s;
}

.fade-in-up:nth-child(4) {
  transition-delay: 0.3s;
}

.fade-in-up:nth-child(5) {
  transition-delay: 0.4s;
}


/* ==========================================================================
   22. Utility Classes
   ========================================================================== */

/* Screen reader only — visually hidden, accessible to assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent {
  color: var(--accent-primary);
}

.text-center {
  text-align: center;
}

.monospace {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}


/* ==========================================================================
   23. Responsive Breakpoints
   ========================================================================== */

/* --- Mobile (default, < 768px) --- */

.hero-title {
  font-size: clamp(2rem, 8vw, 2.5rem);
}

.section {
  padding: 60px 0;
}

.section-title {
  margin-bottom: 36px;
}


/* --- Tablet (>= 768px) --- */

@media (min-width: 768px) {
  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    margin-bottom: 48px;
  }
}


/* --- Desktop (>= 1024px) --- */

@media (min-width: 1024px) {
  .hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
  }

  .section {
    padding: 100px 0;
  }

  .section-title {
    margin-bottom: 60px;
  }

  .nav-menu {
    gap: 36px;
  }
}


/* --- Large screens (>= 1280px) --- */

@media (min-width: 1280px) {
  .container,
  .nav-container,
  .section-inner,
  .footer-content {
    max-width: 1200px;
  }
}


/* ==========================================================================
   24. Inner Pages (404, Single Project, Generic Page)
   ========================================================================== */

/* Content area wrapper — adds top padding to clear fixed nav */
.content-area {
  padding-top: calc(var(--nav-height) + 48px);
  padding-bottom: var(--section-padding);
  min-height: 80vh;
}

/* Generic page & single project title */
.content-area .page-title,
.content-area .project-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* WordPress content area */
.entry-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 800px;
}

.entry-content p {
  margin-bottom: 1.25em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--text-primary);
  margin-top: 2em;
  margin-bottom: 0.75em;
}

.entry-content ul,
.entry-content ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.entry-content li {
  margin-bottom: 0.5em;
  color: var(--text-secondary);
}

.entry-content a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.entry-content img {
  border-radius: var(--card-radius);
  margin: 1.5em 0;
}

.entry-content blockquote {
  border-left: 3px solid var(--accent-primary);
  padding-left: 1.5em;
  margin: 1.5em 0;
  color: var(--text-muted);
  font-style: italic;
}

/* --- 404 Page --- */
.error-404-area {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 80vh;
}

.error-404__code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.15;
}

.error-404__message {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.error-404__suggestion {
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Single Project --- */
.single-project-area .project-nav {
  margin-bottom: 32px;
}

.back-link {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  color: var(--accent-primary);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.back-link:hover {
  opacity: 0.7;
  text-decoration: none;
}

.project-featured-image {
  margin-bottom: 32px;
  border-radius: var(--card-radius);
  overflow: hidden;
}

.project-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.project-header {
  margin-bottom: 24px;
}

.project-excerpt {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-top: 8px;
}

.tech-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tech-pill {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  padding: 4px 14px;
  border: 1px solid var(--border-accent);
  border-radius: 4px;
  color: var(--accent-secondary);
  background: transparent;
}

.project-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* --- Gallery Notice --- */
.gallery-notice {
  text-align: center;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* --- Gallery Placeholder Icon --- */
.gallery-placeholder-icon {
  color: var(--text-muted);
  opacity: 0.4;
}


/* ==========================================================================
   About Photo
   ========================================================================== */

.about-photo-wrapper {
    text-align: center;
    margin-bottom: 32px;
}

.about-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

@media (min-width: 768px) {
    .about-photo {
        width: 220px;
        height: 220px;
    }
}


/* ==========================================================================
   25. Print Styles
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body::before {
    display: none;
  }

  .site-nav,
  .site-footer,
  .hero-particles,
  .scroll-indicator,
  .lightbox,
  .nav-toggle {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
    padding: 24px 0;
  }

  .section {
    padding: 24px 0;
    page-break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
  }

  .card,
  .project-card,
  .timeline-content {
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }

  img {
    max-width: 100% !important;
  }
}


/* ==========================================================================
   25. Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in-up {
    opacity: 1;
    transform: none;
  }

  .scroll-indicator {
    animation: none;
  }

  .gallery-item img,
  .project-thumbnail img {
    transition: none;
  }
}
