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

:root {
  --primary-orange: #FF6600;
  --primary-orange-hover: #E65C00;
  --primary-orange-light: rgba(255, 102, 0, 0.1);
  --dark-bg: #0B0F19;
  --dark-card: #111827;
  --dark-border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1E293B;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0B0F19;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #FF6600;
}

/* Reading Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  background: linear-gradient(90deg, #FF6600, #FFA500, #FF3D00);
  width: 0%;
  z-index: 100;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 12px rgba(255, 102, 0, 0.9);
}

/* Gradient Text Utilities */
.text-gradient-orange {
  background: linear-gradient(135deg, #FF6600 0%, #FFA14A 50%, #FF5500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-white {
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Floating Ambient Aurora Orbs */
.aurora-orb-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.18) 0%, rgba(255, 102, 0, 0) 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: floatOrb 8s ease-in-out infinite alternate;
}

.aurora-orb-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
  animation: floatOrb 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

.hero-grid-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Infinite Rolling Marquee */
.marquee-wrapper {
  overflow: hidden;
  user-select: none;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 3rem;
  min-width: 100%;
  animation: scrollMarquee 25s linear infinite;
}

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

@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 3rem)); }
}

/* Designer Glass Cards (Bento Style) */
.bento-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.4), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 40px -15px rgba(255, 102, 0, 0.18), 0 0 20px rgba(255, 102, 0, 0.08);
}

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

/* Floating Status Chips (Around Hero Mockup) */
.status-chip {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 102, 0, 0.2);
  border-radius: 9999px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  z-index: 30;
  animation: floatSlow 5s ease-in-out infinite;
}

@keyframes floatSlow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Arrow Vector Animation */
.animated-arrow-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawArrow 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drawArrow {
  to {
    stroke-dashoffset: 0;
  }
}

.arrow-head {
  opacity: 0;
  transform: translateY(10px) scale(0.8);
  animation: popIn 0.5s ease-out 2.2s forwards;
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Device Mockups with 3D feel */
.laptop-frame {
  background: #1e293b;
  border-radius: 14px 14px 0 0;
  border: 3px solid #334155;
  border-bottom: none;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 102, 0, 0.18);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

.laptop-base {
  background: linear-gradient(to bottom, #475569, #334155);
  height: 14px;
  border-radius: 0 0 14px 14px;
  position: relative;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.laptop-base::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #1e293b;
  border-radius: 0 0 4px 4px;
}

.mobile-frame {
  background: #0f172a;
  border-radius: 30px;
  border: 4px solid #334155;
  box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 102, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.mobile-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: 16px;
  background: #0f172a;
  border-radius: 0 0 10px 10px;
  z-index: 20;
}

/* Button Shimmer / Shine Effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: rotate(25deg) translateY(-100%);
  animation: shimmer 4s infinite;
}

@keyframes shimmer {
  0% { transform: rotate(25deg) translateY(-120%); }
  25%, 100% { transform: rotate(25deg) translateY(120%); }
}

/* Orange Glows */
.orange-glow {
  box-shadow: 0 10px 30px -5px rgba(255, 102, 0, 0.5);
}

.orange-glow-sm {
  box-shadow: 0 4px 15px -2px rgba(255, 102, 0, 0.35);
}

/* Process connector lines animation */
@media (min-width: 1024px) {
  .process-connector::after {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(100% - 16px);
    width: 32px;
    height: 2px;
    background: repeating-linear-gradient(90deg, #FF6600, #FF6600 6px, transparent 6px, transparent 12px);
    background-size: 24px 2px;
    animation: moveLine 1.5s linear infinite;
    z-index: 10;
  }
  .process-connector:last-child::after {
    display: none;
  }
}

@keyframes moveLine {
  0% { background-position: 0 0; }
  100% { background-position: 24px 0; }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translateX(-40px);
}

.reveal.reveal-right {
  transform: translateX(40px);
}

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

/* Stagger Delays */
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }
.delay-5 { transition-delay: 0.40s; }
.delay-6 { transition-delay: 0.48s; }

/* Radar Pulse for Floating WhatsApp */
@keyframes radarPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.8); opacity: 0; }
}

.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: #10B981;
  animation: radarPulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  pointer-events: none;
  z-index: -1;
}

/* Floating animation */
.animate-float {
  animation: floatSlow 5s ease-in-out infinite;
}

/* Image zoom effect */
.card-image-zoom {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.group:hover .card-image-zoom {
  transform: scale(1.08);
  filter: brightness(1.05);
}

/* ==========================================================================
   LIGHT & DARK MODE STYLING ENGINE
   ========================================================================== */

/* Theme transitions */
body, section, div, header, footer, input, textarea, select, button {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease, box-shadow 0.25s ease;
}

/* Base dark styles */
html.dark {
  color-scheme: dark;
}

html.dark body {
  background-color: #0B0F19 !important;
  color: #F1F5F9 !important;
}

/* Dark mode section backgrounds */
html.dark section.bg-white,
html.dark section.bg-\[\#FAFAFA\],
html.dark section.bg-slate-50,
html.dark section.bg-gray-50 {
  background-color: #0B0F19 !important;
}

/* Bento & Card containers in dark mode */
html.dark .bento-card {
  background: rgba(17, 24, 39, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.3) !important;
}

html.dark .bento-card:hover {
  border-color: rgba(255, 102, 0, 0.35) !important;
  box-shadow: 0 20px 40px -15px rgba(255, 102, 0, 0.2), 0 0 25px rgba(255, 102, 0, 0.1) !important;
}

/* Cards & Elevated Containers in Dark Mode */
html.dark .hover-lift,
html.dark .rounded-3xl.bg-white,
html.dark .rounded-2xl.bg-white,
html.dark .rounded-xl.bg-white,
html.dark .rounded-3xl.bg-\[\#FAFAFA\],
html.dark .rounded-2xl.bg-\[\#FAFAFA\],
html.dark .rounded-xl.bg-\[\#FAFAFA\],
html.dark .bg-white:not(section):not(header):not(body),
html.dark .bg-\[\#FAFAFA\]:not(section):not(header):not(body),
html.dark .bg-slate-50:not(section):not(header):not(body) {
  background-color: #111827 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Dark mode text colors */
html.dark .text-slate-900,
html.dark .text-slate-800,
html.dark .text-gray-900,
html.dark .text-gray-800 {
  color: #F8FAFC !important;
}

html.dark .text-slate-700,
html.dark .text-gray-700 {
  color: #E2E8F0 !important;
}

html.dark .text-slate-600,
html.dark .text-slate-500,
html.dark .text-gray-600,
html.dark .text-gray-500 {
  color: #94A3B8 !important;
}

/* Dark mode borders */
html.dark .border-slate-100,
html.dark .border-slate-200,
html.dark .border-slate-200\/70,
html.dark .border-slate-200\/80,
html.dark .border-slate-200\/90,
html.dark .border-slate-300,
html.dark .border-gray-100,
html.dark .border-gray-200 {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark .border-t,
html.dark .border-b,
html.dark .border-y {
  border-color: rgba(255, 255, 255, 0.08);
}

/* Light badges / pills in dark mode */
html.dark .bg-slate-100,
html.dark .bg-slate-200 {
  background-color: #1E293B !important;
  color: #E2E8F0 !important;
}

html.dark .bg-orange-50,
html.dark .bg-orange-50\/60,
html.dark .bg-orange-100 {
  background-color: rgba(255, 102, 0, 0.12) !important;
}

html.dark .bg-emerald-50,
html.dark .bg-emerald-100 {
  background-color: rgba(16, 185, 129, 0.12) !important;
}

html.dark .bg-blue-50,
html.dark .bg-blue-100 {
  background-color: rgba(59, 130, 246, 0.12) !important;
}

html.dark .bg-purple-50,
html.dark .bg-purple-100 {
  background-color: rgba(168, 85, 247, 0.12) !important;
}

/* Form Inputs & Controls in Dark Mode */
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="tel"],
html.dark textarea,
html.dark select {
  background-color: #161F30 !important;
  color: #F8FAFC !important;
  border-color: #2D3B53 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
  color: #64748B !important;
}

html.dark input:focus,
html.dark textarea:focus,
html.dark select:focus {
  border-color: #FF6600 !important;
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.25) !important;
}

html.dark select option {
  background-color: #161F30;
  color: #F8FAFC;
}

/* Modals in Dark Mode */
html.dark .modal-box {
  background-color: #111827 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #F8FAFC !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8) !important;
}

html.dark #close-project-modal,
html.dark #close-quote-modal {
  background-color: #1E293B !important;
  color: #CBD5E1 !important;
}

html.dark #close-project-modal:hover,
html.dark #close-quote-modal:hover {
  background-color: #334155 !important;
  color: #FFFFFF !important;
}

/* Filter buttons in portfolio */
html.dark .filter-btn:not(.bg-\[\#FF6600\]) {
  background-color: #1E293B !important;
  color: #94A3B8 !important;
}

html.dark .filter-btn:not(.bg-\[\#FF6600\]):hover {
  background-color: #2D3B53 !important;
  color: #FFFFFF !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  position: relative;
  cursor: pointer;
  user-select: none;
  width: 40px;
  height: 40px;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
}

.theme-toggle-btn:active {
  transform: scale(0.92);
}

/* Icon visibility control */
html.dark .theme-icon-moon {
  display: none !important;
}
html.dark .theme-icon-sun {
  display: block !important;
}
html:not(.dark) .theme-icon-moon {
  display: block !important;
}
html:not(.dark) .theme-icon-sun {
  display: none !important;
}

/* Pricing Tab Buttons in Dark Mode */
html.dark .pricing-tab-btn:not(.active) {
  background-color: #1E293B !important;
  color: #94A3B8 !important;
  border-color: #334155 !important;
}

html.dark .pricing-tab-btn:not(.active):hover {
  background-color: #2D3B53 !important;
  color: #F8FAFC !important;
}

