/* ========================================
   Jeff Fenchel - Personal Site
   Modern, clean design with Tahoe vibes
   ======================================== */

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

:root {
  --color-bg: #0a0a0f;
  --color-surface: #12121a;
  --color-surface-alt: #1a1a26;
  --color-text: #e8e8ed;
  --color-text-muted: #8888a0;
  --color-accent: #4a9eff;
  --color-accent-glow: rgba(74, 158, 255, 0.15);
  --color-warm: #f0a050;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --container-max: 1200px;
  --section-padding: clamp(4rem, 10vw, 8rem);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--color-warm);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* --- Navigation --- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#nav.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text) !important;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

/* --- Hero --- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.3) 0%,
    rgba(10, 10, 15, 0.1) 40%,
    rgba(10, 10, 15, 0.5) 70%,
    rgba(10, 10, 15, 0.95) 100%
  );
}

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

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  animation: float 2.5s ease-in-out infinite;
  transition: color 0.3s;
}

.hero-scroll:hover {
  color: rgba(255, 255, 255, 0.9);
}

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

/* --- Section Headings --- */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-label.center,
.section-title.center {
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: 2rem;
}

/* --- About --- */
#about {
  padding: var(--section-padding) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 1;
  object-fit: cover;
}

.about-text p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* --- Adventures --- */
#adventures {
  padding: var(--section-padding) 0;
  background: var(--color-surface);
}

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

.adventure-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.adventure-card.large {
  grid-column: span 2;
}

.adventure-card.tall {
  grid-row: span 2;
  aspect-ratio: auto;
  background: #0d0d14;
}

.adventure-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.adventure-card.tall img {
  object-fit: contain;
}

.adventure-card:hover img {
  transform: scale(1.06);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s;
}

.adventure-card:hover .card-overlay {
  opacity: 1;
}

.card-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.card-overlay p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Parallax Break --- */
.parallax-break {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-break img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  transform: translateY(-10%);
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.6);
}

.parallax-text {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 2rem;
}

.parallax-text blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.parallax-text cite {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  font-style: normal;
  color: var(--color-text-muted);
}

/* --- Professional --- */
#professional {
  padding: var(--section-padding) 0;
}

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

.skill-card {
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 2.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card:hover {
  border-color: rgba(74, 158, 255, 0.2);
  background: var(--color-surface-alt);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.skill-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--color-accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.skill-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.skill-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.tech-stack {
  margin-top: 4rem;
  text-align: center;
}

.tech-stack h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tech-tags span {
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: all 0.3s;
  cursor: default;
}

.tech-tags span:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-glow);
}

/* --- Contact --- */
#contact {
  padding: var(--section-padding) 0;
  background: var(--color-surface);
  text-align: center;
}

.contact-subtitle {
  max-width: 550px;
  margin: 0 auto 2.5rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  color: var(--color-text) !important;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
}

.contact-btn:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-glow);
  transform: translateY(-2px);
}

/* --- Footer --- */
footer {
  padding: 2rem 0;
  text-align: center;
}

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

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Responsive --- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    max-width: 350px;
    margin: 0 auto;
  }

  .about-stats {
    justify-content: center;
  }

  .adventures-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .adventure-card.large {
    grid-column: span 2;
  }

  .adventure-card.tall {
    grid-row: span 2;
    aspect-ratio: auto;
  }

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

@media (max-width: 600px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 999;
  }

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

  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

  .adventure-card.large {
    grid-column: span 1;
  }

  .adventure-card.tall {
    grid-row: span 1;
    aspect-ratio: 3/4;
  }

  .card-overlay {
    opacity: 1;
  }

  .about-stats {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .hero-name {
    font-size: clamp(2.5rem, 12vw, 4rem);
  }
}
