/* RanSovie IT Agency & Technology — Enterprise Studio Stylesheet */
:root {
  --rs-white: #FFFFFF;
  --rs-gray: #F6F6F6;
  --rs-ink: #0B1222;
  --rs-ink-muted: #475569;
  --rs-navy: #0B1528;
  --rs-navy-card: #111C32;
  --rs-navy-border: #1E2E4A;
  --rs-gold: #D4AF37;
  --rs-gold-bright: #EAB308;
  --rs-sapphire: #2563EB;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--rs-ink);
  background-color: var(--rs-white);
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  text-wrap: balance;
}

.font-manifesto {
  font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
}

.font-editorial-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.font-mono-tabular {
  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif !important;
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "zero" 0 !important;
}

.font-code-mono {
  font-family: 'DM Sans', 'Plus Jakarta Sans', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 0;
}

/* Primary Nav Link Animation */
.nav-link {
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  display: inline-block;
  white-space: nowrap;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: linear-gradient(90deg, #D4AF37, #EAB308);
  transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-link.active {
  color: #D4AF37 !important;
  font-weight: 700;
}

/* Crisp Studio Card Hover */
.studio-card {
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease, border-color 0.24s ease;
}

.studio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -12px rgba(11, 21, 40, 0.12);
  border-color: rgba(212, 175, 55, 0.75);
}

/* Hero Typewriter & Color-Transition Character Animation */
.hero-type-char {
  display: inline;
  color: #94A3B8;
  transition: color 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-type-char.is-colored {
  color: #0B1222;
}

.hero-type-char.is-accent.is-colored {
  color: var(--hero-accent-color, #D4AF37);
}

.hero-type-caret {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  margin-left: 4px;
  vertical-align: -0.08em;
  background-color: #D4AF37;
  animation: rsCaretBlink 0.9s steps(2, start) infinite;
}

@keyframes rsCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Animated Testimonials Continuous Left-to-Right Sliding Marquee */
.testimonial-marquee-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.testimonial-marquee-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: ransovieTestimonialsGlide 48s linear infinite;
  will-change: transform;
}

.testimonial-marquee-viewport:hover .testimonial-marquee-track,
.testimonial-marquee-track.is-paused {
  animation-play-state: paused;
}

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

/* Hero Scroll-Scrub Pinned Right-Slide & Black Fill Statement */
.rs-scrub-word {
  display: inline-block;
  color: #CBD5E1;
  opacity: 0.36;
  margin-top: 0.04em;
  margin-bottom: 0.04em;
  transform: translateX(34px);
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity, color;
}

.rs-scrub-word.is-lit {
  color: #0B1222;
  opacity: 1;
  transform: translateX(0px);
}

#hero-studio {
  transition: background-color 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

#hero-ambient-aura,
#hero-mouse-aura {
  transition: background-color 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, background-color;
}

#hero-dynamic-desc {
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Inner Stage Floating & Interactive Animations */
.rs-studio-grid {
  background-color: #F8FAFC;
  background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
}

.rs-float-a {
  animation: rsFloatA 6.5s ease-in-out infinite;
}

.rs-float-b {
  animation: rsFloatB 7.5s ease-in-out infinite;
}

@keyframes rsFloatA {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(0.6deg); }
}

@keyframes rsFloatB {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(7px) rotate(-0.6deg); }
}

.rs-stage-enter {
  animation: rsStageEnter 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rsStageEnter {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rs-flow-wire {
  stroke-dasharray: 6 5;
  animation: rsWireFlow 1.4s linear infinite;
}

@keyframes rsWireFlow {
  from { stroke-dashoffset: 22; }
  to { stroke-dashoffset: 0; }
}

.rs-reel-sweep {
  animation: rsReelSweep 4.5s ease-in-out infinite;
}

@keyframes rsReelSweep {
  0%, 100% { transform: translateX(-35%) skewX(-18deg); opacity: 0.25; }
  50% { transform: translateX(135%) skewX(-18deg); opacity: 0.7; }
}

.rs-reel-orbit {
  animation: rsReelOrbit 7s linear infinite;
}

@keyframes rsReelOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.rs-playhead {
  animation: rsPlayheadScrub 6s linear infinite;
}

@keyframes rsPlayheadScrub {
  0% { left: 4%; }
  100% { left: 94%; }
}

/* Directional Multi-Design Slide Entrances (Bottom, Left, Right) */
.rs-enter-bottom {
  animation: rsEnterBottom 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes rsEnterBottom {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.rs-enter-left {
  animation: rsEnterLeft 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes rsEnterLeft {
  from { opacity: 0; transform: translateX(-30px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

.rs-enter-right {
  animation: rsEnterRight 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes rsEnterRight {
  from { opacity: 0; transform: translateX(30px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* Interactive JS-Driven Figma Designer Cursor */
.rs-figma-cursor-live {
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Premiere Pro Audio Track Equalizer Bars */
.rs-eq-bar {
  animation: rsEqBounce 1.1s ease-in-out infinite alternate;
  transform-origin: bottom;
}

@keyframes rsEqBounce {
  0%   { transform: scaleY(0.32); }
  50%  { transform: scaleY(0.95); }
  100% { transform: scaleY(0.55); }
}

/* Glowing Data Packet Travelling Along Wires */
.rs-packet-dot {
  animation: rsPacketGlide 1.9s linear infinite;
}

@keyframes rsPacketGlide {
  0%   { left: 4%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 92%; opacity: 0; }
}

/* Brand Pen / Vector Path & Golden Ratio Grid Drawing */
.rs-brush-draw {
  stroke-dasharray: 260;
  animation: rsBrushDraw 3.4s ease-in-out infinite;
}

@keyframes rsBrushDraw {
  0%   { stroke-dashoffset: 260; opacity: 0.4; }
  45%  { stroke-dashoffset: 0; opacity: 1; }
  85%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -260; opacity: 0.4; }
}

.rs-grid-draw {
  stroke-dasharray: 180;
  animation: rsGridDraw 2.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes rsGridDraw {
  from { stroke-dashoffset: 180; opacity: 0.15; }
  to   { stroke-dashoffset: 0; opacity: 0.85; }
}

/* Luxury Hot-Foil Metallic Card Sheen Sweep */
.rs-foil-card {
  position: relative;
  overflow: hidden;
}

.rs-foil-card::after {
  content: '';
  position: absolute;
  inset: -40% auto -40% -65%;
  width: 55%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.24) 48%, rgba(212, 175, 55, 0.32) 52%, transparent 80%);
  transform: skewX(-18deg);
  animation: rsFoilSheen 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes rsFoilSheen {
  0%   { left: -65%; }
  45%  { left: 135%; }
  100% { left: 135%; }
}

/* Brand Designer Pen Cursor Orbit */
.rs-pen-glide {
  animation: rsPenGlide 3.4s ease-in-out infinite;
}

@keyframes rsPenGlide {
  0%, 100% { transform: translate(0px, 0px) rotate(-10deg); }
  33%      { transform: translate(26px, -18px) rotate(6deg); }
  66%      { transform: translate(-18px, -10px) rotate(-16deg); }
}

/* Editorial Brand Photography Gentle Ken Burns Motion */
.rs-photo-drift {
  animation: rsPhotoDrift 10s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes rsPhotoDrift {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.045) translate3d(-0.6%, -0.6%, 0); }
}

/* 8 Bespoke Service Icon Micro-Animations */
.rs-icon-sketch {
  display: inline-flex;
  animation: rsIconSketch 2.6s ease-in-out infinite;
  transform-origin: bottom left;
}
@keyframes rsIconSketch {
  0%, 100% { transform: rotate(-6deg) translate(0, 0); }
  35% { transform: rotate(8deg) translate(2px, -2px); }
  65% { transform: rotate(-3deg) translate(1px, 1px); }
}

.rs-icon-code {
  display: inline-flex;
  animation: rsIconCode 2.4s ease-in-out infinite;
}
@keyframes rsIconCode {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.16); }
}

.rs-icon-chart {
  display: inline-flex;
  animation: rsIconChart 2.6s ease-in-out infinite;
}
@keyframes rsIconChart {
  0%, 100% { transform: translateY(1px) scale(0.96); }
  50% { transform: translateY(-3px) scale(1.08); }
}

.rs-icon-bot {
  display: inline-flex;
  animation: rsIconBot 2.8s ease-in-out infinite;
}
@keyframes rsIconBot {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  30% { transform: translateY(-2.5px) rotate(-6deg); }
  70% { transform: translateY(-2.5px) rotate(6deg); }
}

.rs-icon-film {
  display: inline-flex;
  animation: rsIconFilm 4.2s linear infinite;
}
@keyframes rsIconFilm {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.08); }
  100% { transform: rotate(0deg) scale(1); }
}

.rs-icon-mobile {
  display: inline-flex;
  animation: rsIconMobile 3s ease-in-out infinite;
}
@keyframes rsIconMobile {
  0%, 60%, 100% { transform: rotate(0deg); }
  70% { transform: rotate(-10deg); }
  80% { transform: rotate(10deg); }
  90% { transform: rotate(-6deg); }
}

.rs-icon-figma {
  display: inline-flex;
  animation: rsIconFigma 3.2s ease-in-out infinite;
}
@keyframes rsIconFigma {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.1); }
}

.rs-icon-api {
  display: inline-flex;
  animation: rsIconApi 2.8s ease-in-out infinite;
}
@keyframes rsIconApi {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.12) rotate(8deg); }
}

/* Dual L-Shaped Tech Partner Watermark Conveyor (Bottom Horizontal -> Corner -> Left Vertical Upward) */
.rs-wm-bottom-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.rs-wm-bottom-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3.75rem;
  width: max-content;
  animation: rsWmSlideLeft 40s linear infinite;
  will-change: transform;
}

.rs-wm-bottom-viewport:hover .rs-wm-bottom-track,
.rs-wm-left-viewport:hover .rs-wm-left-track {
  animation-play-state: paused;
}

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

.rs-wm-left-viewport {
  overflow: hidden;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.rs-wm-left-track {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: rsWmRiseUp 26s linear infinite;
  will-change: transform;
}

@keyframes rsWmRiseUp {
  0%   { transform: translateY(0%); }
  100% { transform: translateY(-50%); }
}

/* Signature Atelier Champagne Gold Button CTA + Smooth 360° Hover Rollover */
.rs-btn-gradient {
  background: linear-gradient(115deg, #C89D28 0%, #E8C96B 36%, #D4AF37 68%, #E8C96B 100%);
  background-size: 240% 100%;
  color: #0B1222 !important;
  font-weight: 800;
  border: 1px solid rgba(11, 21, 40, 0.14);
  box-shadow: 0 10px 24px -10px rgba(180, 126, 18, 0.48);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, filter 0.22s ease, background-position 0.45s ease;
  perspective: 900px;
}

.rs-btn-gradient > span,
.rs-btn-gradient > i {
  display: inline-block;
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: visible;
  will-change: transform;
}

.rs-btn-gradient:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 14px 30px -10px rgba(180, 126, 18, 0.62);
  filter: brightness(1.03);
}

.rs-btn-gradient:hover > span {
  animation: rsBtnTextFlipStand 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.rs-btn-gradient:hover > i {
  animation: rsBtnTextFlipStand 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

@keyframes rsBtnTextFlipStand {
  0%   { transform: rotateX(0deg) translateY(0px); }
  50%  { transform: rotateX(180deg) translateY(-1px); }
  100% { transform: rotateX(360deg) translateY(0px); }
}

.rs-btn-gradient i {
  color: #0B1222 !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-type-char,
  .rs-scrub-word,
  .rs-figma-cursor-live {
    transition: none;
  }
  .hero-type-caret,
  .rs-float-a,
  .rs-float-b,
  .rs-stage-enter,
  .rs-enter-bottom,
  .rs-enter-left,
  .rs-enter-right,
  .rs-flow-wire,
  .rs-reel-sweep,
  .rs-reel-orbit,
  .rs-playhead,
  .rs-eq-bar,
  .rs-packet-dot,
  .rs-brush-draw,
  .rs-grid-draw,
  .rs-foil-card::after,
  .rs-pen-glide,
  .rs-photo-drift,
  .rs-icon-sketch,
  .rs-icon-code,
  .rs-icon-chart,
  .rs-icon-bot,
  .rs-icon-film,
  .rs-icon-mobile,
  .rs-icon-figma,
  .rs-icon-api,
  .rs-wm-bottom-track,
  .rs-wm-left-track,
  .rs-btn-gradient,
  .rs-btn-gradient:hover > span,
  .rs-btn-gradient:hover > i {
    animation: none;
  }
  .testimonial-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
}
