/* ========================================
   AsetZ Marketing - Custom Styles
   ======================================== */

/* CSS Variables */
:root {
  --brand-black: #0a0a0a;
  --brand-navy: #0f172a;
  --brand-blue: #3F54F9;
  --brand-blue-dark: #302FA1;
  --brand-blue-light: #6B7CFA;
  --brand-text: #242422;
  --brand-accent: #F8F529;
  --brand-bg-light: #F5F6FF;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Selection */
::selection {
  background-color: var(--brand-blue);
  color: white;
}

/* Background Noise Texture */
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Animations */
@keyframes blob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 10px) scale(1.02); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes growHeight {
  from { height: 0; }
}

.animate-blob {
  animation: blob 15s ease-in-out infinite;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInRight {
  animation: fadeInRight 1s ease-out 0.4s forwards;
  opacity: 0;
}

.animate-fadeIn {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Stagger animations for children */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Intersection Observer animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Writing mode for vertical text */
.writing-vertical-rl {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient background */
.gradient-bg {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
}

/* Accent highlight */
.accent-highlight {
  background-color: var(--brand-accent);
  color: var(--brand-text);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--brand-black);
}

::-webkit-scrollbar-thumb {
  background: var(--slate-700);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--slate-600);
}

/* Light page scrollbar */
.page-light::-webkit-scrollbar-track {
  background: #f8fafc;
}

.page-light::-webkit-scrollbar-thumb {
  background: var(--slate-300);
}

.page-light::-webkit-scrollbar-thumb:hover {
  background: var(--slate-400);
}

/* Prose styles for content */
.prose p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.prose strong {
  color: white;
  font-weight: 600;
}

/* Button hover effects */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--brand-blue);
  color: white;
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  border-color: rgba(63, 84, 249, 0.5);
  transform: translateY(-2px);
}

/* Bar chart animation */
.bar-animate {
  animation: growHeight 1.5s cubic-bezier(0.33, 1, 0.68, 1) forwards;
}

/* Form styles */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(63, 84, 249, 0.1);
}

/* Header transparency */
.header-scrolled {
  background-color: rgba(15, 23, 42, 0.8);
  border-color: var(--slate-800);
}

.header-scrolled.light {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: var(--slate-200);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Dropdown animation */
.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Icon rotation */
.icon-rotate {
  transition: transform 0.3s ease;
}

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

/* Process timeline */
.timeline-connector {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--brand-blue), transparent);
}

/* Responsive utilities */
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none;
  }
}
