/* =============================================
   Jonathan Boeke — jonathanboeke.com
   Aesthetic: Refined Naturalist
   ============================================= */

:root {
  --primary: #336600;
  --primary-dark: #264d00;
  --primary-glow: rgba(51, 102, 0, 0.15);
  --hover: #824027;
  --text: #2b2d2e;
  --text-secondary: #5a6068;
  --bg: #f4f3ee;
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(51, 102, 0, 0.1);
  --border: #ddd9d0;
  --white-overlay: rgba(255, 255, 255, 0.45);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --max-width: 920px;
}


/* =============================================
   Reset & Base
   ============================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: url('../img/topography.png');
  background-attachment: fixed;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =============================================
   Typography
   ============================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Saira Extra Condensed', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.05;
}

h2 {
  font-size: 2.6rem;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

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

a:hover,
a:focus {
  color: var(--hover);
}

::selection {
  background: var(--primary);
  color: #fff;
}


/* =============================================
   Hero
   ============================================= */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.hero-inner {
  max-width: var(--max-width);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  justify-items: center;
}

.hero-photo {
  animation: heroEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow:
    0 0 0 8px var(--primary-glow),
    var(--shadow-md);
  display: block;
}

.hero-text {
  text-align: center;
  animation: heroEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
  opacity: 0;
}

.hero-name {
  font-size: 4rem;
  line-height: 0.88;
  margin-bottom: 0.75rem;
}

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

.hero-tagline {
  font-family: 'Saira Extra Condensed', sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.75;
}

.btn-cta {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.btn-cta:hover,
.btn-cta:focus {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 102, 0, 0.25);
}

@media (min-width: 768px) {
  .hero {
    padding: 4rem 2rem;
  }

  .hero-inner {
    grid-template-columns: auto 1fr;
    gap: 4rem;
    justify-items: start;
  }

  .profile-img {
    width: 220px;
    height: 220px;
  }

  .hero-text {
    text-align: left;
  }

  .hero-name {
    font-size: 5.5rem;
  }

  .hero-intro {
    margin-left: 0;
    margin-right: 0;
  }
}


/* =============================================
   Sections
   ============================================= */

.section {
  padding: 4.5rem 1.5rem;
}

.section-alt {
  background: var(--white-overlay);
}

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

.section-title {
  margin-bottom: 2.25rem;
  position: relative;
  padding-bottom: 0.65rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 44px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

@media (min-width: 768px) {
  .section {
    padding: 5.5rem 2rem;
  }
}


/* =============================================
   Tech Tags
   ============================================= */

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tech-tags span {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  backdrop-filter: blur(6px);
  transition: all 0.2s ease;
}

.tech-tags span:hover {
  color: var(--primary);
  border-color: var(--primary);
}


/* =============================================
   Card Grid
   ============================================= */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(51, 102, 0, 0.18);
}

.card:hover::before {
  transform: scaleY(1);
}

.card h3 {
  margin-bottom: 0.6rem;
  color: var(--text);
}

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

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* =============================================
   Project List
   ============================================= */

.project-list {
  list-style: none;
}

.project-list li {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: padding-left 0.2s ease;
}

.project-list li:first-child {
  padding-top: 0;
}

.project-list li:last-child {
  border-bottom: none;
}

.project-list li:hover {
  padding-left: 0.5rem;
}

.project-list li strong {
  font-family: 'Saira Extra Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--primary);
  transition: color 0.2s ease;
}

.project-list li:hover strong {
  color: var(--hover);
}

.project-list li span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.more-link {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.more-link a {
  font-weight: 600;
}


/* =============================================
   Resume
   ============================================= */

.resume-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(51, 102, 0, 0.2);
}


/* =============================================
   Social / Connect
   ============================================= */

.social-links {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 1.3rem;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(6px);
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(51, 102, 0, 0.25);
}

.contact-info {
  font-size: 0.95rem;
  color: var(--text-secondary);
}


/* =============================================
   Footer
   ============================================= */

.site-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  letter-spacing: 0.02em;
}


/* =============================================
   Animations
   ============================================= */

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-text {
    opacity: 1;
  }
}
