/* ============================================================
   TMX STUDIO — EXTERNAL STYLESHEET
   ============================================================ */

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ========== CUSTOM COLOR UTILITIES ========== */
.bg-tmx-black { background-color: #0A0A0A; }
.text-tmx-orange { color: #F97316; }
.bg-tmx-orange { background-color: #F97316; }
.hover\:bg-tmx-orange-dark:hover { background-color: #EA580C; }
.bg-tmx-blue { background-color: #2563EB; }
.text-tmx-blue { color: #2563EB; }

/* ========== CARD HOVER ========== */
.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.6);
}

/* ========== FLOATING BUTTONS ========== */
.floating-btn {
  transition: all 0.2s ease;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.5);
}
.floating-btn:hover {
  transform: scale(1.05);
}

/* ========== LINE CLAMP ========== */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== MOBILE MENU ========== */
#mobileMenu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}
#mobileMenu.open {
  max-height: 500px;
  opacity: 1;
}

/* ========== PORTFOLIO ========== */
.portfolio-item img {
  transition: transform 0.4s ease;
}
.portfolio-item:hover img {
  transform: scale(1.08);
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-overlay {
  transition: opacity 0.3s ease;
}

/* Portfolio grid: 2 columns on mobile */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .portfolio-grid { gap: 1rem; }
}
@media (min-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* Portfolio card image heights */
.portfolio-card-img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
}
@media (min-width: 640px) {
  .portfolio-card-img { height: 13rem; }
}
@media (min-width: 768px) {
  .portfolio-card-img { height: 15rem; }
}
@media (min-width: 1024px) {
  .portfolio-card-img { height: 18rem; }
}

/* Portfolio overlay typography */
.portfolio-overlay {
  padding: 0.75rem;
}
@media (min-width: 640px) {
  .portfolio-overlay { padding: 1rem; }
}
@media (min-width: 768px) {
  .portfolio-overlay { padding: 1.25rem; }
}
.portfolio-overlay h3 {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
}
@media (min-width: 640px) {
  .portfolio-overlay h3 { font-size: 0.875rem; line-height: 1.25rem; }
}
@media (min-width: 768px) {
  .portfolio-overlay h3 { font-size: 1rem; line-height: 1.5rem; }
}
@media (min-width: 1024px) {
  .portfolio-overlay h3 { font-size: 1.125rem; line-height: 1.75rem; }
}
.portfolio-overlay p {
  font-size: 0.625rem;
  line-height: 0.875rem;
}
@media (min-width: 640px) {
  .portfolio-overlay p { font-size: 0.75rem; line-height: 1rem; }
}
@media (min-width: 768px) {
  .portfolio-overlay p { font-size: 0.875rem; line-height: 1.25rem; }
}
.portfolio-overlay .cat-label {
  font-size: 0.5625rem;
  letter-spacing: 0.05em;
}
@media (min-width: 640px) {
  .portfolio-overlay .cat-label { font-size: 0.625rem; }
}
@media (min-width: 768px) {
  .portfolio-overlay .cat-label { font-size: 0.75rem; }
}

/* Portfolio filter buttons */
.filter-btn {
  transition: all 0.2s ease;
  font-size: 0.75rem;
  padding: 0.375rem 0.875rem;
}
@media (min-width: 640px) {
  .filter-btn { font-size: 0.875rem; padding: 0.5rem 1.25rem; }
}
.filter-btn.active {
  background-color: #F97316;
  color: white;
  border-color: #F97316;
}

/* ========== SLIDER / CAROUSEL ========== */
.slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.slider-viewport {
  overflow: hidden;
  position: relative;
}
.slider-slide {
  flex: 0 0 100%;
  padding: 0 0.5rem;
}
@media (min-width: 640px) {
  .slider-slide { padding: 0 0.75rem; }
}
@media (min-width: 768px) {
  .slider-slide { flex: 0 0 50%; }
}
@media (min-width: 1024px) {
  .slider-slide { flex: 0 0 33.3333%; }
}
@media (min-width: 1024px) {
  .team-slider .slider-slide { flex: 0 0 25%; }
}

.slider-arrow {
  transition: all 0.2s ease;
  z-index: 20;
}
.slider-arrow:hover { transform: scale(1.1); }
.slider-arrow:active { transform: scale(0.95); }
.slider-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #374151;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}
.slider-dot.active {
  background-color: #F97316;
  width: 24px;
  border-radius: 4px;
}

/* ========== HOW IT WORKS: 2 columns on mobile ========== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .how-grid { gap: 1rem; }
}
@media (min-width: 1024px) {
  .how-grid { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
}

.how-card {
  padding: 0.75rem 0.5rem;
  border-radius: 0.75rem;
  background-color: #111;
  border: 1px solid #1f2937;
  transition: border-color 0.2s ease;
}
@media (min-width: 640px) {
  .how-card { padding: 1rem 0.75rem; }
}
@media (min-width: 1024px) {
  .how-card {
    padding: 1.25rem 1rem;
    background-color: transparent;
    border-color: transparent;
  }
}
.how-card:hover { border-color: #F97316; }
@media (min-width: 1024px) {
  .how-card:hover { border-color: transparent; }
}

.how-step-circle {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) {
  .how-step-circle {
    width: 3rem;
    height: 3rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
}
@media (min-width: 1024px) {
  .how-step-circle {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }
}

.how-card h3 {
  font-size: 0.75rem;
  line-height: 1rem;
}
@media (min-width: 640px) {
  .how-card h3 { font-size: 0.875rem; line-height: 1.25rem; }
}
.how-card p {
  font-size: 0.625rem;
  line-height: 0.875rem;
  margin-top: 0.125rem;
}
@media (min-width: 640px) {
  .how-card p { font-size: 0.75rem; line-height: 1rem; margin-top: 0.25rem; }
}

/* ========== SECTION HEADINGS ========== */
.section-title {
  font-size: 1.75rem;
  line-height: 2.25rem;
}
@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; line-height: 2.75rem; }
}
@media (min-width: 768px) {
  .section-title { font-size: 3rem; line-height: 3.5rem; }
}

.section-subtitle {
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-top: 0.75rem;
}
@media (min-width: 640px) {
  .section-subtitle {
    font-size: 1rem;
    line-height: 1.5rem;
    margin-top: 1rem;
  }
}

/* ========== LANGUAGE SWITCHER ========== */
.lang-dropdown {
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.lang-dropdown.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.lang-option.active {
  background-color: #1f2937;
  color: #F97316;
}

/* ========== YOUTUBE TOAST ========== */
.youtube-toast {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}
.youtube-toast.hidden-toast {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

/* ========== ACCESSIBILITY: reduce motion ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- HERO SLIDESHOW ---------- */
.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-dot.active {
  background: #F97316; /* tmx-orange */
  width: 22px;          /* elongated pill for active */
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.hero-dot.active:hover {
  background: #F97316;
}

/* ---------- HERO SLIDESHOW ---------- */
.hero-slide {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

/* ---------- HERO ARROWS ---------- */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  font-size: 14px;
  padding: 0;
  line-height: 1;
}
.hero-arrow:hover {
  background: #F97316;
  border-color: #F97316;
  transform: translateY(-50%) scale(1.08);
}
.hero-arrow-left  { left: 12px; }
.hero-arrow-right { right: 12px; }

@media (max-width: 640px) {
  .hero-arrow {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  .hero-arrow-left  { left: 8px; }
  .hero-arrow-right { right: 8px; }
}

/* ---------- HERO DOTS ---------- */
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}
.hero-dot.active {
  background: #F97316;   /* tmx-orange */
  width: 22px;           /* elongated pill for active */
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}
.hero-dot.active:hover {
  background: #F97316;
}

/* ---------- YOUTUBE TOAST ---------- */
.youtube-toast {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.youtube-toast.hidden-toast {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
