/* ==========================================================================
   CNY.LIFE PORTFOLIO - CINEMATIC GLIDANCE-INSPIRED PARALLAX THEME
   Vivid Panoramic Utica Hero | Centered Floating Headline
   Clean Red Accent & Slate Palette | Zero Ovals | Zero Plaintext Email
   ========================================================================== */

:root {
  /* Slate & Canvas Spectrum */
  --bg-canvas: #0a0e17;
  --bg-surface: #111824;
  --bg-card: #152030;
  --bg-card-hover: #1b283d;
  --bg-elevated: #1f2e46;

  /* Vivid Crimson / Glidance Red Accent */
  --accent-red: #e11d48;
  --accent-red-hover: #f43f5e;
  --accent-red-tint: rgba(225, 29, 72, 0.12);
  --accent-red-border: rgba(225, 29, 72, 0.45);

  /* Slate Neutrals */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;

  --text-primary: var(--slate-50);
  --text-body: var(--slate-300);
  --text-muted: var(--slate-400);

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-card: rgba(148, 163, 184, 0.18);
  --border-card-hover: rgba(225, 29, 72, 0.45);

  /* Clean Modern Typography */
  --font-brand: 'Fraunces', Georgia, serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Clean Rounded Geometry (Inspired by modern clean web layouts) */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px; /* Used sparingly on the single header CTA button matching the Glidance waitlist button */

  --shadow-card: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
  --shadow-hover: 0 22px 48px -12px rgba(0, 0, 0, 0.8), 0 0 25px rgba(225, 29, 72, 0.18);
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-body);
  font-family: var(--font-display);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ==========================================================================
   HEADER NAVBAR (Matching the clean Glidance style)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(10, 14, 23, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-family: var(--font-brand);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: var(--transition);
}

.brand-dot {
  color: var(--accent-red);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  color: var(--slate-300);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-red-hover);
}

/* Primary CTA Button (matching the vibrant "Join Waitlist" pill button from Glidance reference) */
.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.35rem;
  background: var(--accent-red);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}

.btn-header-cta:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
}

/* ==========================================================================
   CINEMATIC FULL-VISION PARALLAX HERO BANNER
   ========================================================================== */

.hero-parallax-section {
  padding-top: clamp(1.5rem, 3.5vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.hero-parallax-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
  height: clamp(480px, 60vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
}

/* Parallax Inner Container with generous travel space */
.parallax-layer-window {
  position: absolute;
  top: -25%;
  left: 0;
  right: 0;
  bottom: -25%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

/* The High-Visibility Utica Photograph */
.parallax-photo {
  position: absolute;
  inset: 0;
  background-image: url('assets/utica-bg.jpg');
  background-size: cover;
  background-position: center 36%;
  background-repeat: no-repeat;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  filter: contrast(1.05) saturate(1.1);
}

/* Ultra-light cinematic vignette: Keeps 100% of the city skyline visible with warm sunlit clarity */
.parallax-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(10, 14, 23, 0.25) 0%,
    rgba(10, 14, 23, 0.55) 75%,
    rgba(10, 14, 23, 0.8) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Floating Centered Content (Directly over the image, matching the Glidance "Say hello to Glide..." look) */
.hero-parallax-content {
  position: relative;
  z-index: 3;
  padding: clamp(1.5rem, 4vw, 3rem);
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-200);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
}

/* Big Bold Headline Centered Over Photo */
.hero-center-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.8);
  text-wrap: balance;
}

.hero-center-subhead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  max-width: 650px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
  text-wrap: balance;
}

/* ==========================================================================
   PERSONAL INTRO SECTION (Leo's Description Blob)
   ========================================================================== */

.intro-section {
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

.intro-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--accent-red);
  border-radius: var(--radius-md);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intro-text {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--slate-200);
  line-height: 1.75;
}

.intro-text strong {
  color: var(--slate-50);
  font-weight: 700;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  background: var(--accent-red);
  border: 1px solid var(--accent-red);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-red-hover);
  border-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--slate-200);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--slate-400);
  background: var(--bg-elevated);
}

/* ==========================================================================
   SHOWCASE SECTION - 2 FEATURED SITES
   ========================================================================== */

.showcase-section {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.section-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate-400);
}

/* Fluid Showcase Grid (Gracefully scales from 1 to 50+ projects) */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

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

.card-top-bar {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.card-site-url {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate-300);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  overflow: hidden;
}

.card-site-url span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-site-url svg {
  color: var(--accent-red);
  flex-shrink: 0;
}

.card-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-red-hover);
  white-space: nowrap;
  flex-shrink: 0;
}

.card-visual-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #090e17;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.showcase-card:hover .card-img {
  transform: scale(1.03);
}

.card-logo-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 0.35rem 0.65rem;
  display: flex;
  align-items: center;
  z-index: 2;
}

.card-logo-tag img {
  max-height: 22px;
  width: auto;
  object-fit: contain;
}

.card-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.25rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.25;
}

.card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-visit {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-sm);
  color: var(--slate-100);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-visit:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #ffffff;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--slate-400);
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy:hover {
  color: var(--text-primary);
  border-color: var(--slate-400);
}

/* ==========================================================================
   INQUIRY SECTION - ZERO GUARANTEE BOX & ZERO PLAINTEXT EMAIL
   ========================================================================== */

.inquiry-section {
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
}

.inquiry-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
}

@media (max-width: 860px) {
  .inquiry-box {
    grid-template-columns: 1fr;
  }
}

.inquiry-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inquiry-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.inquiry-heading em {
  font-style: normal;
  color: var(--accent-red);
}

.inquiry-intro-text {
  font-size: 1.05rem;
  color: var(--slate-300);
  line-height: 1.7;
}

/* Form Styles */
.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-200);
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(10, 14, 23, 0.75);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--slate-100);
  font-family: var(--font-display);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.2);
}

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

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  background: var(--accent-red);
  border: 1px solid var(--accent-red);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--accent-red-hover);
  border-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.4);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--accent-red-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.65rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.25rem 0;
  margin-top: auto;
  background: var(--bg-surface);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-brand {
  font-family: var(--font-brand);
  font-style: italic;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate-400);
}

/* Accessibility */
@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;
  }
  .parallax-photo {
    transform: none !important;
    will-change: auto !important;
  }
}
