/* ==========================================================================
   DIGITALTASK DIGITAL MARKETING AGENCY - CUSTOM STYLES
   Futuristic Neo-Tokyo / Minimalist Japanese Aesthetic with Glassmorphism
   ========================================================================== */

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

:root {
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-dark: #334155;
  --accent-dark: #1e293b;
  --accent-black: #090d16;
  --primary-glow: rgba(15, 23, 42, 0.04);

  /* Brand Accent — dynamically updated by admin panel */
  --dt-accent: #ff5a36;
  --dt-accent-rgb: 255, 90, 54;
  --dt-accent-hover: #e04522;
  --dt-accent-dark: #ff7555;
  --dt-accent-light: rgba(255, 90, 54, 0.12);
  --dt-accent-border: rgba(255, 90, 54, 0.28);
}

.dark {
  --bg-main: #090d16;
  --bg-subtle: #0f172a;
  --bg-card: #111827;
  --text-dark: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-light: #1e293b;
  --border-dark: #334155;
  --accent-dark: #0f172a;
  --accent-black: #020617;
  --primary-glow: rgba(56, 189, 248, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, .font-heading {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
}

.font-tech {
  font-family: 'Space Grotesk', monospace;
}

.font-jp {
  font-family: 'Noto Sans JP', 'Plus Jakarta Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Touch friendly and prevent tap highlight issues */
a, button, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

/* Hide scrollbars for app-style horizontal swipe lists */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Background Canvas for Simple Artistic Animation */
#artistic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Content Container above Canvas */
.relative-content {
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   CURSOR GLOW FOLLOWER
   ========================================================================== */
#cursor-glow {
  will-change: transform;
  transition: transform 0.05s linear, opacity 0.3s ease;
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 90, 54, 0.08) 0%, transparent 70%);
  z-index: 1;
  transition: opacity 0.3s ease;
  mix-blend-mode: normal;
}

.dark #cursor-glow {
  background: radial-gradient(circle, rgba(255, 90, 54, 0.12) 0%, transparent 70%);
}

/* ==========================================================================
   SCROLL PROGRESS BAR (thin line at top)
   ========================================================================== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--dt-accent), #ff8a00, #e11d48);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.26s; }
.delay-4 { transition-delay: 0.34s; }
.delay-5 { transition-delay: 0.42s; }

/* ==========================================================================
   JAPANESE & FUTURISTIC AESTHETIC VISUAL STYLES
   ========================================================================== */

/* Subtle Cyber Grid Background */
.bg-cyber-grid {
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
}
.dark .bg-cyber-grid {
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
}

/* Animated Shimmer Text */
@keyframes textShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.text-shimmer {
  background: linear-gradient(90deg, #ff5a36 0%, #ff8a00 25%, #e11d48 50%, #38bdf8 75%, #ff5a36 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 6s linear infinite;
}

/* Glitch Text Effect */
@keyframes glitch1 {
  0%, 100% { clip-path: inset(50% 0 30% 0); transform: translate(-2px, 0); }
  25% { clip-path: inset(20% 0 60% 0); transform: translate(2px, 0); }
  50% { clip-path: inset(70% 0 10% 0); transform: translate(-1px, 0); }
  75% { clip-path: inset(5% 0 80% 0); transform: translate(1px, 0); }
}
@keyframes glitch2 {
  0%, 100% { clip-path: inset(30% 0 50% 0); transform: translate(2px, 0); }
  25% { clip-path: inset(60% 0 20% 0); transform: translate(-2px, 0); }
  50% { clip-path: inset(10% 0 70% 0); transform: translate(1px, 0); }
  75% { clip-path: inset(80% 0 5% 0); transform: translate(-1px, 0); }
}

.text-glitch {
  position: relative;
  display: inline-block;
}
.text-glitch::before,
.text-glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  opacity: 0;
}
.text-glitch:hover::before {
  opacity: 0.7;
  color: #ff5a36;
  animation: glitch1 0.4s steps(1) infinite;
}
.text-glitch:hover::after {
  opacity: 0.7;
  color: #38bdf8;
  animation: glitch2 0.4s steps(1) infinite;
}

/* Slow Floating Animation */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

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

/* Gentle Glow Pulse */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ==========================================================================
   FLOATING BLOB BACKGROUNDS (Morphing gradient orbs)
   ========================================================================== */
@keyframes blobMorph1 {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(0, 0) scale(1); }
  33%       { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; transform: translate(15px, -20px) scale(1.05); }
  66%       { border-radius: 50% 40% 60% 30% / 40% 50% 60% 50%; transform: translate(-10px, 10px) scale(0.97); }
}
@keyframes blobMorph2 {
  0%, 100% { border-radius: 40% 60% 60% 40% / 70% 30% 50% 40%; transform: translate(0, 0) scale(1); }
  40%       { border-radius: 60% 40% 30% 70% / 40% 70% 30% 60%; transform: translate(-15px, 10px) scale(1.03); }
  70%       { border-radius: 30% 50% 70% 30% / 50% 40% 60% 40%; transform: translate(10px, -12px) scale(0.98); }
}

.blob-1, .blob-2, .blob-3 {
  position: absolute;
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}
.blob-1 {
  width: 600px; height: 500px;
  background: radial-gradient(circle, rgba(255, 90, 54, 0.08) 0%, transparent 70%);
  animation: blobMorph1 12s ease-in-out infinite;
  top: -120px; left: -150px;
}
.blob-2 {
  width: 500px; height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
  animation: blobMorph2 16s ease-in-out infinite;
  bottom: -100px; right: -100px;
}
.blob-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  animation: blobMorph1 20s ease-in-out infinite reverse;
  top: 40%; left: 30%;
}

/* ==========================================================================
   FUTURISTIC CARD 3D TILT (applied via JS)
   ========================================================================== */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.25s ease;
}

/* ==========================================================================
   COUNTER ANIMATION (numbers count up)
   ========================================================================== */
.count-up {
  display: inline-block;
}

/* ==========================================================================
   FUTURISTIC PROGRESS LINE ACCENT
   ========================================================================== */
.line-accent {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--dt-accent), transparent);
  animation: lineGrow 2s ease-in-out infinite alternate;
}
@keyframes lineGrow {
  from { opacity: 0.3; }
  to { opacity: 0.9; }
}

/* ==========================================================================
   FUTURISTIC Tech Corner Accents (Targeting reticle / cyber look)
   ========================================================================== */
.tech-corner-box {
  position: relative;
}
.tech-corner-box::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 10px; height: 10px;
  border-top: 2px solid var(--dt-accent);
  border-left: 2px solid var(--dt-accent);
  pointer-events: none;
}
.tech-corner-box::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 10px; height: 10px;
  border-bottom: 2px solid var(--dt-accent);
  border-right: 2px solid var(--dt-accent);
  pointer-events: none;
}

/* Japanese Minimalist Tag */
.tag-japan {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(255, 90, 54, 0.08);
  color: var(--dt-accent);
  border: 1px solid rgba(255, 90, 54, 0.25);
}

.dark .tag-japan {
  background: rgba(255, 90, 54, 0.12);
  color: #ff8a65;
  border-color: rgba(255, 90, 54, 0.35);
}

/* Japanese Background Kanji Watermark */
.kanji-watermark {
  position: absolute;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  user-select: none;
  pointer-events: none;
  opacity: 0.035;
  line-height: 1;
}

.dark .kanji-watermark {
  opacity: 0.06;
}

/* ==========================================================================
   INTERACTIVE CARDS (Zero-Lag 3D Tilt + Dynamic Spotlight Glare)
   ========================================================================== */
.card-japan-glow,
.card-glass,
.card-dark {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  /* Only transition lighting & colors; transform is driven at 60fps by JS */
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.card-glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
}

.dark .card-glass {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(51, 65, 85, 0.6);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

.card-japan-glow:hover,
.card-glass:hover {
  box-shadow: 0 25px 45px -12px rgba(var(--dt-accent-rgb), 0.22);
  border-color: rgba(var(--dt-accent-rgb), 0.5);
}

.dark .card-japan-glow:hover,
.dark .card-glass:hover {
  border-color: rgba(var(--dt-accent-rgb), 0.6);
  box-shadow: 0 25px 45px -12px rgba(var(--dt-accent-rgb), 0.3);
}

/* Dynamic Cursor Spotlight Glare Beam on Cards */
.card-japan-glow::before,
.card-glass::before,
.card-dark::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    500px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(var(--dt-accent-rgb), 0.12),
    transparent 50%
  );
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dark .card-japan-glow::before,
.dark .card-glass::before,
.dark .card-dark::before {
  background: radial-gradient(
    500px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(var(--dt-accent-rgb), 0.18),
    transparent 50%
  );
}

.card-japan-glow:hover::before,
.card-glass:hover::before,
.card-dark:hover::before {
  opacity: 1;
}

/* Dark Theme Cards */
.card-dark {
  background: #0f172a;
  border: 1px solid #1e293b;
  color: #f8fafc;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-dark:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 40px -10px rgba(0, 0, 0, 0.45);
  border-color: #334155;
}

/* Custom subtle badge styles */
.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.dark .badge-soft {
  background-color: #1e293b;
  color: #94a3b8;
  border-color: #334155;
}

.badge-dark {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  background-color: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
}

/* Pricing Breakdown Highlight Box */
.pricing-breakdown-box {
  background: #f8fafc;
  border-left: 3px solid #0f172a;
  border-radius: 0 8px 8px 0;
}

.dark .pricing-breakdown-box {
  background: #1e293b;
  border-left: 3px solid #38bdf8;
}

/* Smooth Accordion Animations */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-content.open {
  max-height: 500px;
  opacity: 1;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

/* Subtle Glowing Button */
.btn-primary-dark {
  background-color: var(--dt-accent);
  color: #ffffff;
  border: 1px solid var(--dt-accent);
  transition: all 0.2s ease-in-out;
}

.btn-primary-dark:hover {
  background-color: var(--dt-accent-hover);
  box-shadow: 0 10px 20px -5px rgba(var(--dt-accent-rgb), 0.35);
  transform: translateY(-1px);
}

.dark .btn-primary-dark {
  background-color: var(--dt-accent);
  color: #ffffff;
  border-color: var(--dt-accent);
}

.dark .btn-primary-dark:hover {
  background-color: var(--dt-accent-hover);
  box-shadow: 0 10px 20px -5px rgba(var(--dt-accent-rgb), 0.4);
}

.btn-outline-dark {
  background-color: transparent;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  transition: all 0.2s ease-in-out;
}

.btn-outline-dark:hover {
  border-color: #0f172a;
  background-color: #f8fafc;
  color: #0f172a;
}

.dark .btn-outline-dark {
  color: #f8fafc;
  border-color: #475569;
}

.dark .btn-outline-dark:hover {
  border-color: #38bdf8;
  background-color: #1e293b;
  color: #38bdf8;
}

/* ==========================================================================
   MAGNETIC BUTTON EFFECT
   ========================================================================== */
.btn-magnetic {
  position: relative;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ==========================================================================
   TYPED TEXT CURSOR
   ========================================================================== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--dt-accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s ease-in-out infinite;
}

/* ==========================================================================
   ANIMATED SECTION LABELS (monospace, fade in from left)
   ========================================================================== */
@keyframes labelSlide {
  from { opacity: 0; letter-spacing: 0.25em; }
  to { opacity: 1; letter-spacing: 0.1em; }
}
.label-reveal {
  animation: labelSlide 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

/* ==========================================================================
   HOVER UNDERLINE SLIDE EFFECT
   ========================================================================== */
.hover-underline {
  position: relative;
}
.hover-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1.5px;
  background: var(--dt-accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.hover-underline:hover::after {
  width: 100%;
}

/* ==========================================================================
   ANIMATED STAT NUMBER HIGHLIGHT
   ========================================================================== */
.stat-highlight {
  position: relative;
  display: inline-block;
}
.stat-highlight::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 30%;
  background: rgba(var(--dt-accent-rgb), 0.12);
  z-index: -1;
  border-radius: 2px;
}

/* ==========================================================================
   INSTAGRAM / FACEBOOK PLATFORM BADGES
   ========================================================================== */
.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}
.platform-badge.instagram {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.12), rgba(193, 53, 132, 0.1));
  color: #c13584;
  border: 1px solid rgba(193, 53, 132, 0.28);
}
.dark .platform-badge.instagram {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.18), rgba(193, 53, 132, 0.15));
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.4);
}
.platform-badge.facebook {
  background: rgba(66, 103, 178, 0.1);
  color: #4267B2;
  border: 1px solid rgba(66, 103, 178, 0.28);
}
.dark .platform-badge.facebook {
  background: rgba(66, 103, 178, 0.18);
  color: #6b8dd6;
  border-color: rgba(66, 103, 178, 0.4);
}

/* ==========================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark ::-webkit-scrollbar-track {
  background: #090d16;
}
.dark ::-webkit-scrollbar-thumb {
  background: #1e293b;
}
.dark ::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Mockup browser frame */
.browser-mockup {
  border-radius: 8px 8px 0 0;
  background: #1e293b;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ==========================================================================
   MOBILE RESPONSIVE TWEAKS
   ========================================================================== */
@media (max-width: 640px) {
  .blob-1, .blob-2, .blob-3 {
    width: 280px;
    height: 280px;
  }
  #cursor-glow {
    display: none; /* disable cursor glow on touch devices */
  }
}

/* ==========================================================================
   FOOTER SAFE AREA (ensure floating pill never covers copyright)
   ========================================================================== */
footer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
  position: relative;
  z-index: 20;
}

/* ==========================================================================
   INFINITE MARQUEE TICKER (Cyber Agency Aesthetic)
   ========================================================================== */
.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  gap: 2rem;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  min-width: 100%;
  gap: 2rem;
  animation: scrollMarquee 28s linear infinite;
}

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

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