/* =============================================
   JEEP CJ GARAGE — Rugged Industrial Aesthetic
   ============================================= */

:root {
  --mud: #1a1208;
  --rust: #c0430a;
  --rust-light: #e85520;
  --sand: #d4b483;
  --olive: #4a5240;
  --steel: #2c2c2c;
  --cream: #f2ead8;
  --white: #faf7f0;
  --text-dim: #7a6f5e;

  --font-display: 'Bebas Neue', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--mud);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise overlay */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* =============================================
   NAV
   ============================================= */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.12em;
  color: var(--white);
}

.nav__logo span {
  color: var(--rust);
  margin-left: 0.1em;
}

.nav__cta {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mud);
  background: var(--rust);
  padding: 0.6rem 1.4rem;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s;
}

.nav__cta:hover { background: var(--rust-light); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 1rem 2rem;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(192,67,10,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(74,82,64,0.25) 0%, transparent 60%),
    var(--mud);
}

/* Diagonal grid lines */
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      -15deg,
      rgba(212,180,131,0.04) 0px,
      rgba(212,180,131,0.04) 1px,
      transparent 1px,
      transparent 60px
    );
  pointer-events: none;
}

.hero__content {
  width: 100%;
  animation: fadeUp 0.9s ease both;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust);
  border: 1px solid var(--rust);
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.5rem;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  animation: fadeUp 0.9s 0.1s ease both;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 19vw;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--white);
  white-space: nowrap;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.9s ease both;
}

.hero__title--accent {
  -webkit-text-stroke: 2px var(--rust);
  color: transparent;
}

.hero__sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--sand);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.9s 0.28s ease both;
}

.hero__yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--white);
  background: transparent;
  border: 2px solid var(--rust);
  padding: 0.9rem 2rem;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: background 0.2s, color 0.2s;
  animation: fadeUp 0.9s 0.36s ease both;
}

.hero__yt-btn:hover {
  background: var(--rust);
  color: var(--white);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  right: 3rem;
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  writing-mode: vertical-rl;
  animation: fadeUp 0.9s 0.6s ease both;
}

/* =============================================
   STATS
   ============================================= */
.stats {
  position: relative;
  padding: 5rem 3rem;
  background: var(--steel);
  border-top: 3px solid var(--rust);
  border-bottom: 3px solid var(--rust);
  overflow: hidden;
}

.stats__label {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--rust);
  text-align: center;
  margin-bottom: 2.5rem;
}

.stats__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.stats__card {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 1.5rem 2rem;
}

.stats__divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--rust), transparent);
}

.stats__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
  transition: color 0.3s;
}

.stats__number.loaded { color: var(--rust-light); }

.stats__desc {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.stats__error {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* =============================================
   SECTION HEADER
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header__tag {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.75rem;
}

.section-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1;
}

/* =============================================
   VIDEOS
   ============================================= */
.videos {
  padding: 6rem 3rem;
  background: var(--mud);
}

.videos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.video-card {
  background: var(--steel);
  border: 1px solid rgba(212,180,131,0.1);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--rust);
}

.video-card.skeleton {
  height: 320px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}

.video-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}

.video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.video-card:hover .video-card__thumb img { transform: scale(1.05); }

.video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

.video-card:hover .video-card__play { opacity: 1; }

.video-card__play svg {
  width: 56px;
  height: 56px;
  fill: var(--rust);
  filter: drop-shadow(0 0 12px rgba(192,67,10,0.8));
}

.video-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.video-card__rank {
  font-family: var(--font-display);
  font-size: 3rem;
  color: rgba(212,180,131,0.12);
  line-height: 1;
  float: right;
  margin: -0.5rem -0.5rem 0 0;
}

.video-card__title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.video-card__views {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--rust-light);
  letter-spacing: 0.05em;
}

.videos__error {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
}

.videos__error a {
  color: var(--rust-light);
  text-decoration: none;
}

/* =============================================
   COMMENTS CAROUSEL
   ============================================= */
.comments {
  padding: 6rem 3rem;
  background: var(--steel);
  border-top: 3px solid var(--rust);
  border-bottom: 3px solid var(--rust);
}

.comments__carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  min-height: 260px;
}

.comment-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.5rem;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.comment-card.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.comment-card__quote {
  font-family: var(--font-display);
  font-size: 6rem;
  line-height: 0.6;
  color: var(--rust);
  opacity: 0.4;
  margin-bottom: 0.5rem;
  display: block;
}

.comment-card__text {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
  color: var(--cream);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.comment-card__footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.comment-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--rust);
  object-fit: cover;
  flex-shrink: 0;
}

.comment-card__meta {
  flex: 1;
  min-width: 0;
}

.comment-card__author {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--white);
}

.comment-card__video {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment-card__likes {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--rust);
  flex-shrink: 0;
}

.comments__dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.comments__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}

.comments__dot.is-active {
  background: var(--rust);
  transform: scale(1.3);
}

.comment-card.skeleton {
  position: relative;
  min-height: 260px;
  background: linear-gradient(90deg, #3a3a3a 25%, #444 50%, #3a3a3a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  opacity: 1;
  border-radius: 2px;
}

.comments__error {
  text-align: center;
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.9rem;
}

.comments__error a {
  color: var(--rust);
  text-decoration: none;
}

/* =============================================
   ABOUT
   ============================================= */
.about {
  background: var(--olive);
  padding: 6rem 3rem;
  position: relative;
  overflow: hidden;
}

.about::before {
  content: 'CJ';
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 30vw;
  color: rgba(0,0,0,0.15);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.about__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  color: var(--white);
  margin: 1rem 0 1.5rem;
}

.about__text p {
  color: rgba(242,234,216,0.75);
  max-width: 560px;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about__badge-wrap { flex-shrink: 0; }

.about__badge {
  width: 140px;
  height: 140px;
  border: 3px solid var(--rust);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--rust);
  position: relative;
  animation: spin 20s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.about__badge span:last-child {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  padding: 6rem 3rem;
  background: var(--steel);
  border-top: 3px solid var(--rust);
}

.contact__form {
  max-width: 700px;
  margin: 0 auto;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.form__group label {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.5rem;
}

.form__group input,
.form__group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(212,180,131,0.2);
  border-bottom: 2px solid var(--rust);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: rgba(212,180,131,0.35);
}

.form__group input:focus,
.form__group textarea:focus {
  background: rgba(255,255,255,0.08);
  border-bottom-color: var(--rust-light);
}

.form__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mud);
  background: var(--rust);
  border: none;
  padding: 1rem 2.5rem;
  cursor: pointer;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.form__submit:hover { background: var(--rust-light); }

.contact__success {
  max-width: 700px;
  margin: 1.5rem auto 0;
  font-family: var(--font-cond);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #6fcf97;
  text-align: center;
  padding: 1rem;
  border: 1px solid #6fcf97;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #100d06;
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(212,180,131,0.1);
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.footer__links a {
  color: var(--rust);
  text-decoration: none;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
}

.footer__links a:hover { color: var(--rust-light); }

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .nav { padding: 1.5rem; }
  .hero { padding: 7rem 1.5rem 3rem; }
  .hero__scroll-hint { display: none; }

  .stats { padding: 3rem 1.5rem; }
  .stats__grid { flex-direction: column; gap: 1.5rem; }
  .stats__divider { width: 80px; height: 1px; }

  .videos { padding: 4rem 1.5rem; }
  .videos__grid { grid-template-columns: 1fr; }

  .about { padding: 4rem 1.5rem; }
  .about__inner { grid-template-columns: 1fr; }
  .about__badge-wrap { display: none; }

  .contact { padding: 4rem 1.5rem; }
  .form__row { grid-template-columns: 1fr; }

  .footer {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav__logo { font-size: 1.4rem; }
  .nav__cta { font-size: 0.75rem; padding: 0.5rem 1rem; }
}
