/* ============================================================
   CUSTOM.CSS — finnjones.me · Liquid Glass Design
   Apple-inspired: light, translucent, refined, depth-rich
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --bg-base: #f5f5f7;
  --bg-white: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-heavy: rgba(255, 255, 255, 0.85);
  --bg-glass-subtle: rgba(255, 255, 255, 0.45);
  --bg-frosted: rgba(245, 245, 247, 0.6);
  --bg-hero: linear-gradient(180deg, #fbfbfd 0%, #f0f0f5 50%, #e8e8f0 100%);

  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --text-link: #0066cc;

  --border-glass: rgba(255, 255, 255, 0.5);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-medium: rgba(0, 0, 0, 0.1);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.8);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Override any webflow defaults */
a {
  color: var(--text-secondary);
  text-decoration: none;
  box-shadow: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--text-primary);
  box-shadow: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.15;
}

p {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 1em;
}

::selection {
  background: rgba(0, 102, 204, 0.15);
  color: var(--text-primary);
}

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

/* ============================================================
   NAVIGATION — Frosted glass pill
   ============================================================ */
.navbar-custom {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 10px 12px 10px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glass);
  width: auto;
  max-width: calc(100vw - 32px);
  transition: all var(--transition-smooth);
}

.navbar-custom.scrolled {
  top: 12px;
  background: var(--bg-glass-heavy);
  box-shadow: var(--shadow-hover);
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand:hover { opacity: 0.7; }

.brand-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  transform: translateY(1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

/* ============================================================
   HERO SECTION — Clean, airy, expansive
   ============================================================ */
.hero-section {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding: 0 8vw 14vh;
  background: var(--bg-hero);
  overflow: hidden;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 75% 15%, rgba(0, 102, 204, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 15% 85%, rgba(88, 86, 214, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Decorative floating glass orbs */
.hero-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  right: 10%;
  top: 15%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,0.4);
  opacity: 0.5;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite;
}

.hero-section::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: 25%;
  top: 45%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.3);
  opacity: 0.4;
  pointer-events: none;
  animation: floatOrb 10s ease-in-out 2s infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-text-wrapper {
  margin-bottom: 28px;
}

.hero-greeting {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--text-primary);
  margin-bottom: 0;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3.5rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 0;
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-scroll-indicator {
  display: flex;
  align-items: center;
  gap: 14px;
}

.scroll-text {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-tertiary);
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: var(--border-medium);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text-secondary);
  animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ============================================================
   PROJECTS — Liquid glass cards
   ============================================================ */
.projects-section {
  position: relative;
  padding: 100px 8vw 120px;
  background-color: var(--bg-base);
}

.section-header {
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--text-primary);
}

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

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.project-card:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: var(--shadow-hover);
}

.project-image {
  position: relative;
  height: 50vh;
  min-height: 380px;
  background-size: cover;
  background-position: center top;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, 0.6) 65%,
    rgba(255, 255, 255, 0.92) 100%
  );
  backdrop-filter: blur(0px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  transition: all var(--transition-smooth);
}

.project-card:hover .project-overlay {
  backdrop-filter: blur(6px);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 15%,
    rgba(255, 255, 255, 0.7) 55%,
    rgba(255, 255, 255, 0.95) 100%
  );
}

.project-number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 400;
  color: var(--text-tertiary);
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.4;
}

.project-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.project-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 380px;
  line-height: 1.6;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-link);
  letter-spacing: 0.2px;
  transition: all var(--transition-fast);
  box-shadow: none;
}

.project-cta:hover {
  color: #004499;
  transform: translateX(3px);
  box-shadow: none;
}

/* ============================================================
   PAGE HERO — About & Contact subpages
   ============================================================ */
.page-hero {
  display: flex;
  align-items: flex-end;
  min-height: 30vh;
  padding: 100px 8vw 40px;
  background: var(--bg-hero);
  position: relative;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-header-section {
  position: relative;
}

.about-header-bg {
  background-size: cover;
  background-position: center;
  min-height: 45vh;
  position: relative;
}

.about-header-overlay {
  position: absolute;
  inset: 0;
  /* Liquid glass overlay instead of dark */
  background: rgba(245, 245, 247, 0.65);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  display: flex;
  align-items: center;
  padding: 60px 8vw;
}

.about-header-content {
  max-width: 640px;
}

.about-name {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.about-tagline {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 400;
}

.about-content-section {
  padding: 80px 8vw;
  background: var(--bg-white);
}

.about-block {
  max-width: 640px;
  margin-bottom: 56px;
}

.about-section-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.about-text a {
  color: var(--text-link);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
  box-shadow: none;
}

.about-text a:hover {
  color: #004499;
  border-bottom-color: var(--text-link);
  box-shadow: none;
}

.experience-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition-fast);
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-role {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}

.experience-details {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: 60px 8vw 100px;
  background: var(--bg-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 960px;
}

.contact-heading {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 14px;
}

.contact-subtext {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-social {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-link);
  transition: all var(--transition-fast);
  box-shadow: none;
}

.contact-social:hover {
  color: #004499;
  transform: translateX(3px);
  box-shadow: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.form-input {
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  outline: none;
  width: 100%;
  box-shadow: var(--shadow-inset);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus {
  border-color: rgba(0, 102, 204, 0.4);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.08), var(--shadow-inset);
  background: var(--bg-white);
}

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

.form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: var(--text-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.form-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
  background: #333;
}

.form-button:active {
  transform: translateY(0) scale(0.99);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-section {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 8vw;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-links-row {
  display: flex;
  gap: 20px;
  margin-top: 6px;
}

.footer-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
  box-shadow: none;
}

.footer-link:hover {
  color: var(--text-link);
  box-shadow: none;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 12px;
  margin-bottom: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.anim-slide-up {
  opacity: 0;
  animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.anim-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.4s; }
.anim-delay-3 { animation-delay: 0.7s; }

/* Scroll reveal (triggered by JS) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media screen and (max-width: 991px) {
  .hero-section {
    padding: 0 6vw 12vh;
  }

  .hero-section::before {
    width: 280px;
    height: 280px;
    right: 5%;
    top: 12%;
  }

  .hero-section::after {
    width: 160px;
    height: 160px;
  }

  .projects-section {
    padding: 80px 6vw 100px;
  }

  .project-image {
    height: 42vh;
    min-height: 300px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content-section,
  .contact-section {
    padding-left: 6vw;
    padding-right: 6vw;
  }
}

@media screen and (max-width: 767px) {
  .navbar-custom {
    top: 12px;
    padding: 8px 10px 8px 20px;
    gap: 16px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 13px;
  }

  .hero-section {
    min-height: 88vh;
    padding: 0 28px 10vh;
  }

  .hero-section::before,
  .hero-section::after {
    display: none; /* hide orbs on mobile */
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .projects-section {
    padding: 64px 28px 80px;
  }

  .project-overlay {
    padding: 28px;
  }

  .project-name {
    font-size: 24px;
  }

  .page-hero {
    min-height: 25vh;
    padding: 90px 28px 32px;
  }

  .about-header-overlay {
    padding: 40px 28px;
  }

  .about-header-bg {
    min-height: 36vh;
  }

  .about-content-section {
    padding: 60px 28px;
  }

  .contact-section {
    padding: 48px 28px 80px;
  }

  .footer-section {
    padding: 44px 28px;
  }
}

@media screen and (max-width: 479px) {
  .navbar-custom {
    top: 10px;
    padding: 8px 8px 8px 16px;
    gap: 8px;
  }

  .brand-text {
    font-size: 16px;
  }

  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }

  .hero-section {
    padding: 0 20px 10vh;
    min-height: 85vh;
  }

  .project-image {
    height: 38vh;
    min-height: 260px;
  }

  .project-overlay {
    padding: 22px;
  }

  .project-number {
    font-size: 32px;
  }

  .project-name {
    font-size: 20px;
  }

  .page-hero {
    padding: 80px 20px 24px;
  }

  .about-content-section {
    padding: 48px 20px;
  }

  .contact-section {
    padding: 36px 20px 64px;
  }

  .contact-heading {
    font-size: 26px;
  }

  .footer-section {
    padding: 40px 20px;
  }
}
