/* Dev Studio Senja - High-End Dark UI */
/* Dual Sunset Gradient Accent: Dawn Amber (#FF8A3D) to Twilight Berry/Magenta (#963C69) */

:root {
  --color-canvas: #08090c;
  --color-surface-1: #0e1017;
  --color-surface-2: #141722;
  --color-surface-3: #1b1f2e;

  /* 2-Color Sunset Gradient: Dawn Orange & Logo Red-Purple */
  --senja-orange: #ff8a3d;
  --senja-purple: #963c69;
  --senja-purple-vivid: #b8385e;
  --senja-gradient: linear-gradient(135deg, #ff8a3d 0%, #963c69 100%);
  --senja-gradient-h: linear-gradient(90deg, #ff8a3d 0%, #b8385e 50%, #963c69 100%);
  --senja-gradient-hover: linear-gradient(135deg, #ff9e59 0%, #a84475 100%);

  --text-primary: #ffffff;
  --text-secondary: #9499a6;
  --text-muted: #5e6370;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
}

html {
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ff8a3d #08090c;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
}

body {
  background-color: var(--color-canvas);
  color: var(--text-primary);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar,
html::-webkit-scrollbar {
  width: 6px;
}

body::-webkit-scrollbar-track,
html::-webkit-scrollbar-track {
  background: #08090c;
}

body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff8a3d 0%, #963c69 100%);
  border-radius: 99px;
}

/* Typography Gradient (White to Sunset Dusk Gradient) */
.tg {
  background: linear-gradient(135deg, #ffffff 35%, #ff8a3d 75%, #963c69 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Text Gradient: 2-Color Sunset (Dawn Orange to Logo Red-Purple) */
.text-senja-gradient {
  background: linear-gradient(135deg, #ff8a3d 0%, #b8385e 55%, #963c69 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-senja {
  color: #ff8a3d;
}

.text-senja-purple {
  color: #c0396b;
}

/* Gradient Buttons & Backgrounds */
.bg-senja-gradient {
  background: linear-gradient(135deg, #ff8a3d 0%, #963c69 100%);
}

.bg-senja-gradient:hover {
  background: linear-gradient(135deg, #ff9b54 0%, #a84475 100%);
}

.bg-senja-gradient-h {
  background: linear-gradient(90deg, #ff8a3d 0%, #b8385e 50%, #963c69 100%);
}

/* Sunset Glowing Buttons */
.btn-senja-gradient {
  background: linear-gradient(135deg, #ff8a3d 0%, #963c69 100%);
  color: #ffffff;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px -2px rgba(255, 138, 61, 0.3), 0 2px 10px -2px rgba(150, 60, 105, 0.25);
}

.btn-senja-gradient:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 8px 24px -2px rgba(255, 138, 61, 0.45), 0 4px 16px -2px rgba(150, 60, 105, 0.35);
}

/* Minimalist Glass Card */
.glass-card {
  background: #0e1017;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.glass-card:hover {
  border-color: rgba(255, 138, 61, 0.3);
}

/* Subtle Spotlight with Sunset Dual-Color Hue */
.spotlight-card {
  position: relative;
  background-color: #0e1017;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 138, 61, 0.12),
    rgba(150, 60, 105, 0.08) 40%,
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

.spotlight-card:hover {
  border-color: rgba(255, 138, 61, 0.35);
}

/* Marquee Ticker */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Code Window */
.code-window {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}

/* Glow utilities (Dual Sunset Glow) */
.glow-senja {
  box-shadow: 0 8px 26px -4px rgba(255, 138, 61, 0.35), 0 4px 18px -4px rgba(150, 60, 105, 0.3);
}

.glow-senja-sm {
  box-shadow: 0 4px 14px -2px rgba(255, 138, 61, 0.3), 0 2px 10px -2px rgba(150, 60, 105, 0.25);
}

/* Fullscreen 3D Canvas */
#three-full-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  outline: none;
  cursor: grab;
  touch-action: pan-y;
}

#three-full-canvas:active {
  cursor: grabbing;
}

/* Device Mockups */
.mockup-desktop {
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: #08090c;
  overflow: hidden;
}

.mockup-mobile {
  max-width: 290px;
  margin: 0 auto;
  border-radius: 36px;
  padding: 8px;
  background: #141722;
  border: 2px solid var(--border-subtle);
}

.mockup-mobile-inner {
  border-radius: 28px;
  overflow: hidden;
  background: #08090c;
}

/* Range slider with 2-color Sunset Gradient */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  height: 5px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff8a3d 0%, #963c69 100%);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(255, 138, 61, 0.4);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: 0 4px 12px rgba(255, 138, 61, 0.6);
}

/* Custom Sunset Gradient Checkbox */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.375rem;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  position: relative;
  outline: none;
}

.custom-checkbox:hover {
  border-color: #ff8a3d;
  background-color: rgba(255, 138, 61, 0.12);
  box-shadow: 0 0 10px rgba(255, 138, 61, 0.25);
}

.custom-checkbox:checked {
  background: var(--senja-gradient);
  border-color: #ff8a3d;
  box-shadow: 0 0 14px rgba(255, 138, 61, 0.45);
}

.custom-checkbox:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}

.custom-checkbox:focus-visible {
  outline: 2px solid #ff8a3d;
  outline-offset: 2px;
}
