@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@700&display=swap');

:root {
  --color-dark: #0A0A0B;
  --color-dark-card: #141416;
  --color-light: #F8F9FA;
  --color-light-card: #FFFFFF;
  --color-accent: #FF5A36; /* Coral Orange */
  --color-accent-hover: #E04826;
  --font-title: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-logo: 'Space Grotesk', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  letter-spacing: -0.03em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-dark);
}
::-webkit-scrollbar-thumb {
  background: #2A2A2D;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}



/* 3D Showcase Perspective and Cards */
.perspective-container {
  perspective: 1500px;
  transform-style: preserve-3d;
}

.case-card-wrapper {
  position: relative;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.6s;
  z-index: 10;
  transform-style: preserve-3d;
}

/* Default fan-out angles to mimic the screenshot on desktop */
@media (min-width: 1024px) {
  .case-card-1 {
    transform: rotateY(16deg) rotateX(6deg) rotateZ(-3deg) translateZ(0px);
  }
  .case-card-2 {
    transform: rotateY(0deg) rotateX(6deg) rotateZ(0deg) translateZ(30px);
  }
  .case-card-3 {
    transform: rotateY(-16deg) rotateX(6deg) rotateZ(3deg) translateZ(0px);
  }
}

/* Hover styles for case cards */
.case-card-wrapper:hover {
  z-index: 50;
  transform: rotateY(calc(var(--ry, 0) * 1deg)) rotateX(calc(var(--rx, 0) * 1deg)) translateZ(80px) scale(1.05) !important;
}

/* Internal elements translate in Z axis for 3D depth pop out */
.case-card {
  transform-style: preserve-3d;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.4);
  transition: box-shadow 0.3s ease;
  height: 480px;
}

.case-card-wrapper:hover .case-card {
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.6);
}

.depth-content {
  transform: translateZ(40px);
  transform-style: preserve-3d;
}

.depth-button {
  transform: translateZ(60px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card-wrapper:hover .depth-button {
  opacity: 1;
  pointer-events: auto;
  transform: translateZ(75px) scale(1.1);
}

/* CSS UI mockups inside case cards */
.mockup-header {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Custom transitions and states */
.transition-custom {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-lift:hover {
  transform: translateY(-8px);
}

/* Text highlight gradient */
.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 0%, #A1A1AA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #FF8A65 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.revealed {
  opacity: 1;
  transform: translate(0) !important;
}

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

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

/* Glow effects */
.glow-spot {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 95, 56, 0.12) 0%, rgba(255, 95, 56, 0) 70%);
  top: -100px;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 0.15s ease-out, top 0.15s ease-out; /* Smooth follow delay */
}

/* Hero Tech Grid & Glow-Spot */
#hero {
  position: relative;
  background-color: #0A0A0B;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
  z-index: 2;
  pointer-events: none;
}

/* Pulsing Status Dot Glow */
@keyframes pulseGlow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 90, 54, 0.6), 0 0 20px rgba(255, 90, 54, 0.3);
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 20px rgba(255, 90, 54, 0.95), 0 0 35px rgba(255, 90, 54, 0.6);
    transform: scale(1.08);
  }
}
.animate-pulse-glow {
  display: inline-block;
  animation: pulseGlow 2.5s infinite ease-in-out;
  color: #FF5A36;
}

/* Floating Glass Cards */
.floating-glass-card {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}
.floating-glass-card:hover {
  border-color: rgba(255, 90, 54, 0.3);
  box-shadow: 0 30px 60px -15px rgba(255, 90, 54, 0.15);
}

/* Layered 3D Popouts inside Hero Tilt */
.hero-tilt-wrapper:hover .card-seo {
  transform: translateZ(50px) scale(1.02);
}
.hero-tilt-wrapper:hover .card-api {
  transform: translateZ(35px) scale(1.02);
}
.hero-tilt-wrapper:hover .card-rating {
  transform: translateZ(65px) scale(1.02);
}

/* Mobile Menu Transition */
#mobile-menu {
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

/* Bento grid custom aspect and styles */
.bento-card {
  background: var(--color-light-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  border-color: rgba(255, 95, 56, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
}

.bento-card-dark {
  background: var(--color-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.bento-card-dark:hover {
  border-color: rgba(255, 95, 56, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Custom interactive element styles */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0px;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover::after {
  width: 100%;
}

/* Hamburger Line Animations when active */
.menu-open #hamburger-line-1 {
  transform: translateY(4px) rotate(45deg);
}
.menu-open #hamburger-line-2 {
  transform: translateY(-4px) rotate(-45deg);
}

/* Custom logo font styling */
.font-logo {
  font-family: var(--font-logo);
}

/* Custom range slider styling */
.custom-range {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  outline: none;
  transition: background 0.1s ease;
}
.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 95, 56, 0.6);
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s;
  margin-top: -6.5px; /* Pull the thumb up to align its center with the track center */
}
.custom-range::-webkit-slider-thumb:hover,
.custom-range::-webkit-slider-thumb:active {
  transform: scale(1.35);
  background: #ff7f62;
  box-shadow: 0 0 18px rgba(255, 95, 56, 0.8);
}
.custom-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 95, 56, 0.6);
  transition: transform 0.15s ease, background-color 0.2s;
}
.custom-range::-moz-range-thumb:hover,
.custom-range::-moz-range-thumb:active {
  transform: scale(1.35);
  background: #ff7f62;
  box-shadow: 0 0 18px rgba(255, 95, 56, 0.8);
}

/* Custom track overrides to clear default browser background tracks */
.custom-range::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  background: transparent;
  border: none;
  height: 5px;
}
.custom-range::-moz-range-track {
  background: transparent;
  border: none;
  height: 5px;
}



/* Custom mockup micro-animations */
@keyframes float-element {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float {
  animation: float-element 4s ease-in-out infinite;
}

@keyframes spin-pulse {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.12); }
  100% { transform: rotate(360deg) scale(1); }
}
.animate-spin-slow {
  animation: spin-pulse 6s linear infinite;
}

@keyframes shine-sweep {
  0% { left: -150%; }
  45% { left: 150%; }
  100% { left: 150%; }
}
.animate-shine {
  position: relative;
  overflow: hidden;
}
.animate-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 65%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shine-sweep 4s infinite ease-in-out;
}

@keyframes node-pulse-slow {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(255, 90, 54, 0)); border-color: rgba(0,0,0,0.05); }
  50% { transform: scale(1.12); filter: drop-shadow(0 0 8px rgba(255, 90, 54, 0.45)); border-color: rgba(255, 90, 54, 0.4); }
}
.pulse-seq-1 { animation: node-pulse-slow 3s infinite ease-in-out; }
.pulse-seq-2 { animation: node-pulse-slow 3s infinite ease-in-out; animation-delay: 0.8s; }
.pulse-seq-3 { animation: node-pulse-slow 3s infinite ease-in-out; animation-delay: 1.6s; }

@keyframes chart-grow {
  0%, 100% { transform: scaleY(0.2); }
  50% { transform: scaleY(1.3); }
}
.chart-bar-1 { animation: chart-grow 2s ease-in-out infinite; transform-origin: bottom; }
.chart-bar-2 { animation: chart-grow 2.5s ease-in-out infinite; transform-origin: bottom; animation-delay: 0.3s; }
.chart-bar-3 { animation: chart-grow 1.8s ease-in-out infinite; transform-origin: bottom; animation-delay: 0.6s; }

@keyframes voice-wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1.8); }
}
.wave-bar-1 { animation: voice-wave 1.2s ease-in-out infinite; transform-origin: bottom; }
.wave-bar-2 { animation: voice-wave 0.8s ease-in-out infinite; transform-origin: bottom; animation-delay: 0.15s; }
.wave-bar-3 { animation: voice-wave 1.4s ease-in-out infinite; transform-origin: bottom; transform-origin: bottom; animation-delay: 0.3s; }
.wave-bar-4 { animation: voice-wave 1.0s ease-in-out infinite; transform-origin: bottom; animation-delay: 0.45s; }

/* Active state for calculator preset buttons */
.active-preset {
  background-color: #FFFFFF !important;
  color: #0A0A0B !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Interactive Contact Form Service Chips */
.service-chip:has(input:checked) {
  background-color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(255, 90, 54, 0.2);
}

/* Responsive Resize Simulation for Webdesign Mockup */
@keyframes responsive-simulate {
  0%, 100% { width: 85%; }
  45%, 55% { width: 50%; }
}
.animate-responsive-preview {
  animation: responsive-simulate 7s ease-in-out infinite;
}
/* Audio Waveform Bar Animations */
@keyframes bar-bounce-1 { 0%, 100% { height: 4px; } 50% { height: 14px; } }
@keyframes bar-bounce-2 { 0%, 100% { height: 6px; } 50% { height: 16px; } }
@keyframes bar-bounce-3 { 0%, 100% { height: 3px; } 50% { height: 11px; } }
@keyframes bar-bounce-4 { 0%, 100% { height: 5px; } 50% { height: 13px; } }

.animate-bar-1 { animation: bar-bounce-1 0.6s ease-in-out infinite; }
.animate-bar-2 { animation: bar-bounce-2 0.8s ease-in-out infinite; }
.animate-bar-3 { animation: bar-bounce-3 0.5s ease-in-out infinite; }
.animate-bar-4 { animation: bar-bounce-4 0.7s ease-in-out infinite; }

/* Case Study Screenshot Auto-Scroll */
@keyframes scrollPreview {
  0%, 8% {
    transform: translateY(0);
  }
  46%, 54% {
    transform: translateY(var(--scroll-dist, 0));
  }
  92%, 100% {
    transform: translateY(0);
  }
}
.animate-scroll-preview {
  animation: scrollPreview 14s infinite ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
}
.group:hover .animate-scroll-preview {
  animation-play-state: paused;
}

/* Animated Data Packet flow in Case 2 */
@keyframes packetFlow1 {
  0% { left: 55px; opacity: 0; }
  12% { opacity: 1; }
  38% { opacity: 1; }
  50%, 100% { left: 165px; opacity: 0; }
}
@keyframes packetFlow2 {
  0%, 45% { left: 165px; top: 67px; opacity: 0; }
  52% { opacity: 1; }
  85% { left: 285px; top: 35px; opacity: 1; }
  92%, 100% { left: 285px; top: 35px; opacity: 0; }
}
.data-packet-1 {
  animation: packetFlow1 4s infinite linear;
}
.data-packet-2 {
  animation: packetFlow2 4s infinite linear;
}
