/* =========================================================
   Jackson Voigt Website - Shared Stylesheet
   Clean deterministic layout
========================================================= */

:root {
  --site-width: 1180px;
  --bg: #0b1110;
  --panel: rgba(17, 18, 22, 0.86);
  --panel-soft: rgba(255,255,255,0.04);
  --panel-border: rgba(255,255,255,0.09);
  --panel-border-hover: rgba(148,163,151,0.28);
  --text: #e7e9ec;
  --muted: #8f9299;
  --accent: #35df88;
  --accent-soft: #9cc8ae;
  --shadow: 0 24px 64px rgba(0,0,0,0.48);
  --radius: 20px;
}

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

html {
  width: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(53,223,136,0.07), transparent 36%),
    linear-gradient(180deg, #080d0b 0%, var(--bg) 100%);
  padding: 28px;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.wrap {
  width: min(var(--site-width), 100%);
  max-width: var(--site-width);
  margin-inline: auto;
  display: grid;
  gap: 22px;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.fade-up {
  animation: fadeUp 0.55s ease forwards;
  opacity: 0;
  transform: translateY(12px);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Navigation
========================================================= */

.nav {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(53,223,136,0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 12px;
  transition: 0.18s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.055);
}

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

.hero {
  width: 100%;
  min-height: 310px;
  padding: 56px 50px;
  display: grid;
  align-content: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at top left, black, transparent 70%);
}

.hero > *,
.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
}

.hero-text {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.hero-logo {
  width: clamp(120px, 16vw, 210px);
  height: clamp(120px, 16vw, 210px);
  object-fit: contain;
  opacity: 0.88;
}

.hero-label,
.section-label {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  max-width: 12ch;
  color: #f4f4f6;
}

.hero-bio,
.hero-text,
.hero-text p {
  color: var(--muted);
  max-width: 75ch;
  line-height: 1.8;
  font-size: 1.05rem;
}

/* =========================================================
   Sections and Cards
========================================================= */

.section,
.projects-section,
.skills-section,
.contact-section,
.services-section {
  width: 100%;
  padding: 34px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin-bottom: 26px;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--panel-border);
}

.snapshot-grid,
.projects-grid,
.links-grid,
.skills-groups,
.contact-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card,
.project-card,
.service-card,
.snapshot-card,
.contact-card {
  width: 100%;
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--panel-border);
  transition: 0.18s ease;
  text-decoration: none;
  color: inherit;
}

.card:hover,
.project-card:hover,
.service-card:hover,
.snapshot-card:hover,
.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--panel-border-hover);
  background: rgba(255,255,255,0.055);
}

.project-name,
.project-title,
.service-title,
.snapshot-title,
.contact-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.4;
}

p,
.card p,
.project-desc,
.service-desc,
.snapshot-text,
.contact-intro,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.98rem;
}

/* =========================================================
   Buttons / Tags / Pills
========================================================= */

.hero-actions,
.socials,
.project-tags,
.tag-row,
.pill-row,
.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn,
.service-btn,
.social-btn,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 10px;
  padding: 12px 17px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--panel-border);
  background: rgba(255,255,255,0.055);
  color: var(--text);
  transition: 0.18s ease;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover,
.service-btn:hover,
.social-btn:hover,
.contact-link:hover {
  transform: translateY(-2px);
  border-color: var(--panel-border-hover);
}

.btn.primary,
.service-btn.primary,
.service-btn {
  background: linear-gradient(135deg, #36df89 0%, #22c877 100%);
  color: #04120b;
  border-color: transparent;
  box-shadow: 0 16px 34px rgba(53,223,136,0.16);
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 105px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.pill {
  min-width: 135px;
  padding: 11px 16px;
  font-size: 0.9rem;
}

/* =========================================================
   Page-specific normalisation
========================================================= */

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

.contact-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.service-card {
  align-content: start;
}

footer {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  opacity: 0.75;
  font-size: 0.9rem;
  padding: 6px 2px 12px;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 860px) {
  body {
    padding: 18px;
  }

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

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding: 38px 28px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo {
    display: none;
  }

  .section,
  .projects-section,
  .skills-section,
  .contact-section,
  .services-section {
    padding: 24px;
  }

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

  footer {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  body {
    padding: 12px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }
}


/* =========================================================
   VISIBLE SITE ANIMATIONS
   Page fade, scroll reveal, hover lift, logo float, ambient glow
========================================================= */

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(53,223,136,0.12), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(156,200,174,0.10), transparent 30%),
    radial-gradient(circle at 42% 92%, rgba(255,255,255,0.05), transparent 34%);
  animation: ambientGlow 16s ease-in-out infinite alternate;
}

.wrap {
  position: relative;
  z-index: 1;
}

@keyframes ambientGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.45;
  }

  to {
    transform: translate3d(0, -28px, 0) scale(1.06);
    opacity: 0.75;
  }
}

/* Normal page-load fade for top content */
.nav,
.hero {
  animation: pageFadeUp 700ms ease both;
}

.hero {
  animation-delay: 120ms;
}

@keyframes pageFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal for below-fold sections */
.reveal {
  opacity: 0 !important;
  transform: translateY(34px) !important;
  transition:
    opacity 850ms ease,
    transform 850ms ease;
  will-change: opacity, transform;
}

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

/* Obvious but still clean hover movement */
.glass,
.card,
.project-card,
.service-card,
.snapshot-card,
.contact-card,
.social-btn,
.btn,
.service-btn,
.pill,
.tag {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.card:hover,
.project-card:hover,
.service-card:hover,
.snapshot-card:hover,
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 78px rgba(0,0,0,0.42);
}

.btn:hover,
.service-btn:hover,
.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.32);
}

.pill:hover,
.tag:hover {
  transform: translateY(-2px);
  border-color: rgba(156,200,174,0.34);
  background: rgba(156,200,174,0.08);
}

.nav-logo,
.hero-logo {
  animation: logoFloat 5.5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* A small live accent for service/status style icons if used */
.status.online::before,
.dot {
  animation: statusPulse 2.2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 rgba(53,223,136,0);
  }

  50% {
    opacity: 0.65;
    box-shadow: 0 0 16px rgba(53,223,136,0.42);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
  }
}


/* Contact page alignment fix */
.contact-grid {
  display: grid;
  gap: 18px;
}

.contact-card {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.contact-card .btn {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =========================================================
   PROJECT CASE STUDY STRUCTURE
========================================================= */

.standard-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.standard-list li {
  padding-left: 4px;
}

.project-card {
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  cursor: pointer;
}


/* =========================================================
   PROJECTS HUB CARD FIX
========================================================= */

.project-card {
  text-decoration: none !important;
  color: inherit !important;
}

.project-card,
.project-card:visited,
.project-card:hover,
.project-card:active {
  color: inherit !important;
}

.project-card .project-name {
  color: var(--text) !important;
}

.project-card .project-desc {
  color: var(--muted) !important;
  text-decoration: none !important;
}

.project-card .tag {
  text-decoration: none !important;
}

.card-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
}

.project-card:hover .card-link {
  transform: translateX(3px);
}


/* =========================================================
   PROJECT PAGE CARD / LINK FIX
========================================================= */

.project-card,
.project-card:visited,
.project-card:hover,
.project-card:active {
  color: inherit !important;
  text-decoration: none !important;
}

.project-card a,
.card a {
  color: inherit;
}

.project-card .btn,
.card .btn {
  margin-top: 4px;
}

.project-card .project-name,
.card .project-name {
  color: var(--text) !important;
}

.project-card .project-desc,
.card p {
  color: var(--muted) !important;
}

.standard-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.standard-list li {
  padding-left: 4px;
}

.standard-list strong {
  color: var(--text);
}



/* =========================================================
   PROJECT BUTTON SPACING + GREEN BUTTONS
========================================================= */

.project-card .btn {
  margin-top: 18px;
}

.project-card .btn.secondary {
  background: linear-gradient(
    135deg,
    rgba(53,223,136,0.95),
    rgba(40,205,120,0.92)
  );

  color: #04110b !important;
  border: 1px solid rgba(53,223,136,0.28);
  box-shadow:
    0 10px 30px rgba(53,223,136,0.18),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.project-card .btn.secondary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 42px rgba(53,223,136,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Improve spacing in project cards */
.project-card .tag-row {
  margin-top: 14px;
}

.project-card .project-desc {
  margin-top: 10px;
  line-height: 1.7;
}


/* =========================================================
   PROJECT HUB ACTION BUTTON FIX
   Applies to the actual View Project buttons on /projects/
========================================================= */

.project-action,
.projects-grid .btn.project-action,
.projects-grid a.btn.project-action,
.section .projects-grid .project-card .project-action {
  margin-top: 18px !important;
  display: inline-flex !important;
  width: fit-content !important;
  align-items: center !important;
  justify-content: center !important;

  background: linear-gradient(
    135deg,
    rgba(53,223,136,0.96),
    rgba(40,205,120,0.94)
  ) !important;

  color: #04110b !important;
  border: 1px solid rgba(53,223,136,0.28) !important;
  box-shadow:
    0 10px 30px rgba(53,223,136,0.18),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;

  text-decoration: none !important;
}

.project-action:hover,
.projects-grid .btn.project-action:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 18px 42px rgba(53,223,136,0.28),
    inset 0 1px 0 rgba(255,255,255,0.10) !important;
}

/* Add more breathing room before project actions */
.project-card .tag-row + .project-action,
.project-card .project-tags + .project-action {
  margin-top: 20px !important;
}

.project-card .tag-row,
.project-card .project-tags {
  margin-top: 12px !important;
}


/* =========================================================
   PROJECT CARD BUTTON SPACING FIX
========================================================= */

.project-card .btn.project-action {
  margin-top: 24px !important;
}

.project-card .tag-row {
  margin-bottom: 24px !important;
}

.project-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.project-card .project-desc {
  margin-bottom: 0;
}
