/* ============================================
   JCUT Media — Sleek Black Theme
   ============================================ */

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

:root {
  --black: #000000;
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --border: #1f1f1f;
  --border-light: #2a2a2a;
  --text: #f5f5f5;
  --text-muted: #888888;
  --text-dim: #666666;
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.08);
  --accent-glow: rgba(255, 255, 255, 0.03);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================
   Utilities
   ============================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section__tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: var(--text);
  color: var(--black);
}

.btn--primary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.12);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-light);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 28px 0;
  transition: all var(--transition);
}

.nav--scrolled {
  padding: 18px 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  line-height: 1;
  transition: opacity var(--transition);
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo-image {
  height: 92px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links li {
  list-style: none;
}

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

.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width var(--transition);
}

.nav__links a:not(.nav__cta):hover {
  color: var(--text);
}

.nav__links a:not(.nav__cta):hover::after {
  width: 100%;
}

.nav__cta {
  padding: 10px 24px;
  border: 1px solid var(--border-light);
  border-radius: 60px;
  color: var(--text) !important;
  transition: all var(--transition);
}

.nav__cta:hover {
  background: var(--accent-soft);
  border-color: var(--text-muted);
}

/* Mobile toggle — hidden on desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  position: relative;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Mobile Nav Drawer (lives outside <nav>)
   ============================================ */

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  display: none;
}

.mobile-nav__overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(280px, 85vw);
  height: 100%;
  height: 100dvh;
  background: #0a0a0a;
  border-left: 1px solid var(--border);
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

.mobile-nav__drawer.open {
  transform: translateX(0);
}

.mobile-nav__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0 40px;
}

.mobile-nav__links li {
  list-style: none;
}

.mobile-nav__links a {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-nav__links li:last-child a {
  border-bottom: none;
}

.mobile-nav__links a:hover {
  color: var(--text-muted);
}

.mobile-nav__cta {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px !important;
  border: 1px solid var(--border-light) !important;
  border-radius: 60px;
  text-align: center;
  font-size: 1rem !important;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(30, 30, 30, 0.4) 0%, transparent 70%),
    radial-gradient(circle at 20% 80%, rgba(20, 20, 20, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(25, 25, 25, 0.2) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero__tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero__title-line {
  display: block;
}

.hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, #ffffff 0%, #999999 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ============================================
   About
   ============================================ */

.about {
  border-top: 1px solid var(--border);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.stat {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all var(--transition);
}

.stat:hover {
  border-color: var(--border-light);
  background: var(--bg-elevated);
  transform: translateY(-4px);
}

.stat__number {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  display: inline;
}

.stat__plus {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.stat__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   Services
   ============================================ */

.services {
  border-top: 1px solid var(--border);
  background: var(--black);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--text-muted);
  transition: color var(--transition);
}

.service-card:hover .service-card__icon {
  color: var(--text);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card__text {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============================================
   Work / Portfolio
   ============================================ */

.work {
  border-top: 1px solid var(--border);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
}

.work-card--wide {
  grid-column: span 2;
}

.work-card__inner {
  position: relative;
  height: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-slow);
  background-image:
    radial-gradient(circle at 30% 50%, rgba(40, 40, 40, 0.5) 0%, transparent 60%),
    linear-gradient(135deg, var(--bg-card) 0%, #1a1a1a 100%);
}

.work-card--wide .work-card__inner {
  height: 380px;
}

.work-card__inner:hover {
  border-color: var(--border-light);
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  z-index: 1;
}

.work-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  z-index: 2;
}

.work-card__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding: 4px 12px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
}

.work-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.work-card__text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   Contact
   ============================================ */

.contact {
  border-top: 1px solid var(--border);
  background: var(--black);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact__detail svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-dim);
}

.contact__detail a {
  transition: color var(--transition);
  overflow-wrap: anywhere;
}

.contact__detail a:hover {
  color: var(--text);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  position: relative;
}

.form__group input,
.form__group textarea,
.form__group select {
  width: 100%;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form__group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form__group select option {
  background: var(--bg-card);
  color: var(--text);
}

.form__group textarea {
  resize: vertical;
  min-height: 120px;
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  border-color: var(--text-muted);
  background: var(--bg-elevated);
}

.form__group label {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 0.95rem;
  color: var(--text-dim);
  pointer-events: none;
  transition: all var(--transition);
}

.form__group input:focus + label,
.form__group input:not(:placeholder-shown) + label,
.form__group textarea:focus + label,
.form__group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--black);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 16px;
  line-height: 1.6;
}

.footer__logo {
  display: inline-flex;
}

.nav__logo-image--footer {
  height: 100px;
}

.footer__links h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__links a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer__social h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__social-links {
  display: flex;
  gap: 16px;
}

.footer__social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-dim);
  transition: all var(--transition);
}

.footer__social-links a:hover {
  color: var(--text);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.footer__social-links svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================================
   Stagger animation delays for reveals
   ============================================ */

.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   Responsive — Tablet
   ============================================ */

@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }

  .about__grid {
    gap: 48px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-card__inner {
    height: 260px;
  }

  .work-card--wide .work-card__inner {
    height: 300px;
  }

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

/* ============================================
   Responsive — Mobile
   ============================================ */

@media (max-width: 768px) {
  .nav {
    padding: 20px 0;
  }

  .nav--scrolled {
    padding: 14px 0;
  }

  .section {
    padding: 64px 0;
  }

  .section__title {
    margin-bottom: 32px;
  }

  .nav__container {
    padding: 0 20px;
  }

  /* Nav mobile: hide desktop links, show toggle + drawer */
  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .mobile-nav__overlay {
    display: block;
  }

  .mobile-nav__drawer {
    display: flex;
  }

  /* Hero mobile */
  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .hero__scroll {
    display: none;
  }

  /* About mobile */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Services mobile */
  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 32px 24px;
  }

  /* Work mobile */
  .work__grid {
    grid-template-columns: 1fr;
  }

  .work-card--wide {
    grid-column: span 1;
  }

  .work-card__inner,
  .work-card--wide .work-card__inner {
    height: 240px;
  }

  /* Contact mobile */
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Footer mobile */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer {
    padding: 48px 0 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .nav__logo {
    padding: 4px 0;
  }

  .nav__logo-image {
    height: 72px;
  }

  .nav__logo-image--footer {
    height: 80px;
  }

  .mobile-nav__links {
    padding: 0 24px;
  }

  .contact__grid {
    gap: 32px;
  }

  .form__group input,
  .form__group textarea,
  .form__group select {
    padding: 14px 16px;
  }

  .form__group label {
    top: 14px;
    left: 16px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .service-card {
    padding: 28px 24px;
  }

  .work-card__inner,
  .work-card--wide .work-card__inner {
    height: 200px;
  }

  .work-card__content {
    padding: 20px;
  }

  .work-card__title {
    font-size: 1.15rem;
  }

  .stat {
    padding: 24px;
  }

  .stat__number {
    font-size: 2.4rem;
  }
}

/* ============================================
   Selection & Scrollbar
   ============================================ */

::selection {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}
