/*
Theme Name: YourTech V2
Theme URI: https://yourtech.solutions
Author: YourTech Solutions
Description: YourTech V2 — Enhanced with animated counters, glass morphism cards, live status widget, client portal integration. Preview before activating.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yourtech
*/

/* ===== RESET & VARIABLES ===== */
:root {
  /* Dark palette with cyber accents */
  --yt-bg-primary: #0a0e17;
  --yt-bg-secondary: #111827;
  --yt-bg-card: #1a1f2e;
  --yt-bg-card-hover: #222839;
  --yt-text-primary: #e2e8f0;
  --yt-text-secondary: #94a3b8;
  --yt-text-muted: #64748b;
  --yt-accent: #00d4aa;
  --yt-accent-hover: #00f0c0;
  --yt-accent-glow: rgba(0, 212, 170, 0.15);
  --yt-accent-secondary: #6366f1;
  --yt-border: #1e293b;
  --yt-border-glow: rgba(0, 212, 170, 0.3);
  --yt-danger: #ef4444;
  --yt-warning: #f59e0b;
  --yt-success: #10b981;

  /* Typography */
  --yt-font-heading: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --yt-font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --yt-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

  /* Spacing */
  --yt-section-pad: clamp(4rem, 8vw, 8rem);
  --yt-container-max: 1200px;

  /* Effects */
  --yt-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --yt-radius: 12px;
  --yt-radius-sm: 8px;
}

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

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

body {
  font-family: var(--yt-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--yt-text-primary);
  background-color: var(--yt-bg-primary);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--yt-accent-hover);
}

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

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

.yt-section {
  padding: var(--yt-section-pad) 0;
  border-top: 1px solid var(--yt-border);
}

.yt-section--alt {
  background: var(--yt-bg-secondary);
}

.yt-badge {
  display: inline-block;
  font-family: var(--yt-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--yt-border-glow);
  color: var(--yt-accent);
  background: var(--yt-accent-glow);
  text-transform: uppercase;
}

.yt-section-label {
  font-family: var(--yt-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yt-accent);
  margin-bottom: 1rem;
}

.yt-section-title {
  font-family: var(--yt-font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--yt-text-primary);
  margin-bottom: 1rem;
}

.yt-section-subtitle {
  font-size: 1.1rem;
  color: var(--yt-text-secondary);
  max-width: 640px;
}

/* ===== ANIMATED BACKGROUND GRID ===== */
.yt-grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ===== HEADER / NAV ===== */
.yt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--yt-transition), box-shadow var(--yt-transition);
}

.yt-header--scrolled {
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--yt-border);
}

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

.yt-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--yt-font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--yt-text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.yt-logo__img {
  height: 75px;
  width: auto;
}

.yt-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.yt-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--yt-text-secondary);
  transition: color var(--yt-transition);
  position: relative;
}

.yt-nav a:hover,
.yt-nav a.active {
  color: var(--yt-text-primary);
}

.yt-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yt-accent);
  transition: width var(--yt-transition);
}

.yt-nav a:hover::after,
.yt-nav a.active::after {
  width: 100%;
}

.yt-nav__cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--yt-radius-sm);
  background: var(--yt-accent);
  color: var(--yt-bg-primary) !important;
  white-space: nowrap;
  transition: background var(--yt-transition), transform var(--yt-transition);
}

.yt-nav__cta:hover {
  background: var(--yt-accent-hover);
  transform: translateY(-1px);
}

.yt-nav__cta::after {
  display: none !important;
}

/* Mobile menu toggle */
.yt-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.yt-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--yt-text-primary);
  border-radius: 2px;
  transition: var(--yt-transition);
}

/* ===== HERO ===== */
.yt-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.yt-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.yt-hero__pretitle {
  font-family: var(--yt-font-mono);
  font-size: 0.85rem;
  color: var(--yt-accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s 0.2s forwards;
}

.yt-hero__pretitle .yt-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--yt-accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

.yt-hero__title {
  font-family: var(--yt-font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s 0.4s forwards;
}

.yt-hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--yt-accent), var(--yt-accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.yt-hero__subtitle {
  font-size: 1.2rem;
  color: var(--yt-text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
  opacity: 0;
  animation: fadeSlideUp 0.6s 0.6s forwards;
}

.yt-hero__motto {
  font-family: var(--yt-font-mono);
  font-size: 0.95rem;
  color: var(--yt-accent);
  letter-spacing: 0.05em;
  font-style: italic;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s 0.7s forwards;
}

.yt-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeSlideUp 0.6s 0.9s forwards;
}

.yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--yt-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--yt-radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--yt-transition);
  text-decoration: none;
}

.yt-btn--primary {
  background: var(--yt-accent);
  color: var(--yt-bg-primary);
  box-shadow: 0 0 20px var(--yt-accent-glow);
}

.yt-btn--primary:hover {
  background: var(--yt-accent-hover);
  color: var(--yt-bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--yt-accent-glow);
}

.yt-btn--outline {
  background: transparent;
  color: var(--yt-text-primary);
  border: 1px solid var(--yt-border);
}

.yt-btn--outline:hover {
  border-color: var(--yt-accent);
  color: var(--yt-accent);
  transform: translateY(-2px);
}

/* Glow orb behind hero */
.yt-hero__glow {
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--yt-accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

/* ===== SERVICE CARDS ===== */
.yt-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.yt-service-card {
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-left: 3px solid var(--yt-accent);
  border-radius: var(--yt-radius);
  padding: 2rem;
  transition: all var(--yt-transition);
  position: relative;
  overflow: hidden;
}

.yt-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yt-accent), transparent);
  opacity: 0;
  transition: opacity var(--yt-transition);
}

.yt-service-card:hover {
  background: var(--yt-bg-card-hover);
  border-color: var(--yt-border-glow);
  transform: translateY(-4px);
}

.yt-service-card:hover::before {
  opacity: 1;
}

.yt-service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--yt-radius-sm);
  background: var(--yt-accent-glow);
  border: 1px solid var(--yt-border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.yt-service-card__title {
  font-family: var(--yt-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--yt-text-primary);
}

.yt-service-card__desc {
  font-size: 0.9rem;
  color: var(--yt-text-secondary);
  line-height: 1.6;
}

/* ===== PROJECT CARDS ===== */
.yt-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.yt-project-card {
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-top: 3px solid var(--yt-accent);
  border-radius: var(--yt-radius);
  overflow: hidden;
  transition: all var(--yt-transition);
}

.yt-project-card:hover {
  border-color: var(--yt-border-glow);
  transform: translateY(-4px);
}

.yt-project-card__header {
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.yt-project-card__status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yt-success);
  box-shadow: 0 0 8px var(--yt-success);
}

.yt-project-card__status--wip {
  background: var(--yt-warning);
  box-shadow: 0 0 8px var(--yt-warning);
}

.yt-project-card__label {
  font-family: var(--yt-font-mono);
  font-size: 0.75rem;
  color: var(--yt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.yt-project-card__body {
  padding: 1rem 1.5rem 1.5rem;
}

.yt-project-card__title {
  font-family: var(--yt-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.yt-project-card__desc {
  font-size: 0.9rem;
  color: var(--yt-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.yt-project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.yt-tag {
  font-family: var(--yt-font-mono);
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--yt-accent-secondary);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ===== ABOUT / STATS ===== */
.yt-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.yt-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.yt-stat {
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  padding: 1.5rem;
  text-align: center;
}

.yt-stat__value {
  font-family: var(--yt-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--yt-accent), var(--yt-accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.yt-stat__label {
  font-size: 0.85rem;
  color: var(--yt-text-muted);
  margin-top: 0.25rem;
}

/* Terminal-style about block */
.yt-terminal {
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  overflow: hidden;
}

.yt-terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--yt-border);
}

.yt-terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.yt-terminal__dot--red { background: var(--yt-danger); }
.yt-terminal__dot--yellow { background: var(--yt-warning); }
.yt-terminal__dot--green { background: var(--yt-success); }

.yt-terminal__title {
  font-family: var(--yt-font-mono);
  font-size: 0.75rem;
  color: var(--yt-text-muted);
  margin-left: 0.5rem;
}

.yt-terminal__body {
  padding: 1.25rem;
  font-family: var(--yt-font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--yt-text-secondary);
}

.yt-terminal__body .prompt {
  color: var(--yt-accent);
}

.yt-terminal__body .flag {
  color: var(--yt-accent-secondary);
}

.yt-terminal__body .value {
  color: var(--yt-text-primary);
}

/* ===== CREDENTIALS ===== */
.yt-credentials {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
}

.yt-credentials__title {
  font-family: var(--yt-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yt-accent);
  margin-bottom: 1.25rem;
}

.yt-credential {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.yt-credential + .yt-credential {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--yt-border);
}

.yt-credential__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.yt-credential__name {
  font-weight: 600;
  color: var(--yt-text-primary);
  font-size: 0.95rem;
}

.yt-credential__detail {
  font-size: 0.85rem;
  color: var(--yt-text-secondary);
  margin-top: 0.15rem;
}

.yt-credential__school {
  font-size: 0.8rem;
  color: var(--yt-text-muted);
  margin-top: 0.15rem;
}

/* ===== CONTACT ===== */
.yt-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.yt-contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.yt-input-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--yt-text-secondary);
}

.yt-input-group input,
.yt-input-group textarea {
  font-family: var(--yt-font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius-sm);
  color: var(--yt-text-primary);
  transition: border-color var(--yt-transition);
  outline: none;
}

.yt-input-group input:focus,
.yt-input-group textarea:focus {
  border-color: var(--yt-accent);
  box-shadow: 0 0 0 3px var(--yt-accent-glow);
}

.yt-input-group textarea {
  resize: vertical;
  min-height: 140px;
}

.yt-contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.yt-contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.yt-contact-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--yt-radius-sm);
  background: var(--yt-accent-glow);
  border: 1px solid var(--yt-border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.yt-contact-item__label {
  font-size: 0.8rem;
  color: var(--yt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.yt-contact-item__value {
  font-size: 1rem;
  color: var(--yt-text-primary);
}

/* ===== TECH TICKER ===== */
.yt-ticker {
  overflow: hidden;
  background: var(--yt-bg-secondary);
  border-top: 1px solid var(--yt-border);
  border-bottom: 1px solid var(--yt-border);
  padding: 1rem 0;
}

.yt-ticker__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
}

.yt-ticker__item {
  font-family: var(--yt-font-mono);
  font-size: 0.8rem;
  color: var(--yt-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== WHY YOURTECH ===== */
.yt-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.yt-why-card {
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  padding: 2rem;
  transition: all var(--yt-transition);
  position: relative;
}

.yt-why-card:hover {
  border-color: var(--yt-border-glow);
  transform: translateY(-4px);
}

.yt-why-card__number {
  font-family: var(--yt-font-mono);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--yt-accent), var(--yt-accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.yt-why-card__title {
  font-family: var(--yt-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yt-text-primary);
  margin-bottom: 0.75rem;
}

.yt-why-card__desc {
  font-size: 0.9rem;
  color: var(--yt-text-secondary);
  line-height: 1.6;
}

/* ===== TECH STACK ===== */
.yt-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.yt-stack-category {
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  padding: 1.5rem;
}

.yt-stack-category__title {
  font-family: var(--yt-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yt-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--yt-border);
}

.yt-stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.yt-stack-item {
  font-family: var(--yt-font-mono);
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  background: rgba(0, 212, 170, 0.08);
  color: var(--yt-text-primary);
  border: 1px solid rgba(0, 212, 170, 0.15);
  transition: all var(--yt-transition);
}

.yt-stack-item:hover {
  background: rgba(0, 212, 170, 0.15);
  border-color: var(--yt-accent);
  transform: translateY(-1px);
}

/* ===== NEWSLETTER ===== */
.yt-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2rem;
}

.yt-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.yt-newsletter__input-wrap {
  display: flex;
  gap: 0.75rem;
}

.yt-newsletter__input {
  flex: 1;
  padding: 0.875rem 1rem;
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  color: var(--yt-text-primary);
  font-family: var(--yt-font-mono);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.yt-newsletter__input:focus {
  outline: none;
  border-color: var(--yt-accent);
}

.yt-newsletter__input::placeholder {
  color: var(--yt-text-muted);
}

.yt-newsletter__btn {
  white-space: nowrap;
  padding: 0.875rem 1.5rem;
}

.yt-newsletter__note {
  font-size: 0.8rem;
  color: var(--yt-text-muted);
  margin: 0;
}

/* ===== CTA BANNER ===== */
.yt-cta {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.08), rgba(99, 102, 241, 0.08));
  border-top: 1px solid var(--yt-border);
  border-bottom: 1px solid var(--yt-border);
}

.yt-cta--alt {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(0, 212, 170, 0.08));
}

.yt-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.yt-cta__title {
  font-family: var(--yt-font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--yt-text-primary);
  margin-bottom: 0.5rem;
}

.yt-cta__subtitle {
  font-size: 1rem;
  color: var(--yt-text-secondary);
  max-width: 500px;
}

.yt-btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.yt-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.yt-testimonial {
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  padding: 2rem;
  transition: all var(--yt-transition);
}

.yt-testimonial:hover {
  border-color: var(--yt-border-glow);
  transform: translateY(-4px);
}

.yt-testimonial__stars {
  color: var(--yt-warning);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.yt-testimonial__text {
  font-size: 0.95rem;
  color: var(--yt-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.yt-testimonial__name {
  font-weight: 600;
  color: var(--yt-text-primary);
  font-size: 0.95rem;
}

.yt-testimonial__role {
  font-size: 0.8rem;
  color: var(--yt-text-muted);
  margin-top: 0.15rem;
}

/* ===== SERVICE AREA MAP ===== */
.yt-area-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.yt-area-map__embed {
  border-radius: var(--yt-radius);
  overflow: hidden;
  border: 1px solid var(--yt-border);
}

.yt-area-cities {
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  padding: 2rem;
}

.yt-area-cities__title {
  font-family: var(--yt-font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yt-accent);
  margin-bottom: 1.25rem;
}

.yt-area-cities__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.yt-area-city {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--yt-radius-sm);
  background: var(--yt-bg-secondary);
  color: var(--yt-text-primary);
  border: 1px solid var(--yt-border);
}

.yt-area-cities__note {
  font-size: 0.8rem;
  color: var(--yt-text-muted);
  margin-top: 1.25rem;
  line-height: 1.6;
}

/* ===== BLOG PREVIEW ===== */
.yt-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.yt-blog-card {
  display: block;
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  padding: 2rem;
  transition: all var(--yt-transition);
  text-decoration: none;
}

.yt-blog-card:hover {
  border-color: var(--yt-border-glow);
  transform: translateY(-4px);
  color: inherit;
}

.yt-blog-card__date {
  font-family: var(--yt-font-mono);
  font-size: 0.75rem;
  color: var(--yt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.yt-blog-card__title {
  font-family: var(--yt-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yt-text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.yt-blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--yt-text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.yt-blog-card__link {
  font-family: var(--yt-font-mono);
  font-size: 0.8rem;
  color: var(--yt-accent);
}

/* ===== COMMUNITY PROGRAM ===== */
.yt-community__content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.yt-community__card {
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  padding: 2rem;
  text-align: center;
  transition: border-color var(--yt-transition), transform var(--yt-transition);
}

.yt-community__card:hover {
  border-color: var(--yt-border-glow);
  transform: translateY(-4px);
}

.yt-community__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.yt-community__card h3 {
  font-family: var(--yt-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--yt-text-primary);
  margin-bottom: 0.75rem;
}

.yt-community__card p {
  font-size: 0.9rem;
  color: var(--yt-text-secondary);
  line-height: 1.6;
}

/* Community mission terminal */
.yt-community-mission {
  max-width: 700px;
  margin: 2rem auto 0;
}

/* Pricing cards */
.yt-community-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  align-items: start;
}

.yt-pricing-card {
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  padding: 2rem;
  position: relative;
  transition: border-color var(--yt-transition), transform var(--yt-transition);
}

.yt-pricing-card:hover {
  border-color: var(--yt-border-glow);
  transform: translateY(-4px);
}

.yt-pricing-card--featured {
  border-color: var(--yt-accent);
  box-shadow: 0 0 30px rgba(0, 212, 170, 0.1);
}

.yt-pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yt-accent);
  color: var(--yt-bg);
  font-family: var(--yt-font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.yt-pricing-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--yt-border);
}

.yt-pricing-card__header h3 {
  font-family: var(--yt-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--yt-text-primary);
  margin-bottom: 0.5rem;
}

.yt-pricing-card__price {
  font-family: var(--yt-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--yt-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.yt-pricing-card__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--yt-text-muted);
}

.yt-pricing-card__header p {
  font-size: 0.85rem;
  color: var(--yt-text-muted);
}

.yt-pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.yt-pricing-card__features li {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--yt-text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-left: 1.5rem;
  position: relative;
}

.yt-pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--yt-accent);
  font-weight: 700;
}

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

  .yt-community-pricing {
    grid-template-columns: 1fr;
  }
}

/* ===== BLOG MONTH GROUPING ===== */
.yt-blog-month {
  margin-top: 3rem;
}

.yt-blog-month:first-of-type {
  margin-top: 2rem;
}

.yt-blog-month__title {
  font-family: var(--yt-font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--yt-accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--yt-border);
}

/* ===== BLOG PAGINATION ===== */
.yt-blog-pagination {
  margin-top: 3rem;
  text-align: center;
}

.yt-blog-pagination ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0;
}

.yt-blog-pagination li {
  display: inline-block;
}

.yt-blog-pagination a,
.yt-blog-pagination span.current {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: var(--yt-font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius-sm);
  text-decoration: none;
  color: var(--yt-text-secondary);
  transition: all var(--yt-transition);
}

.yt-blog-pagination a:hover {
  border-color: var(--yt-border-glow);
  color: var(--yt-accent);
}

.yt-blog-pagination span.current {
  background: var(--yt-accent);
  border-color: var(--yt-accent);
  color: var(--yt-bg);
  font-weight: 700;
}

/* ===== AI DEMO SHOWCASE ===== */
.yt-ai-demo__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.yt-ai-demo__chat {
  padding: 0 !important;
}

.yt-ai-demo__msg {
  padding: 0.75rem 1rem;
  margin: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--yt-text-secondary);
}

.yt-ai-demo__msg--user {
  background: rgba(99, 102, 241, 0.1);
  border-left: 2px solid var(--yt-accent-secondary);
}

.yt-ai-demo__msg--bot {
  background: rgba(0, 212, 170, 0.08);
  border-left: 2px solid var(--yt-accent);
}

.yt-ai-demo__msg-name {
  display: block;
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  font-family: var(--yt-font-mono);
}

.yt-ai-demo__msg--user .yt-ai-demo__msg-name {
  color: var(--yt-accent-secondary);
}

.yt-ai-demo__msg--bot .yt-ai-demo__msg-name {
  color: var(--yt-accent);
}

.yt-ai-demo__features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.yt-ai-demo__feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.yt-ai-demo__feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.1rem;
}

.yt-ai-demo__feature h4 {
  color: var(--yt-text-primary);
  font-family: var(--yt-font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.yt-ai-demo__feature p {
  color: var(--yt-text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.yt-ai-demo__cta {
  margin-top: 2rem;
}

.yt-ai-demo__cta-note {
  font-size: 0.85rem;
  color: var(--yt-text-muted);
  margin-top: 0.75rem;
  font-family: var(--yt-font-mono);
}

.yt-form-response-note {
  font-size: 0.8rem;
  color: var(--yt-text-muted);
  font-style: italic;
  margin-top: 0.75rem;
}

/* ===== CONTACT FORM STATUS ===== */
.yt-form-status {
  font-size: 0.9rem;
  padding: 0;
  border-radius: var(--yt-radius-sm);
  transition: all var(--yt-transition);
}

.yt-form-status--success {
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--yt-success);
}

.yt-form-status--error {
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--yt-danger);
}

/* ===== THEME TOGGLE ===== */
.yt-theme-toggle {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  z-index: 100;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  color: var(--yt-text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--yt-transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.yt-theme-toggle:hover {
  border-color: var(--yt-accent);
  transform: scale(1.1);
}

/* Light mode overrides */
body.yt-light {
  --yt-bg-primary: #f8fafc;
  --yt-bg-secondary: #f1f5f9;
  --yt-bg-card: #ffffff;
  --yt-bg-card-hover: #f8fafc;
  --yt-text-primary: #0f172a;
  --yt-text-secondary: #475569;
  --yt-text-muted: #94a3b8;
  --yt-accent: #0d9488;
  --yt-accent-hover: #0f766e;
  --yt-accent-glow: rgba(13, 148, 136, 0.1);
  --yt-border: #e2e8f0;
  --yt-border-glow: rgba(13, 148, 136, 0.3);
}

body.yt-light .yt-grid-bg {
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.04) 1px, transparent 1px);
}

body.yt-light .yt-header--scrolled {
  background: rgba(248, 250, 252, 0.92);
}

body.yt-light .yt-logo__img {
  filter: invert(1);
}

body.yt-light .yt-footer__logo {
  filter: invert(1);
}

body.yt-light .yt-area-map__embed iframe {
  filter: invert(10%) hue-rotate(0deg);
}

/* ===== FOOTER ===== */
.yt-footer {
  border-top: 1px solid var(--yt-border);
  padding: 3rem 0;
}

.yt-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.yt-footer__logo {
  height: 75px;
  width: auto;
  margin-bottom: 0.5rem;
}

.yt-footer__motto {
  font-family: var(--yt-font-mono);
  font-size: 0.8rem;
  color: var(--yt-accent);
  font-style: italic;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.yt-footer__copy {
  font-size: 0.85rem;
  color: var(--yt-text-muted);
}

.yt-footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.yt-footer__links a {
  font-size: 0.85rem;
  color: var(--yt-text-muted);
}

.yt-footer__links a:hover {
  color: var(--yt-accent);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, 20px); }
}

/* Scroll reveal */
.yt-section,
.yt-cta {
  overflow: hidden;
}

.yt-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE ===== */

/* --- Tablet & Mobile (768px and below) --- */
@media (max-width: 768px) {
  /* Nav wrapper — zero size on mobile so it doesn't affect header layout */
  .yt-header nav {
    position: static;
    width: 0;
    height: 0;
    overflow: visible;
  }

  /* Nav menu — fullscreen overlay, hidden by default */
  .yt-nav {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgb(10, 14, 23);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 9999;
    padding: 2rem;
    list-style: none;
    margin: 0;
  }

  .yt-nav--open {
    display: flex !important;
  }

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

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

  /* Header — solid background on mobile so nav is always readable */
  .yt-header {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  /* Logo — smaller on mobile */
  .yt-logo__img {
    height: 55px;
  }

  /* Hero — tighter spacing */
  .yt-hero {
    min-height: auto;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .yt-hero__subtitle {
    font-size: 1.05rem;
  }

  .yt-hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .yt-hero__actions .yt-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Service cards — single column */
  .yt-services-grid {
    grid-template-columns: 1fr;
  }

  /* Project cards — single column */
  .yt-projects-grid {
    grid-template-columns: 1fr;
  }

  /* About / Stats */
  .yt-about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .yt-stats {
    grid-template-columns: 1fr 1fr;
  }

  /* Why YourTech — single column */
  .yt-why-grid {
    grid-template-columns: 1fr;
  }

  /* Tech Stack — single column */
  .yt-stack-grid {
    grid-template-columns: 1fr;
  }

  /* Testimonials — single column */
  .yt-testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Service Area — stacked on mobile */
  .yt-area-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .yt-area-cities {
    padding: 1.5rem;
  }

  .yt-area-city {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }

  /* Blog cards — single column */
  .yt-blog-grid {
    grid-template-columns: 1fr;
  }

  /* Contact — stacked */
  .yt-contact-grid {
    grid-template-columns: 1fr;
  }

  /* CTA banners — centered and stacked */
  .yt-cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .yt-cta__subtitle {
    max-width: 100%;
  }

  .yt-btn--lg {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* AI Demo section — stacked grid + terminal overflow fix */
  .yt-ai-demo__content {
    grid-template-columns: 1fr;
  }

  .yt-ai-demo__preview {
    overflow: hidden;
  }

  .yt-terminal {
    max-width: 100%;
    overflow: hidden;
  }

  .yt-terminal__body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.78rem;
    word-break: break-word;
  }

  .yt-ai-demo__msg {
    font-size: 0.8rem;
  }

  .yt-ai-demo__cta {
    width: 100%;
  }

  .yt-ai-demo__cta.yt-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Feature icons — tighter on mobile */
  .yt-ai-demo__feature {
    gap: 0.75rem;
  }

  .yt-ai-demo__feature-icon {
    font-size: 1.25rem;
  }

  /* Newsletter — already has its own 768px block above, reinforce */
  .yt-newsletter {
    grid-template-columns: 1fr;
  }

  .yt-newsletter__input-wrap {
    flex-direction: column;
  }

  .yt-newsletter__btn {
    width: 100%;
  }

  /* Hero glow — smaller on mobile */
  .yt-hero__glow {
    width: 300px;
    height: 300px;
    right: -20%;
    top: 10%;
  }

  /* Theme toggle — move to left side on mobile to avoid chat FAB overlap */
  .yt-theme-toggle {
    bottom: 1.5rem;
    right: auto;
    left: 1.5rem;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Footer — stacked on mobile */
  .yt-footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .yt-footer__links {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Credentials — stack on narrow screens */
  .yt-credential {
    flex-direction: column;
    gap: 0.5rem;
  }

  /* Chat widget — fullscreen on mobile */
  #yt-chat-win {
    width: 100vw;
    height: calc(100vh - 3.5rem);
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 12px 12px 0 0;
    background: var(--yt-bg);
    z-index: 10000;
  }

  #yt-chat-demo {
    z-index: 10001;
  }

  /* Suggestion chips — ensure wrapping */
  #yt-chat-suggestions {
    flex-wrap: wrap;
  }

  .yt-sugg-btn {
    white-space: normal;
    text-align: center;
    flex-shrink: 0;
  }

  /* Chat input — comfortable sizing */
  #yt-chat-input {
    font-size: 16px; /* prevents iOS zoom on focus */
    padding: 0.65rem 1rem;
  }

  /* Blog month heading */
  .yt-blog-month__title {
    font-size: 0.95rem;
  }
}

/* --- Small phones (480px and below) --- */
@media (max-width: 480px) {
  /* Even tighter container padding */
  .yt-container {
    padding: 0 1rem;
  }

  /* Hero fine-tuning */
  .yt-hero__title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .yt-hero__pretitle {
    font-size: 0.75rem;
  }

  .yt-hero__subtitle {
    font-size: 0.95rem;
  }

  .yt-hero__motto {
    font-size: 0.85rem;
  }

  /* Stats — single column on very small screens */
  .yt-stats {
    grid-template-columns: 1fr;
  }

  .yt-stat__value {
    font-size: 2rem;
  }

  /* Section titles smaller */
  .yt-section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* Service card padding */
  .yt-service-card {
    padding: 1.5rem;
  }

  /* Why card padding */
  .yt-why-card {
    padding: 1.5rem;
  }

  /* Blog card padding */
  .yt-blog-card {
    padding: 1.5rem;
  }

  /* Testimonial padding */
  .yt-testimonial {
    padding: 1.5rem;
  }

  /* CTA title */
  .yt-cta__title {
    font-size: clamp(1.2rem, 5vw, 1.75rem);
  }

  /* Footer logo */
  .yt-footer__logo {
    height: 55px;
  }

  /* Header inner — tighter */
  .yt-header__inner {
    padding: 0 1rem;
  }

  /* Area map embed — prevent iframe overflow */
  .yt-area-map__embed iframe {
    width: 100%;
    height: 250px;
  }
}

/* ===== CHAT DEMO WIDGET ===== */

/* Scroll lock when chat is open on mobile */
body.yt-chat-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Full-screen overlay behind chat */
#yt-chat-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9997;
}

#yt-chat-overlay.yt-chat-overlay--active {
  display: block;
}

#yt-chat-demo {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  font-family: var(--yt-font-body);
}

/* FAB Button */
#yt-chat-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--yt-accent);
  color: var(--yt-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 212, 170, 0.4);
  transition: all 0.3s ease;
}

#yt-chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 212, 170, 0.6);
}

/* Chat Window */
#yt-chat-win {
  display: none;
  flex-direction: column;
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 400px;
  height: 560px;
  background: var(--yt-bg);
  border: 1px solid var(--yt-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

/* Header */
#yt-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border-bottom: 1px solid var(--yt-border);
}

/* Role switcher tabs */
#yt-chat-roles {
  display: flex;
  border-bottom: 1px solid var(--yt-border);
  background: #0d1117;
  padding: 0;
}

.yt-role-btn {
  flex: 1;
  padding: 0.55rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--yt-text-secondary, #94a3b8);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}

.yt-role-btn:hover {
  color: var(--yt-text-primary, #e2e8f0);
  background: rgba(0, 212, 170, 0.05);
}

.yt-role-btn--active {
  color: #00d4aa;
  border-bottom-color: #00d4aa;
  background: rgba(0, 212, 170, 0.08);
}

#yt-chat-head-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

#yt-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yt-accent);
  color: var(--yt-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  font-family: var(--yt-font-mono);
  flex-shrink: 0;
}

#yt-chat-name {
  font-family: var(--yt-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

#yt-chat-status {
  font-family: var(--yt-font-mono);
  font-size: 0.7rem;
  color: var(--yt-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

#yt-chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yt-accent);
  display: inline-block;
  box-shadow: 0 0 4px var(--yt-accent);
}

#yt-chat-minimize {
  background: none;
  border: none;
  color: var(--yt-text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
}

#yt-chat-minimize:hover {
  color: #fff;
}

/* Message Area */
#yt-chat-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#yt-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  scroll-behavior: smooth;
}

/* Messages */
.yt-msg {
  display: flex;
  gap: 0.5rem;
  animation: ytMsgIn 0.3s ease;
}

.yt-msg--user {
  flex-direction: row-reverse;
}

.yt-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yt-accent);
  color: var(--yt-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.6rem;
  font-family: var(--yt-font-mono);
  flex-shrink: 0;
  margin-top: 2px;
}

.yt-msg-content {
  max-width: 80%;
  display: flex;
  flex-direction: column;
}

.yt-msg--user .yt-msg-content {
  align-items: flex-end;
}

.yt-msg-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.55;
  word-wrap: break-word;
}

.yt-msg--bot .yt-msg-bubble {
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  color: var(--yt-text-secondary);
  border-top-left-radius: 4px;
}

.yt-msg--user .yt-msg-bubble {
  background: var(--yt-accent);
  color: var(--yt-bg);
  font-weight: 500;
  border-top-right-radius: 4px;
}

.yt-msg-time {
  font-size: 0.65rem;
  color: var(--yt-text-muted);
  margin-top: 0.25rem;
  padding: 0 0.25rem;
  font-family: var(--yt-font-mono);
}

/* Typing Indicator */
.yt-msg-typing {
  display: flex;
  gap: 5px;
  padding: 0.75rem 1rem;
  align-items: center;
}

.yt-msg-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yt-text-muted);
  animation: ytTypingDot 1.4s infinite;
}

.yt-msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.yt-msg-typing span:nth-child(3) { animation-delay: 0.4s; }

/* Suggestions */
#yt-chat-suggestions {
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--yt-border);
}

.yt-sugg-btn {
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  font-family: var(--yt-font-mono);
  font-size: 0.75rem;
  color: var(--yt-accent);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.yt-sugg-btn:hover {
  background: var(--yt-accent);
  border-color: var(--yt-accent);
  color: var(--yt-bg);
}

/* Input Area */
#yt-chat-input-wrap {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-top: 1px solid var(--yt-border);
  background: var(--yt-bg);
  gap: 0.5rem;
}

#yt-chat-input {
  flex: 1;
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: 20px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--yt-text);
  font-family: var(--yt-font-body);
  outline: none;
  transition: border-color 0.2s ease;
}

#yt-chat-input:focus {
  border-color: var(--yt-accent);
}

#yt-chat-input::placeholder {
  color: var(--yt-text-muted);
}

#yt-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--yt-accent);
  color: var(--yt-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

#yt-chat-send:hover {
  background: var(--yt-accent-hover);
}

/* Footer */
#yt-chat-footer {
  padding: 0.4rem 1rem;
  font-size: 0.65rem;
  color: var(--yt-text-muted);
  text-align: center;
  border-top: 1px solid var(--yt-border);
  font-family: var(--yt-font-mono);
  background: var(--yt-bg);
}

#yt-chat-footer a {
  color: var(--yt-accent);
  text-decoration: none;
}

#yt-chat-footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes ytMsgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ytTypingDot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
  30% { opacity: 1; transform: scale(1); }
}

/* Chat Widget — Small phones */
@media (max-width: 480px) {
  #yt-chat-win {
    width: 100vw;
    height: calc(100dvh - 3rem);
    bottom: 0;
    right: 0;
    left: 0;
    border-radius: 12px 12px 0 0;
  }

  #yt-chat-fab {
    width: 50px;
    height: 50px;
  }

  #yt-chat-demo {
    bottom: 0.75rem;
    right: 0.75rem;
  }

  #yt-chat-input {
    font-size: 16px; /* prevents iOS zoom */
  }

  .yt-msg-bubble {
    font-size: 0.82rem;
    padding: 0.55rem 0.75rem;
  }

  .yt-msg-content {
    max-width: 85%;
  }

  .yt-sugg-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* ===== NFC DIGITAL CONTACT CARD ===== */
.yt-nfc-hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.yt-nfc-card {
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.yt-nfc-card__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.yt-nfc-card__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--yt-bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--yt-accent);
  box-shadow: 0 0 20px var(--yt-accent-glow);
  overflow: hidden;
}

.yt-nfc-card__avatar img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.yt-nfc-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yt-text-primary);
  margin: 0 0 0.25rem;
  font-family: var(--yt-font-heading);
}

.yt-nfc-card__title {
  font-size: 0.85rem;
  color: var(--yt-accent);
  margin: 0 0 0.15rem;
  font-family: var(--yt-font-mono);
}

.yt-nfc-card__company {
  font-size: 0.8rem;
  color: var(--yt-text-muted);
  margin: 0;
}

/* Quick action buttons row */
.yt-nfc-card__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.yt-nfc-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--yt-radius-sm);
  background: var(--yt-bg-primary);
  border: 1px solid var(--yt-border);
  color: var(--yt-text-primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-family: var(--yt-font-body);
  transition: var(--yt-transition);
}

.yt-nfc-btn:hover {
  border-color: var(--yt-accent);
  background: var(--yt-accent-glow);
  color: var(--yt-accent);
}

.yt-nfc-btn__icon {
  font-size: 1.3rem;
}

/* Save contact button */
.yt-nfc-card__save {
  margin-bottom: 1.5rem;
}

/* Contact details */
.yt-nfc-card__details {
  margin-bottom: 1.5rem;
}

.yt-nfc-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--yt-border);
}

.yt-nfc-detail:last-child {
  border-bottom: none;
}

.yt-nfc-detail__label {
  font-size: 0.75rem;
  font-family: var(--yt-font-mono);
  color: var(--yt-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-right: 1rem;
}

.yt-nfc-detail__value {
  font-size: 0.85rem;
  color: var(--yt-text-primary);
  text-decoration: none;
  text-align: right;
}

a.yt-nfc-detail__value:hover {
  color: var(--yt-accent);
}

/* Service tags */
.yt-nfc-card__services {
  margin-bottom: 1.5rem;
}

.yt-nfc-services__title {
  font-size: 0.75rem;
  font-family: var(--yt-font-mono);
  color: var(--yt-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}

.yt-nfc-services__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.yt-nfc-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  background: var(--yt-bg-primary);
  border: 1px solid var(--yt-border);
  color: var(--yt-text-secondary);
  font-family: var(--yt-font-body);
}

.yt-nfc-tag--highlight {
  border-color: var(--yt-accent);
  color: var(--yt-accent);
  background: var(--yt-accent-glow);
}

/* Community program callout */
.yt-nfc-card__community {
  background: var(--yt-bg-primary);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.yt-nfc-community__text {
  font-size: 0.85rem;
  color: var(--yt-text-secondary);
  margin: 0 0 0.75rem;
  text-align: center;
}

/* Faith quote */
.yt-nfc-card__quote {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid var(--yt-border);
  margin-bottom: 0.75rem;
}

.yt-nfc-card__quote p {
  font-style: italic;
  color: var(--yt-text-secondary);
  font-size: 0.85rem;
  margin: 0 0 0.25rem;
}

.yt-nfc-card__quote cite {
  font-size: 0.75rem;
  color: var(--yt-accent);
  font-style: normal;
  font-family: var(--yt-font-mono);
}

/* Credentials */
.yt-nfc-card__credentials {
  text-align: center;
  font-size: 0.7rem;
  color: var(--yt-text-muted);
  font-family: var(--yt-font-mono);
}

/* ===== V2 ENHANCEMENTS ===== */

/* Animated stat counters */
.yt-stat__value[data-count] {
  transition: color 0.3s;
}

/* Glass morphism upgrade for cards */
.yt-why-card,
.yt-service-card,
.yt-project-card,
.yt-testimonial,
.yt-community__card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.yt-why-card:hover,
.yt-service-card:hover,
.yt-project-card:hover,
.yt-testimonial:hover,
.yt-community__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px var(--yt-accent-glow);
  border-color: var(--yt-border-glow);
}

/* Live status widget */
.yt-live-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 2rem;
  margin-bottom: 2rem;
  background: var(--yt-bg-card);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  backdrop-filter: blur(12px);
}

.yt-live-status__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yt-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

.yt-live-status__dot--danger {
  background: var(--yt-danger);
  animation-name: pulse-dot-danger;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(0, 212, 170, 0); }
}

@keyframes pulse-dot-danger {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

.yt-live-status__label {
  font-size: 0.85rem;
  color: var(--yt-text-secondary);
}

.yt-live-status__label strong {
  color: var(--yt-accent);
}

.yt-live-status__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Impact numbers section */
.yt-impact {
  padding: 3rem 0;
  border-top: 1px solid var(--yt-border);
  border-bottom: 1px solid var(--yt-border);
  margin: 2rem 0;
}

.yt-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.yt-impact__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--yt-accent);
  font-family: var(--yt-font-mono);
  line-height: 1;
}

.yt-impact__label {
  font-size: 0.85rem;
  color: var(--yt-text-muted);
  margin-top: 0.5rem;
}

.yt-impact__suffix {
  font-size: 1.5rem;
  color: var(--yt-accent);
}

/* Client portal CTA */
.yt-client-portal {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--yt-bg-card) 0%, rgba(0, 212, 170, 0.05) 100%);
  border: 1px solid var(--yt-border);
  border-radius: var(--yt-radius);
  margin-bottom: 3rem;
}

.yt-client-portal h3 {
  font-size: 1.5rem;
  color: var(--yt-text-primary);
  margin-bottom: 0.5rem;
}

.yt-client-portal p {
  color: var(--yt-text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.yt-client-portal__links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Service card icon glow */
.yt-service-card__icon {
  transition: text-shadow 0.3s;
}

.yt-service-card:hover .yt-service-card__icon {
  text-shadow: 0 0 20px var(--yt-accent-glow);
}

/* Smooth entrance for scroll reveals */
.yt-reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Responsive impact grid */
@media (max-width: 768px) {
  .yt-impact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .yt-impact__number { font-size: 2.2rem; }
  .yt-live-status { flex-direction: column; gap: 0.75rem; text-align: center; }
}
